Implemented MUIM_Family_GetChild in the Group class (i.e. redirect to Family
[AROS.git] / compiler / posixc / __posixc_intbase.h
blob295e0e901777c17296562aaab2ae2709e5571594
1 /*
2 Copyright © 2012-2017, The AROS Development Team. All rights reserved.
3 $Id$
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
8 compatibility.
9 */
10 #ifndef __POSIXC_INTBASE_H
11 #define __POSIXC_INTBASE_H
13 #include <libraries/posixc.h>
14 #include <exec/lists.h>
15 #include <dos/dos.h>
17 #include <limits.h>
18 #include <stdint.h>
19 #include <stdio.h>
20 #include <sys/stat.h>
21 #include <pwd.h>
23 /* Some private structs */
24 struct random_state;
25 struct __env_item;
26 struct _fdesc;
27 struct vfork_data;
29 struct PosixCIntBase
31 struct PosixCBase PosixCBase;
33 /* common */
34 APTR internalpool;
35 int32_t flags;
37 /* random.c */
38 struct random_state *rs;
40 /* getpwuid.c */
41 struct passwd pwd;
43 /* getpass.c */
44 char passbuffer[PASS_MAX];
45 #if (0)
46 /* sigprocmask.c */
47 sigset_t sigmask;
48 sigset_t signals;
49 #endif
51 /* __posixc_environ.c; don't use this field outside that file */
52 char ***environptr;
54 /* __env.c */
55 struct __env_item *env_list;
57 /* __exec.c */
58 BPTR exec_seglist;
59 char *exec_args;
60 char *exec_taskname;
61 APTR exec_pool;
62 char **exec_tmparray;
63 BPTR exec_oldin, exec_oldout, exec_olderr;
64 struct StdCBase *exec_oldstdcbase;
66 /* __fdesc.c */
67 int fd_slots;
68 struct _fdesc **fd_array;
70 /* __upath.c */
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 */
75 /* __vfork.c */
76 struct vfork_data *vfork_data;
78 /* chdir.c/fchdir.c */
79 int cd_changed;
80 BPTR cd_lock;
82 /* flock.c */
83 struct MinList _file_locks, *file_locks;
85 /* umask */
86 mode_t umask;
88 /* __stdio.c */
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