~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Wine Cross Reference
wine/include/msvcrt/process.h

Version: ~ [ wine-1.1.3 ] ~ [ wine-1.1.2 ] ~ [ wine-1.1.1 ] ~ [ wine-1.1.0 ] ~ [ wine-1.0 ] ~ [ wine-1.0-rc5 ] ~ [ wine-1.0-rc4 ] ~ [ wine-1.0-rc3 ] ~ [ wine-1.0-rc2 ] ~ [ wine-1.0-rc1 ] ~ [ wine-0.9.61 ] ~ [ wine-0.9.60 ] ~ [ wine-0.9.59 ] ~ [ wine-0.9.58 ] ~ [ wine-0.9.57 ] ~ [ wine-0.9.56 ] ~ [ wine-0.9.55 ] ~ [ wine-0.9.54 ] ~ [ wine-0.9.53 ] ~ [ wine-0.9.52 ] ~ [ wine-0.9.51 ] ~ [ wine-0.9.50 ] ~ [ wine-0.9.49 ] ~ [ wine-0.9.48 ] ~ [ wine-0.9.47 ] ~ [ wine-0.9.46 ] ~ [ wine-0.9.45 ] ~ [ wine-0.9.44 ] ~ [ wine-0.9.43 ] ~ [ wine-0.9.42 ] ~ [ wine-0.9.41 ] ~ [ wine-0.9.40 ] ~ [ wine-0.9.39 ] ~ [ wine-0.9.38 ] ~ [ wine-0.9.37 ] ~ [ wine-0.9.36 ] ~ [ wine-0.9.35 ] ~ [ wine-0.9.34 ] ~ [ wine-0.9.33 ] ~ [ wine-0.9.32 ] ~ [ wine-0.9.31 ] ~ [ wine-0.9.30 ] ~ [ wine-0.9.29 ] ~ [ wine-0.9.28 ] ~ [ wine-0.9.27 ] ~ [ wine-0.9.26 ] ~ [ wine-0.9.25 ] ~ [ wine-0.9.24 ] ~ [ wine-0.9.23 ] ~ [ wine-0.9.22 ] ~ [ wine-0.9.21 ] ~ [ wine-0.9.20 ] ~ [ wine-0.9.19 ] ~ [ wine-0.9.18 ] ~ [ wine-0.9.17 ] ~ [ wine-0.9.16 ] ~ [ wine-0.9.15 ] ~ [ wine-0.9.14 ] ~ [ wine-0.9.13 ] ~ [ wine-0.9.12 ] ~ [ wine-0.9.11 ] ~ [ wine-0.9.10 ] ~ [ wine-0.9.9 ] ~ [ wine-0.9.8 ] ~ [ wine-0.9.7 ] ~ [ wine-0.9.6 ] ~ [ wine-0.9.5 ] ~ [ wine-0.9.4 ] ~ [ wine-0.9.3 ] ~ [ wine-0.9.2 ] ~ [ wine-0.9.1 ] ~ [ wine-0.9 ] ~ [ wine20050930 ] ~ [ wine20050830 ] ~ [ wine20050725 ] ~ [ wine20050628 ] ~ [ wine20050524 ] ~ [ wine20050419 ] ~ [ wine20050310 ] ~ [ wine20050211 ] ~ [ wine20050111 ] ~ [ wine20041201 ] ~ [ wine20041019 ] ~ [ wine20040914 ] ~ [ wine20040813 ] ~ [ wine20040716 ] ~ [ wine20040615 ] ~ [ wine20040505 ] ~ [ wine20040408 ] ~ [ wine20040309 ] ~ [ wine20040213 ] ~ [ wine20040121 ] ~ [ wine20031212 ] ~ [ wine20031118 ] ~ [ wine20031016 ] ~ [ wine20030911 ] ~ [ wine20030813 ] ~ [ wine20030709 ] ~ [ wine20030618 ] ~ [ wine20030508 ] ~ [ wine20030408 ] ~ [ wine20030318 ] ~ [ wine20030219 ] ~ [ wine20030115 ] ~ [ wine20021219 ] ~ [ wine20021125 ] ~ [ wine20021031 ] ~ [ wine20021007 ] ~ [ wine20020904 ] ~ [ wine20020804 ] ~ [ wine20020710 ] ~ [ wine20020605 ] ~ [ wine20020509 ] ~ [ wine20020411 ] ~ [ wine20020310 ] ~ [ wine20020228 ] ~ [ wine20011226 ] ~ [ wine20011108 ] ~ [ wine20011004 ] ~ [ wine20010824 ] ~ [ wine20010731 ] ~ [ wine20010629 ] ~ [ wine20010510 ] ~ [ wine20010418 ] ~ [ wine20010326 ] ~ [ wine20010305 ] ~ [ wine20010216 ] ~ [ wine20010112 ] ~ [ wine20001222 ] ~ [ wine20001202 ] ~ [ wine20001026 ] ~ [ wine20001002 ] ~ [ wine20000909 ] ~ [ wine20000821 ] ~ [ wine20000801 ] ~ [ wine20000716 ] ~ [ wine20000326 ] ~ [ wine20000227 ] ~ [ wine20000130 ] ~ [ wine20000109 ] ~

  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 #ifndef __WINE_USE_MSVCRT
 11 #define __WINE_USE_MSVCRT
 12 #endif
 13 
 14 #ifndef _WCHAR_T_DEFINED
 15 #define _WCHAR_T_DEFINED
 16 #ifndef __cplusplus
 17 typedef unsigned short wchar_t;
 18 #endif
 19 #endif
 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 #ifndef __stdcall
 32 # ifdef __i386__
 33 #  ifdef __GNUC__
 34 #   ifdef __APPLE__ /* Mac OS X uses a 16-byte aligned stack and not a 4-byte one */
 35 #    define __stdcall __attribute__((__stdcall__)) __attribute__((__force_align_arg_pointer__))
 36 #   else
 37 #    define __stdcall __attribute__((__stdcall__))
 38 #   endif
 39 #  elif defined(_MSC_VER)
 40     /* Nothing needs to be done. __stdcall already exists */
 41 #  else
 42 #   error You need to define __stdcall for your compiler
 43 #  endif
 44 # else  /* __i386__ */
 45 #  define __stdcall
 46 # endif  /* __i386__ */
 47 #endif /* __stdcall */
 48 
 49 #ifdef __cplusplus
 50 extern "C" {
 51 #endif
 52 
 53 typedef void (*_beginthread_start_routine_t)(void *);
 54 typedef unsigned int (__stdcall *_beginthreadex_start_routine_t)(void *);
 55 
 56 uintptr_t _beginthread(_beginthread_start_routine_t,unsigned int,void*);
 57 uintptr_t _beginthreadex(void*,unsigned int,_beginthreadex_start_routine_t,void*,unsigned int,unsigned int*);
 58 intptr_t    _cwait(int*,intptr_t,int);
 59 void        _endthread(void);
 60 void        _endthreadex(unsigned int);
 61 intptr_t    _execl(const char*,const char*,...);
 62 intptr_t    _execle(const char*,const char*,...);
 63 intptr_t    _execlp(const char*,const char*,...);
 64 intptr_t    _execlpe(const char*,const char*,...);
 65 intptr_t    _execv(const char*,char* const *);
 66 intptr_t    _execve(const char*,char* const *,const char* const *);
 67 intptr_t    _execvp(const char*,char* const *);
 68 intptr_t    _execvpe(const char*,char* const *,const char* const *);
 69 int         _getpid(void);
 70 intptr_t    _spawnl(int,const char*,const char*,...);
 71 intptr_t    _spawnle(int,const char*,const char*,...);
 72 intptr_t    _spawnlp(int,const char*,const char*,...);
 73 intptr_t    _spawnlpe(int,const char*,const char*,...);
 74 intptr_t    _spawnv(int,const char*,const char* const *);
 75 intptr_t    _spawnve(int,const char*,const char* const *,const char* const *);
 76 intptr_t    _spawnvp(int,const char*,const char* const *);
 77 intptr_t    _spawnvpe(int,const char*,const char* const *,const char* const *);
 78 
 79 void        _c_exit(void);
 80 void        _cexit(void);
 81 void        _exit(int);
 82 void        abort(void);
 83 void        exit(int);
 84 int         system(const char*);
 85 
 86 #ifndef _WPROCESS_DEFINED
 87 #define _WPROCESS_DEFINED
 88 intptr_t    _wexecl(const wchar_t*,const wchar_t*,...);
 89 intptr_t    _wexecle(const wchar_t*,const wchar_t*,...);
 90 intptr_t    _wexeclp(const wchar_t*,const wchar_t*,...);
 91 intptr_t    _wexeclpe(const wchar_t*,const wchar_t*,...);
 92 intptr_t    _wexecv(const wchar_t*,const wchar_t* const *);
 93 intptr_t    _wexecve(const wchar_t*,const wchar_t* const *,const wchar_t* const *);
 94 intptr_t    _wexecvp(const wchar_t*,const wchar_t* const *);
 95 intptr_t    _wexecvpe(const wchar_t*,const wchar_t* const *,const wchar_t* const *);
 96 intptr_t    _wspawnl(int,const wchar_t*,const wchar_t*,...);
 97 intptr_t    _wspawnle(int,const wchar_t*,const wchar_t*,...);
 98 intptr_t    _wspawnlp(int,const wchar_t*,const wchar_t*,...);
 99 intptr_t    _wspawnlpe(int,const wchar_t*,const wchar_t*,...);
100 intptr_t    _wspawnv(int,const wchar_t*,const wchar_t* const *);
101 intptr_t    _wspawnve(int,const wchar_t*,const wchar_t* const *,const wchar_t* const *);
102 intptr_t    _wspawnvp(int,const wchar_t*,const wchar_t* const *);
103 intptr_t    _wspawnvpe(int,const wchar_t*,const wchar_t* const *,const wchar_t* const *);
104 int         _wsystem(const wchar_t*);
105 #endif /* _WPROCESS_DEFINED */
106 
107 #ifdef __cplusplus
108 }
109 #endif
110 
111 
112 #define P_WAIT          _P_WAIT
113 #define P_NOWAIT        _P_NOWAIT
114 #define P_OVERLAY       _P_OVERLAY
115 #define P_NOWAITO       _P_NOWAITO
116 #define P_DETACH        _P_DETACH
117 
118 #define WAIT_CHILD      _WAIT_CHILD
119 #define WAIT_GRANDCHILD _WAIT_GRANDCHILD
120 
121 static inline intptr_t cwait(int *status, intptr_t pid, int action) { return _cwait(status, pid, action); }
122 static inline int getpid(void) { return _getpid(); }
123 static inline intptr_t execv(const char* name, char* const* argv) { return _execv(name, argv); }
124 static inline intptr_t execve(const char* name, char* const* argv, const char* const* envv) { return _execve(name, argv, envv); }
125 static inline intptr_t execvp(const char* name, char* const* argv) { return _execvp(name, argv); }
126 static inline intptr_t execvpe(const char* name, char* const* argv, const char* const* envv) { return _execvpe(name, argv, envv); }
127 static inline intptr_t spawnv(int flags, const char* name, const char* const* argv) { return _spawnv(flags, name, argv); }
128 static inline intptr_t spawnve(int flags, const char* name, const char* const* argv, const char* const* envv) { return _spawnve(flags, name, argv, envv); }
129 static inline intptr_t spawnvp(int flags, const char* name, const char* const* argv) { return _spawnvp(flags, name, argv); }
130 static inline intptr_t spawnvpe(int flags, const char* name, const char* const* argv, const char* const* envv) { return _spawnvpe(flags, name, argv, envv); }
131 
132 #if defined(__GNUC__) && (__GNUC__ < 4)
133 extern intptr_t execl(const char*,const char*,...) __attribute__((alias("_execl")));
134 extern intptr_t execle(const char*,const char*,...) __attribute__((alias("_execle")));
135 extern intptr_t execlp(const char*,const char*,...) __attribute__((alias("_execlp")));
136 extern intptr_t execlpe(const char*,const char*,...) __attribute__((alias("_execlpe")));
137 extern intptr_t spawnl(int,const char*,const char*,...) __attribute__((alias("_spawnl")));
138 extern intptr_t spawnle(int,const char*,const char*,...) __attribute__((alias("_spawnle")));
139 extern intptr_t spawnlp(int,const char*,const char*,...) __attribute__((alias("_spawnlp")));
140 extern intptr_t spawnlpe(int,const char*,const char*,...) __attribute__((alias("_spawnlpe")));
141 #else
142 #define execl    _execl
143 #define execle   _execle
144 #define execlp   _execlp
145 #define execlpe  _execlpe
146 #define spawnl   _spawnl
147 #define spawnle  _spawnle
148 #define spawnlp  _spawnlp
149 #define spawnlpe _spawnlpe
150 #endif  /* __GNUC__ */
151 
152 #endif /* __WINE_PROCESS_H */
153 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.