[PATCH] fcntl.h should provide mode_t, off_t and pid_t

Roland McGrath roland@redhat.com
Mon Jul 14 13:50:00 GMT 2008


> the Single Unix specification says that <fcntl.h> should provide
> definitions for mode_t, off_t and pid_t.  The attached patched makes it
> do so if not already.

io/fcntl.h already has, even in the context of your diff:

>  /* For XPG all symbols from <sys/stat.h> should also be available.  */
>  #ifdef __USE_XOPEN
>  # include <sys/stat.h>

That covers off_t and mode_t.  Can you verify that pid_t is really missing
on Linux configurations?  If it is missing only in Hurd configurations, we
should figure out how the difference arises before changing anything.


Thanks,
Roland
  



More information about the Libc-alpha mailing list