diff options
author | Mark Whitley <markw@lineo.com> | 2000-12-07 19:56:48 +0000 |
---|---|---|
committer | Mark Whitley <markw@lineo.com> | 2000-12-07 19:56:48 +0000 |
commit | f57c944e09417edcbcd69f2b01b937cadef39db2 (patch) | |
tree | a55822621d54bd82c54e272fa986e45698fea0f1 /include/busybox.h | |
parent | 7b5c16ebe5f1b057603cf1c0b0187be418725c42 (diff) | |
download | busybox-w32-f57c944e09417edcbcd69f2b01b937cadef39db2.tar.gz busybox-w32-f57c944e09417edcbcd69f2b01b937cadef39db2.tar.bz2 busybox-w32-f57c944e09417edcbcd69f2b01b937cadef39db2.zip |
Changed names of functions in utility.c and all affected files, to make
compliant with the style guide. Everybody rebuild your tags file!
Diffstat (limited to 'include/busybox.h')
-rw-r--r-- | include/busybox.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/include/busybox.h b/include/busybox.h index 63f39590f..41421ae56 100644 --- a/include/busybox.h +++ b/include/busybox.h | |||
@@ -55,8 +55,8 @@ | |||
55 | #define BUF_SIZE 8192 | 55 | #define BUF_SIZE 8192 |
56 | #define EXPAND_ALLOC 1024 | 56 | #define EXPAND_ALLOC 1024 |
57 | 57 | ||
58 | static inline int isDecimal(ch) { return ((ch >= '0') && (ch <= '9')); } | 58 | static inline int is_decimal(ch) { return ((ch >= '0') && (ch <= '9')); } |
59 | static inline int isOctal(ch) { return ((ch >= '0') && (ch <= '7')); } | 59 | static inline int is_octal(ch) { return ((ch >= '0') && (ch <= '7')); } |
60 | 60 | ||
61 | /* Macros for min/max. */ | 61 | /* Macros for min/max. */ |
62 | #ifndef MIN | 62 | #ifndef MIN |
@@ -119,14 +119,14 @@ extern const char *applet_name; | |||
119 | extern int applet_name_compare(const void *x, const void *y); | 119 | extern int applet_name_compare(const void *x, const void *y); |
120 | 120 | ||
121 | extern void usage(const char *usage) __attribute__ ((noreturn)); | 121 | extern void usage(const char *usage) __attribute__ ((noreturn)); |
122 | extern void errorMsg(const char *s, ...) __attribute__ ((format (printf, 1, 2))); | 122 | extern void error_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))); |
123 | extern void fatalError(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))); | 123 | extern void error_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))); |
124 | extern void perrorMsg(const char *s, ...) __attribute__ ((format (printf, 1, 2))); | 124 | extern void perror_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))); |
125 | extern void fatalPerror(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))); | 125 | extern void perror_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))); |
126 | 126 | ||
127 | const char *modeString(int mode); | 127 | const char *mode_string(int mode); |
128 | const char *timeString(time_t timeVal); | 128 | const char *time_string(time_t timeVal); |
129 | int isDirectory(const char *name, const int followLinks, struct stat *statBuf); | 129 | int is_directory(const char *name, const int followLinks, struct stat *statBuf); |
130 | int isDevice(const char *name); | 130 | int isDevice(const char *name); |
131 | 131 | ||
132 | typedef struct ino_dev_hash_bucket_struct { | 132 | typedef struct ino_dev_hash_bucket_struct { |
@@ -139,7 +139,7 @@ int is_in_ino_dev_hashtable(const struct stat *statbuf, char **name); | |||
139 | void add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name); | 139 | void add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name); |
140 | void reset_ino_dev_hashtable(void); | 140 | void reset_ino_dev_hashtable(void); |
141 | 141 | ||
142 | int copyFile(const char *srcName, const char *destName, | 142 | int copy_file(const char *srcName, const char *destName, |
143 | int setModes, int followLinks, int forceFlag); | 143 | int setModes, int followLinks, int forceFlag); |
144 | int copy_file_chunk(int srcFd, int dstFd, size_t remaining); | 144 | int copy_file_chunk(int srcFd, int dstFd, size_t remaining); |
145 | char *buildName(const char *dirName, const char *fileName); | 145 | char *buildName(const char *dirName, const char *fileName); |
@@ -147,20 +147,20 @@ int makeString(int argc, const char **argv, char *buf, int bufLen); | |||
147 | char *getChunk(int size); | 147 | char *getChunk(int size); |
148 | char *chunkstrdup(const char *str); | 148 | char *chunkstrdup(const char *str); |
149 | void freeChunks(void); | 149 | void freeChunks(void); |
150 | int fullWrite(int fd, const char *buf, int len); | 150 | int full_write(int fd, const char *buf, int len); |
151 | int fullRead(int fd, char *buf, int len); | 151 | int full_read(int fd, char *buf, int len); |
152 | int recursiveAction(const char *fileName, int recurse, int followLinks, int depthFirst, | 152 | int recursive_action(const char *fileName, int recurse, int followLinks, int depthFirst, |
153 | int (*fileAction) (const char *fileName, struct stat* statbuf, void* userData), | 153 | int (*fileAction) (const char *fileName, struct stat* statbuf, void* userData), |
154 | int (*dirAction) (const char *fileName, struct stat* statbuf, void* userData), | 154 | int (*dirAction) (const char *fileName, struct stat* statbuf, void* userData), |
155 | void* userData); | 155 | void* userData); |
156 | 156 | ||
157 | extern int createPath (const char *name, int mode); | 157 | extern int create_path (const char *name, int mode); |
158 | extern int parse_mode( const char* s, mode_t* theMode); | 158 | extern int parse_mode( const char* s, mode_t* theMode); |
159 | 159 | ||
160 | extern int get_kernel_revision(void); | 160 | extern int get_kernel_revision(void); |
161 | 161 | ||
162 | extern int get_console_fd(char* tty_name); | 162 | extern int get_console_fd(char* tty_name); |
163 | extern struct mntent *findMountPoint(const char *name, const char *table); | 163 | extern struct mntent *find_mount_point(const char *name, const char *table); |
164 | extern void write_mtab(char* blockDevice, char* directory, | 164 | extern void write_mtab(char* blockDevice, char* directory, |
165 | char* filesystemType, long flags, char* string_flags); | 165 | char* filesystemType, long flags, char* string_flags); |
166 | extern void erase_mtab(const char * name); | 166 | extern void erase_mtab(const char * name); |
@@ -169,8 +169,8 @@ extern char *mtab_first(void **iter); | |||
169 | extern char *mtab_next(void **iter); | 169 | extern char *mtab_next(void **iter); |
170 | extern char *mtab_getinfo(const char *match, const char which); | 170 | extern char *mtab_getinfo(const char *match, const char which); |
171 | extern int check_wildcard_match(const char* text, const char* pattern); | 171 | extern int check_wildcard_match(const char* text, const char* pattern); |
172 | extern long getNum (const char *cp); | 172 | extern long atoi_w_units (const char *cp); |
173 | extern pid_t* findPidByName( char* pidName); | 173 | extern pid_t* find_pid_by_name( char* pidName); |
174 | extern int find_real_root_device_name(char* name); | 174 | extern int find_real_root_device_name(char* name); |
175 | extern char *get_line_from_file(FILE *file); | 175 | extern char *get_line_from_file(FILE *file); |
176 | extern void print_file(FILE *file); | 176 | extern void print_file(FILE *file); |