From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16924 invoked by alias); 8 Jun 2004 07:30:31 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 16892 invoked from network); 8 Jun 2004 07:30:29 -0000 Received: from unknown (HELO sunsite.ms.mff.cuni.cz) (195.113.15.26) by sourceware.org with SMTP; 8 Jun 2004 07:30:29 -0000 Received: from sunsite.ms.mff.cuni.cz (sunsite.mff.cuni.cz [127.0.0.1]) by sunsite.ms.mff.cuni.cz (8.12.8/8.12.8) with ESMTP id i585GW3j000717; Tue, 8 Jun 2004 07:16:32 +0200 Received: (from jakub@localhost) by sunsite.ms.mff.cuni.cz (8.12.8/8.12.8/Submit) id i585GVnd000691; Tue, 8 Jun 2004 07:16:31 +0200 Date: Tue, 08 Jun 2004 07:30:00 -0000 From: Jakub Jelinek To: Ulrich Drepper , Roland McGrath Cc: Glibc hackers Subject: [PATCH] Fix NPTL comment typos Message-ID: <20040608051631.GB5191@sunsite.ms.mff.cuni.cz> Reply-To: Jakub Jelinek Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-SW-Source: 2004-06/txt/msg00005.txt.bz2 Hi! 2004-06-08 Jakub Jelinek * 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 . --- 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