summaryrefslogtreecommitdiff
path: root/libthreads/libthreads.map
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2000-03-27 18:19:46 +0000
committerRoland McGrath <roland@gnu.org>2000-03-27 18:19:46 +0000
commit6e5801f728a121cc002d7f6912dab2d9b60a3743 (patch)
tree01463a6a6400102c46fe002ab5c21acf0ba27bf2 /libthreads/libthreads.map
parent0f3c84b5ef7c5083441eef53849830738ad731d9 (diff)
2000-03-27 Roland McGrath <roland@baalperazim.frob.com>
Locking support for stdio streams with glibc-2.2 libio. EXPERIMENTAL! * lockfile.c: New file. * libthreads.map: New file. * Makefile (SRCS): Add lockfile.c. [$(VERSIONING) = yes] ($(libname).so.$(hurd-version)): Depend on $(srcdir)/$(libname).map to get version script into the link.
Diffstat (limited to 'libthreads/libthreads.map')
-rw-r--r--libthreads/libthreads.map19
1 files changed, 19 insertions, 0 deletions
diff --git a/libthreads/libthreads.map b/libthreads/libthreads.map
new file mode 100644
index 00000000..28c85017
--- /dev/null
+++ b/libthreads/libthreads.map
@@ -0,0 +1,19 @@
+/* This is the version script file used for building libthreads.so. -*- C -*-
+ It is in the form of a linker script, to be including as an input
+ file in the link command, rather than with --version-script. */
+
+ /* We only define these symbols when built against a libio-using libc,
+ which we presume will be 2.2 that is expecting our lockfile.c hooks.
+ For now, the rest of the library's symbols remain unversioned. */
+
+VERSION
+{
+ GLIBC_2.2
+ {
+ global:
+ _IO_flockfile; _IO_funlockfile; _IO_ftrylockfile;
+ flockfile; funlockfile; ftrylockfile;
+ local:
+ _cthreads_flockfile; _cthreads_funlockfile; _cthreads_ftrylockfile;
+ };
+};