source: trunk/include/win/msvcrt/process.h

Last change on this file was 10004, checked in by sandervl, 22 years ago

PF: Header updates

File size: 4.1 KB
Line 
1/*
2 * Process definitions
3 *
4 * Derived from the mingw header written by Colin Peters.
5 * Modified for Wine use by Jon Griffiths and Francois Gouget.
6 * This file is in the public domain.
7 */
8#ifndef __WINE_PROCESS_H
9#define __WINE_PROCESS_H
10#define __WINE_USE_MSVCRT
11
12#include "winnt.h"
13
14#ifdef USE_MSVCRT_PREFIX
15#define MSVCRT(x) MSVCRT_##x
16#else
17#define MSVCRT(x) x
18#endif
19
20
21/* Process creation flags */
22#define _P_WAIT 0
23#define _P_NOWAIT 1
24#define _P_OVERLAY 2
25#define _P_NOWAITO 3
26#define _P_DETACH 4
27
28#define _WAIT_CHILD 0
29#define _WAIT_GRANDCHILD 1
30
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
36typedef void (__cdecl *_beginthread_start_routine_t)(void *);
37typedef unsigned int (__stdcall *_beginthreadex_start_routine_t)(void *);
38
39unsigned long MSVCRT(_beginthread)(_beginthread_start_routine_t,unsigned int,void*);
40unsigned long _beginthreadex(void*,unsigned int,_beginthreadex_start_routine_t,void*,unsigned int,unsigned int*);
41int _cwait(int*,int,int);
42void MSVCRT(_endthread)(void);
43void _endthreadex(unsigned int);
44int MSVCRT(_execl)(const char*,const char*,...);
45int MSVCRT(_execle)(const char*,const char*,...);
46int MSVCRT(_execlp)(const char*,const char*,...);
47int MSVCRT(_execlpe)(const char*,const char*,...);
48int MSVCRT(_execv)(const char*,char* const *);
49int MSVCRT(_execve)(const char*,char* const *,const char* const *);
50int MSVCRT(_execvp)(const char*,char* const *);
51int MSVCRT(_execvpe)(const char*,char* const *,const char* const *);
52int _getpid(void);
53int MSVCRT(_spawnl)(int,const char*,const char*,...);
54int MSVCRT(_spawnle)(int,const char*,const char*,...);
55int MSVCRT(_spawnlp)(int,const char*,const char*,...);
56int MSVCRT(_spawnlpe)(int,const char*,const char*,...);
57int MSVCRT(_spawnv)(int,const char*,const char* const *);
58int MSVCRT(_spawnve)(int,const char*,const char* const *,const char* const *);
59int MSVCRT(_spawnvp)(int,const char*,const char* const *);
60int MSVCRT(_spawnvpe)(int,const char*,const char* const *,const char* const *);
61
62void MSVCRT(_c_exit)(void);
63void MSVCRT(_cexit)(void);
64void MSVCRT(_exit)(int);
65void MSVCRT(abort)(void);
66void MSVCRT(exit)(int);
67int MSVCRT(system)(const char*);
68
69int _wexecl(const WCHAR*,const WCHAR*,...);
70int _wexecle(const WCHAR*,const WCHAR*,...);
71int _wexeclp(const WCHAR*,const WCHAR*,...);
72int _wexeclpe(const WCHAR*,const WCHAR*,...);
73int _wexecv(const WCHAR*,const WCHAR* const *);
74int _wexecve(const WCHAR*,const WCHAR* const *,const WCHAR* const *);
75int _wexecvp(const WCHAR*,const WCHAR* const *);
76int _wexecvpe(const WCHAR*,const WCHAR* const *,const WCHAR* const *);
77int _wspawnl(int,const WCHAR*,const WCHAR*,...);
78int _wspawnle(int,const WCHAR*,const WCHAR*,...);
79int _wspawnlp(int,const WCHAR*,const WCHAR*,...);
80int _wspawnlpe(int,const WCHAR*,const WCHAR*,...);
81int _wspawnv(int,const WCHAR*,const WCHAR* const *);
82int _wspawnve(int,const WCHAR*,const WCHAR* const *,const WCHAR* const *);
83int _wspawnvp(int,const WCHAR*,const WCHAR* const *);
84int _wspawnvpe(int,const WCHAR*,const WCHAR* const *,const WCHAR* const *);
85int _wsystem(const WCHAR*);
86
87#ifdef __cplusplus
88}
89#endif
90
91
92#ifndef USE_MSVCRT_PREFIX
93#define P_WAIT _P_WAIT
94#define P_NOWAIT _P_NOWAIT
95#define P_OVERLAY _P_OVERLAY
96#define P_NOWAITO _P_NOWAITO
97#define P_DETACH _P_DETACH
98
99#define WAIT_CHILD _WAIT_CHILD
100#define WAIT_GRANDCHILD _WAIT_GRANDCHILD
101
102#define cwait _cwait
103#define getpid _getpid
104#define execl _execl
105#define execle _execle
106#define execlp _execlp
107#define execlpe _execlpe
108#define execv _execv
109#define execve _execve
110#define execvp _execvp
111#define execvpe _execvpe
112#define spawnl _spawnl
113#define spawnle _spawnle
114#define spawnlp _spawnlp
115#define spawnlpe _spawnlpe
116#define spawnv _spawnv
117#define spawnve _spawnve
118#define spawnvp _spawnvp
119#define spawnvpe _spawnvpe
120#endif /* USE_MSVCRT_PREFIX */
121
122#endif /* __WINE_PROCESS_H */
Note: See TracBrowser for help on using the repository browser.