On Mon, Feb 25, 2002 at 05:32:31PM +0300, Andrey A. Chernov wrote:
> On Mon, Feb 25, 2002 at 16:33:07 +0200, Sheldon Hearn wrote:
> > However, the standard expects gid_t to be defined in <unistd.h>, so if
> > you just need gid_t, and not prototypes for getgr*(), then that's the
> > one to include.
> 
> POSIX reguire gid_t to be specified not only in <sys/types.h> but in 
> <grp.h> too.

I note that in the footnotes for getgrgid, in the section for "issue
6" of the standard:

        The requirement to include <sys/types.h> has been removed.
        Although <sys/types.h> was required for conforming
        implementations of previous POSIX specifications, it was
        not required for UNIX applications.

Curiously, this seems to say the opposit of what you actually see
in SUSv2, as it lists <sys/types.h> as a prerequisit.

        David.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message
  • ... Andrey A. Chernov
    • ... Andrey A. Chernov
    • ... Garrett Wollman
      • ... Andrey A. Chernov
        • ... Alexey Dokuchaev
          • ... Terry Lambert
          • ... Андрей Чернов
  • ... Sheldon Hearn
    • ... Andrey A. Chernov
      • ... Sheldon Hearn
      • ... David Malone
        • ... Bruce Evans

Reply via email to