skalibs

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

error_isalready.c (234B)


      1 /* ISC license. */
      2 
      3 #include <skalibs/bsdsnowflake.h>
      4 #include <errno.h>
      5 #include <skalibs/error.h>
      6 
      7 int error_isalready (int e)
      8 {
      9   return e == EALREADY || e == EINPROGRESS
     10 #ifdef SKALIBS_BSD_SUCKS
     11    || e == EADDRINUSE
     12 #endif
     13   ;
     14 }