blob: 52e00c78c1063d46a91d2686df73f938a07beaeb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/* ISC license. */
#include <skalibs/nonposix.h>
#include <errno.h>
#include <sys/socket.h>
#include <skalibs/djbunix.h>
void fd_shutdown (int fd, int h)
{
int e = errno ;
shutdown(fd, h ? SHUT_WR : SHUT_RD) ;
errno = e ;
}
|