From owner-freebsd-bugs Wed Oct 4 1:11:30 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from gidora.zeta.org.au (gidora.zeta.org.au [203.26.10.25]) by hub.freebsd.org (Postfix) with SMTP id 0675837B503 for ; Wed, 4 Oct 2000 01:11:26 -0700 (PDT) Received: (qmail 28531 invoked from network); 4 Oct 2000 08:11:19 -0000 Received: from unknown (HELO bde.zeta.org.au) (203.2.228.102) by gidora.zeta.org.au with SMTP; 4 Oct 2000 08:11:18 -0000 Date: Wed, 4 Oct 2000 19:11:14 +1100 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: Garrett Wollman Cc: freebsd-bugs@FreeBSD.ORG, freebsd-standards@khavrinen.lcs.mit.edu Subject: Re: misc/21644: /usr/include/sys/mman.h uses a type defined in /usr/include/sys/types.h In-Reply-To: <200010031910.PAA43095@khavrinen.lcs.mit.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, 3 Oct 2000, Garrett Wollman wrote: > In certain instances, POSIX actually requires that the types > themselves be defined; for example, is required to cause > the definition of the types `blkcnt_t', `blksize_t', `dev_t', `ino_t', > `mode_t', `nlink_t', `uid_t', `gid_t', `off_t', and `time_t' from > . This suggests to me that we may need to use the > _BSD_SIZE_T trick on many or all of the types in question. If we can > centralize these definitions it would be better than allowing the > various _t types to potentially become desynchronized with their > consumers. I agree. This makes the treatment of POSIX typedefs more like the treatment of Standard C typedefs ( shouldn't exist; instead, each header should declare precisely the types required to use the header, preferably without types being defined all over the place). Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message