Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Oct 2000 19:11:14 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
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
Message-ID:  <Pine.BSF.4.21.0010041906490.10679-100000@besplex.bde.org>
In-Reply-To: <200010031910.PAA43095@khavrinen.lcs.mit.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 3 Oct 2000, Garrett Wollman wrote:

> In certain instances, POSIX actually requires that the types
> themselves be defined; for example, <sys/stat.h> 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
> <sys/types.h>.  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 (<sys/types.h> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0010041906490.10679-100000>