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] | |
Hi!
2004-06-08 Jakub Jelinek <jakub@redhat.com>
* pthread_mutexattr_getpshared.c (pthread_mutex_getpshared): Fix
comment typo.
* pthread_mutexattr_gettype.c (pthread_mutexattr_gettype): Likewise.
* pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
* pthread_mutexattr_settype.c (__pthread_mutexattr_settype): Likewise.
* pthread_mutexattr_setpshared.c (pthread_mutexattr_setpshared):
Likewise. Reported by Bob Cook <bobcook47@hotmail.com>.
--- libc/nptl/pthread_mutexattr_getpshared.c.jj 2002-11-26 23:49:22.000000000 +0100
+++ libc/nptl/pthread_mutexattr_getpshared.c 2004-06-08 09:25:24.481816738 +0200
@@ -29,7 +29,7 @@ pthread_mutexattr_getpshared (attr, psha
iattr = (const struct pthread_mutexattr *) attr;
- /* We use bit 31 to single whether the mutex is going to be
+ /* We use bit 31 to signal whether the mutex is going to be
process-shared or not. */
*pshared = ((iattr->mutexkind & 0x80000000) != 0
? PTHREAD_PROCESS_SHARED : PTHREAD_PROCESS_PRIVATE);
--- libc/nptl/pthread_mutexattr_gettype.c.jj 2002-11-26 23:49:22.000000000 +0100
+++ libc/nptl/pthread_mutexattr_gettype.c 2004-06-08 09:25:24.484816201 +0200
@@ -29,7 +29,7 @@ pthread_mutexattr_gettype (attr, kind)
iattr = (const struct pthread_mutexattr *) attr;
- /* We use bit 31 to single whether the mutex is going to be
+ /* We use bit 31 to signal whether the mutex is going to be
process-shared or not. */
*kind = iattr->mutexkind & ~0x80000000;
--- libc/nptl/pthread_mutexattr_init.c.jj 2002-11-26 23:49:21.000000000 +0100
+++ libc/nptl/pthread_mutexattr_init.c 2004-06-08 09:25:24.508811900 +0200
@@ -28,7 +28,7 @@ __pthread_mutexattr_init (attr)
if (sizeof (struct pthread_mutexattr) != sizeof (pthread_mutexattr_t))
memset (attr, '\0', sizeof (*attr));
- /* We use bit 31 to single whether the mutex is going to be
+ /* We use bit 31 to signal whether the mutex is going to be
process-shared or not. By default it is zero, i.e., the mutex is
not process-shared. */
((struct pthread_mutexattr *) attr)->mutexkind = PTHREAD_MUTEX_NORMAL;
--- libc/nptl/pthread_mutexattr_settype.c.jj 2002-11-26 23:49:22.000000000 +0100
+++ libc/nptl/pthread_mutexattr_settype.c 2004-06-08 09:25:24.486815842 +0200
@@ -33,7 +33,7 @@ __pthread_mutexattr_settype (attr, kind)
iattr = (struct pthread_mutexattr *) attr;
- /* We use bit 31 to single whether the mutex is going to be
+ /* We use bit 31 to signal whether the mutex is going to be
process-shared or not. */
iattr->mutexkind = (iattr->mutexkind & 0x80000000) | kind;
--- libc/nptl/pthread_mutexattr_setpshared.c.jj 2004-05-18 10:55:59.000000000 +0200
+++ libc/nptl/pthread_mutexattr_setpshared.c 2004-06-08 09:25:24.505812438 +0200
@@ -34,7 +34,7 @@ pthread_mutexattr_setpshared (attr, psha
iattr = (struct pthread_mutexattr *) attr;
- /* We use bit 31 to single whether the mutex is going to be
+ /* We use bit 31 to signal whether the mutex is going to be
process-shared or not. */
if (pshared == PTHREAD_PROCESS_PRIVATE)
iattr->mutexkind &= ~0x80000000;
Jakub
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |