diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2012-01-09 21:03:39 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2012-01-09 21:03:39 +0400 |
commit | 02c8acc1b47a652586255150433cb714bf110040 (patch) | |
tree | 674422c8043606b89973b92525255f19bfb8ddac /winsup/cygwin/include | |
parent | cde9b54e7192bae4dce903c8d39129d31c703cd9 (diff) |
* include/cygwin/process.h: Move here from newlib.
* exec.cc: Change include of process.h to reflect the fact that it's
now in the include/cygwin subfolder.
* spawn.cc: Ditto.
* syscalls.cc: Ditto.
Diffstat (limited to 'winsup/cygwin/include')
-rw-r--r-- | winsup/cygwin/include/cygwin/process.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/winsup/cygwin/include/cygwin/process.h b/winsup/cygwin/include/cygwin/process.h new file mode 100644 index 000000000..0436102b5 --- /dev/null +++ b/winsup/cygwin/include/cygwin/process.h @@ -0,0 +1,43 @@ +/* cygwin/process.h. Define spawn family of functions as provided by Cygwin. + The original file of this name is a MS/DOS invention. + +This file is part of Cygwin. + +This software is a copyrighted work licensed under the terms of the +Cygwin license. Please consult the file "CYGWIN_LICENSE" for +details. */ + +#ifndef __PROCESS_H_ +#define __PROCESS_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +/* For the exec functions, include unistd.h. */ + +int spawnl(int mode, const char *path, const char *argv0, ...); +int spawnle(int mode, const char *path, const char *argv0, ... /*, char * const *envp */); +int spawnlp(int mode, const char *path, const char *argv0, ...); +int spawnlpe(int mode, const char *path, const char *argv0, ... /*, char * const *envp */); + +int spawnv(int mode, const char *path, const char * const *argv); +int spawnve(int mode, const char *path, const char * const *argv, const char * const *envp); +int spawnvp(int mode, const char *path, const char * const *argv); +int spawnvpe(int mode, const char *path, const char * const *argv, const char * const *envp); + +int cwait(int *, int, int); + +#define _P_WAIT 1 +#define _P_NOWAIT 2 +#define _P_OVERLAY 3 +#define _P_NOWAITO 4 +#define _P_DETACH 5 + +#define WAIT_CHILD 1 + +#ifdef __cplusplus +} +#endif + +#endif |