/freebsd-11-stable/contrib/xz/src/xz/ |
H A D | private.h | 37 # define STDIN_FILENO (fileno(stdin)) 41 # define STDOUT_FILENO (fileno(stdout)) 45 # define STDERR_FILENO (fileno(stderr))
|
/freebsd-11-stable/lib/libc/stdio/ |
H A D | fileno.c | 34 static char sccsid[] = "@(#)fileno.c 8.1 (Berkeley) 6/4/93"; 44 #undef fileno macro 48 fileno(FILE *fp) function
|
/freebsd-11-stable/contrib/ncurses/ncurses/base/ |
H A D | lib_initscr.c | 78 if (isatty(fileno(stdout))) { 80 if (fp != 0 && isatty(fileno(fp))) { 82 dup2(fileno(fp), STDOUT_FILENO);
|
/freebsd-11-stable/sys/fs/msdosfs/ |
H A D | msdosfs_fileno.c | 59 static MALLOC_DEFINE(M_MSDOSFSFILENO, "msdosfs_fileno", "MSDOSFS fileno mapping node"); 99 msdosfs_fileno_map(struct mount *mp, uint64_t fileno) argument 106 KASSERT((uint32_t)fileno == fileno, 107 ("fileno >32 bits but not a large fs?")); 108 return ((uint32_t)fileno); 110 if (fileno < FILENO_FIRST_DYN) 111 return ((uint32_t)fileno); 113 key.mf_fileno64 = fileno; 132 mf->mf_fileno64 = fileno; [all...] |
/freebsd-11-stable/usr.bin/tip/tip/ |
H A D | log.c | 60 if (flock(fileno(flog), LOCK_EX) < 0) { 82 (void) flock(fileno(flog), LOCK_UN);
|
/freebsd-11-stable/usr.sbin/fstyp/ |
H A D | geli.c | 49 error = ioctl(fileno(fp), DIOCGMEDIASIZE, &mediasize); 52 error = ioctl(fileno(fp), DIOCGSECTORSIZE, §orsize);
|
/freebsd-11-stable/crypto/heimdal/lib/roken/ |
H A D | cloexec.c | 56 rk_cloexec(fileno(f));
|
/freebsd-11-stable/crypto/openssh/ |
H A D | sshtty.c | 61 if (tcsetattr(fileno(stdin), TCSADRAIN, &_saved_tio) == -1) { 73 if (tcgetattr(fileno(stdin), &tio) == -1) { 91 if (tcsetattr(fileno(stdin), TCSADRAIN, &tio) == -1) {
|
H A D | clientloop.c | 205 unset_nonblock(fileno(stdin)); 216 set_nonblock(fileno(stdin)); 487 len = read(fileno(stdin), buf, 1); 564 if (ioctl(fileno(stdin), TIOCGWINSZ, &ws) < 0) 637 FD_SET(fileno(stdin), *readsetp); 641 FD_SET(fileno(stdout), *writesetp); 643 FD_SET(fileno(stderr), *writesetp); 725 atomicio(vwrite, fileno(stdout), buffer_ptr(bout), 728 atomicio(vwrite, fileno(stderr), buffer_ptr(berr), 1335 if (FD_ISSET(fileno(stdi [all...] |
/freebsd-11-stable/crypto/heimdal/appl/login/ |
H A D | read_string.c | 83 tcgetattr(fileno(tty), &t_old); 86 tcsetattr(fileno(tty), TCSANOW, &t_new); 109 tcsetattr(fileno(tty), TCSANOW, &t_old);
|
/freebsd-11-stable/contrib/gdb/gdb/config/rs6000/ |
H A D | xm-rs6000.h | 83 int fd = fileno (stdout); \
|
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/fuzzer/ |
H A D | FuzzerUtilLinux.cpp | 35 dup2(fileno(Temp), Fd);
|
/freebsd-11-stable/contrib/binutils/binutils/ |
H A D | bin2c.c | 40 # define fileno(_fp) _fileno (_fp) macro 89 SET_BINARY (fileno (stdin));
|
/freebsd-11-stable/contrib/libreadline/examples/ |
H A D | excallback.c | 125 FD_SET(fileno(stdin), &fds); 132 if( FD_ISSET(fileno(stdin), &fds) ) {
|
/freebsd-11-stable/usr.bin/mail/ |
H A D | tty.c | 83 if (tcgetattr(fileno(stdin), &ttybuf) < 0) { 101 if (ioctl(fileno(stdin), TIOCEXT, &flag) < 0) 112 ttyset++, tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf); 120 ttyset++, tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf); 127 ttyset++, tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf); 135 ttyset++, tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf); 148 tcsetattr(fileno(stdin), TCSADRAIN, &ttybuf); 154 if (ioctl(fileno(stdin), TIOCEXT, &flag) < 0)
|
/freebsd-11-stable/stand/userboot/userboot/ |
H A D | host.c | 103 uint32_t fileno; local 108 rc = CALLBACK(readdir, f->f_fsdata, &fileno, &type, &namelen, 113 d->d_fileno = fileno;
|
/freebsd-11-stable/crypto/openssl/crypto/bio/ |
H A D | bio_lcl.h | 29 # define UP_fileno fileno
|
/freebsd-11-stable/contrib/tcp_wrappers/ |
H A D | rfc931.c | 165 if (bind(fileno(fp), (struct sockaddr *) & our_query_sin, 167 connect(fileno(fp), (struct sockaddr *) & rmt_query_sin, 175 if (bind(fileno(fp), (struct sockaddr *) & our_query_sin, 177 connect(fileno(fp), (struct sockaddr *) & rmt_query_sin,
|
/freebsd-11-stable/crypto/openssl/crypto/rc4/ |
H A D | rc4.c | 139 setmode(fileno(in), O_BINARY); 140 setmode(fileno(out), O_BINARY);
|
/freebsd-11-stable/usr.bin/tail/ |
H A D | forward.c | 200 map.fd = fileno(fp); 279 if (fstatfs(fileno(file->fp), &sf) == 0 && 285 if (Fflag && fileno(file->fp) != STDIN_FILENO) { 286 EV_SET(&ev[n], fileno(file->fp), EVFILT_VNODE, 291 EV_SET(&ev[n], fileno(file->fp), EVFILT_READ, 325 if (Fflag && fileno(file->fp) != STDIN_FILENO) 349 fstat(fileno(file->fp), &file->st) 358 if (fileno(file->fp) == STDIN_FILENO)
|
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/gen/posix_spawn/ |
H A D | t_fileactions.c | 110 posix_spawn_file_actions_addopen(&fa, fileno(stdin), 112 posix_spawn_file_actions_addopen(&fa, fileno(stdout), 136 posix_spawn_file_actions_addopen(&fa, fileno(stdin), 138 posix_spawn_file_actions_addopen(&fa, fileno(stdout), 162 posix_spawn_file_actions_addopen(&fa, fileno(stdout), 164 posix_spawn_file_actions_addopen(&fa, fileno(stdin), 206 posix_spawn_file_actions_addopen(&fa, fileno(stdin), 310 closefrom(fileno(stderr)+1);
|
/freebsd-11-stable/usr.bin/write/ |
H A D | write.c | 90 if (isatty(fileno(stdin))) 91 myttyfd = fileno(stdin); 92 else if (isatty(fileno(stdout))) 93 myttyfd = fileno(stdout); 94 else if (isatty(fileno(stderr))) 95 myttyfd = fileno(stderr);
|
/freebsd-11-stable/crypto/heimdal/appl/ftp/ftp/ |
H A D | ftp.c | 604 if (fstat (fileno (from), &st) == 0 && S_ISREG (st.st_mode)) { 619 chunk = mmap (0, len, PROT_READ, MAP_SHARED, fileno (from), off); 626 res = sec_write (fileno (to), chunk, len); 642 fstat (fileno (from), &st) >= 0 ? &st : NULL); 646 while ((n = read (fileno (from), buf, bufsize)) > 0) { 647 werr = sec_write (fileno (to), buf, n); 734 if (fstat (fileno (fin), &st) < 0 || !S_ISREG(st.st_mode)) { 764 rc = lseek (fileno (fin), restart_point, SEEK_SET); 806 set_buffer_size (fileno (dout), 0); 1009 set_buffer_size (fileno (di [all...] |
/freebsd-11-stable/cddl/compat/opensolaris/misc/ |
H A D | fsshare.c | 196 error = flock(fileno(oldfd), LOCK_EX); 234 flock(fileno(oldfd), LOCK_UN); 238 flock(fileno(newfd), LOCK_UN);
|
/freebsd-11-stable/contrib/libarchive/libarchive/ |
H A D | archive_read_open_file.c | 87 * streams that don't support fileno()). As a result, fileno() 90 if (fstat(fileno(mine->f), &st) == 0 && S_ISREG(st.st_mode)) { 98 setmode(fileno(mine->f), O_BINARY); 155 /* fileno() isn't safe on all platforms ... see above. */ 156 if (lseek(fileno(mine->f), skip, SEEK_CUR) < 0)
|