X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fopenat.h;h=2c936634384ca5e21c8bf88b01d1674bd70244ef;hb=c3edfc411c57b3bd4f12a09674f143651990c1f2;hp=74f5508db9a4ce3e51dd104d69aa9e384585afee;hpb=d9203c96c70e64ae24a2f2d36e1ba80d79628dc5;p=gnulib.git diff --git a/lib/openat.h b/lib/openat.h index 74f5508db..2c9366343 100644 --- a/lib/openat.h +++ b/lib/openat.h @@ -1,5 +1,5 @@ /* provide a replacement openat function - Copyright (C) 2004 Free Software Foundation, Inc. + Copyright (C) 2004, 2005 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -21,8 +21,14 @@ # include #endif +#include +#include +#include +#include + #ifndef AT_FDCWD # define AT_FDCWD (-3041965) /* same value as Solaris 9 */ +# define AT_SYMLINK_NOFOLLOW 4096 /* same value as Solaris 9 */ # ifdef __OPENAT_PREFIX # undef openat @@ -31,5 +37,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