[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH] GLIBC 2.0 create and attr_init



I have already sent this but I didn't get it back...

The functions are different in LinuxThreads to save a tiny bit of
memory. This doesn't really matter in NPTL.

Makes Apache2 and Evolution Summary work.

--- nptl/pthread_attr_init.c~	2002-09-19 11:57:29.000000000 +0200
+++ nptl/pthread_attr_init.c	2002-11-01 11:27:03.000000000 +0100
@@ -65,13 +65,8 @@ versioned_symbol (libpthread, __pthread_
 
 
 #if SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)
-int
-__pthread_attr_init_2_0 (attr)
-     pthread_attr_t *attr;
-{
-  return ENOSYS;
-}
+strong_alias(__pthread_attr_init_2_1, __pthread_attr_init_2_0);
 compat_symbol (libpthread, __pthread_attr_init_2_0, pthread_attr_init,
 	       GLIBC_2_0);
 #endif
--- nptl/pthread_create.c~	2002-11-01 03:42:43.000000000 +0100
+++ nptl/pthread_create.c	2002-11-01 11:26:45.000000000 +0100
@@ -380,15 +380,7 @@ versioned_symbol (libpthread, __pthread_
 
 
 #if SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1)
-int
-__pthread_create_2_0 (newthread, attr, start_routine, arg)
-     pthread_t *newthread;
-     const pthread_attr_t *attr;
-     void *(*start_routine) (void *);
-     void *arg;
-{
-  return ENOSYS;
-}
+strong_alias(__pthread_create_2_1, __pthread_create_2_0);
 compat_symbol (libpthread, __pthread_create_2_0, pthread_create,
 	       GLIBC_2_0);
 #endif

Attachment: pgp00009.pgp
Description: PGP signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]