Searched refs:fileno (Results 51 - 75 of 359) sorted by relevance

1234567891011>>

/openbsd-current/gnu/usr.sbin/mkhybrid/src/diag/
H A Disovfy.c283 lseek(fileno(infile), cont_extent * blocksize, 0);
284 read(fileno(infile), sector, sizeof(sector));
333 lseek(fileno(infile), file_addr, 0);
334 read(fileno(infile), buffer, sizeof(buffer));
489 lseek(fileno(infile), typel_extent * blocksize, 0);
490 read(fileno(infile), typel, path_table_size);
493 lseek(fileno(infile), typem_extent * blocksize, 0);
494 read(fileno(infile), typem, path_table_size);
548 lseek(fileno(infile), file_addr, 0);
549 read(fileno(infil
[all...]
H A Ddump.c105 lseek(fileno(infile), file_addr, 0);
106 read(fileno(infile), buffer, sizeof(buffer));
/openbsd-current/gnu/lib/libreadline/
H A Drltty.c643 tty = fileno (rl_instream);
685 tty = fileno (rl_instream);
715 int fildes = fileno (rl_outstream);
748 int fildes = fileno (rl_instream);
785 int tty = fileno (rl_instream);
878 if (_get_tty_settings (fileno (rl_instream), &sigstty) < 0)
886 if (_set_tty_settings (fileno (rl_instream), &nosigstty) < 0)
887 return (_set_tty_settings (fileno (rl_instream), &sigstty));
901 r = _set_tty_settings (fileno (rl_instream), &sigstty);
/openbsd-current/lib/libedit/
H A Del.c69 el->el_infd = fileno(fin);
70 el->el_outfd = fileno(fout);
71 el->el_errfd = fileno(ferr);
327 el->el_infd = fileno(fp);
331 el->el_outfd = fileno(fp);
335 el->el_errfd = fileno(fp);
/openbsd-current/regress/lib/libz/
H A Dminigzip.c38 # 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);
/openbsd-current/gnu/gcc/fixincludes/
H A Dsystem.h97 # undef fileno macro
98 # define fileno(Stream) fileno_unlocked (Stream) macro
/openbsd-current/gnu/usr.bin/perl/ext/POSIX/t/
H A Dunimplemented.t34 [fileno => \'IO::Handle::fileno'],
/openbsd-current/gnu/usr.bin/perl/t/io/
H A Dnargv.t124 print +(fileno($f3) < 20 ? "ok" : "not ok"), " 7 check fd leak\n";
/openbsd-current/usr.bin/htpasswd/
H A Dhtpasswd.c162 if (flock(fileno(in), LOCK_EX|LOCK_NB) == -1)
193 if (ftruncate(fileno(in), 0) == -1)
/openbsd-current/gnu/llvm/compiler-rt/lib/fuzzer/afl/
H A Dafl_driver.cpp146 dup2(fileno(temp), fd);
155 int output_fileno = fileno(output_file);
/openbsd-current/gnu/llvm/compiler-rt/lib/profile/
H A DInstrProfilingPort.h29 #define COMPILER_RT_FTRUNCATE(f, l) _chsize(fileno(f), l)
33 #define COMPILER_RT_FTRUNCATE(f, l) ftruncate(fileno(f), l)
/openbsd-current/gnu/usr.bin/perl/lib/
H A DFileHandle.t23 print $mystdout "ok ".fileno($mystdout),
/openbsd-current/gnu/usr.bin/perl/
H A Dnostdio.h41 #undef fileno macro
115 #define fileno(f) _CANNOT _fileno_ macro
/openbsd-current/usr.bin/lastcomm/
H A Dlastcomm.c87 if ((fp = fopen(acctfile, "r")) == NULL || fstat(fileno(fp), &sb))
105 if (lseek(fileno(fp), size, SEEK_SET) == -1)
/openbsd-current/usr.bin/tftp/
H A Dtftpsubs.c146 b->counter = read(fileno(file), dp->th_data, segment_size);
223 return (write(fileno(file), buf, count));
/openbsd-current/usr.bin/telnet/
H A Dterminal.c78 tcflush(fileno(stdout), TCOFLUSH);
/openbsd-current/regress/lib/libpthread/select/
H A Dselect.c79 int fd = fileno((FILE *) arg);
/openbsd-current/gnu/llvm/llvm/utils/lit/lit/builtin_commands/
H A Dcat.py52 msvcrt.setmode(sys.stdout.fileno(),os.O_BINARY)
/openbsd-current/usr.sbin/amd/amd/
H A Dhost_ops.c508 (void) dup(fileno(logfp));
509 if (fileno(logfp) != fileno(stderr)) {
511 (void) dup(fileno(logfp));
/openbsd-current/gnu/usr.bin/perl/cpan/Archive-Tar/bin/
H A Dptar57 $file->fdopen(fileno(STDOUT),"w");
72 $file->fdopen(fileno(STDIN),"r");
/openbsd-current/usr.bin/mail/
H A Dtty.c96 tty.fdin = fileno(stdin);
97 tty.fdout = fileno(stdout);
119 if (ioctl(fileno(stdin), TIOCEXT, &flag) == -1)
155 if (ioctl(fileno(stdin), TIOCEXT, &flag) == -1)
/openbsd-current/games/atc/
H A Dlog.c147 if (flock(fileno(score_fp), LOCK_EX) == -1)
242 flock(fileno(score_fp), LOCK_UN);
244 fsync(fileno(score_fp));
/openbsd-current/gnu/llvm/lldb/third_party/Python/module/pexpect-4.6/pexpect/
H A Dpopen_spawn.py102 fileno = self.proc.stdout.fileno()
106 buf = os.read(fileno, 1024)
/openbsd-current/lib/libcrypto/ui/
H A Dui_openssl.c308 if (tcgetattr(fileno(tty_in), &tty_orig) == -1) {
332 if (is_a_tty && (tcsetattr(fileno(tty_in), TCSANOW, &tty_new) == -1))
340 if (is_a_tty && (tcsetattr(fileno(tty_in), TCSANOW, &tty_orig) == -1))
/openbsd-current/lib/libskey/
H A Dskeysubr.c362 (void) tcgetattr(fileno(stdin), &term);
365 (void) tcsetattr(fileno(stdin), TCSAFLUSH|TCSASOFT, &term);
370 (void) tcsetattr(fileno(stdin), TCSAFLUSH|TCSASOFT, &term);

Completed in 299 milliseconds

1234567891011>>