acl  3.5.3.0
acl_define_linux.h
浏览该文件的文档.
1 #ifndef ACL_DEFINE_LINUX_INCLUDE_H
2 #define ACL_DEFINE_LINUX_INCLUDE_H
3 
4 #if defined(ANDROID)
5 # ifndef ACL_ANDROID
6 # define ACL_ANDROID
7 # endif
8 #endif
9 
10 #if defined(LINUX2) || defined(ACL_ANDROID) || defined(__linux__)
11 # ifndef ACL_LINUX
12 # define ACL_LINUX
13 # endif
14 # ifndef ACL_UNIX
15 # define ACL_UNIX
16 # endif
17 
18 #include <stddef.h> /* just for size_t */
19 
20 /* for O_LARGEFILE flag define */
21 #ifndef MINGW
22 # ifndef _GNU_SOURCE
23 # ifndef _LARGEFILE64_SOURCE
24 # define _LARGEFILE64_SOURCE
25 # endif
26 # ifndef _FILE_OFFSET_BITS
27 # define _FILE_OFFSET_BITS 64
28 # endif
29 # endif
30 #endif
31 
32 /*
33 # include <sys/types.h>
34 # include <features.h>
35 # include <sys/stat.h>
36 # include <unistd.h>
37 */
38 
39 # define ACL_USE_PATHS_H
40 # ifndef MINGW
41 # define ACL_HAS_FLOCK_LOCK
42 /* # define ACL_HAS_SPINLOCK */
43 # endif
44 
45 # define ACL_HAS_FCNTL_LOCK
46 # define ACL_INTERNAL_LOCK ACL_FLOCK_STYLE_FLOCK
47 # define ACL_ROOT_PATH "/bin:/usr/bin:/sbin:/usr/sbin"
48 # define ACL_PATH_MAILDIR "/var/mail"
49 # define ACL_PATH_BSHELL "/bin/sh"
50 # define ACL_PATH_DEFPATH "/usr/bin"
51 # define ACL_PATH_STDPATH "/usr/bin:/usr/sbin"
52 
53 # if defined(ACL_HAVE_NO_STAT64) || defined(MINGW) || defined(ANDROID)
54 # define acl_stat stat
55 # define acl_fstat fstat
56 # else
57 # define acl_stat stat64
58 # define acl_fstat fstat64
59 # endif
60 
61 # if defined(MINGW)
62 typedef long int ssize_t;
63 # endif
64 
65 # ifndef ACL_WAIT_STATUS_T
66  typedef int ACL_WAIT_STATUS_T;
67 # define ACL_NORMAL_EXIT_STATUS(status) !(status)
68 # endif
69 
70 # define ACL_FIONREAD_IN_TERMIOS_H
71 # define ACL_HAVE_NO_RWLOCK
72 
73 #endif
74 
75 #endif /* __ACL_DEFINE_LINUX_INCLUDE_H__ */
76