Searched refs:STDIN_FILENO (Results 101 - 125 of 233) sorted by relevance

12345678910

/freebsd-13-stable/usr.bin/talk/
H A Dinit_disp.c199 if (ioctl(STDIN_FILENO, TIOCGWINSZ, &ws) < 0 ||
/freebsd-13-stable/sbin/bectl/
H A Dbectl.c335 if (isatty(STDIN_FILENO)) {
340 err = be_import(be, bootenv, STDIN_FILENO);
/freebsd-13-stable/contrib/netbsd-tests/lib/libc/gen/posix_spawn/
H A Dt_fileactions.c234 posix_spawn_file_actions_addopen(&fa, STDIN_FILENO,
283 posix_spawn_file_actions_addopen(&fa, STDIN_FILENO,
/freebsd-13-stable/contrib/bc/src/
H A Dhistory.c335 ret = read(STDIN_FILENO, buf, n);
443 if (BC_ERR(tcgetattr(STDIN_FILENO, &h->orig_termios) == -1))
471 err = tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw);
490 if (BC_ERR(tcsetattr(STDIN_FILENO, TCSAFLUSH, &h->orig_termios) != -1))
1301 (ioctl(STDIN_FILENO, FIONREAD, &n) >= 0 && n > 0);
1404 FD_SET(STDIN_FILENO, &h->rdset);
/freebsd-13-stable/contrib/llvm-project/lldb/tools/driver/
H A DDriver.cpp103 ::tcsetattr(STDIN_FILENO, TCSANOW, &g_old_stdin_termios);
464 if (::tcgetattr(STDIN_FILENO, &g_old_stdin_termios) == 0) {
485 if ((isatty(STDIN_FILENO) != 0) &&
486 ::ioctl(STDIN_FILENO, TIOCGWINSZ, &window_size) == 0) {
690 if ((isatty(STDIN_FILENO) != 0) &&
691 ::ioctl(STDIN_FILENO, TIOCGWINSZ, &window_size) == 0) {
/freebsd-13-stable/crypto/heimdal/appl/rsh/
H A Drsh.c99 FD_SET(STDIN_FILENO, &real_readset);
138 if (FD_ISSET(STDIN_FILENO, &readset)) {
139 ret = read (STDIN_FILENO, buf, sizeof(buf));
143 close (STDIN_FILENO);
144 FD_CLR(STDIN_FILENO, &real_readset);
H A Drshd.c521 dup2 (p0[0], STDIN_FILENO);
535 rshd_loop (STDIN_FILENO, p0[1],
611 int s = STDIN_FILENO;
872 if(isatty(STDIN_FILENO))
/freebsd-13-stable/sbin/recoverdisk/
H A Drecoverdisk.c154 if (!isatty(STDIN_FILENO) || ioctl(STDIN_FILENO, TIOCGWINSZ, &wsz))
279 j = ioctl(STDIN_FILENO, TIOCGWINSZ, &wsz);
/freebsd-13-stable/bin/dd/
H A Ddd.c152 in.fd = STDIN_FILENO;
216 if (in.fd != STDIN_FILENO && out.fd != STDIN_FILENO) {
/freebsd-13-stable/bin/pax/
H A Dar_io.c120 arfd = STDIN_FILENO;
1275 dup2(fds[0], STDIN_FILENO);
1280 dup2(fd, STDIN_FILENO);
/freebsd-13-stable/contrib/apr/threadproc/unix/
H A Dproc.c428 close(STDIN_FILENO);
431 attr->child_in->filedes != STDIN_FILENO) {
432 dup2(attr->child_in->filedes, STDIN_FILENO);
/freebsd-13-stable/contrib/nvi/ex/
H A Dex_script.c105 if (tcgetattr(STDIN_FILENO, &sc->sh_term) == -1) {
116 if (ioctl(STDIN_FILENO, TIOCGWINSZ, &sc->sh_win) == -1) {
160 (void)dup2(sc->sh_slave, STDIN_FILENO);
H A Dex_filter.c121 (void)dup2(input[0], STDIN_FILENO);
/freebsd-13-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_posix_libcdep.cpp456 internal_close(STDIN_FILENO);
457 internal_dup2(stdin_fd, STDIN_FILENO);
/freebsd-13-stable/contrib/diff/src/
H A Dutil.c213 if (pipes[0] != STDIN_FILENO)
215 if (dup2 (pipes[0], STDIN_FILENO) < 0)
/freebsd-13-stable/crypto/openssh/
H A Ddefines.h133 #ifndef STDIN_FILENO
134 # define STDIN_FILENO 0 macro
H A Dssh-add.c204 fd = STDIN_FILENO;
215 if (fd != STDIN_FILENO) {
/freebsd-13-stable/usr.sbin/ppp/
H A Dexec.c334 dup2(fids[1], STDIN_FILENO);
390 else if (p->fd == STDIN_FILENO) {
/freebsd-13-stable/usr.sbin/prometheus_sysctl_exporter/
H A Dprometheus_sysctl_exporter.c649 if (shutdown(STDIN_FILENO, SHUT_WR) == 0) {
652 while (read(STDIN_FILENO, buf, sizeof(buf)) > 0) {
/freebsd-13-stable/usr.bin/calendar/
H A Dio.c676 if (pdes[0] != STDIN_FILENO) {
677 (void)dup2(pdes[0], STDIN_FILENO);
/freebsd-13-stable/usr.bin/diff/
H A Ddiff.c344 fstat(STDIN_FILENO, &stb1);
354 fstat(STDIN_FILENO, &stb2);
/freebsd-13-stable/crypto/heimdal/appl/kf/
H A Dkfd.c288 return proto (STDIN_FILENO, service);
/freebsd-13-stable/crypto/heimdal/appl/telnet/telnetd/
H A Dtelnetd.c433 if (getpeername(STDIN_FILENO, sa, &sa_size) < 0) {
439 setsockopt(STDIN_FILENO, SOL_SOCKET, SO_KEEPALIVE,
455 && (setsockopt(STDIN_FILENO, IPPROTO_IP, IP_TOS,
461 net = STDIN_FILENO;
/freebsd-13-stable/contrib/libucl/tests/
H A Dtest_basic.c108 fd_in = STDIN_FILENO;
/freebsd-13-stable/contrib/bc/include/
H A Dbcl.h162 #define STDIN_FILENO (0) macro

Completed in 181 milliseconds

12345678910