summaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libbb.h')
-rw-r--r--include/libbb.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 202574adb..1c54a32d5 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1017,15 +1017,15 @@ extern int update_passwd(const char *filename, const char *username,
1017int get_terminal_width_height(int fd, int *width, int *height); 1017int get_terminal_width_height(int fd, int *width, int *height);
1018 1018
1019int ioctl_or_perror(int fd, int request, void *argp, const char *fmt,...) __attribute__ ((format (printf, 4, 5))); 1019int ioctl_or_perror(int fd, int request, void *argp, const char *fmt,...) __attribute__ ((format (printf, 4, 5)));
1020void ioctl_or_perror_and_die(int fd, int request, void *argp, const char *fmt,...) __attribute__ ((format (printf, 4, 5))); 1020int ioctl_or_perror_and_die(int fd, int request, void *argp, const char *fmt,...) __attribute__ ((format (printf, 4, 5)));
1021#if ENABLE_IOCTL_HEX2STR_ERROR 1021#if ENABLE_IOCTL_HEX2STR_ERROR
1022int bb_ioctl_or_warn(int fd, int request, void *argp, const char *ioctl_name); 1022int bb_ioctl_or_warn(int fd, int request, void *argp, const char *ioctl_name);
1023void bb_xioctl(int fd, int request, void *argp, const char *ioctl_name); 1023int bb_xioctl(int fd, int request, void *argp, const char *ioctl_name);
1024#define ioctl_or_warn(fd,request,argp) bb_ioctl_or_warn(fd,request,argp,#request) 1024#define ioctl_or_warn(fd,request,argp) bb_ioctl_or_warn(fd,request,argp,#request)
1025#define xioctl(fd,request,argp) bb_xioctl(fd,request,argp,#request) 1025#define xioctl(fd,request,argp) bb_xioctl(fd,request,argp,#request)
1026#else 1026#else
1027int bb_ioctl_or_warn(int fd, int request, void *argp); 1027int bb_ioctl_or_warn(int fd, int request, void *argp);
1028void bb_xioctl(int fd, int request, void *argp); 1028int bb_xioctl(int fd, int request, void *argp);
1029#define ioctl_or_warn(fd,request,argp) bb_ioctl_or_warn(fd,request,argp) 1029#define ioctl_or_warn(fd,request,argp) bb_ioctl_or_warn(fd,request,argp)
1030#define xioctl(fd,request,argp) bb_xioctl(fd,request,argp) 1030#define xioctl(fd,request,argp) bb_xioctl(fd,request,argp)
1031#endif 1031#endif