187 |
#define _P_WAIT 0 |
#define _P_WAIT 0 |
188 |
int _CRTAPI1 _spawnlp (int, const char *, const char *, ...); |
int _CRTAPI1 _spawnlp (int, const char *, const char *, ...); |
189 |
int _CRTAPI1 _getpid (void); |
int _CRTAPI1 _getpid (void); |
190 |
|
extern char *getwd (char *); |
191 |
#endif |
#endif |
192 |
|
|
193 |
#ifdef NONSYSTEM_DIR_LIBRARY |
#ifdef NONSYSTEM_DIR_LIBRARY |
262 |
|
|
263 |
#ifndef HAVE_CURRENT_DIR_NAME |
#ifndef HAVE_CURRENT_DIR_NAME |
264 |
|
|
265 |
/* Return the current working directory. Returns NULL on errors. |
/* Return the current working directory. Returns NULL on errors. |
266 |
Any other returned value must be freed with free. This is used |
Any other returned value must be freed with free. This is used |
267 |
only when get_current_dir_name is not defined on the system. */ |
only when get_current_dir_name is not defined on the system. */ |
268 |
char* |
char* |
294 |
else |
else |
295 |
{ |
{ |
296 |
size_t buf_size = 1024; |
size_t buf_size = 1024; |
297 |
buf = (char *) malloc (buf_size); |
buf = (char *) malloc (buf_size); |
298 |
if (!buf) |
if (!buf) |
299 |
return NULL; |
return NULL; |
300 |
for (;;) |
for (;;) |