diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index 759eb8d15..632ed937d 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -229,6 +229,7 @@ extern void trim(char *s); | |||
229 | extern char *skip_whitespace(const char *); | 229 | extern char *skip_whitespace(const char *); |
230 | extern char *skip_non_whitespace(const char *); | 230 | extern char *skip_non_whitespace(const char *); |
231 | 231 | ||
232 | //TODO: supply a pointer to char[11] buffer (avoid statics)? | ||
232 | extern const char *bb_mode_string(mode_t mode); | 233 | extern const char *bb_mode_string(mode_t mode); |
233 | extern int is_directory(const char *name, int followLinks, struct stat *statBuf); | 234 | extern int is_directory(const char *name, int followLinks, struct stat *statBuf); |
234 | extern int remove_file(const char *path, int flags); | 235 | extern int remove_file(const char *path, int flags); |
@@ -556,9 +557,11 @@ extern int del_loop(const char *device); | |||
556 | extern int set_loop(char **device, const char *file, unsigned long long offset); | 557 | extern int set_loop(char **device, const char *file, unsigned long long offset); |
557 | 558 | ||
558 | 559 | ||
560 | //TODO: provide pointer to buf (avoid statics)? | ||
559 | const char *make_human_readable_str(unsigned long long size, | 561 | const char *make_human_readable_str(unsigned long long size, |
560 | unsigned long block_size, unsigned long display_unit); | 562 | unsigned long block_size, unsigned long display_unit); |
561 | 563 | ||
564 | //TODO: pass buf pointer or return allocated buf (avoid statics)? | ||
562 | char *bb_askpass(int timeout, const char * prompt); | 565 | char *bb_askpass(int timeout, const char * prompt); |
563 | int bb_ask_confirmation(void); | 566 | int bb_ask_confirmation(void); |
564 | int klogctl(int type, char * b, int len); | 567 | int klogctl(int type, char * b, int len); |
@@ -624,7 +627,7 @@ extern void vfork_daemon_rexec(int nochdir, int noclose, | |||
624 | #endif | 627 | #endif |
625 | extern int get_terminal_width_height(const int fd, int *width, int *height); | 628 | extern int get_terminal_width_height(const int fd, int *width, int *height); |
626 | 629 | ||
627 | int is_in_ino_dev_hashtable(const struct stat *statbuf, char **name); | 630 | char *is_in_ino_dev_hashtable(const struct stat *statbuf); |
628 | void add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name); | 631 | void add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name); |
629 | void reset_ino_dev_hashtable(void); | 632 | void reset_ino_dev_hashtable(void); |
630 | #ifdef __GLIBC__ | 633 | #ifdef __GLIBC__ |