5 #include <sys/socket.h>
6 #include <netinet/in.h>
8 #include <net/gen/in.h>
9 #include <net/gen/tcp.h>
10 #include <net/gen/tcp_io.h>
11 #include <net/gen/udp.h>
12 #include <net/gen/udp_io.h>
16 int listen(int socket
, int backlog
)
20 r
= ioctl(socket
, NWIOTCPLISTENQ
, &backlog
);
21 if (r
!= -1 || errno
!= EBADIOCTL
)
25 fprintf(stderr
, "listen: not implemented for fd %d\n", socket
);