diff options
| author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-09 08:27:24 +0000 |
|---|---|---|
| committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-09 08:27:24 +0000 |
| commit | f893da875a24138fac30f070c7101b5330f0fef0 (patch) | |
| tree | ede441ba82f7a1bf9942ba33a64e91bcd8173920 /include | |
| parent | 501bfe2630054f9988e08a5d77e1b1ff2abc78bb (diff) | |
| download | busybox-w32-f893da875a24138fac30f070c7101b5330f0fef0.tar.gz busybox-w32-f893da875a24138fac30f070c7101b5330f0fef0.tar.bz2 busybox-w32-f893da875a24138fac30f070c7101b5330f0fef0.zip | |
ls,ps,watch: measure terminal width on fd 0, not 1
Diffstat (limited to 'include')
| -rw-r--r-- | include/libbb.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index 546bbafc6..a14d6be44 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
| @@ -803,7 +803,8 @@ extern int crypt_make_salt(char *p, int cnt, int rnd); | |||
| 803 | extern int update_passwd(const char *filename, const char *username, | 803 | extern int update_passwd(const char *filename, const char *username, |
| 804 | const char *new_pw); | 804 | const char *new_pw); |
| 805 | 805 | ||
| 806 | int get_terminal_width_height(const int fd, int *width, int *height); | 806 | /* NB: typically you want to pass fd 0, not 1. Think 'applet | grep something' */ |
| 807 | int get_terminal_width_height(int fd, int *width, int *height); | ||
| 807 | 808 | ||
| 808 | int ioctl_or_perror(int fd, int request, void *argp, const char *fmt,...) __attribute__ ((format (printf, 4, 5))); | 809 | int ioctl_or_perror(int fd, int request, void *argp, const char *fmt,...) __attribute__ ((format (printf, 4, 5))); |
| 809 | void ioctl_or_perror_and_die(int fd, int request, void *argp, const char *fmt,...) __attribute__ ((format (printf, 4, 5))); | 810 | void ioctl_or_perror_and_die(int fd, int request, void *argp, const char *fmt,...) __attribute__ ((format (printf, 4, 5))); |
