Home
last modified time | relevance | path

Searched refs:socketpair (Results 1 – 25 of 168) sorted by relevance

1234567

/openbsd/regress/sys/kern/signal/sigio/
H A Dsigio_socket.c35 assert(socketpair(AF_UNIX, SOCK_STREAM, 0, fds) == 0); in test_socket_badpgid()
44 assert(socketpair(AF_UNIX, SOCK_STREAM, 0, fds) == 0); in test_socket_badsession()
53 assert(socketpair(AF_UNIX, SOCK_STREAM, 0, fds) == 0); in test_socket_cansigio()
62 assert(socketpair(AF_UNIX, SOCK_STREAM, 0, fds) == 0); in test_socket_getown()
133 assert(socketpair(AF_UNIX, SOCK_STREAM, 0, fds) == 0); in test_socket_read()
142 assert(socketpair(AF_UNIX, SOCK_STREAM, 0, fds) == 0); in test_socket_write()
H A Dutil.c109 assert(socketpair(AF_UNIX, SOCK_STREAM, 0, fds) == 0); in test_fork()
/openbsd/gnu/usr.bin/perl/t/io/
H A Dsocketpair.t24 socketpair(my $a, my $b, PF_UNIX, SOCK_STREAM, 0)
32 ok socketpair($a, $b, PF_UNIX, SOCK_STREAM, 0), "create socket pair";
44 socketpair($a, $b, PF_UNIX, SOCK_STREAM, 0) or die "socketpair: $!";
/openbsd/usr.sbin/acme-client/
H A Dmain.c191 if (socketpair(AF_UNIX, SOCK_STREAM, 0, key_fds) == -1) in main()
193 if (socketpair(AF_UNIX, SOCK_STREAM, 0, acct_fds) == -1) in main()
195 if (socketpair(AF_UNIX, SOCK_STREAM, 0, chng_fds) == -1) in main()
197 if (socketpair(AF_UNIX, SOCK_STREAM, 0, cert_fds) == -1) in main()
199 if (socketpair(AF_UNIX, SOCK_STREAM, 0, file_fds) == -1) in main()
201 if (socketpair(AF_UNIX, SOCK_STREAM, 0, dns_fds) == -1) in main()
203 if (socketpair(AF_UNIX, SOCK_STREAM, 0, rvk_fds) == -1) in main()
/openbsd/regress/sys/kern/poll/
H A Dpoll_close.c79 if (socketpair(AF_UNIX, SOCK_STREAM, 0, barrier) == -1) in main()
82 if (socketpair(AF_UNIX, SOCK_STREAM, 0, sock) == -1) in main()
/openbsd/regress/sys/kern/select/
H A Dselect_close.c78 if (socketpair(AF_UNIX, SOCK_STREAM, 0, barrier) == -1) in main()
81 if (socketpair(AF_UNIX, SOCK_STREAM, 0, sock) == -1) in main()
/openbsd/gnu/usr.bin/perl/cpan/Socket/t/
H A Dsocketpair.t73 eval {socketpair $lefth, $righth, -1, -1, -1};
98 ok (socketpair ($lefth, $righth, AF_UNIX, SOCK_STREAM, PF_UNSPEC),
188 my $success = socketpair my $lefth, my $righth, AF_UNIX, SOCK_DGRAM, PF_UNSPEC;
/openbsd/gnu/usr.bin/perl/t/lib/feature/
H A Dbareword_filehandles44 socketpair
96 socketpair S1, S2, AF_UNIX, SOCK_STREAM, PF_UNSPEC;
117 socketpair S3, S4, AF_UNIX, SOCK_STREAM, PF_UNSPEC;
425 # NAME socketpair
427 socketpair IN, $fh, 0, 0, 0;
428 socketpair $fh, OUT, 0, 0, 0;
429 socketpair IN, OUT, 0, 0, 0;
431 socketpair IN, $fh, 0, 0, 0;
432 socketpair $fh, OUT, 0, 0, 0;
433 socketpair IN, OUT, 0, 0, 0;
/openbsd/regress/sys/kern/unixsockets/
H A Dungc.c55 if (socketpair(AF_UNIX, SOCK_STREAM|O_NONBLOCK, 0, sp) < 0) in main()
108 if (socketpair(AF_UNIX, SOCK_STREAM|O_NONBLOCK, 0, sl) < 0) in main()
H A Dunsopassgc.c211 if (socketpair(AF_UNIX, SOCK_DGRAM, 0, s) < 0) in thr_gc()
281 if (socketpair(AF_UNIX, SOCK_DGRAM, 0, thr_pass_args[i].s) < 0) in main()
H A Dunfdpassfail.c66 if (socketpair(AF_UNIX, SOCK_STREAM|O_NONBLOCK, 0, s) < 0) in main()
/openbsd/usr.sbin/dvmrpd/
H A Ddvmrpd.c190 if (socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC | SOCK_NONBLOCK, in main()
193 if (socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC | SOCK_NONBLOCK, in main()
196 if (socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC | SOCK_NONBLOCK, in main()
/openbsd/regress/usr.sbin/syslogd/
H A Dlogflush.c46 if (socketpair(AF_UNIX, SOCK_DGRAM, PF_UNSPEC, pair) == -1) in main()
/openbsd/lib/libc/hidden/sys/
H A Dsocket.h46 PROTO_NORMAL(socketpair);
/openbsd/regress/sys/kern/unp-write-closed/
H A Dunp-write-closed.c49 if (socketpair(AF_UNIX, SOCK_STREAM, 0, s) < 0) in main()
/openbsd/gnu/llvm/lldb/examples/interposing/darwin/fd_interposing/
H A DFDInterposing.cpp554 extern "C" int socketpair$__interposed__(int domain, int type, int protocol, in socketpair$__interposed__()
561 const int err = socketpair(domain, type, protocol, fds); in socketpair$__interposed__()
575 return socketpair(domain, type, protocol, fds); in socketpair$__interposed__()
926 DYLD_INTERPOSE(socketpair$__interposed__, socketpair);
/openbsd/lib/libevent/
H A Devutil.c49 return socketpair(family, type, protocol, fd); in evutil_socketpair()
/openbsd/usr.sbin/ripd/
H A Dripd.c198 if (socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC | SOCK_NONBLOCK, in main()
201 if (socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC | SOCK_NONBLOCK, in main()
204 if (socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC | SOCK_NONBLOCK, in main()
/openbsd/regress/sys/kern/kqueue/
H A Dkqueue-fdpass.c35 ASS(socketpair(PF_LOCAL, SOCK_STREAM, 0, pfd) == 0, in do_fdpass()
/openbsd/regress/sys/kern/pledge/filedescriptor/
H A Dpass.c41 if (socketpair(AF_UNIX, SOCK_DGRAM, 0, pair) == -1) in fdops()
/openbsd/regress/sys/kern/recvwait/
H A Dmcontrol-stream.c42 if (socketpair(AF_UNIX, SOCK_STREAM, 0, s) == -1) in main()
/openbsd/regress/lib/libc/sys/
H A Dt_socketpair.c69 ATF_REQUIRE(socketpair(AF_UNIX, SOCK_DGRAM | flags, 0, fd) == 0); in run()
/openbsd/gnu/usr.bin/binutils/gdb/
H A Dser-pipe.c65 if (socketpair (AF_UNIX, SOCK_STREAM, 0, pdes) < 0) in pipe_open()
/openbsd/usr.sbin/eigrpd/
H A Deigrpd.c214 if (socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC | SOCK_NONBLOCK, in main()
217 if (socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC | SOCK_NONBLOCK, in main()
548 if (socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC | SOCK_NONBLOCK, in main_imsg_send_ipc_sockets()
/openbsd/regress/lib/libc/fread/
H A Dfread.c86 if (socketpair(PF_UNIX, SOCK_STREAM, 0, sv) == -1) in dotest()

1234567