Changeset 2289 for trunk/src/emx/include
- Timestamp:
- Aug 21, 2005, 12:08:50 AM (20 years ago)
- Location:
- trunk/src/emx/include
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/include/InnoTekLIBC/backend.h
-
Property cvs2svn:cvs-rev
changed from
1.28
to1.29
r2288 r2289 767 767 768 768 /** 769 * Fork a child process pretty much identical to the calling process. 770 * See SuS for full description of what fork() does and doesn't. 771 * 772 * @returns 0 in the child process. 773 * @returns process identifier of the new child in the parent process. (positive, non-zero) 774 * @returns Negative error code (errno.h) on failure. 775 */ 776 pid_t __libc_Back_processFork(void); 777 778 /** 769 779 * Waits/polls for on one or more processes to change it's running status. 770 780 * -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/InnoTekLIBC/fork.h
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r2288 r2289 34 34 35 35 /** Current fork version. */ 36 #define __LIBC_FORK_VERSION 0x00010000 36 #define __LIBC_FORK_VERSION 0x00020000 37 38 /** Current fork module version. */ 39 #define __LIBC_FORK_MODULE_VERSION 0x00010000 37 40 38 41 /** Timeout on waiting semaphore in fork operations */ … … 272 275 typedef struct __libc_ForkHandle 273 276 { 274 /** Fork version . */277 /** Fork version (__LIBC_FORK_VERSION). */ 275 278 unsigned uVersion; 276 279 /** Parent process, i.e. the one which have called fork(). */ … … 422 425 * the front. */ 423 426 __LIBC_PFORKCOMPLETIONCALLBACK papfnCompletionCallbacks; 427 /** Index of the next completion callback for the parent. */ 428 volatile unsigned iCompletionCallbackParent; 429 /** Index of the next completion callback for the child. */ 430 volatile unsigned iCompletionCallbackChild; 424 431 425 432 /** Pointer to the start of the fork buffer. */ … … 538 545 typedef struct __libc_ForkModule 539 546 { 540 /** Fork version. */547 /** Fork module version (__LIBC_FORK_MODULE_VERSION). */ 541 548 unsigned uVersion; 542 549 /** Fork callback function. -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/emx/asm386.h
-
Property cvs2svn:cvs-rev
changed from
1.10
to1.11
r2288 r2289 40 40 41 41 #define ALIGN .align 4, 0x90 42 #define ALIGNP2(a) .align a, 0x90 42 43 43 44 #define SET_ERRNO_CONST(x) \ -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/sys/errno.h
-
Property cvs2svn:cvs-rev
changed from
1.10
to1.11
r2288 r2289 194 194 #endif /* _POSIX_SOURCE */ 195 195 196 #ifdef __USE_EMX 197 #define ENEWVER 90 /* mixing with a new version of a struct */ 198 #define EBADVER 91 /* bad version number */ 199 #endif 200 196 201 #ifdef _KERNEL 197 202 /* pseudo-errors returned inside kernel to modify return to process */ -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/sys/process.h
-
Property cvs2svn:cvs-rev
changed from
1.5
to1.6
r2288 r2289 7 7 #define _SYS_PROCESS_H 8 8 9 #if defined (__cplusplus) 10 extern "C" { 9 #include <sys/cdefs.h> 10 #include <sys/_types.h> 11 12 __BEGIN_DECLS 13 14 #if !defined(_PID_T_DECLARED) && !defined(_PID_T) 15 typedef __pid_t pid_t; 16 #define _PID_T_DECLARED 17 #define _PID_T 11 18 #endif 12 19 … … 51 58 void exit (int) __attribute__ ((__noreturn__)); 52 59 void _exit (int) __attribute__ ((__noreturn__)); 53 int fork (void);54 int getpid (void);55 int getppid (void);60 pid_t fork (void); 61 pid_t getpid (void); 62 pid_t getppid (void); 56 63 int spawnl (int, __const__ char *, __const__ char *, ...); 57 64 int spawnle (int, __const__ char *, __const__ char *, ...); … … 63 70 int spawnvpe (int, __const__ char *, char * __const__ *, char * __const__ *); 64 71 int system (__const__ char *); 65 int wait (int *);66 int waitpid (int, int *, int);72 pid_t wait (int *); 73 pid_t waitpid (pid_t, int *, int); 67 74 68 75 int _execl (__const__ char *, __const__ char *, ...); … … 75 82 int _execvpe (__const__ char *, char * __const__ *, char * __const__ *); 76 83 int _fork (void); 77 int _getpid (void);78 int _getppid (void);84 pid_t _getpid (void); 85 pid_t _getppid (void); 79 86 int _spawnl (int, __const__ char *, __const__ char *, ...); 80 87 int _spawnle (int, __const__ char *, __const__ char *, ...); … … 85 92 int _spawnvp (int, __const__ char *, char * __const__ *); 86 93 int _spawnvpe (int, __const__ char *, char * __const__ *, char * __const__ *); 87 int _wait (int *);88 int _waitpid (int, int *, int);94 pid_t _wait (int *); 95 pid_t _waitpid (pid_t, int *, int); 89 96 90 91 #if defined (__cplusplus) 92 } 93 #endif 97 __END_DECLS 94 98 95 99 #endif /* not _SYS_PROCESS_H */ -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.