Searched refs:fileno (Results 26 - 50 of 358) sorted by relevance

1234567891011>>

/openbsd-current/gnu/usr.bin/binutils/include/mpw/
H A Dmpw.h51 #ifndef fileno
52 #define fileno(fp) ((fp)->_file) macro
/openbsd-current/gnu/usr.bin/perl/ext/IPC-Open3/t/
H A Dfd.t40 open3('<&' . fileno FOO, my \$out, undef, \$ENV{PERLEXE}, '-eprint scalar <STDIN>');
/openbsd-current/gnu/usr.bin/perl/cpan/File-Temp/t/
H A Dmktemp.t23 print "# MKSTEMP: FH is $fh File is $template fileno=".fileno($fh)."\n";
71 print "# MKSTEMPS: File is $template -> $fname fileno=".fileno($fh)."\n";
/openbsd-current/gnu/usr.bin/perl/cpan/IO-Socket-IP/t/
H A D18fdopen.t19 $s2->fdopen( $s1->fileno, 'r' ) or die "Cannot fdopen - $!";
/openbsd-current/gnu/usr.sbin/mkhybrid/src/diag/
H A Disoinfo.c126 lseek(fileno(infile), (block - sector_offset) << 11, 0);
127 read(fileno(infile), buffer, size);
261 lseek(fileno(infile), (cont_extent - sector_offset) << 11, 0);
262 read(fileno(infile), sector, sizeof(sector));
381 lseek(fileno(infile), (extent - sector_offset) << 11, 0);
383 read(fileno(infile), buff, tlen);
403 lseek(fileno(infile), (extent - sector_offset) << 11, 0);
404 read(fileno(infile), buffer, sizeof(buffer));
590 lseek(fileno(infile), (16 + toc_offset) <<11, 0);
591 read(fileno(infil
[all...]
H A Disodump.c307 lseek(fileno(infile), cont_extent * blocksize, 0);
308 read(fileno(infile), sector, sizeof(sector));
345 lseek(fileno(infile), file_addr, 0);
346 read(fileno(infile), buffer, sizeof(buffer));
402 lseek(fileno(infile), file_addr, 0);
403 read(fileno(infile), &ipd, sizeof(ipd));
/openbsd-current/usr.sbin/dhcpd/
H A Ddb.c175 if (fsync(fileno(db_file)) == -1) {
223 ftruncate(fileno(db_file), ftello(db_file));
224 fsync(fileno(db_file));
/openbsd-current/games/hangman/
H A Dsetup.c79 fstat(fileno(Dict), &sbuf);
/openbsd-current/gnu/usr.bin/perl/os2/OS2/OS2-Process/t/
H A Dos2_process_kid.t28 #my @fn = map fileno $_, @nfd;
35 my ($e_r, $e_w) = map fileno $_, $stderr_r, $stderr_w;
47 my @fn = (map fileno $_, $stdout_w, $stderr_w);
/openbsd-current/gnu/usr.bin/perl/t/run/
H A Dcloexec.t122 my $parentfd2 = fileno FHPARENT2;
123 defined $parentfd2 or die "fileno: $!";
132 my $parentfd1 = fileno FHPARENT1;
133 defined $parentfd1 or die "fileno: $!";
141 $parentfd2 = fileno FHPARENT2;
142 defined $parentfd2 or die "fileno: $!";
152 $parentfd1 = fileno FHPARENT1;
153 defined $parentfd1 or die "fileno: $!";
/openbsd-current/usr.bin/write/
H A Dwrite.c69 if (isatty(fileno(stdin)))
70 myttyfd = fileno(stdin);
71 else if (isatty(fileno(stdout)))
72 myttyfd = fileno(stdout);
73 else if (isatty(fileno(stderr)))
74 myttyfd = fileno(stderr);
/openbsd-current/lib/libcurses/base/
H A Dlib_newterm.c207 _setmode(fileno(_ifp), _O_BINARY);
208 _setmode(fileno(_ofp), _O_BINARY);
215 fileno(_ofp), &errret, FALSE) != ERR) {
295 SP_PARM->_ifd = fileno(_ifp);
296 NCURSES_SP_NAME(typeahead) (NCURSES_SP_ARGx fileno(_ifp));
/openbsd-current/usr.bin/tail/
H A Dtail.c157 fstat(fileno(tf[i].fp), &(tf[i].sb))) {
175 if (fstat(fileno(stdin), &(tf[0].sb))) {
184 if (lseek(fileno(tf[0].fp), (off_t)0, SEEK_CUR) == -1 &&
/openbsd-current/gnu/usr.bin/perl/dist/IO/t/
H A Dcachepropagate-udp.t24 my $new = IO::Socket::INET->new_from_fd($listener->fileno(), 'r+');
H A Dio_poll.t14 my $dupout = IO::Handle->new_from_fd(fileno($stdout),"w");
/openbsd-current/usr.sbin/smtpd/
H A Dcompress_gzip.c120 gzf = gzdopen(fileno(out), "wb");
150 gzf = gzdopen(fileno(in), "r");
/openbsd-current/gnu/usr.bin/perl/ext/PerlIO-via/t/
H A Dvia.t43 my $fd = open($fh,'>',$tmp) && fileno($fh);
50 # Now open normally again to see if we get right fileno
51 my $fd2 = open($fh,'<',$tmp) && fileno($fh);
/openbsd-current/gnu/lib/libreadline/
H A Dinput.c178 tty = fileno (rl_instream);
275 tty = fileno (rl_instream);
433 result = read (fileno (stream), &c, sizeof (unsigned char));
462 if (sh_unset_nodelay_mode (fileno (stream)) < 0)
/openbsd-current/gnu/usr.bin/binutils/bfd/
H A Dbfdio.c91 return read (fileno (file), where, a * b);
232 result = fstat (fileno (f), statbuf);
388 if (0 != fstat (fileno (fp), &buf))
438 if (0 != fstat (fileno (fp), & buf))
/openbsd-current/gnu/usr.bin/perl/ext/Opcode/t/
H A DOpcode.t78 $s1 = opset(qw(fileno padsv padav));
94 opmask_add(opset(qw(fileno))); # add to global op_mask
95 is(eval 'fileno STDOUT', undef);
96 like($@, qr/'fileno' trapped/);
/openbsd-current/usr.bin/talk/
H A Dio.c75 fds[0].fd = fileno(stdin);
/openbsd-current/gnu/usr.bin/perl/win32/
H A Dperlglob.c51 fd = fileno(stdout);
53 fileno() implementation in VC 2003 is 2 blind pointer derefs so it will
/openbsd-current/libexec/login_skey/
H A Dlogin_skey.c172 send_fd(fileno(back));
181 while (cp < ep && read(fileno(back), cp, 1) == 1) {
196 while (cp < ep && read(fileno(back), cp, 1) == 1) {
292 *(int *)CMSG_DATA(cmp) = fileno(skey.keyfile);
/openbsd-current/usr.bin/tic/
H A Dtty_settings.c84 my_fd = fileno(stdout);
/openbsd-current/usr.bin/dc/
H A Ddc.c101 if (fstat(fileno(file), &st) == -1)

Completed in 246 milliseconds

1234567891011>>