Browse Source

- pthread_attr_{g,s}etstacksize would depend on SUSv3 legacy but are not
implemented anyway.

Bernhard Reutner-Fischer 15 years ago
parent
commit
30f06faa24

+ 2 - 0
libpthread/linuxthreads.old/attr.c

@@ -209,6 +209,7 @@ int __pthread_attr_setstackaddr(pthread_attr_t *attr, void *stackaddr)
 }
 weak_alias (__pthread_attr_setstackaddr, pthread_attr_setstackaddr)
 
+#if 0 /* uClibc: deprecated stuff disabled */
 int __pthread_attr_getstackaddr(const pthread_attr_t *attr, void **stackaddr)
 {
   /* XXX This function has a stupid definition.  The standard specifies
@@ -229,6 +230,7 @@ int __pthread_attr_setstacksize(pthread_attr_t *attr, size_t stacksize)
   return 0;
 }
 weak_alias (__pthread_attr_setstacksize, pthread_attr_setstacksize)
+#endif
 
 int __pthread_attr_getstacksize(const pthread_attr_t *attr, size_t *stacksize)
 {

+ 2 - 0
libpthread/linuxthreads.old/sysdeps/pthread/pthread.h

@@ -252,6 +252,7 @@ extern int pthread_attr_getguardsize (__const pthread_attr_t *__restrict
      __THROW;
 #endif
 
+#if 0 /* uClibc: deprecated stuff disabled. def __UCLIBC_SUSV3_LEGACY__ */
 /* Set the starting address of the stack of the thread to be created.
    Depending on whether the stack grows up or down the value must either
    be higher or lower than all the address in the memory block.  The
@@ -263,6 +264,7 @@ extern int pthread_attr_setstackaddr (pthread_attr_t *__attr,
 extern int pthread_attr_getstackaddr (__const pthread_attr_t *__restrict
 				      __attr, void **__restrict __stackaddr)
      __THROW;
+#endif
 
 #ifdef __USE_XOPEN2K
 /* The following two interfaces are intended to replace the last two.  They

+ 2 - 0
libpthread/linuxthreads/sysdeps/pthread/pthread.h

@@ -252,6 +252,7 @@ extern int pthread_attr_getguardsize (__const pthread_attr_t *__restrict
      __THROW;
 #endif
 
+#if 0 /* uClibc: deprecated stuff disabled. def __UCLIBC_SUSV3_LEGACY__ */
 /* Set the starting address of the stack of the thread to be created.
    Depending on whether the stack grows up or down the value must either
    be higher or lower than all the address in the memory block.  The
@@ -263,6 +264,7 @@ extern int pthread_attr_setstackaddr (pthread_attr_t *__attr,
 extern int pthread_attr_getstackaddr (__const pthread_attr_t *__restrict
 				      __attr, void **__restrict __stackaddr)
      __THROW;
+#endif
 
 #ifdef __USE_XOPEN2K
 /* The following two interfaces are intended to replace the last two.  They