aboutsummaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libbb.h')
-rw-r--r--include/libbb.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/include/libbb.h b/include/libbb.h
index f9f28f983..7a8bfdffb 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1019,16 +1019,17 @@ extern int update_passwd(const char *filename, const char *username,
1019/* NB: typically you want to pass fd 0, not 1. Think 'applet | grep something' */ 1019/* NB: typically you want to pass fd 0, not 1. Think 'applet | grep something' */
1020int get_terminal_width_height(int fd, int *width, int *height); 1020int get_terminal_width_height(int fd, int *width, int *height);
1021 1021
1022int ioctl_or_perror(int fd, int request, void *argp, const char *fmt,...) __attribute__ ((format (printf, 4, 5))); 1022/* NB: "unsigned request" is crucial! "int request" will break some arches! */
1023int ioctl_or_perror_and_die(int fd, int request, void *argp, const char *fmt,...) __attribute__ ((format (printf, 4, 5))); 1023int ioctl_or_perror(int fd, unsigned request, void *argp, const char *fmt,...) __attribute__ ((format (printf, 4, 5)));
1024int ioctl_or_perror_and_die(int fd, unsigned request, void *argp, const char *fmt,...) __attribute__ ((format (printf, 4, 5)));
1024#if ENABLE_IOCTL_HEX2STR_ERROR 1025#if ENABLE_IOCTL_HEX2STR_ERROR
1025int bb_ioctl_or_warn(int fd, int request, void *argp, const char *ioctl_name); 1026int bb_ioctl_or_warn(int fd, unsigned request, void *argp, const char *ioctl_name);
1026int bb_xioctl(int fd, int request, void *argp, const char *ioctl_name); 1027int bb_xioctl(int fd, unsigned request, void *argp, const char *ioctl_name);
1027#define ioctl_or_warn(fd,request,argp) bb_ioctl_or_warn(fd,request,argp,#request) 1028#define ioctl_or_warn(fd,request,argp) bb_ioctl_or_warn(fd,request,argp,#request)
1028#define xioctl(fd,request,argp) bb_xioctl(fd,request,argp,#request) 1029#define xioctl(fd,request,argp) bb_xioctl(fd,request,argp,#request)
1029#else 1030#else
1030int bb_ioctl_or_warn(int fd, int request, void *argp); 1031int bb_ioctl_or_warn(int fd, unsigned request, void *argp);
1031int bb_xioctl(int fd, int request, void *argp); 1032int bb_xioctl(int fd, unsigned request, void *argp);
1032#define ioctl_or_warn(fd,request,argp) bb_ioctl_or_warn(fd,request,argp) 1033#define ioctl_or_warn(fd,request,argp) bb_ioctl_or_warn(fd,request,argp)
1033#define xioctl(fd,request,argp) bb_xioctl(fd,request,argp) 1034#define xioctl(fd,request,argp) bb_xioctl(fd,request,argp)
1034#endif 1035#endif