Search
lxdream.org :: lxdream/test/include/process.h
lxdream 0.9.1
released Jun 29
Download Now
filename test/include/process.h
changeset 185:6755a04c447f
author nkeynes
date Tue Jul 11 01:35:27 2006 +0000 (15 years ago)
permissions -rw-r--r--
last change First commit of system test framework. 3 initial test cases (incomplete):
testide, testmath, and testta
view annotate diff log raw
     1 /* process.h.  This file comes with MSDOS and WIN32 systems.  */
     3 #ifndef __PROCESS_H_
     4 #define __PROCESS_H_
     6 #ifdef __cplusplus
     7 extern "C" {
     8 #endif
    10 int execl(const char *path, const char *argv0, ...);
    11 int execle(const char *path, const char *argv0, ... /*, char * const *envp */);
    12 int execlp(const char *path, const char *argv0, ...);
    13 int execlpe(const char *path, const char *argv0, ... /*, char * const *envp */);
    15 int execv(const char *path, char * const *argv);
    16 int execve(const char *path, char * const *argv, char * const *envp);
    17 int execvp(const char *path, char * const *argv);
    18 int execvpe(const char *path, char * const *argv, char * const *envp);
    20 int spawnl(int mode, const char *path, const char *argv0, ...);
    21 int spawnle(int mode, const char *path, const char *argv0, ... /*, char * const *envp */);
    22 int spawnlp(int mode, const char *path, const char *argv0, ...);
    23 int spawnlpe(int mode, const char *path, const char *argv0, ... /*, char * const *envp */);
    25 int spawnv(int mode, const char *path, const char * const *argv);
    26 int spawnve(int mode, const char *path, char * const *argv, const char * const *envp);
    27 int spawnvp(int mode, const char *path, const char * const *argv);
    28 int spawnvpe(int mode, const char *path, const char * const *argv, const char * const *envp);
    30 #ifdef __CYGWIN32__
    31 /* Secure exec() functions family */
    32 /* The first arg should really be a HANDLE which is a void *.  But we
    33    can't include windows.h here so... */
    34 #include <sys/types.h>
    35 pid_t sexecl(void *, const char *path, const char *argv0, ...);
    36 pid_t sexecle(void *, const char *path, const char *argv0, ... /*, char * const *envp */);
    37 pid_t sexeclp(void *, const char *path, const char *argv0, ...);
    38 pid_t sexeclpe(void *, const char *path, const char *argv0, ... /*, char * const *envp */);
    40 pid_t sexecv(void *, const char *path, const char * const *argv);
    41 pid_t sexecve(void *, const char *path, const char * const *argv, const char * const *envp);
    42 pid_t sexecvp(void *, const char *path, const char * const *argv);
    43 pid_t sexecvpe(void *, const char *path, const char * const *argv, const char * const *envp);
    44 #endif
    46 int cwait(int *, int, int);
    48 #define _P_WAIT		1
    49 #define _P_NOWAIT	2	/* always generates error */
    50 #define _P_OVERLAY	3
    51 #define _P_NOWAITO	4
    52 #define _P_DETACH	5
    54 #define WAIT_CHILD 1
    56 #ifdef __cplusplus
    57 }
    58 #endif
    60 #endif
.