diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/include/libbb.h b/include/libbb.h index 9f208b390..859b3bcf4 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -288,20 +288,20 @@ enum { | |||
288 | * SIGSYS Bad argument to routine | 288 | * SIGSYS Bad argument to routine |
289 | * SIGTRAP Trace/breakpoint trap | 289 | * SIGTRAP Trace/breakpoint trap |
290 | */ | 290 | */ |
291 | BB_FATAL_SIGS = 0 | 291 | BB_FATAL_SIGS = (int)(0 |
292 | + (1 << SIGHUP) | 292 | + (1LL << SIGHUP) |
293 | + (1 << SIGINT) | 293 | + (1LL << SIGINT) |
294 | + (1 << SIGTERM) | 294 | + (1LL << SIGTERM) |
295 | + (1 << SIGPIPE) // Write to pipe with no readers | 295 | + (1LL << SIGPIPE) // Write to pipe with no readers |
296 | + (1 << SIGQUIT) // Quit from keyboard | 296 | + (1LL << SIGQUIT) // Quit from keyboard |
297 | + (1 << SIGABRT) // Abort signal from abort(3) | 297 | + (1LL << SIGABRT) // Abort signal from abort(3) |
298 | + (1 << SIGALRM) // Timer signal from alarm(2) | 298 | + (1LL << SIGALRM) // Timer signal from alarm(2) |
299 | + (1 << SIGVTALRM) // Virtual alarm clock | 299 | + (1LL << SIGVTALRM) // Virtual alarm clock |
300 | + (1 << SIGXCPU) // CPU time limit exceeded | 300 | + (1LL << SIGXCPU) // CPU time limit exceeded |
301 | + (1 << SIGXFSZ) // File size limit exceeded | 301 | + (1LL << SIGXFSZ) // File size limit exceeded |
302 | + (1 << SIGUSR1) // Yes kids, these are also fatal! | 302 | + (1LL << SIGUSR1) // Yes kids, these are also fatal! |
303 | + (1 << SIGUSR2) | 303 | + (1LL << SIGUSR2) |
304 | + 0, | 304 | + 0), |
305 | }; | 305 | }; |
306 | void bb_signals(int sigs, void (*f)(int)); | 306 | void bb_signals(int sigs, void (*f)(int)); |
307 | /* Unlike signal() and bb_signals, sets handler with sigaction() | 307 | /* Unlike signal() and bb_signals, sets handler with sigaction() |
@@ -995,16 +995,16 @@ extern int update_passwd(const char *filename, const char *username, | |||
995 | /* NB: typically you want to pass fd 0, not 1. Think 'applet | grep something' */ | 995 | /* NB: typically you want to pass fd 0, not 1. Think 'applet | grep something' */ |
996 | int get_terminal_width_height(int fd, int *width, int *height); | 996 | int get_terminal_width_height(int fd, int *width, int *height); |
997 | 997 | ||
998 | int ioctl_or_perror(int fd, int request, void *argp, const char *fmt,...) __attribute__ ((format (printf, 4, 5))); | 998 | int ioctl_or_perror(int fd, unsigned request, void *argp, const char *fmt,...) __attribute__ ((format (printf, 4, 5))); |
999 | void ioctl_or_perror_and_die(int fd, int request, void *argp, const char *fmt,...) __attribute__ ((format (printf, 4, 5))); | 999 | void ioctl_or_perror_and_die(int fd, unsigned request, void *argp, const char *fmt,...) __attribute__ ((format (printf, 4, 5))); |
1000 | #if ENABLE_IOCTL_HEX2STR_ERROR | 1000 | #if ENABLE_IOCTL_HEX2STR_ERROR |
1001 | int bb_ioctl_or_warn(int fd, int request, void *argp, const char *ioctl_name); | 1001 | int bb_ioctl_or_warn(int fd, unsigned request, void *argp, const char *ioctl_name); |
1002 | void bb_xioctl(int fd, int request, void *argp, const char *ioctl_name); | 1002 | void bb_xioctl(int fd, unsigned request, void *argp, const char *ioctl_name); |
1003 | #define ioctl_or_warn(fd,request,argp) bb_ioctl_or_warn(fd,request,argp,#request) | 1003 | #define ioctl_or_warn(fd,request,argp) bb_ioctl_or_warn(fd,request,argp,#request) |
1004 | #define xioctl(fd,request,argp) bb_xioctl(fd,request,argp,#request) | 1004 | #define xioctl(fd,request,argp) bb_xioctl(fd,request,argp,#request) |
1005 | #else | 1005 | #else |
1006 | int bb_ioctl_or_warn(int fd, int request, void *argp); | 1006 | int bb_ioctl_or_warn(int fd, unsigned request, void *argp); |
1007 | void bb_xioctl(int fd, int request, void *argp); | 1007 | void bb_xioctl(int fd, unsigned request, void *argp); |
1008 | #define ioctl_or_warn(fd,request,argp) bb_ioctl_or_warn(fd,request,argp) | 1008 | #define ioctl_or_warn(fd,request,argp) bb_ioctl_or_warn(fd,request,argp) |
1009 | #define xioctl(fd,request,argp) bb_xioctl(fd,request,argp) | 1009 | #define xioctl(fd,request,argp) bb_xioctl(fd,request,argp) |
1010 | #endif | 1010 | #endif |