Searched refs:fileno (Results 76 - 100 of 359) sorted by relevance

1234567891011>>

/openbsd-current/gnu/usr.bin/texinfo/info/
H A Dterminal.c466 if (ioctl (fileno (stdout), TIOCGWINSZ, &window_size) == 0)
561 if (tcgetattr (fileno(stdout), &ti) != -1)
571 if (ioctl (fileno (stdout), TIOCGETP, &sg) != -1)
706 tty = fileno (stdin);
834 tty = fileno (stdin);
H A Dpcterm.c210 tty = fileno (stdin);
237 tty = fileno (stdin);
629 __FSEXT_set_function (fileno (stdin), keyboard_read);
/openbsd-current/usr.bin/ftp/
H A Dftp.c307 (void) write(fileno(ttyout), "\n\r", 2);
567 (void) write(fileno(ttyout), MSG, strlen(MSG));
659 if (fstat(fileno(fin), &st) == -1 ||
693 if (lseek(fileno(fin), restart_point, SEEK_SET) != -1)
746 while ((c = read(fileno(fin), buf, sizeof(buf))) > 0) {
750 if ((d = write(fileno(dout), bufp, (size_t)c))
1030 if (fstat(fileno(fout), &st) == -1 || st.st_blksize == 0)
1054 lseek(fileno(fout), restart_point, SEEK_SET) == -1) {
1063 while ((c = read(fileno(din), buf, bufsize)) > 0) {
1070 wr = write(fileno(fou
[all...]
/openbsd-current/usr.bin/mail/
H A Dcmd1.c350 restoreterm = (tcgetattr(fileno(stdin), &tbuf) == 0);
364 restoreterm = (tcgetattr(fileno(stdin), &tbuf) == 0);
390 (void)tcsetattr(fileno(stdin), TCSADRAIN, &tbuf);
H A Dquit.c99 if (flock(fileno(fbuf), LOCK_EX) == -1) {
109 if (fstat(fileno(fbuf), &minfo) >= 0 && minfo.st_size > mailsize) {
241 fchmod(fileno(obuf), 0600);
H A Dfio.c289 (void)lseek(fileno(f), (off_t)sizeof(*message), SEEK_SET);
290 if (myread(fileno(f), (void *) &message[omsgCount], size) != size)
394 if (fstat(fileno(iob), &sbuf) == -1)
H A Ddef.h262 (void)ftruncate(fileno(stream), (off_t)ftell(stream)); \
/openbsd-current/include/
H A Dstdio.h104 short _file; /* fileno, if Unix descriptor, else -1 */
311 int fileno(FILE *);
410 #define fileno(p) (!__isthreaded ? __sfileno(p) : (fileno)(p)) macro
/openbsd-current/sys/kern/
H A Dvfs_getcwd.c61 ino_t fileno; local
109 fileno = va.va_fileid;
169 if (dp->d_fileno == fileno) {
/openbsd-current/usr.bin/rdist/
H A Dchild.c195 (void) xwrite(fileno(stdout), rbuf, amt);
507 if (dup2(fildes[PIPE_WRITE], (int)fileno(stdout)) == -1) {
512 if (dup2(fildes[PIPE_WRITE], (int)fileno(stderr)) == -1) {
/openbsd-current/usr.bin/telnet/
H A Dsys_bsd.c63 tout = fileno(stdout);
64 tin = fileno(stdin);
384 if (ioctl(fileno(stdin), TIOCGWINSZ, &ws) == 0) {
/openbsd-current/gnu/lib/libreadline/
H A Dparens.c128 FD_SET (fileno (rl_instream), &readfds);
/openbsd-current/gnu/usr.bin/binutils/gdb/
H A Dser-pipe.c99 close (fileno (old->fp)); /* don't allow a flush */
/openbsd-current/games/boggle/boggle/
H A Dword.c131 if (fstat(fileno(fp), &statb) < 0) {
/openbsd-current/gnu/usr.bin/perl/os2/
H A Dos2_pipe.t17 ok((my $fd = fileno $server_pipe) >= 0, 'has a fileno');
61 is fileno $fh, undef, 'was actually closed...';
/openbsd-current/lib/libc/gen/
H A Dpopen.c96 close(fileno(pcur->fp));
/openbsd-current/gnu/llvm/lldb/third_party/Python/module/pexpect-4.6/pexpect/
H A Dfdpexpect.py39 fileno() method (returning an int). All Python file-like objects
40 support fileno(). '''
42 if type(fd) != type(0) and hasattr(fd, 'fileno'):
43 fd = fd.fileno()
/openbsd-current/gnu/llvm/compiler-rt/lib/fuzzer/
H A DFuzzerUtilDarwin.cpp164 dup2(fileno(Temp), Fd);
/openbsd-current/usr.bin/mg/
H A Dttyio.c146 while ((written = write(fileno(stdout), buf, nobuf)) != nobuf) {
/openbsd-current/lib/libc/hidden/
H A Dstdio.h57 PROTO_NORMAL(fileno); variable
/openbsd-current/gnu/usr.bin/perl/t/io/
H A Dpipe.t157 my $fdr = fileno($r);
158 my $fdw = fileno($w);
/openbsd-current/gnu/llvm/lldb/source/Interpreter/
H A Dembedded_interpreter.py73 fd = sys.stdin.fileno()
/openbsd-current/gnu/llvm/llvm/utils/
H A Dextract-section.py28 msvcrt.setformat(sys.stdin.fileno(), os.O_BINARY)
/openbsd-current/lib/libskey/
H A Dskeylogin.c263 if (flock(fileno(mp->keyfile), LOCK_EX | LOCK_NB) != 0)
309 (void)ftruncate(fileno(mp->keyfile), ftello(mp->keyfile));
527 tgetline(fileno(stdin), pbuf, sizeof(pbuf), 120);
556 return (flock(fileno(mp->keyfile), LOCK_UN));
/openbsd-current/gnu/gcc/libcpp/
H A Dsystem.h97 # undef fileno macro
98 # define fileno(Stream) fileno_unlocked (Stream) macro

Completed in 334 milliseconds

1234567891011>>