mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-07-21 16:31:03 +02:00
98be5b6685
Adjust prototype
18 lines
459 B
C
18 lines
459 B
C
#if HAVE_FCNTL_H
|
|
# include <fcntl.h>
|
|
#endif
|
|
|
|
#ifndef AT_FDCWD
|
|
/* FIXME: use the same value Solaris uses */
|
|
# define AT_FDCWD -999
|
|
|
|
# ifdef __OPENAT_PREFIX
|
|
# undef openat
|
|
# define __OPENAT_CONCAT(x, y) x ## y
|
|
# define __OPENAT_XCONCAT(x, y) __OPENAT_CONCAT (x, y)
|
|
# 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 */ ...);
|
|
# endif
|
|
#endif
|