diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index bf6ae923d..46860c614 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -780,6 +780,20 @@ extern void crypt_make_salt(char *p, int cnt); | |||
780 | 780 | ||
781 | int get_terminal_width_height(const int fd, int *width, int *height); | 781 | int get_terminal_width_height(const int fd, int *width, int *height); |
782 | 782 | ||
783 | int ioctl_or_perror(int fd, int request, void *argp, const char *fmt,...) __attribute__ ((format (printf, 4, 5))); | ||
784 | void ioctl_or_perror_and_die(int fd, int request, void *argp, const char *fmt,...) __attribute__ ((format (printf, 4, 5))); | ||
785 | #if ENABLE_IOCTL_HEX2STR_ERROR | ||
786 | int bb_ioctl_or_warn(int fd, int request, void *argp, const char *ioctl_name); | ||
787 | void bb_xioctl(int fd, int request, void *argp, const char *ioctl_name); | ||
788 | #define ioctl_or_warn(fd,request,argp) bb_ioctl_or_warn(fd,request,argp,#request) | ||
789 | #define xioctl(fd,request,argp) bb_xioctl(fd,request,argp,#request) | ||
790 | #else | ||
791 | int bb_ioctl_or_warn(int fd, int request, void *argp); | ||
792 | void bb_xioctl(int fd, int request, void *argp); | ||
793 | #define ioctl_or_warn(fd,request,argp) bb_ioctl_or_warn(fd,request,argp) | ||
794 | #define xioctl(fd,request,argp) bb_xioctl(fd,request,argp) | ||
795 | #endif | ||
796 | |||
783 | char *is_in_ino_dev_hashtable(const struct stat *statbuf); | 797 | char *is_in_ino_dev_hashtable(const struct stat *statbuf); |
784 | void add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name); | 798 | void add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name); |
785 | void reset_ino_dev_hashtable(void); | 799 | void reset_ino_dev_hashtable(void); |