acl  3.5.3.0
acl_vstream_popen.h
浏览该文件的文档.
1 #ifndef ACL_VSTREAM_POPEN_INCLUDE_H
2 #define ACL_VSTREAM_POPEN_INCLUDE_H
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 #include "acl_define.h"
9 #include "acl_vstream.h"
10 
11 #ifdef ACL_UNIX
12 #define DUP2 dup2
13 #endif
14 
15 ACL_API ACL_VSTREAM *acl_vstream_popen(int,...);
16 ACL_API int acl_vstream_pclose(ACL_VSTREAM *);
17 
18 #define acl_vstream_ispipe(vp) ((vp)->pid != 0)
19 
20 #define ACL_VSTREAM_POPEN_END 0 /* terminator */
21 #define ACL_VSTREAM_POPEN_COMMAND 1 /* command is string */
22 #define ACL_VSTREAM_POPEN_ARGV 2 /* command is array */
23 #define ACL_VSTREAM_POPEN_UID 3 /* privileges */
24 #define ACL_VSTREAM_POPEN_GID 4 /* privileges */
25 #define ACL_VSTREAM_POPEN_ENV 5 /* extra environment */
26 #define ACL_VSTREAM_POPEN_SHELL 6 /* alternative shell */
27 #define ACL_VSTREAM_POPEN_WAITPID_FN 7 /* child catcher, waitpid() compat. */
28 #define ACL_VSTREAM_POPEN_EXPORT 8 /* exportable environment */
29 
30 #ifdef __cplusplus
31 }
32 #endif
33 
34 #endif
ACL_API ACL_VSTREAM * acl_vstream_popen(int,...)
ACL_API int acl_vstream_pclose(ACL_VSTREAM *)