public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Fix NPTL comment typos
@ 2004-06-08  7:30 Jakub Jelinek
  2004-06-11 20:13 ` Roland McGrath
  0 siblings, 1 reply; 2+ messages in thread
From: Jakub Jelinek @ 2004-06-08  7:30 UTC (permalink / raw)
  To: Ulrich Drepper, Roland McGrath; +Cc: Glibc hackers

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix NPTL comment typos
  2004-06-08  7:30 [PATCH] Fix NPTL comment typos Jakub Jelinek
@ 2004-06-11 20:13 ` Roland McGrath
  0 siblings, 0 replies; 2+ messages in thread
From: Roland McGrath @ 2004-06-11 20:13 UTC (permalink / raw)
  To: Jakub Jelinek; +Cc: Ulrich Drepper, Glibc hackers

> 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>.

I've put these in.


Thanks,
Roland

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-06-11 20:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-08  7:30 [PATCH] Fix NPTL comment typos Jakub Jelinek
2004-06-11 20:13 ` Roland McGrath

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).