diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-05-23 03:39:08 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-05-23 03:39:08 +0200 |
commit | e6df7e261ec430de6f9e9cd9a0eb0d997b553d68 (patch) | |
tree | 264d34c86b2ff3d866b115bed433ce51dac1debe | |
parent | b24ef035bd08919075edd79b906e18909ac44eb9 (diff) | |
download | busybox-w32-e6df7e261ec430de6f9e9cd9a0eb0d997b553d68.tar.gz busybox-w32-e6df7e261ec430de6f9e9cd9a0eb0d997b553d68.tar.bz2 busybox-w32-e6df7e261ec430de6f9e9cd9a0eb0d997b553d68.zip |
libbb.h: small reordering
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | include/libbb.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/include/libbb.h b/include/libbb.h index 490462eb1..2d46061da 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -356,6 +356,7 @@ extern void bb_copyfd_exact_size(int fd1, int fd2, off_t size) FAST_FUNC; | |||
356 | /* "short" copy can be detected by return value < size */ | 356 | /* "short" copy can be detected by return value < size */ |
357 | /* this helper yells "short read!" if param is not -1 */ | 357 | /* this helper yells "short read!" if param is not -1 */ |
358 | extern void complain_copyfd_and_die(off_t sz) NORETURN FAST_FUNC; | 358 | extern void complain_copyfd_and_die(off_t sz) NORETURN FAST_FUNC; |
359 | |||
359 | extern char bb_process_escape_sequence(const char **ptr) FAST_FUNC; | 360 | extern char bb_process_escape_sequence(const char **ptr) FAST_FUNC; |
360 | char* strcpy_and_process_escape_sequences(char *dst, const char *src) FAST_FUNC; | 361 | char* strcpy_and_process_escape_sequences(char *dst, const char *src) FAST_FUNC; |
361 | /* xxxx_strip version can modify its parameter: | 362 | /* xxxx_strip version can modify its parameter: |
@@ -364,9 +365,13 @@ char* strcpy_and_process_escape_sequences(char *dst, const char *src) FAST_FUNC; | |||
364 | * "abc/def" -> "def" | 365 | * "abc/def" -> "def" |
365 | * "abc/def/" -> "def" !! | 366 | * "abc/def/" -> "def" !! |
366 | */ | 367 | */ |
367 | extern char *bb_get_last_path_component_strip(char *path) FAST_FUNC; | 368 | char *bb_get_last_path_component_strip(char *path) FAST_FUNC; |
368 | /* "abc/def/" -> "" and it never modifies 'path' */ | 369 | /* "abc/def/" -> "" and it never modifies 'path' */ |
369 | extern char *bb_get_last_path_component_nostrip(const char *path) FAST_FUNC; | 370 | char *bb_get_last_path_component_nostrip(const char *path) FAST_FUNC; |
371 | /* Simpler version: does not special case "/" string */ | ||
372 | const char *bb_basename(const char *name) FAST_FUNC; | ||
373 | /* NB: can violate const-ness (similarly to strchr) */ | ||
374 | char *last_char_is(const char *s, int c) FAST_FUNC; | ||
370 | 375 | ||
371 | void ndelay_on(int fd) FAST_FUNC; | 376 | void ndelay_on(int fd) FAST_FUNC; |
372 | void ndelay_off(int fd) FAST_FUNC; | 377 | void ndelay_off(int fd) FAST_FUNC; |
@@ -1192,10 +1197,8 @@ void config_close(parser_t *parser) FAST_FUNC; | |||
1192 | * If path is NULL, it is assumed to be "/". | 1197 | * If path is NULL, it is assumed to be "/". |
1193 | * filename should not be NULL. */ | 1198 | * filename should not be NULL. */ |
1194 | char *concat_path_file(const char *path, const char *filename) FAST_FUNC; | 1199 | char *concat_path_file(const char *path, const char *filename) FAST_FUNC; |
1200 | /* Returns NULL on . and .. */ | ||
1195 | char *concat_subpath_file(const char *path, const char *filename) FAST_FUNC; | 1201 | char *concat_subpath_file(const char *path, const char *filename) FAST_FUNC; |
1196 | const char *bb_basename(const char *name) FAST_FUNC; | ||
1197 | /* NB: can violate const-ness (similarly to strchr) */ | ||
1198 | char *last_char_is(const char *s, int c) FAST_FUNC; | ||
1199 | 1202 | ||
1200 | 1203 | ||
1201 | int bb_make_directory(char *path, long mode, int flags) FAST_FUNC; | 1204 | int bb_make_directory(char *path, long mode, int flags) FAST_FUNC; |