Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(914)

Unified Diff: src/pkg/runtime/cgo/sharedlib_linux.c

Issue 9738047: code review 9738047: runtime: Add shared library support (linux/amd64)
Patch Set: diff -r 3833ddddde2b1a2741a396c4e965b04d525a133b https://go.googlecode.com/hg/ Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pkg/runtime/cgo/libcgo.h ('k') | src/pkg/runtime/os_linux_arm.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/runtime/cgo/sharedlib_linux.c
===================================================================
new file mode 100644
--- /dev/null
+++ b/src/pkg/runtime/cgo/sharedlib_linux.c
@@ -0,0 +1,22 @@
+// Copyright 2013 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+#include "../runtime.h"
+#include "../cgocall.h"
+
+#pragma cgo_import_static x_cgo_lib_setup
+extern void x_cgo_lib_setup(void (*)(void*));
+void (*_cgo_lib_setup)(void (*)(void*)) = x_cgo_lib_setup;
+
+#pragma cgo_import_static x_cgo_lib_init
+extern void x_cgo_lib_init(void);
+void (*_cgo_lib_init)(void) = x_cgo_lib_init;
+
+#pragma cgo_import_static x_cgo_lib_init_done
+extern void x_cgo_lib_init_done(void (*)(void*));
+void (*_cgo_lib_init_done)(void (*)(void*)) = x_cgo_lib_init_done;
+
+#pragma cgo_import_static x_cgo_getenviron
+extern uint8** x_cgo_getenviron(void);
+uint8** (*_cgo_getenviron)(void) = x_cgo_getenviron;
« no previous file with comments | « src/pkg/runtime/cgo/libcgo.h ('k') | src/pkg/runtime/os_linux_arm.c » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b