diff options
author | Ron Yorston <rmy@pobox.com> | 2019-03-23 08:38:21 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2019-03-23 08:38:21 +0000 |
commit | 578e943afcd9c818f969502a94375b1a70548bf9 (patch) | |
tree | f202f7ae8d81109e6c87ab4422eb5c6ece3f2ed3 /include | |
parent | a8c63f25b3a8d4b8c9e12b8f6db65c61596da602 (diff) | |
download | busybox-w32-578e943afcd9c818f969502a94375b1a70548bf9.tar.gz busybox-w32-578e943afcd9c818f969502a94375b1a70548bf9.tar.bz2 busybox-w32-578e943afcd9c818f969502a94375b1a70548bf9.zip |
win32: share code to find root prefix of path
Move unc_root_len() from ash to mingw32.c and use it in the new
function root_len(), which can be used in make_directory().
This reduces changes to upstream code and saves a few bytes.
Diffstat (limited to 'include')
-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 36c2f6805..7c9423cad 100644 --- a/include/mingw.h +++ b/include/mingw.h | |||
@@ -522,3 +522,6 @@ ULONGLONG CompatGetTickCount64(void); | |||
522 | ssize_t get_random_bytes(void *buf, ssize_t count); | 522 | ssize_t get_random_bytes(void *buf, ssize_t count); |
523 | int enumerate_links(const char *file, char *name); | 523 | int enumerate_links(const char *file, char *name); |
524 | void hide_console(void); | 524 | void hide_console(void); |
525 | |||
526 | int unc_root_len(const char *dir); | ||
527 | int root_len(const char *path); | ||