summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenis Vlasenko2007-03-14 22:06:01 +0000
committerDenis Vlasenko2007-03-14 22:06:01 +0000
commit6ef06eeed435eee87a5b6141d1ad445174e8019b (patch)
tree4e83de1e390e6b6e52befcbb4a9ab9cad553021f /include
parent75ab6af71edb9e0e919a4e1e65bd7b45da93935b (diff)
downloadbusybox-6ef06eeed435eee87a5b6141d1ad445174e8019b.zip
busybox-6ef06eeed435eee87a5b6141d1ad445174e8019b.tar.gz
stop using big static buffer for inode hash
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 759eb8d..632ed93 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -229,6 +229,7 @@ extern void trim(char *s);
extern char *skip_whitespace(const char *);
extern char *skip_non_whitespace(const char *);
+//TODO: supply a pointer to char[11] buffer (avoid statics)?
extern const char *bb_mode_string(mode_t mode);
extern int is_directory(const char *name, int followLinks, struct stat *statBuf);
extern int remove_file(const char *path, int flags);
@@ -556,9 +557,11 @@ extern int del_loop(const char *device);
extern int set_loop(char **device, const char *file, unsigned long long offset);
+//TODO: provide pointer to buf (avoid statics)?
const char *make_human_readable_str(unsigned long long size,
unsigned long block_size, unsigned long display_unit);
+//TODO: pass buf pointer or return allocated buf (avoid statics)?
char *bb_askpass(int timeout, const char * prompt);
int bb_ask_confirmation(void);
int klogctl(int type, char * b, int len);
@@ -624,7 +627,7 @@ extern void vfork_daemon_rexec(int nochdir, int noclose,
#endif
extern int get_terminal_width_height(const int fd, int *width, int *height);
-int is_in_ino_dev_hashtable(const struct stat *statbuf, char **name);
+char *is_in_ino_dev_hashtable(const struct stat *statbuf);
void add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name);
void reset_ino_dev_hashtable(void);
#ifdef __GLIBC__