This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] fcntl.h should provide mode_t, off_t and pid_t
- From: Roland McGrath <roland at redhat dot com>
- To: Samuel Thibault <samuel dot thibault at ens-lyon dot org>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Sun, 13 Jul 2008 15:29:41 -0700 (PDT)
- Subject: Re: [PATCH] fcntl.h should provide mode_t, off_t and pid_t
- References: <20080713012605.GA17205@implementation>
> 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