Searched refs:fileno (Results 1 - 25 of 359) sorted by relevance

1234567891011>>

/openbsd-current/gnu/usr.bin/perl/cpan/autodie/t/
H A Dfileno.t6 is(fileno(STDIN), 0, "STDIN fileno looks sane");
7 is(fileno(STDOUT),1, "STDOUT looks sane");
11 ok(!defined(fileno($dummy)), "Non-filehandles shouldn't be defined.");
14 my $fileno = eval {
15 use autodie qw(fileno);
16 fileno(STDIN);
19 is($@,"","fileno(STDIN) shouldn't die");
20 is($fileno,0,"autodying fileno(STDI
[all...]
/openbsd-current/lib/libc/stdio/
H A Dfileno.c1 /* $OpenBSD: fileno.c,v 1.9 2015/08/31 02:53:57 guenther Exp $ */
38 * A subroutine version of the macro fileno.
40 #undef fileno macro
43 fileno(FILE *fp) function
52 DEF_WEAK(fileno); variable
/openbsd-current/gnu/usr.bin/perl/t/op/
H A Drequire_37033.t16 my $fileno = fileno $fh;
18 is($fileno, $want,
21 like($fileno, qr/\A\d+\z/,
31 is(fileno $fh, $fileno,
36 is(fileno STDIN, 0, 'STDIN is open on file descriptor 0');
41 is(fileno STDIN, undef, 'STDIN is closed');
H A Dfh.t15 ok(!defined(fileno($a)), 'initial file handle is undefined');
/openbsd-current/gnu/usr.bin/perl/cpan/IO-Socket-IP/t/
H A D14fileno.t17 my $fileno = $socket->fileno;
21 is( $socket->fileno, $fileno, '$socket->fileno preserved after ->socket' );
27 is( $socket->fileno, $fileno, '$socket->fileno preserved after ->socket with free handle' );
H A D21as-inet.t29 is( $inet_client->fileno, $client->fileno, '->as_inet socket wraps the same fileno' );
H A D19no-addrs.t21 ok( defined $sock->fileno, '$sock->fileno for Family => AF_INET' );
38 ok( defined $sock->fileno, '$sock->fileno for Family => AF_INET6' );
51 ok( defined $sock->fileno, '$sock->fileno for Type => SOCK_STREAM' );
H A D31nonblocking-connect-internet.t37 ok( defined $socket->fileno, '$socket has fileno' );
43 vec( $wvec, fileno $socket, 1 ) = 1;
45 vec( $evec, fileno $socket, 1 ) = 1;
76 ok( defined $socket->fileno, '$socket has fileno' );
82 vec( $wvec, fileno $socket, 1 ) = 1;
84 vec( $evec, fileno $socket, 1 ) = 1;
H A D30nonblocking-connect.t43 ok( defined $socket->fileno, '$socket has a fileno immediately after construction' );
47 vec( $wvec, fileno $socket, 1 ) = 1;
49 vec( $evec, fileno $socket, 1 ) = 1;
/openbsd-current/gnu/usr.bin/perl/ext/GDBM_File/t/
H A Dfatal.t30 my $fileno = fileno $fh;
31 isnt($fileno, undef, "Can find next available file descriptor");
34 is((open $fh, "<&=$fileno"), undef,
35 "Check that we cannot open fileno $fileno. \$! is $!");
43 isnt((open $fh, "<&=$fileno"), undef, "dup fileno $fileno")
46 "close fileno
[all...]
/openbsd-current/gnu/usr.bin/perl/ext/FileCache/t/
H A D05override.t13 ok(!fileno($_));
H A D02maxopen.t18 ok(fileno($path) || $path =~ /^max_(?:foo|bar)$/);
19 next unless fileno($path);
/openbsd-current/games/hack/
H A Dhack.ioctl.c77 (void) tcgetattr(fileno(stdin), &termios);
83 (void) tcsetattr(fileno(stdin), TCSADRAIN, &termios);
/openbsd-current/gnu/usr.bin/perl/t/io/
H A Dperlio_leaks.t21 my $base_fd = do{ open my $in, '<', $0 or die $!; fileno $in };
30 is fileno($fh), $base_fd, $layer;
H A Ddup.t86 isnt(fileno(F), fileno(STDOUT));
90 is(fileno(F), fileno(STDIN));
94 is(fileno(F), fileno(STDOUT));
98 is(fileno(F), fileno(STDERR));
102 my $g = fileno(G);
105 is(fileno(
[all...]
H A Dsocketpair.t45 my $fda = fileno($a);
46 my $fdb = fileno($b);
/openbsd-current/gnu/usr.bin/perl/cpan/Test-Simple/t/Legacy/Builder/
H A Dreset.t64 $Test->is_eq( fileno $tb->output,
65 fileno $Original_Output{output}, 'output' );
66 $Test->is_eq( fileno $tb->failure_output,
67 fileno $Original_Output{failure_output}, 'failure_output' );
68 $Test->is_eq( fileno $tb->todo_output,
69 fileno $Original_Output{todo_output}, 'todo_output' );
/openbsd-current/lib/libcurses/base/
H A Dlib_initscr.c86 if (NC_ISATTY(fileno(stdout))) {
88 if (fp != 0 && NC_ISATTY(fileno(fp))) {
90 dup2(fileno(fp), STDOUT_FILENO);
/openbsd-current/gnu/usr.bin/perl/ext/Opcode/t/
H A Dops.t14 no ops 'fileno';
15 $a = fileno STDIN;
18 like($@, qr/trapped/, 'equiv to "perl -M-ops=fileno"');
/openbsd-current/usr.bin/rdistd/
H A Drdistd.c93 rem_r = fileno(stdin);
94 rem_w = fileno(stdout);
/openbsd-current/usr.bin/ssh/
H A Dsshtty.c59 if (tcsetattr(fileno(stdin), TCSADRAIN, &_saved_tio) == -1) {
71 if (tcgetattr(fileno(stdin), &tio) == -1) {
89 if (tcsetattr(fileno(stdin), TCSADRAIN, &tio) == -1) {
/openbsd-current/gnu/usr.bin/perl/ext/POSIX/t/
H A Dtermios.t41 my $fileno = fileno $handle;
42 my $r = eval { $t->getattr($fileno) };
43 is($@, '', "calling getattr($fileno) for $name");
72 is($termios->setattr(fileno $not_a_tty), undef,
82 is($termios->setattr(fileno $not_a_tty, TCSANOW), undef,
172 is(tcdrain(fileno $not_a_tty), undef, 'tcdrain on a non tty should fail');
181 is(tcflow(fileno $not_a_tty, TCOON), undef, 'tcflow on a non tty should fail');
190 is(tcflush(fileno $not_a_tty, TCOFLUSH), undef,
200 is(tcsendbreak(fileno
[all...]
/openbsd-current/gnu/usr.bin/perl/cpan/Scalar-List-Utils/t/
H A Dopenhan.t15 is(fileno(openhandle(*STDERR)), fileno(STDERR), 'fileno(STDERR)');
49 my $fh = IO::Handle->new_from_fd(fileno(*STDERR), 'w');
50 skip "new_from_fd(fileno(*STDERR)) failed", 2 unless $fh;
/openbsd-current/gnu/lib/libreadline/examples/
H A Dexcallback.c122 FD_SET(fileno(stdin), &fds);
124 if( select(fileno(stdin) + 1, &fds, NULL, NULL, NULL) < 0) {
129 if( FD_ISSET(fileno(stdin), &fds) ) {
/openbsd-current/gnu/llvm/compiler-rt/lib/fuzzer/
H A DFuzzerUtilLinux.cpp39 dup2(fileno(Temp), Fd);

Completed in 354 milliseconds

1234567891011>>