123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #ifndef _FCNTL_H
- # error "Never use <bits/fcntl.h> directly; include <fcntl.h> instead."
- #endif
- #define __O_DIRECTORY 040000
- #define __O_NOFOLLOW 0100000
- #define __O_DIRECT 0200000
- #define __O_LARGEFILE 0400000
- struct flock
- {
- short int l_type;
- short int l_whence;
- #ifndef __USE_FILE_OFFSET64
- __off_t l_start;
- __off_t l_len;
- #else
- __off64_t l_start;
- __off64_t l_len;
- #endif
- __pid_t l_pid;
- };
- #ifdef __USE_LARGEFILE64
- struct flock64
- {
- short int l_type;
- short int l_whence;
- __off64_t l_start;
- __off64_t l_len;
- __pid_t l_pid;
- };
- #endif
- #include <bits/fcntl-linux.h>
|