2 Copyright © 2012-2017, The AROS Development Team. All rights reserved.
5 This file defines the private part of PosixCBase.
6 This should only be used internally in posixc.library code so
7 changes can be made to this structure without breaking backwards
10 #ifndef __POSIXC_INTBASE_H
11 #define __POSIXC_INTBASE_H
13 #include <libraries/posixc.h>
14 #include <exec/lists.h>
23 /* Some private structs */
31 struct PosixCBase PosixCBase
;
38 struct random_state
*rs
;
44 char passbuffer
[PASS_MAX
];
51 /* __posixc_environ.c; don't use this field outside that file */
55 struct __env_item
*env_list
;
63 BPTR exec_oldin
, exec_oldout
, exec_olderr
;
64 struct StdCBase
*exec_oldstdcbase
;
68 struct _fdesc
**fd_array
;
71 char *upathbuf
; /* Buffer that holds intermediate converted paths */
72 int doupath
; /* BOOL - does the conversion need to be done? */
73 int parent_does_upath
; /* BOOL - parent does upath conversion */
76 struct vfork_data
*vfork_data
;
78 /* chdir.c/fchdir.c */
83 struct MinList _file_locks
, *file_locks
;
89 struct MinList stdio_files
;
91 /* setuid.c/getuid.c */
92 uid_t uid
; /* Real user id of process */
93 uid_t euid
; /* Effective user id of process */
94 /* set(e)gid.c/get(e)gid.c */
95 gid_t gid
; /* Real group id of process */
96 gid_t egid
; /* Effective group id of process */
99 /* flags; values of flags are power of two so they can be ORed together */
101 /* When a program is started with the exec functions and from vfork,
102 this is indicated in the flags of the library.
103 This way the child can use the parent posixc.library during its
104 initialization phase */
105 #define EXEC_PARENT 0x00000001
106 #define VFORK_PARENT 0x00000002
108 /* This flag is set by vfork() to correctly report child process ID during
109 execution of child code, even though that it's actually executed by parent
110 process until execve() is called. */
111 #define PRETEND_CHILD 0x00000004
113 #endif //__POSIXC_INTBASE_H