diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-04-06 09:51:50 +0200 |
---|---|---|
committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-04-20 19:14:30 +0200 |
commit | 6a37ba9eff6456116d933a0bdc7c85802cc33b10 (patch) | |
tree | 6de8243f0e3b25a7c4edc591a6db3f60304e5af9 /include/mingw.h | |
parent | 4e87a91f0cb6a350fc4c5ad5fad41dff58b8ce31 (diff) | |
download | busybox-w32-6a37ba9eff6456116d933a0bdc7c85802cc33b10.tar.gz busybox-w32-6a37ba9eff6456116d933a0bdc7c85802cc33b10.tar.bz2 busybox-w32-6a37ba9eff6456116d933a0bdc7c85802cc33b10.zip |
win32: process.c: add next_path_sep()
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Diffstat (limited to 'include/mingw.h')
-rw-r--r-- | include/mingw.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mingw.h b/include/mingw.h index 3c4ae9d8a..8931e719e 100644 --- a/include/mingw.h +++ b/include/mingw.h | |||
@@ -343,6 +343,9 @@ pid_t mingw_spawn_1(int mode, const char *cmd, const char *const *argv, const ch | |||
343 | #define execve mingw_execve | 343 | #define execve mingw_execve |
344 | #define execv mingw_execv | 344 | #define execv mingw_execv |
345 | 345 | ||
346 | const char * next_path_sep(const char *path); | ||
347 | #define has_dos_drive_prefix(path) (isalpha(*(path)) && (path)[1] == ':') | ||
348 | #define is_absolute_path(path) ((path)[0] == '/' || has_dos_drive_prefix(path)) | ||
346 | 349 | ||
347 | /* | 350 | /* |
348 | * helpers | 351 | * helpers |