From owner-freebsd-standards Tue Jan 21 10: 9:19 2003 Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3813237B401 for ; Tue, 21 Jan 2003 10:09:18 -0800 (PST) Received: from ncsmtp02.ogw.rr.com (ncsmtp02.ogw.rr.com [24.93.67.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C97E43F5F for ; Tue, 21 Jan 2003 10:09:17 -0800 (PST) (envelope-from ryany@pobox.com) Received: from mail6.nc.rr.com (fe6 [24.93.67.53]) by ncsmtp02.ogw.rr.com (8.12.5/8.12.2) with ESMTP id h0LI8Fup013085 for ; Tue, 21 Jan 2003 13:08:16 -0500 (EST) Received: from cheshire ([24.25.23.20]) by mail6.nc.rr.com with Microsoft SMTPSVC(5.5.1877.757.75); Tue, 21 Jan 2003 13:09:36 -0500 Date: Tue, 21 Jan 2003 13:07:37 -0500 From: Ryan Younce To: freebsd-standards@freebsd.org Subject: math.h: first run Message-Id: <20030121130737.6be86e80.ryany@pobox.com> X-Mailer: Sylpheed version 0.8.9 (GTK+ 1.2.10; i386-portbld-freebsd4.7) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This is a first-go attempt at reorganizing math.h to include C99 and POSIX 2001 additions. The file was rather tricky (or at least to somebody who wasn't well versed with *_SOURCE -> *_VISIBLE transitions), so I welcome any corrections, suggestions, recommendations, opinions, etc...especially with regards to the preprocessor condition logic. Most of the BSD functions not appearing under the_ANSI_SOURCE or_POSIX_SOURCE conditions (which assumed non POSIX and non C89 functions) were moved into __BSD_VISIBLE or__ISO_C_VISIBLE >= 1999 if C99 supported them. The rest were lumped under__BSD_VISIBLE, except for XSI extensions, which were lumped under __XSI_VISIBLE ||__POSIX_C_SOURCE >= 200112 || __BSD_VISIBLE isinf() and isnan() are still declared under the __BSD_VISIBLE or __ISO_C_VISIBLE >= 1999 conditions but they need reimplementing as macros per C99. All new function prototypes are commented, as well as the macros that are likely MD. (In reordering this file, however, a number of the comments grouped over particular functions ("BSD Math Library entry points" comes to mind) were lost. If they are important, I can put them back in, with likely redundancy due to the ordering). The file is located at: http://www.tribug.org/~ryan/freebsd.math.h Ryan Younce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Thu Jan 23 9:58: 1 2003 Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 26DC037B401 for ; Thu, 23 Jan 2003 09:58:00 -0800 (PST) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B46543ED8 for ; Thu, 23 Jan 2003 09:57:58 -0800 (PST) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.6/8.12.3) with ESMTP id h0NHvt1e001348; Thu, 23 Jan 2003 10:57:56 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Thu, 23 Jan 2003 10:56:59 -0700 (MST) Message-Id: <20030123.105659.100599437.imp@bsdimp.com> To: ryany@pobox.com Cc: freebsd-standards@FreeBSD.ORG Subject: Re: math.h: first run From: "M. Warner Losh" In-Reply-To: <20030121130737.6be86e80.ryany@pobox.com> References: <20030121130737.6be86e80.ryany@pobox.com> X-Mailer: Mew version 2.1 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message: <20030121130737.6be86e80.ryany@pobox.com> Ryan Younce writes: : macros per C99. All new function prototypes are commented, as well as : the macros that are likely MD. Is there a reason they are all commented out? It struck me when I read this file that it was 1/2 connented out. : The file is located at: : : http://www.tribug.org/~ryan/freebsd.math.h This repeats the historical mistake about _REENTRANT defining *gamma*_r functions we inherited from Sun. Shouldn't those be protected by some more appropriate standards symbol? Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Thu Jan 23 10:12:16 2003 Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5CDD637B401 for ; Thu, 23 Jan 2003 10:12:15 -0800 (PST) Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC58143F1E for ; Thu, 23 Jan 2003 10:12:14 -0800 (PST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: from khavrinen.lcs.mit.edu (localhost [IPv6:::1]) by khavrinen.lcs.mit.edu (8.12.6/8.12.6) with ESMTP id h0NIC1bs049628 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Thu, 23 Jan 2003 13:12:03 -0500 (EST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.12.6/8.12.6/Submit) id h0NIC1vK049625; Thu, 23 Jan 2003 13:12:01 -0500 (EST) (envelope-from wollman) Date: Thu, 23 Jan 2003 13:12:01 -0500 (EST) From: Garrett Wollman Message-Id: <200301231812.h0NIC1vK049625@khavrinen.lcs.mit.edu> To: "M. Warner Losh" Cc: ryany@pobox.com, freebsd-standards@FreeBSD.ORG Subject: Re: math.h: first run In-Reply-To: <20030123.105659.100599437.imp@bsdimp.com> References: <20030121130737.6be86e80.ryany@pobox.com> <20030123.105659.100599437.imp@bsdimp.com> Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG < said: > This repeats the historical mistake about _REENTRANT defining > *gamma*_r functions we inherited from Sun. Shouldn't those be > protected by some more appropriate standards symbol? gamma_r functions are nonstandard. The Standard says: # These functions need not be reentrant. A function that is not # required to be reentrant is not required to be thread-safe. This is probably related to the XSI requirement to store the sign of the gamma function in the global variable `signgam', which obviously cannot be done reentrantly. As an implementation extension, we might choose to implement reentrant versions of the gamma family of functions. If we do so, they should be declared unconditionally in the BSD namespace (__BSD_VISIBLE) -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Sat Jan 25 10:12:32 2003 Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C2B6137B401 for ; Sat, 25 Jan 2003 10:12:30 -0800 (PST) Received: from h00609772adf0.ne.client2.attbi.com (h00609772adf0.ne.client2.attbi.com [24.61.43.152]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0073343E4A for ; Sat, 25 Jan 2003 10:12:30 -0800 (PST) (envelope-from rodrigc@attbi.com) Received: from h00609772adf0.ne.client2.attbi.com (localhost [127.0.0.1]) by h00609772adf0.ne.client2.attbi.com (8.12.6/8.12.6) with ESMTP id h0PICoTc059792 for ; Sat, 25 Jan 2003 13:12:51 -0500 (EST) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost) by h00609772adf0.ne.client2.attbi.com (8.12.6/8.12.6/Submit) id h0PICl2p059791 for freebsd-standards@freebsd.org; Sat, 25 Jan 2003 13:12:47 -0500 (EST) Date: Sat, 25 Jan 2003 13:12:46 -0500 From: Craig Rodrigues To: freebsd-standards@freebsd.org Subject: POSIX conformance utilities Message-ID: <20030125181246.GA59689@attbi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, Andrew Josey from the Opengroup recently posted an interesting link on the posixtest mailing list: http://www.opengroup.org/testing/downloads.html On that web page are some tools like: VSC lite -Commands and Utilities VSTH lite - Pthreads test suite hdrchk - Header test tool I ran the hdrchk tool on my -CURRENT system. I have the full results posted at: http://home.attbi.com/~rodrigc/posix/report.h.txt I found some interesting results such as: /****** - Missing elements ******/ /****** Start of Definitions for file sys/sem.h ******/ typedef pid_t; typedef size_t; /****** End of Definitions for file sys/sem.h ******/ /****** - Missing elements ******/ /****** Start of Definitions for file sys/shm.h ******/ typedef size_t; /****** End of Definitions for file sys/shm.h ******/ Are these errors accurate according to the Standard? -- Craig Rodrigues http://home.attbi.com/~rodrigc rodrigc@attbi.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Sat Jan 25 11:10: 8 2003 Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C08AA37B401 for ; Sat, 25 Jan 2003 11:10:03 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7349E43F75 for ; Sat, 25 Jan 2003 11:10:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h0PJA2NS066182 for ; Sat, 25 Jan 2003 11:10:02 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h0PJA2bj066181; Sat, 25 Jan 2003 11:10:02 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D4D1B37B401 for ; Sat, 25 Jan 2003 11:07:12 -0800 (PST) Received: from h00609772adf0.ne.client2.attbi.com (h00609772adf0.ne.client2.attbi.com [24.61.43.152]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23A4643F1E for ; Sat, 25 Jan 2003 11:07:12 -0800 (PST) (envelope-from rodrigc@attbi.com) Received: from h00609772adf0.ne.client2.attbi.com (localhost [127.0.0.1]) by h00609772adf0.ne.client2.attbi.com (8.12.6/8.12.6) with ESMTP id h0PJ7XTc060477 for ; Sat, 25 Jan 2003 14:07:33 -0500 (EST) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost) by h00609772adf0.ne.client2.attbi.com (8.12.6/8.12.6/Submit) id h0PJ7XSF060476; Sat, 25 Jan 2003 14:07:33 -0500 (EST) Message-Id: <200301251907.h0PJ7XSF060476@h00609772adf0.ne.client2.attbi.com> Date: Sat, 25 Jan 2003 14:07:33 -0500 (EST) From: Craig Rodrigues Reply-To: Craig Rodrigues To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: standards/47469: Update prototypes to POSIX standard Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >Number: 47469 >Category: standards >Synopsis: Update prototypes to POSIX standard >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-standards >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sat Jan 25 11:10:01 PST 2003 >Closed-Date: >Last-Modified: >Originator: Craig Rodrigues >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: System: FreeBSD h00609772adf0.ne.client2.attbi.com 5.0-CURRENT FreeBSD 5.0-CURRENT #13: Fri Jan 3 13:39:46 EST 2003 rodrigc@h00609772adf0.ne.client2.attbi.com:/usr/obj/usr/src/sys/MYKERNEL1 i386 >Description: Update prototypes to POSIX standard. Change: void *shmat(int, void *, int); int shmget(key_t, int, int); int shmdt(void *); to: void *shmat(int, const void *, int); int shmget(key_t, size_t, int); int shmdt(const void *); >How-To-Repeat: >Fix: Index: lib/libc/sys/shmat.2 =================================================================== RCS file: /home/ncvs/src/lib/libc/sys/shmat.2,v retrieving revision 1.16 diff -u -r1.16 shmat.2 --- lib/libc/sys/shmat.2 2002/12/19 09:40:25 1.16 +++ lib/libc/sys/shmat.2 2003/01/25 19:01:08 @@ -40,9 +40,9 @@ .In sys/ipc.h .In sys/shm.h .Ft void * -.Fn shmat "int shmid" "void *addr" "int flag" +.Fn shmat "int shmid" "const void *addr" "int flag" .Ft int -.Fn shmdt "void *addr" +.Fn shmdt "const void *addr" .Sh DESCRIPTION The .Fn shmat Index: lib/libc/sys/shmget.2 =================================================================== RCS file: /home/ncvs/src/lib/libc/sys/shmget.2,v retrieving revision 1.16 diff -u -r1.16 shmget.2 --- lib/libc/sys/shmget.2 2002/12/19 09:40:25 1.16 +++ lib/libc/sys/shmget.2 2003/01/25 19:01:08 @@ -39,7 +39,7 @@ .In sys/ipc.h .In sys/shm.h .Ft int -.Fn shmget "key_t key" "int size" "int flag" +.Fn shmget "key_t key" "size_t size" "int flag" .Sh DESCRIPTION Based on the values of .Fa key Index: sys/kern/syscalls.master =================================================================== RCS file: /home/ncvs/src/sys/kern/syscalls.master,v retrieving revision 1.140 diff -u -r1.140 syscalls.master --- sys/kern/syscalls.master 2003/01/04 11:41:12 1.140 +++ sys/kern/syscalls.master 2003/01/25 19:01:09 @@ -361,11 +361,11 @@ int msgflg); } 227 MNOSTD BSD { int msgrcv(int msqid, void *msgp, size_t msgsz, \ long msgtyp, int msgflg); } -228 MNOSTD BSD { int shmat(int shmid, void *shmaddr, int shmflg); } +228 MNOSTD BSD { int shmat(int shmid, const void *shmaddr, int shmflg); } 229 MNOSTD BSD { int shmctl(int shmid, int cmd, \ struct shmid_ds *buf); } -230 MNOSTD BSD { int shmdt(void *shmaddr); } -231 MNOSTD BSD { int shmget(key_t key, int size, int shmflg); } +230 MNOSTD BSD { int shmdt(const void *shmaddr); } +231 MNOSTD BSD { int shmget(key_t key, size_t size, int shmflg); } ; 232 MSTD POSIX { int clock_gettime(clockid_t clock_id, \ struct timespec *tp); } Index: sys/kern/sysv_shm.c =================================================================== RCS file: /home/ncvs/src/sys/kern/sysv_shm.c,v retrieving revision 1.77 diff -u -r1.77 sysv_shm.c --- sys/kern/sysv_shm.c 2003/01/21 08:55:55 1.77 +++ sys/kern/sysv_shm.c 2003/01/25 19:01:10 @@ -240,7 +240,7 @@ #ifndef _SYS_SYSPROTO_H_ struct shmdt_args { - void *shmaddr; + const void *shmaddr; }; #endif @@ -284,7 +284,7 @@ #ifndef _SYS_SYSPROTO_H_ struct shmat_args { int shmid; - void *shmaddr; + const void *shmaddr; int shmflg; }; #endif Index: sys/sys/shm.h =================================================================== RCS file: /home/ncvs/src/sys/sys/shm.h,v retrieving revision 1.18 diff -u -r1.18 shm.h --- sys/sys/shm.h 2003/01/13 23:04:32 1.18 +++ sys/sys/shm.h 2003/01/25 19:01:10 @@ -105,12 +105,17 @@ #include +#ifndef _SIZE_T_DECLARED +typedef __size_t size_t; +#define _SIZE_T_DECLARED +#endif + __BEGIN_DECLS int shmsys(int, ...); -void *shmat(int, void *, int); -int shmget(key_t, int, int); +void *shmat(int, const void *, int); +int shmget(key_t, size_t, int); int shmctl(int, int, struct shmid_ds *); -int shmdt(void *); +int shmdt(const void *); __END_DECLS #endif /* !_KERNEL */ >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Sat Jan 25 11:50: 8 2003 Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E30D37B401 for ; Sat, 25 Jan 2003 11:50:04 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C33943F80 for ; Sat, 25 Jan 2003 11:50:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h0PJo1NS075396 for ; Sat, 25 Jan 2003 11:50:01 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h0PJo1B8075395; Sat, 25 Jan 2003 11:50:01 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ECB0737B401 for ; Sat, 25 Jan 2003 11:42:45 -0800 (PST) Received: from h00609772adf0.ne.client2.attbi.com (h00609772adf0.ne.client2.attbi.com [24.61.43.152]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9CC9343F6B for ; Sat, 25 Jan 2003 11:42:42 -0800 (PST) (envelope-from rodrigc@attbi.com) Received: from h00609772adf0.ne.client2.attbi.com (localhost [127.0.0.1]) by h00609772adf0.ne.client2.attbi.com (8.12.6/8.12.6) with ESMTP id h0PJh3Tc060835 for ; Sat, 25 Jan 2003 14:43:04 -0500 (EST) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost) by h00609772adf0.ne.client2.attbi.com (8.12.6/8.12.6/Submit) id h0PJh3xb060834; Sat, 25 Jan 2003 14:43:03 -0500 (EST) Message-Id: <200301251943.h0PJh3xb060834@h00609772adf0.ne.client2.attbi.com> Date: Sat, 25 Jan 2003 14:43:03 -0500 (EST) From: Craig Rodrigues Reply-To: Craig Rodrigues To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: standards/47471: Update to latest POSIX standard Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >Number: 47471 >Category: standards >Synopsis: Update to latest POSIX standard >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-standards >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sat Jan 25 11:50:00 PST 2003 >Closed-Date: >Last-Modified: >Originator: Craig Rodrigues >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: System: FreeBSD h00609772adf0.ne.client2.attbi.com 5.0-CURRENT FreeBSD 5.0-CURRENT #13: Fri Jan 3 13:39:46 EST 2003 rodrigc@h00609772adf0.ne.client2.attbi.com:/usr/obj/usr/src/sys/MYKERNEL1 i386 >Description: - including should define pid_t and size_t - third parameter to semop() should be size_t See: http://www.opengroup.org/onlinepubs/007904975/basedefs/sys/sem.h.html >How-To-Repeat: >Fix: Index: lib/libc/sys/semop.2 =================================================================== RCS file: /home/ncvs/src/lib/libc/sys/semop.2,v retrieving revision 1.17 diff -u -r1.17 semop.2 --- lib/libc/sys/semop.2 2002/12/18 09:22:31 1.17 +++ lib/libc/sys/semop.2 2003/01/25 19:38:39 @@ -38,7 +38,7 @@ .In sys/ipc.h .In sys/sem.h .Ft int -.Fn semop "int semid" "struct sembuf *array" "unsigned nops" +.Fn semop "int semid" "struct sembuf *array" "size_t nops" .Sh DESCRIPTION The .Fn semop Index: sys/kern/syscalls.master =================================================================== RCS file: /home/ncvs/src/sys/kern/syscalls.master,v retrieving revision 1.140 diff -u -r1.140 syscalls.master --- sys/kern/syscalls.master 2003/01/04 11:41:12 1.140 +++ sys/kern/syscalls.master 2003/01/25 19:38:40 @@ -352,7 +352,7 @@ union semun *arg); } 221 MNOSTD BSD { int semget(key_t key, int nsems, int semflg); } 222 MNOSTD BSD { int semop(int semid, struct sembuf *sops, \ - u_int nsops); } + size_t nsops); } 223 UNIMPL NOHIDE semconfig 224 MNOSTD BSD { int msgctl(int msqid, int cmd, \ struct msqid_ds *buf); } Index: sys/kern/sysv_sem.c =================================================================== RCS file: /home/ncvs/src/sys/kern/sysv_sem.c,v retrieving revision 1.57 diff -u -r1.57 sysv_sem.c --- sys/kern/sysv_sem.c 2003/01/21 08:55:55 1.57 +++ sys/kern/sysv_sem.c 2003/01/25 19:38:40 @@ -858,7 +858,7 @@ struct semop_args { int semid; struct sembuf *sops; - u_int nsops; + size_t nsops; }; #endif @@ -871,14 +871,15 @@ struct semop_args *uap; { int semid = uap->semid; - u_int nsops = uap->nsops; + size_t nsops = uap->nsops; struct sembuf *sops; struct semid_ds *semaptr; struct sembuf *sopptr = 0; struct sem *semptr = 0; struct sem_undo *suptr; struct mtx *sema_mtxp; - int i, j, error; + size_t i, j; + int error; int do_wakeup, do_undos; DPRINTF(("call to semop(%d, 0x%x, %u)\n", semid, sops, nsops)); Index: sys/sys/sem.h =================================================================== RCS file: /home/ncvs/src/sys/sys/sem.h,v retrieving revision 1.25 diff -u -r1.25 sem.h --- sys/sys/sem.h 2002/03/19 20:18:41 1.25 +++ sys/sys/sem.h 2003/01/25 19:38:41 @@ -96,12 +96,23 @@ #ifndef _KERNEL #include +#include +#ifndef _SIZE_T_DECLARED +typedef __size_t size_t; +#define _SIZE_T_DECLARED +#endif + +#ifndef _PID_T_DECLARED +typedef __pid_t pid_t; +#define _PID_T_DECLARED +#endif + __BEGIN_DECLS int semsys(int, ...); int semctl(int, int, int, ...); int semget(key_t, int, int); -int semop(int, struct sembuf *,unsigned); +int semop(int, struct sembuf *,size_t); __END_DECLS #endif /* !_KERNEL */ >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message