HomeSort by: relevance | last modified time | path
    Searched refs:fileno (Results 1 - 25 of 165) sorted by relevancy

1 2 3 4 5 6 7

  /src/games/robots/
flush_in.c 52 tcflush(fileno(stdin), TCIFLUSH);
  /src/games/hack/
hack.ioctl.c 82 (void) tcgetattr(fileno(stdin), &termios);
88 (void) tcsetattr(fileno(stdin), TCSADRAIN, &termios);
  /src/lib/libc/stdio/
fileno.c 1 /* $NetBSD: fileno.c,v 1.13 2012/03/15 18:22:30 christos Exp $ */
38 static char sccsid[] = "@(#)fileno.c 8.1 (Berkeley) 6/4/93";
40 __RCSID("$NetBSD: fileno.c,v 1.13 2012/03/15 18:22:30 christos Exp $");
52 * A subroutine version of the macro fileno.
54 #undef fileno
57 __weak_alias(fileno,_fileno)
  /src/usr.bin/write/
term_chk.c 116 if (isatty(fileno(stdin)))
117 myttyfd = fileno(stdin);
118 else if (isatty(fileno(stdout)))
119 myttyfd = fileno(stdout);
120 else if (isatty(fileno(stderr)))
121 myttyfd = fileno(stderr);
  /src/lib/libcurses/
