Lines 27-32
Link Here
|
27 |
#include <sysdep-cancel.h> |
27 |
#include <sysdep-cancel.h> |
28 |
#include <not-cancel.h> |
28 |
#include <not-cancel.h> |
29 |
|
29 |
|
|
|
30 |
#if !defined OPENAT |
31 |
# define OPENAT openat |
32 |
#endif |
30 |
|
33 |
|
31 |
#if !defined OPENAT && !defined __ASSUME_ATFCTS |
34 |
#if !defined OPENAT && !defined __ASSUME_ATFCTS |
32 |
# define OPENAT openat |
35 |
# define OPENAT openat |
Lines 70-80
int __have_atfcts;
Link Here
|
70 |
|
73 |
|
71 |
|
74 |
|
72 |
int |
75 |
int |
73 |
OPENAT_NOT_CANCEL (fd, file, oflag, mode) |
76 |
OPENAT_NOT_CANCEL (int fd, const char *file, int oflag, mode_t mode) |
74 |
int fd; |
|
|
75 |
const char *file; |
76 |
int oflag; |
77 |
mode_t mode; |
78 |
{ |
77 |
{ |
79 |
|
78 |
|
80 |
/* We have to add the O_LARGEFILE flag for openat64. */ |
79 |
/* We have to add the O_LARGEFILE flag for openat64. */ |
Lines 144-153
OPENAT_NOT_CANCEL (fd, file, oflag, mode
Link Here
|
144 |
the directory associated with FD. If OFLAG includes O_CREAT, a |
143 |
the directory associated with FD. If OFLAG includes O_CREAT, a |
145 |
third argument is the file protection. */ |
144 |
third argument is the file protection. */ |
146 |
int |
145 |
int |
147 |
__OPENAT (fd, file, oflag) |
146 |
__OPENAT (int fd, const char *file, int oflag, ...) |
148 |
int fd; |
|
|
149 |
const char *file; |
150 |
int oflag; |
151 |
{ |
147 |
{ |
152 |
mode_t mode = 0; |
148 |
mode_t mode = 0; |
153 |
if (oflag & O_CREAT) |
149 |
if (oflag & O_CREAT) |