Search
lxdream.org :: lxdream/test/include/process.h :: diff
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
file annotate diff log raw
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/test/include/process.h Tue Jul 11 01:35:27 2006 +0000
1.3 @@ -0,0 +1,60 @@
1.4 +/* process.h. This file comes with MSDOS and WIN32 systems. */
1.5 +
1.6 +#ifndef __PROCESS_H_
1.7 +#define __PROCESS_H_
1.8 +
1.9 +#ifdef __cplusplus
1.10 +extern "C" {
1.11 +#endif
1.12 +
1.13 +int execl(const char *path, const char *argv0, ...);
1.14 +int execle(const char *path, const char *argv0, ... /*, char * const *envp */);
1.15 +int execlp(const char *path, const char *argv0, ...);
1.16 +int execlpe(const char *path, const char *argv0, ... /*, char * const *envp */);
1.17 +
1.18 +int execv(const char *path, char * const *argv);
1.19 +int execve(const char *path, char * const *argv, char * const *envp);
1.20 +int execvp(const char *path, char * const *argv);
1.21 +int execvpe(const char *path, char * const *argv, char * const *envp);
1.22 +
1.23 +int spawnl(int mode, const char *path, const char *argv0, ...);
1.24 +int spawnle(int mode, const char *path, const char *argv0, ... /*, char * const *envp */);
1.25 +int spawnlp(int mode, const char *path, const char *argv0, ...);
1.26 +int spawnlpe(int mode, const char *path, const char *argv0, ... /*, char * const *envp */);
1.27 +
1.28 +int spawnv(int mode, const char *path, const char * const *argv);
1.29 +int spawnve(int mode, const char *path, char * const *argv, const char * const *envp);
1.30 +int spawnvp(int mode, const char *path, const char * const *argv);
1.31 +int spawnvpe(int mode, const char *path, const char * const *argv, const char * const *envp);
1.32 +
1.33 +#ifdef __CYGWIN32__
1.34 +/* Secure exec() functions family */
1.35 +/* The first arg should really be a HANDLE which is a void *. But we
1.36 + can't include windows.h here so... */
1.37 +#include <sys/types.h>
1.38 +pid_t sexecl(void *, const char *path, const char *argv0, ...);
1.39 +pid_t sexecle(void *, const char *path, const char *argv0, ... /*, char * const *envp */);
1.40 +pid_t sexeclp(void *, const char *path, const char *argv0, ...);
1.41 +pid_t sexeclpe(void *, const char *path, const char *argv0, ... /*, char * const *envp */);
1.42 +
1.43 +pid_t sexecv(void *, const char *path, const char * const *argv);
1.44 +pid_t sexecve(void *, const char *path, const char * const *argv, const char * const *envp);
1.45 +pid_t sexecvp(void *, const char *path, const char * const *argv);
1.46 +pid_t sexecvpe(void *, const char *path, const char * const *argv, const char * const *envp);
1.47 +#endif
1.48 +
1.49 +int cwait(int *, int, int);
1.50 +
1.51 +#define _P_WAIT 1
1.52 +#define _P_NOWAIT 2 /* always generates error */
1.53 +#define _P_OVERLAY 3
1.54 +#define _P_NOWAITO 4
1.55 +#define _P_DETACH 5
1.56 +
1.57 +#define WAIT_CHILD 1
1.58 +
1.59 +#ifdef __cplusplus
1.60 +}
1.61 +#endif
1.62 +
1.63 +#endif
.