/openbsd-current/gnu/usr.bin/perl/cpan/autodie/t/ |
H A D | fileno.t | 6 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 D | fileno.c | 1 /* $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 D | require_37033.t | 16 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 D | fh.t | 15 ok(!defined(fileno($a)), 'initial file handle is undefined');
|
/openbsd-current/gnu/usr.bin/perl/cpan/IO-Socket-IP/t/ |
H A D | 14fileno.t | 17 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 D | 21as-inet.t | 29 is( $inet_client->fileno, $client->fileno, '->as_inet socket wraps the same fileno' );
|
H A D | 19no-addrs.t | 21 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 D | 31nonblocking-connect-internet.t | 37 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 D | 30nonblocking-connect.t | 43 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 D | fatal.t | 30 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 D | 05override.t | 13 ok(!fileno($_));
|
H A D | 02maxopen.t | 18 ok(fileno($path) || $path =~ /^max_(?:foo|bar)$/); 19 next unless fileno($path);
|
/openbsd-current/games/hack/ |
H A D | hack.ioctl.c | 77 (void) tcgetattr(fileno(stdin), &termios); 83 (void) tcsetattr(fileno(stdin), TCSADRAIN, &termios);
|
/openbsd-current/gnu/usr.bin/perl/t/io/ |
H A D | perlio_leaks.t | 21 my $base_fd = do{ open my $in, '<', $0 or die $!; fileno $in }; 30 is fileno($fh), $base_fd, $layer;
|
H A D | dup.t | 86 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 D | socketpair.t | 45 my $fda = fileno($a); 46 my $fdb = fileno($b);
|
/openbsd-current/gnu/usr.bin/perl/cpan/Test-Simple/t/Legacy/Builder/ |
H A D | reset.t | 64 $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 D | lib_initscr.c | 86 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 D | ops.t | 14 no ops 'fileno'; 15 $a = fileno STDIN; 18 like($@, qr/trapped/, 'equiv to "perl -M-ops=fileno"');
|
/openbsd-current/usr.bin/rdistd/ |
H A D | rdistd.c | 93 rem_r = fileno(stdin); 94 rem_w = fileno(stdout);
|
/openbsd-current/usr.bin/ssh/ |
H A D | sshtty.c | 59 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 D | termios.t | 41 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 D | openhan.t | 15 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 D | excallback.c | 122 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 D | FuzzerUtilLinux.cpp | 39 dup2(fileno(Temp), Fd);
|