This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Export __fork from libc.so back


Hi!

Addition of nptl and linuxthreads fork.c killed __fork@@GLIBC_2.0 export
from libc.so. Some programs, like wine, unfortunately, use it.

2003-03-22  Jakub Jelinek  <jakub at redhat dot com>

nptl/
	* sysdeps/unix/sysv/linux/fork.c (__fork): Add libc_hidden_def.
linuxthreads/
	* sysdeps/unix/sysv/linux/fork.c (__fork): Add libc_hidden_def.

--- libc/nptl/sysdeps/unix/sysv/linux/fork.c.jj	2003-03-13 16:00:18.000000000 -0500
+++ libc/nptl/sysdeps/unix/sysv/linux/fork.c	2003-03-21 18:12:38.000000000 -0500
@@ -131,4 +131,5 @@ __libc_fork (void)
   return pid;
 }
 weak_alias (__libc_fork, __fork)
+libc_hidden_def (__fork)
 weak_alias (__libc_fork, fork)
--- libc/linuxthreads/sysdeps/unix/sysv/linux/fork.c.jj	2003-01-02 19:37:21.000000000 -0500
+++ libc/linuxthreads/sysdeps/unix/sysv/linux/fork.c	2003-03-21 18:09:18.000000000 -0500
@@ -39,4 +39,5 @@ __libc_fork (void)
   return __libc_maybe_call2 (pthread_fork, (&__fork_block), ARCH_FORK ());
 }
 weak_alias (__libc_fork, __fork)
+libc_hidden_def (__fork)
 weak_alias (__libc_fork, fork)

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]