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

#include <skalibs/bsdsnowflake.h>
#include <errno.h>
#include <skalibs/error.h>

int error_isalready (int e)
{
  return e == EALREADY || e == EINPROGRESS
#ifdef SKALIBS_BSD_SUCKS
   || e == ADDRINUSE
#endif
  ;
}