From: Jim Meyering Date: Wed, 19 Jan 2005 09:57:49 +0000 (+0000) Subject: Include headers required for use of DIR and struct stat. X-Git-Tag: CPPI-1_12~1590 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=af5592710cd738a051c70eec758c9827d6581dd4;p=thirdparty%2Fcoreutils.git Include headers required for use of DIR and struct stat. [AT_SYMLINK_NOFOLLOW]: Define. (fdopendir, fstatat): Add prototypes. --- diff --git a/lib/openat.h b/lib/openat.h index 74f5508db9..43aa70fb77 100644 --- a/lib/openat.h +++ b/lib/openat.h @@ -21,9 +21,20 @@ # include #endif +#include +#include +#include +#include + #ifndef AT_FDCWD # define AT_FDCWD (-3041965) /* same value as Solaris 9 */ +enum +{ + /* FIXME: use same value Solaris uses */ + AT_SYMLINK_NOFOLLOW = 100 +}; + # ifdef __OPENAT_PREFIX # undef openat # define __OPENAT_CONCAT(x, y) x ## y @@ -31,5 +42,10 @@ # define __OPENAT_ID(y) __OPENAT_XCONCAT (__OPENAT_PREFIX, y) # define openat __OPENAT_ID (openat) int openat (int fd, char const *filename, int flags, /* mode_t mode */ ...); +# define fdopendir __OPENAT_ID (fdopendir) +DIR *fdopendir (int fd); +# define fstatat __OPENAT_ID (fstatat) +int fstatat (int fd, char const *filename, struct stat *st, int flag); # endif + #endif