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
file annotate diff log raw
nkeynes@185
     1
/* process.h.  This file comes with MSDOS and WIN32 systems.  */
nkeynes@185
     2
nkeynes@185
     3
#ifndef __PROCESS_H_
nkeynes@185
     4
#define __PROCESS_H_
nkeynes@185
     5
nkeynes@185
     6
#ifdef __cplusplus
nkeynes@185
     7
extern "C" {
nkeynes@185
     8
#endif
nkeynes@185
     9
nkeynes@185
    10
int execl(const char *path, const char *argv0, ...);
nkeynes@185
    11
int execle(const char *path, const char *argv0, ... /*, char * const *envp */);
nkeynes@185
    12
int execlp(const char *path, const char *argv0, ...);
nkeynes@185
    13
int execlpe(const char *path, const char *argv0, ... /*, char * const *envp */);
nkeynes@185
    14
nkeynes@185
    15
int execv(const char *path, char * const *argv);
nkeynes@185
    16
int execve(const char *path, char * const *argv, char * const *envp);
nkeynes@185
    17
int execvp(const char *path, char * const *argv);
nkeynes@185
    18
int execvpe(const char *path, char * const *argv, char * const *envp);
nkeynes@185
    19
nkeynes@185
    20
int spawnl(int mode, const char *path, const char *argv0, ...);
nkeynes@185
    21
int spawnle(int mode, const char *path, const char *argv0, ... /*, char * const *envp */);
nkeynes@185
    22
int spawnlp(int mode, const char *path, const char *argv0, ...);
nkeynes@185
    23
int spawnlpe(int mode, const char *path, const char *argv0, ... /*, char * const *envp */);
nkeynes@185
    24
nkeynes@185
    25
int spawnv(int mode, const char *path, const char * const *argv);
nkeynes@185
    26
int spawnve(int mode, const char *path, char * const *argv, const char * const *envp);
nkeynes@185
    27
int spawnvp(int mode, const char *path, const char * const *argv);
nkeynes@185
    28
int spawnvpe(int mode, const char *path, const char * const *argv, const char * const *envp);
nkeynes@185
    29
nkeynes@185
    30
#ifdef __CYGWIN32__
nkeynes@185
    31
/* Secure exec() functions family */
nkeynes@185
    32
/* The first arg should really be a HANDLE which is a void *.  But we
nkeynes@185
    33
   can't include windows.h here so... */
nkeynes@185
    34
#include <sys/types.h>
nkeynes@185
    35
pid_t sexecl(void *, const char *path, const char *argv0, ...);
nkeynes@185
    36
pid_t sexecle(void *, const char *path, const char *argv0, ... /*, char * const *envp */);
nkeynes@185
    37
pid_t sexeclp(void *, const char *path, const char *argv0, ...);
nkeynes@185
    38
pid_t sexeclpe(void *, const char *path, const char *argv0, ... /*, char * const *envp */);
nkeynes@185
    39
nkeynes@185
    40
pid_t sexecv(void *, const char *path, const char * const *argv);
nkeynes@185
    41
pid_t sexecve(void *, const char *path, const char * const *argv, const char * const *envp);
nkeynes@185
    42
pid_t sexecvp(void *, const char *path, const char * const *argv);
nkeynes@185
    43
pid_t sexecvpe(void *, const char *path, const char * const *argv, const char * const *envp);
nkeynes@185
    44
#endif
nkeynes@185
    45
nkeynes@185
    46
int cwait(int *, int, int);
nkeynes@185
    47
nkeynes@185
    48
#define _P_WAIT		1
nkeynes@185
    49
#define _P_NOWAIT	2	/* always generates error */
nkeynes@185
    50
#define _P_OVERLAY	3
nkeynes@185
    51
#define _P_NOWAITO	4
nkeynes@185
    52
#define _P_DETACH	5
nkeynes@185
    53
nkeynes@185
    54
#define WAIT_CHILD 1
nkeynes@185
    55
nkeynes@185
    56
#ifdef __cplusplus
nkeynes@185
    57
}
nkeynes@185
    58
#endif
nkeynes@185
    59
nkeynes@185
    60
#endif
.