blob: 5842105fd2856bc86023d42546dde2cbcddb10d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#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
|