summaryrefslogtreecommitdiff
path: root/src/libstddjb/fd_close.c
blob: dad65181e063a91fb71780146aa57d081ac90d8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* ISC license. */

#include <errno.h>
#include <unistd.h>
#include <skalibs/djbunix.h>

void fd_close (int fd)
{
  int e = errno ;
  close(fd) ;
  errno = e ;
}