compiler/clib: Rename IoErr2errno() to __arosc_ioerr2errno(); function is now defined...
[AROS.git] / compiler / clib / __vfork.h
blob6fb58f322c702135e6775467c1556d60126f4157
1 #ifndef __VFORK_H
2 #define __VFORK_H
4 /*
5 Copyright © 2008-2011, The AROS Development Team. All rights reserved.
6 $Id$
7 */
9 #include <exec/types.h>
10 #include <dos/bptr.h>
11 #include <exec/exec.h>
12 #include <setjmp.h>
13 #include <sys/types.h>
14 #include <aros/startup.h>
16 #include "__fdesc.h"
18 struct vfork_data
20 struct vfork_data *prev;
21 jmp_buf vfork_jump;
23 struct Task *parent;
24 jmp_buf startup_jmp_buf;
26 ULONG child_id;
27 BYTE parent_signal;
28 struct aroscbase *parent_aroscbase;
29 APTR parent_mempool;
30 int parent_cd_changed;
31 BPTR parent_cd_lock;
32 BPTR parent_curdir;
33 struct __env_item *parent_env_list;
34 APTR parent_fd_mempool;
35 int parent_numslots;
36 fdesc **parent_fd_array;
38 struct Task *child;
39 struct arosc_privdata *cpriv;
40 int child_executed;
41 int child_errno;
42 BYTE child_signal;
43 struct aroscbase *child_aroscbase;
45 const char *exec_filename;
46 char *const *exec_argv;
47 char *const *exec_envp;
48 APTR exec_id;
51 pid_t __vfork(jmp_buf env);
52 void vfork_longjmp (jmp_buf env, int val);
54 #endif /* __VFORK_H */