Sign in
zircon-guest
/
third_party
/
toybox
/
6b28341dfc933ccd631a4d1e0b5d055c39e96e8d
/
.
/
lib
/
net.c
blob: f4b264396df0c122ad320265981d2838318e5bb1 [
file
] [
log
] [
blame
]
#include
"toys.h"
#include
"toynet.h"
int
xsocket
(
int
domain
,
int
type
,
int
protocol
)
{
int
fd
=
socket
(
domain
,
type
,
protocol
);
if
(
fd
<
0
)
perror_exit
(
"socket %x %x"
,
type
,
protocol
);
return
fd
;
}