tty.c 114 if (tcgetattr(fileno(screen->infd), &screen->orig_termios)) {
116 if (tcgetattr(fileno(screen->outfd), &screen->orig_termios)) {
164 return tcsetattr(fileno(screen->infd), TCSASOFT | TCSADRAIN,
184 return tcsetattr(fileno(_cursesi_screen->infd), TCSASOFT | TCSADRAIN,
204 return tcsetattr(fileno(_cursesi_screen->infd), TCSASOFT | TCSADRAIN,
225 return tcsetattr(fileno(_cursesi_screen->infd), TCSASOFT | TCSADRAIN,
252 return tcsetattr(fileno(_cursesi_screen->infd), TCSASOFT | TCSADRAIN,
296 if (tcsetattr(fileno(_cursesi_screen->infd), TCSASOFT | TCSANOW,
322 if (tcsetattr(fileno(_cursesi_screen->infd), TCSASOFT | TCSANOW,
380 if (tcsetattr(fileno(_cursesi_screen->infd), TCSASOFT | TCSANOW
    [all...]
tstp.c 140 if (ioctl(fileno(_cursesi_screen->outfd), TIOCGWINSZ, &win) != -1 &&
222 (void)tcgetattr(fileno(_cursesi_screen->infd),
248 return tcsetattr(fileno(_cursesi_screen->infd), TCSASOFT | TCSADRAIN,
273 if (ioctl(fileno(_cursesi_screen->outfd), TIOCGWINSZ, &win) != -1 &&
297 (void)tcgetattr(fileno(_cursesi_screen->infd),
301 (void)tcsetattr(fileno(_cursesi_screen->infd), TCSASOFT | TCSADRAIN,
327 return tcgetattr(fileno(_cursesi_screen->infd),
335 return tcsetattr(fileno(_cursesi_screen->infd), TCSASOFT | TCSADRAIN,
343 return tcgetattr(fileno(_cursesi_screen->infd),
  /src/bin/sh/bltin/
bltin.h 59 #undef fileno
76 #define fileno(f) ((f)->fd) macro
  /src/sbin/fsck/
progress.c 135 write(fileno(stdout), buf, len);
151 write(fileno(stdout), buf, len + 1);
160 if (ioctl(fileno(stdout), TIOCGWINSZ, &winsize) != -1 &&
  /src/games/hangman/
setup.c 75 fstat(fileno(Dict), &sbuf);
  /src/games/hunt/hunt/
connect.c 60 (void) strcpy(Buf, ttyname(fileno(stderr)));
  /src/games/atc/
log.c 176 if (flock(fileno(score_fp), LOCK_EX) < 0)
179 if (lockf(fileno(score_fp), F_LOCK, 1) < 0)
278 (void)lseek(fileno(score_fp), (off_t)0, SEEK_SET);
279 (void)ftruncate(fileno(score_fp), (off_t)offset);
292 (void)flock(fileno(score_fp), LOCK_UN);
  /src/usr.bin/mail/
tty.c 200 if (tcgetattr(fileno(stdin), t) == -1) {
221 (void)tcsetattr(fileno(stdin), TCSADRAIN, t);
237 (void)tcsetattr(fileno(stdin), TCSADRAIN, t);
303 if (ioctl(fileno(stdin), TIOCEXT, &flag) == -1)
365 if (ioctl(fileno(stdin), TIOCEXT, &flag) == -1)
mime_child.c 147 switch (pid = start_command(cmd, &nset, p[READ], fileno(fo), NULL)) {
198 prepare_child(&nset, p[READ], fileno(fo));
  /src/usr.bin/tail/
tail.c 186 fstat(fileno(fp), &sb)) {
206 if (fstat(fileno(stdin), &sb)) {
215 if (lseek(fileno(stdin), (off_t)0, SEEK_CUR) == -1 &&
  /src/sbin/mount_portal/
pt_filter.c 158 fdp[0] = fileno(fp);
202 fdp[0] = fileno(fp);
  /src/tests/lib/libc/gen/posix_spawn/
t_fileactions.c 88 RZ(posix_spawn_file_actions_addopen(&fa, fileno(stdin),
90 RZ(posix_spawn_file_actions_addopen(&fa, fileno(stdout),
116 RZ(posix_spawn_file_actions_addopen(&fa, fileno(stdin),
118 RZ(posix_spawn_file_actions_addopen(&fa, fileno(stdout),
144 RZ(posix_spawn_file_actions_addopen(&fa, fileno(stdout),
146 RZ(posix_spawn_file_actions_addopen(&fa, fileno(stdin),
188 RZ(posix_spawn_file_actions_addopen(&fa, fileno(stdin),
285 RL(closefrom(fileno(stderr) + 1));
h_fileactions.c 84 if (fstat(fileno(stdout), &sb0) != 0) {
  /src/lib/libc/gen/
utmp.c 66 if (fstat(fileno(ut), &st) == -1)
  /src/bin/cat/
cat.c 239 fd = fileno(stdin);
244 fd = fileno(stdin);
276 if (fd != fileno(stdin))
290 wfd = fileno(stdout);
  /src/usr.bin/ftp/
progressbar.c 68 return (tcgetpgrp(fileno(ttyout)) == pgrp);
180 (void)write(fileno(ttyout), buf, len);
291 (void)write(fileno(ttyout), buf, len);
372 (void)write(siginfo ? STDERR_FILENO : fileno(ttyout), buf, len);
385 write(fileno(ttyout), "\n", 1);
  /src/common/dist/zlib/test/
minigzip.c 38 # define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)
54 # define fileno(file) file->__file macro
57 # include <unix.h> /* for fileno */
311 int ifd = fileno(in);
536 file = gzdopen(fileno(stdin), "rb");
540 file = gzdopen(fileno(stdout), outmode);
566 file = gzdopen(fileno(stdout), outmode);
  /src/lib/libedit/
el.c 66 return el_init_fd(prog, fin, fout, ferr, fileno(fin), fileno(fout),
67 fileno(ferr));
362 el->el_infd = fileno(fp);
366 el->el_outfd = fileno(fp);
370 el->el_errfd = fileno(fp);
  /src/lib/libwrap/
rfc931.c 187 if (bind(fileno(fp), (struct sockaddr *) & our_query_sin,
189 connect(fileno(fp), (struct sockaddr *) & rmt_query_sin,
  /src/libexec/ftpd/
popen.c 209 pids[fileno(iop)] = pid;
228 if (pids == 0 || pids[fdes = fileno(iop)] == 0)
  /src/sbin/mount_umap/
mount_umap.c 156 if (fstat(fileno(fp), &statbuf))
204 if (fstat(fileno(gfp), &statbuf))

Completed in 27 milliseconds

1 2 3 4 5 6 7