Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
toybox
/
7dfee8efa743c7dffc3803109a143a4d6333556f
/
.
/
lib
/
net.c
blob: c12eff437df1f1c341685e39dc84209f1692c6c5 [
file
] [
log
] [
blame
]
#include
"toys.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
;
}