aboutsummaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
authorlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-07-12 19:17:55 +0000
committerlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-07-12 19:17:55 +0000
commit4c90819a28a6ff368dc8ec867714cf856e6b58f3 (patch)
tree0aa4024f33e22567444f78d83d7d4b7986abe795 /include/libbb.h
parentf09cc3b1b53e74ebe0f5733f73d55846d25194ec (diff)
downloadbusybox-w32-4c90819a28a6ff368dc8ec867714cf856e6b58f3.tar.gz
busybox-w32-4c90819a28a6ff368dc8ec867714cf856e6b58f3.tar.bz2
busybox-w32-4c90819a28a6ff368dc8ec867714cf856e6b58f3.zip
A couple things that got tangled up in my tree, easier to check in both than
untangle them: Rewrite u_signal_names() into get_signum() and get_signame(), plus trim the signal list to that required by posix (they can specify the numbers for the rest if they really need them). (This is preparatory cleanup for adding a timeout applet like Roberto Foglietta wants.) Export the itoa (added due to Denis Vlasenko, although it's not quite his preferred implementation) from xfuncs.c so it's actually used, and remove several other redundant implementations of itoa and utoa() in the tree. git-svn-id: svn://busybox.net/trunk/busybox@15687 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'include/libbb.h')
-rw-r--r--include/libbb.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 0a52b6421..2f9041273 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -16,6 +16,7 @@
16 16
17#include <ctype.h> 17#include <ctype.h>
18#include <dirent.h> 18#include <dirent.h>
19#include <errno.h>
19#include <fcntl.h> 20#include <fcntl.h>
20#include <inttypes.h> 21#include <inttypes.h>
21#include <netdb.h> 22#include <netdb.h>
@@ -25,10 +26,12 @@
25#include <stdarg.h> 26#include <stdarg.h>
26#include <string.h> 27#include <string.h>
27#include <strings.h> 28#include <strings.h>
29#include <sys/ioctl.h>
28#include <sys/socket.h> 30#include <sys/socket.h>
29#include <sys/stat.h> 31#include <sys/stat.h>
30#include <sys/time.h> 32#include <sys/time.h>
31#include <sys/types.h> 33#include <sys/types.h>
34#include <sys/wait.h>
32#include <termios.h> 35#include <termios.h>
33#include <unistd.h> 36#include <unistd.h>
34 37
@@ -178,6 +181,10 @@ extern void bb_xdaemon(int nochdir, int noclose);
178extern void bb_xbind(int sockfd, struct sockaddr *my_addr, socklen_t addrlen); 181extern void bb_xbind(int sockfd, struct sockaddr *my_addr, socklen_t addrlen);
179extern void bb_xlisten(int s, int backlog); 182extern void bb_xlisten(int s, int backlog);
180extern void bb_xchdir(const char *path); 183extern void bb_xchdir(const char *path);
184extern void utoa_to_buf(unsigned n, char *buf, unsigned buflen);
185extern char *utoa(unsigned n);
186extern void itoa_to_buf(int n, char *buf, unsigned buflen);
187extern char *itoa(int n);
181 188
182#define BB_GETOPT_ERROR 0x80000000UL 189#define BB_GETOPT_ERROR 0x80000000UL
183extern const char *bb_opt_complementally; 190extern const char *bb_opt_complementally;
@@ -331,7 +338,9 @@ char *dirname (char *path);
331 338
332int bb_make_directory (char *path, long mode, int flags); 339int bb_make_directory (char *path, long mode, int flags);
333 340
334const char *u_signal_names(const char *str_sig, int *signo, int startnum); 341int get_signum(char *name);
342char *get_signame(int number);
343
335char *bb_simplify_path(const char *path); 344char *bb_simplify_path(const char *path);
336 345
337enum { /* DO NOT CHANGE THESE VALUES! cp.c depends on them. */ 346enum { /* DO NOT CHANGE THESE VALUES! cp.c depends on them. */