svn commit: trunk/uClibc/libpthread: linuxthreads linuxthreads.old

aldot at uclibc.org aldot at uclibc.org
Wed May 28 17:36:12 UTC 2008


Author: aldot
Date: 2008-05-28 10:36:11 -0700 (Wed, 28 May 2008)
New Revision: 22110

Log:
- pull commentary fixes from upstream


Modified:
   trunk/uClibc/libpthread/linuxthreads.old/semaphore.h
   trunk/uClibc/libpthread/linuxthreads/semaphore.h


Changeset:
Modified: trunk/uClibc/libpthread/linuxthreads/semaphore.h
===================================================================
--- trunk/uClibc/libpthread/linuxthreads/semaphore.h	2008-05-28 15:57:31 UTC (rev 22109)
+++ trunk/uClibc/libpthread/linuxthreads/semaphore.h	2008-05-28 17:36:11 UTC (rev 22110)
@@ -13,7 +13,7 @@
 /* GNU Library General Public License for more details.                 */
 
 #ifndef _SEMAPHORE_H
-#define _SEMAPHORE_H    1
+#define _SEMAPHORE_H	1
 
 #include <features.h>
 #include <sys/types.h>
@@ -42,7 +42,7 @@
 #define SEM_FAILED	((sem_t *) 0)
 
 /* Maximum value the semaphore can have.  */
-#define SEM_VALUE_MAX 	(2147483647)
+#define SEM_VALUE_MAX	(2147483647)
 
 
 __BEGIN_DECLS
@@ -54,7 +54,7 @@
 /* Free resources associated with semaphore object SEM.  */
 extern int sem_destroy (sem_t *__sem) __THROW;
 
-/* Open a named semaphore NAME with open flaot OFLAG.  */
+/* Open a named semaphore NAME with open flags OFLAG.  */
 extern sem_t *sem_open (__const char *__name, int __oflag, ...) __THROW;
 
 /* Close descriptor for named semaphore SEM.  */
@@ -63,11 +63,17 @@
 /* Remove named semaphore NAME.  */
 extern int sem_unlink (__const char *__name) __THROW;
 
-/* Wait for SEM being posted.  */
+/* Wait for SEM being posted.
+
+   This function is a cancellation point and therefore not marked with
+   __THROW.  */
 extern int sem_wait (sem_t *__sem);
 
 #ifdef __USE_XOPEN2K
-/* Similar to `sem_wait' but wait only until ABSTIME.  */
+/* Similar to `sem_wait' but wait only until ABSTIME.
+
+   This function is a cancellation point and therefore not marked with
+   __THROW.  */
 extern int sem_timedwait (sem_t *__restrict __sem,
 			  __const struct timespec *__restrict __abstime);
 #endif
@@ -82,6 +88,7 @@
 extern int sem_getvalue (sem_t *__restrict __sem, int *__restrict __sval)
      __THROW;
 
+
 __END_DECLS
 
-#endif  /* semaphore.h */
+#endif	/* semaphore.h */

Modified: trunk/uClibc/libpthread/linuxthreads.old/semaphore.h
===================================================================
--- trunk/uClibc/libpthread/linuxthreads.old/semaphore.h	2008-05-28 15:57:31 UTC (rev 22109)
+++ trunk/uClibc/libpthread/linuxthreads.old/semaphore.h	2008-05-28 17:36:11 UTC (rev 22110)
@@ -13,7 +13,7 @@
 /* GNU Library General Public License for more details.                 */
 
 #ifndef _SEMAPHORE_H
-#define _SEMAPHORE_H    1
+#define _SEMAPHORE_H	1
 
 #include <features.h>
 #include <sys/types.h>
@@ -54,7 +54,7 @@
 /* Free resources associated with semaphore object SEM.  */
 extern int sem_destroy (sem_t *__sem) __THROW;
 
-/* Open a named semaphore NAME with open flaot OFLAG.  */
+/* Open a named semaphore NAME with open flags OFLAG.  */
 extern sem_t *sem_open (__const char *__name, int __oflag, ...) __THROW;
 
 /* Close descriptor for named semaphore SEM.  */
@@ -63,11 +63,17 @@
 /* Remove named semaphore NAME.  */
 extern int sem_unlink (__const char *__name) __THROW;
 
-/* Wait for SEM being posted.  */
+/* Wait for SEM being posted.
+
+   This function is a cancellation point and therefore not marked with
+   __THROW.  */
 extern int sem_wait (sem_t *__sem);
 
 #ifdef __USE_XOPEN2K
-/* Similar to `sem_wait' but wait only until ABSTIME.  */
+/* Similar to `sem_wait' but wait only until ABSTIME.
+
+   This function is a cancellation point and therefore not marked with
+   __THROW.  */
 extern int sem_timedwait (sem_t *__restrict __sem,
 			  __const struct timespec *__restrict __abstime);
 #endif
@@ -82,6 +88,7 @@
 extern int sem_getvalue (sem_t *__restrict __sem, int *__restrict __sval)
      __THROW;
 
+
 __END_DECLS
 
-#endif  /* semaphore.h */
+#endif	/* semaphore.h */




More information about the uClibc-cvs mailing list