<<On Thu, 26 Oct 2000 13:58:09 -0400, Marcel Moolenaar <[EMAIL PROTECTED]> said:

> Eventually yes, but not this way. According to Bruce sys/types is a
> prerequisite for sys/wait.

This is currently true, but should be fixed this year (probably not
this month -- it depends on how much energy I have).

Draft 4 (draft 5 isn't out yet) of POSIX.1-200x says the following
(p. 411, ll. 13759 et seq):

        The id_t and pid_t types shall be defined as described in
        <sys/types.h>.
[begin XSI]
        The siginfo_t type shall be defined as described in
        <signal.h>.
        The rusage structure shall be defined as described in
        <sys/resource.h>.
        Inclusion of the <sys/wait.h> header may also make visible all
        symbols from <signal.h> and <sys/resource.h>.
[end XSI]

So, <sys/types.h> is not a prerequisite for 1003.1-200x's
<sys/wait.h>.  For the XSI extension, implementors are given special
license for certain XSI-required data types (which, being structures,
are somewhat impractical to define in the usual way); in a pure-POSIX
environment <sys/types.h> is not permitted.  According to the revision
history (p. 412), this is a requirement carried over from SUSv2 and
dates back to XPG4v2.

-GAWollman

--
Garrett A. Wollman   | O Siem / We are all family / O Siem / We're all the same
[EMAIL PROTECTED]  | O Siem / The fires of freedom 
Opinions not those of| Dance in the burning flame
MIT, LCS, CRS, or NSA|                     - Susan Aglukark and Chad Irschick


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to