skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

fd_close.c (162B)


      1 /* ISC license. */
      2 
      3 #include <errno.h>
      4 #include <unistd.h>
      5 #include <skalibs/djbunix.h>
      6 
      7 void fd_close (int fd)
      8 {
      9   int e = errno ;
     10   close(fd) ;
     11   errno = e ;
     12 }