mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
5f0df51865
(config, dll.mak, exe.mak, mswince-ruby17.def, io.c, process.c, signal.c, string.c, time.c) * wince/ : files added. (assert.c, Makefile.sub, mkexports.rb, io_wce.c, process_wce.c, signal_wce.c, string_wce.c, time_wce.c) * wince/configure.bat : like mswin32 style. * wince/direct.c : remove "static" at _currentdir. * wince/io.h : change definition. * wince/stdio.c : _fdopen -> fdopen. * wince/process.h : add_P_OVERLAY. * wince/time.h : change definition. * wince/wincemain.c : add wce_SetCurrentDir. * wince/wince.c : add wce_SetCurrentDir and wce_fopen. fix GetModuleFileNameA to return correct "lpFileName". * wince/wince.h : remove #ifdef. * wince/sys/utime.h, utime.c : rename _utime to utime. * wince/sys/stat.c : expand relative directory in stat. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
46 lines
890 B
C
46 lines
890 B
C
#ifndef PROCESS_H
|
|
#define PROCESS_H 1
|
|
|
|
|
|
#define _P_WAIT 0
|
|
#define _P_NOWAIT 1
|
|
#define _P_OVERLAY 2
|
|
#define _P_DETACH 4
|
|
|
|
#define P_WAIT _P_WAIT
|
|
#define P_NOWAIT _P_NOWAIT
|
|
#define P_DETACH _P_DETACH
|
|
#define P_OVERLAY _P_OVERLAY
|
|
|
|
#ifndef _INTPTR_T_DEFINED
|
|
typedef int intptr_t;
|
|
#define _INTPTR_T_DEFINED
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
int _getpid(void);
|
|
|
|
int _cwait(int *, int, int);
|
|
void abort(void);
|
|
|
|
int _execl(const char *, const char *, ...);
|
|
//int _execv(const char *, const char * const *);
|
|
int execv(const char *path, char *const argv[]);
|
|
|
|
intptr_t _spawnle(int, const char *, const char *, ...);
|
|
intptr_t _spawnvpe(int, const char *, const char * const *,
|
|
const char * const *);
|
|
|
|
#ifdef __cplusplus
|
|
};
|
|
#endif
|
|
|
|
//#define getpid _getpid
|
|
#define execl _execl
|
|
#define execv _execv
|
|
|
|
|
|
#endif
|