acl  3.5.3.0
acl_safe_open.h
浏览该文件的文档.
1 #ifndef ACL_SAFE_OPEN_H_INCLUDE_H
2 #define ACL_SAFE_OPEN_H_INCLUDE_H
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 #include "../acl_define.h"
9 
10 #ifdef ACL_UNIX
11 
12  /*
13  * System library.
14  */
15 #include <sys/stat.h>
16 #include <fcntl.h>
17 
18  /*
19  * Utility library.
20  */
21 #include "../acl_vstream.h"
22 #include "../acl_vstring.h"
23 
24  /*
25  * External interface.
26  */
27 extern ACL_VSTREAM *acl_safe_open(const char *path, int flags, int mode,
28  struct stat * st, uid_t user, gid_t group, ACL_VSTRING *why);
29 
30 #endif /* ACL_UNIX */
31 
32 #ifdef __cplusplus
33 }
34 #endif
35 
36 #endif
37