From: Jakub Jelinek <jakub@redhat.com>
To: Ulrich Drepper <drepper@redhat.com>, Roland McGrath <roland@redhat.com>
Cc: Glibc hackers <libc-hacker@sources.redhat.com>
Subject: [PATCH] Fix NPTL comment typos
Date: Tue, 08 Jun 2004 07:30:00 -0000 [thread overview]
Message-ID: <20040608051631.GB5191@sunsite.ms.mff.cuni.cz> (raw)
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
next reply other threads:[~2004-06-08 7:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-08 7:30 Jakub Jelinek [this message]
2004-06-11 20:13 ` Roland McGrath
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040608051631.GB5191@sunsite.ms.mff.cuni.cz \
--to=jakub@redhat.com \
--cc=drepper@redhat.com \
--cc=libc-hacker@sources.redhat.com \
--cc=roland@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).