VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/msvcrt/process.h

最後變更 在這個檔案是 53201,由 vboxsync 提交於 10 年 前

Devices/Main: vmsvga updates

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 5.9 KB
 
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
11#include <crtdefs.h>
12
13/* Process creation flags */
14#define _P_WAIT 0
15#define _P_NOWAIT 1
16#define _P_OVERLAY 2
17#define _P_NOWAITO 3
18#define _P_DETACH 4
19
20#define _WAIT_CHILD 0
21#define _WAIT_GRANDCHILD 1
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27typedef void (__cdecl *_beginthread_start_routine_t)(void *);
28typedef unsigned int (__stdcall *_beginthreadex_start_routine_t)(void *);
29
30uintptr_t __cdecl _beginthread(_beginthread_start_routine_t,unsigned int,void*);
31uintptr_t __cdecl _beginthreadex(void*,unsigned int,_beginthreadex_start_routine_t,void*,unsigned int,unsigned int*);
32intptr_t __cdecl _cwait(int*,intptr_t,int);
33void __cdecl _endthread(void);
34void __cdecl _endthreadex(unsigned int);
35intptr_t __cdecl _execl(const char*,const char*,...);
36intptr_t __cdecl _execle(const char*,const char*,...);
37intptr_t __cdecl _execlp(const char*,const char*,...);
38intptr_t __cdecl _execlpe(const char*,const char*,...);
39intptr_t __cdecl _execv(const char*,const char* const *);
40intptr_t __cdecl _execve(const char*,const char* const *,const char* const *);
41intptr_t __cdecl _execvp(const char*,const char* const *);
42intptr_t __cdecl _execvpe(const char*,const char* const *,const char* const *);
43int __cdecl _getpid(void);
44intptr_t __cdecl _spawnl(int,const char*,const char*,...);
45intptr_t __cdecl _spawnle(int,const char*,const char*,...);
46intptr_t __cdecl _spawnlp(int,const char*,const char*,...);
47intptr_t __cdecl _spawnlpe(int,const char*,const char*,...);
48intptr_t __cdecl _spawnv(int,const char*,const char* const *);
49intptr_t __cdecl _spawnve(int,const char*,const char* const *,const char* const *);
50intptr_t __cdecl _spawnvp(int,const char*,const char* const *);
51intptr_t __cdecl _spawnvpe(int,const char*,const char* const *,const char* const *);
52
53void __cdecl _c_exit(void);
54void __cdecl _cexit(void);
55void __cdecl _exit(int);
56void __cdecl abort(void);
57void __cdecl exit(int);
58int __cdecl system(const char*);
59
60#ifndef _WPROCESS_DEFINED
61#define _WPROCESS_DEFINED
62intptr_t __cdecl _wexecl(const wchar_t*,const wchar_t*,...);
63intptr_t __cdecl _wexecle(const wchar_t*,const wchar_t*,...);
64intptr_t __cdecl _wexeclp(const wchar_t*,const wchar_t*,...);
65intptr_t __cdecl _wexeclpe(const wchar_t*,const wchar_t*,...);
66intptr_t __cdecl _wexecv(const wchar_t*,const wchar_t* const *);
67intptr_t __cdecl _wexecve(const wchar_t*,const wchar_t* const *,const wchar_t* const *);
68intptr_t __cdecl _wexecvp(const wchar_t*,const wchar_t* const *);
69intptr_t __cdecl _wexecvpe(const wchar_t*,const wchar_t* const *,const wchar_t* const *);
70intptr_t __cdecl _wspawnl(int,const wchar_t*,const wchar_t*,...);
71intptr_t __cdecl _wspawnle(int,const wchar_t*,const wchar_t*,...);
72intptr_t __cdecl _wspawnlp(int,const wchar_t*,const wchar_t*,...);
73intptr_t __cdecl _wspawnlpe(int,const wchar_t*,const wchar_t*,...);
74intptr_t __cdecl _wspawnv(int,const wchar_t*,const wchar_t* const *);
75intptr_t __cdecl _wspawnve(int,const wchar_t*,const wchar_t* const *,const wchar_t* const *);
76intptr_t __cdecl _wspawnvp(int,const wchar_t*,const wchar_t* const *);
77intptr_t __cdecl _wspawnvpe(int,const wchar_t*,const wchar_t* const *,const wchar_t* const *);
78int __cdecl _wsystem(const wchar_t*);
79#endif /* _WPROCESS_DEFINED */
80
81#ifdef __cplusplus
82}
83#endif
84
85
86#define P_WAIT _P_WAIT
87#define P_NOWAIT _P_NOWAIT
88#define P_OVERLAY _P_OVERLAY
89#define P_NOWAITO _P_NOWAITO
90#define P_DETACH _P_DETACH
91
92#define WAIT_CHILD _WAIT_CHILD
93#define WAIT_GRANDCHILD _WAIT_GRANDCHILD
94
95static inline intptr_t cwait(int *status, intptr_t pid, int action) { return _cwait(status, pid, action); }
96static inline int getpid(void) { return _getpid(); }
97static inline intptr_t execv(const char* name, const char* const* argv) { return _execv(name, argv); }
98static inline intptr_t execve(const char* name, const char* const* argv, const char* const* envv) { return _execve(name, argv, envv); }
99static inline intptr_t execvp(const char* name, const char* const* argv) { return _execvp(name, argv); }
100static inline intptr_t execvpe(const char* name, const char* const* argv, const char* const* envv) { return _execvpe(name, argv, envv); }
101static inline intptr_t spawnv(int flags, const char* name, const char* const* argv) { return _spawnv(flags, name, argv); }
102static inline intptr_t spawnve(int flags, const char* name, const char* const* argv, const char* const* envv) { return _spawnve(flags, name, argv, envv); }
103static inline intptr_t spawnvp(int flags, const char* name, const char* const* argv) { return _spawnvp(flags, name, argv); }
104static inline intptr_t spawnvpe(int flags, const char* name, const char* const* argv, const char* const* envv) { return _spawnvpe(flags, name, argv, envv); }
105
106#if defined(__GNUC__) && (__GNUC__ < 4)
107extern intptr_t __cdecl execl(const char*,const char*,...) __attribute__((alias("_execl")));
108extern intptr_t __cdecl execle(const char*,const char*,...) __attribute__((alias("_execle")));
109extern intptr_t __cdecl execlp(const char*,const char*,...) __attribute__((alias("_execlp")));
110extern intptr_t __cdecl execlpe(const char*,const char*,...) __attribute__((alias("_execlpe")));
111extern intptr_t __cdecl spawnl(int,const char*,const char*,...) __attribute__((alias("_spawnl")));
112extern intptr_t __cdecl spawnle(int,const char*,const char*,...) __attribute__((alias("_spawnle")));
113extern intptr_t __cdecl spawnlp(int,const char*,const char*,...) __attribute__((alias("_spawnlp")));
114extern intptr_t __cdecl spawnlpe(int,const char*,const char*,...) __attribute__((alias("_spawnlpe")));
115#else
116#define execl _execl
117#define execle _execle
118#define execlp _execlp
119#define execlpe _execlpe
120#define spawnl _spawnl
121#define spawnle _spawnle
122#define spawnlp _spawnlp
123#define spawnlpe _spawnlpe
124#endif /* __GNUC__ */
125
126#endif /* __WINE_PROCESS_H */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette