Searched refs:TIOCGWINSZ (Results 26 - 50 of 76) sorted by relevance

1234

/freebsd-11-stable/usr.bin/who/
H A Dwho.c311 if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &ws) != -1)
/freebsd-11-stable/usr.bin/mail/
H A Dmain.c372 if (ioctl(1, TIOCGWINSZ, (char *)&ws) < 0)
/freebsd-11-stable/contrib/ee/
H A Dnew_curse.c91 #ifdef TIOCGWINSZ
746 #ifdef TIOCGWINSZ
747 if (ioctl(0, TIOCGWINSZ, &ws) >= 0)
756 #endif /* TIOCGWINSZ */
1000 #ifdef TIOCGWINSZ
1004 if (ioctl(0, TIOCGWINSZ, &ws) >= 0)
/freebsd-11-stable/contrib/ncurses/ncurses/tinfo/
H A Dlib_setup.c81 * Solaris, IRIX) define TIOCGWINSZ and struct winsize.
89 # ifdef TIOCGWINSZ
90 # define IOCTL_WINSIZE TIOCGWINSZ
H A Dtinfo_driver.c57 * Solaris, IRIX) define TIOCGWINSZ and struct winsize.
65 # ifdef TIOCGWINSZ
66 # define IOCTL_WINSIZE TIOCGWINSZ
/freebsd-11-stable/contrib/libreadline/
H A Drltty.c147 #if defined (TIOCGWINSZ)
150 if (ioctl (tty, TIOCGWINSZ, &w) == 0)
152 #endif /* TIOCGWINSZ */
/freebsd-11-stable/contrib/telnet/telnet/
H A Dsys_bsd.c714 #ifdef TIOCGWINSZ
717 if (ioctl(fileno(stdin), TIOCGWINSZ, (char *)&ws) >= 0) {
722 #endif /* TIOCGWINSZ */
/freebsd-11-stable/usr.bin/column/
H A Dcolumn.c90 if (ioctl(1, TIOCGWINSZ, &win) == -1 || !win.ws_col) {
/freebsd-11-stable/lib/libdpv/
H A Ddialog_util.c98 if ((tcgetattr(fd, &t) < 0) || (ioctl(fd, TIOCGWINSZ, maxsize) < 0)) {
/freebsd-11-stable/sbin/fsdb/
H A Dfsdbutil.c216 if (ioctl(0, TIOCGWINSZ, &ws) != -1)
/freebsd-11-stable/bin/ps/
H A Dps.c197 else if ((ioctl(STDOUT_FILENO, TIOCGWINSZ, (char *)&ws) == -1 &&
198 ioctl(STDERR_FILENO, TIOCGWINSZ, (char *)&ws) == -1 &&
199 ioctl(STDIN_FILENO, TIOCGWINSZ, (char *)&ws) == -1) ||
/freebsd-11-stable/contrib/nvi/cl/
H A Dcl_term.c378 * Try TIOCGWINSZ.
381 if (ioctl(STDERR_FILENO, TIOCGWINSZ, &win) != -1) {
385 /* If here because of suspend or a signal, only trust TIOCGWINSZ. */
388 * Somebody didn't get TIOCGWINSZ right, or has suspend
422 * If TIOCGWINSZ failed, or had entries of 0, try termcap. This
/freebsd-11-stable/usr.bin/rlogin/
H A Drlogin.c103 #define get_window_size(fd, wp) ioctl(fd, TIOCGWINSZ, wp)
/freebsd-11-stable/usr.bin/script/
H A Dscript.c180 if (ioctl(STDIN_FILENO, TIOCGWINSZ, &win) == -1)
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_platform_limits_solaris.cpp167 unsigned IOCTL_TIOCGWINSZ = TIOCGWINSZ;
/freebsd-11-stable/contrib/ncurses/progs/
H A Dtset.c126 * Solaris, IRIX) define TIOCGWINSZ and struct winsize.
135 # ifdef TIOCGWINSZ
136 # define IOCTL_GET_WINSIZE TIOCGWINSZ
/freebsd-11-stable/contrib/subversion/subversion/svn/
H A Dfile-merge.c314 #ifdef TIOCGWINSZ
323 error = ioctl(fd, TIOCGWINSZ, &ws);
/freebsd-11-stable/contrib/telnet/telnetd/
H A Dsys_term.c789 # ifdef TIOCGWINSZ
829 # ifdef TIOCGWINSZ
/freebsd-11-stable/contrib/llvm-project/lldb/tools/driver/
H A DDriver.cpp490 ::ioctl(STDIN_FILENO, TIOCGWINSZ, &window_size) == 0) {
694 ::ioctl(STDIN_FILENO, TIOCGWINSZ, &window_size) == 0) {
/freebsd-11-stable/crypto/openssh/
H A Dsftp.c824 if (ioctl(fileno(stdin), TIOCGWINSZ, &ws) != -1)
923 if (ioctl(fileno(stdin), TIOCGWINSZ, &ws) != -1)
1693 if (ioctl(fileno(stdin), TIOCGWINSZ, &ws) != -1)
/freebsd-11-stable/bin/ls/
H A Dls.c175 else if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &win) != -1 &&
/freebsd-11-stable/contrib/nvi/ex/
H A Dex_script.c118 if (ioctl(STDIN_FILENO, TIOCGWINSZ, &sc->sh_win) == -1) {
/freebsd-11-stable/usr.bin/ministat/
H A Dministat.c550 else if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &wsz) != -1 &&
/freebsd-11-stable/usr.bin/msgs/
H A Dmsgs.c448 if (ioctl(fileno(stdout), TIOCGWINSZ, &win) != -1)
/freebsd-11-stable/usr.bin/sed/
H A Dprocess.c601 else if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &win) == 0 &&

Completed in 337 milliseconds

1234