summaryrefslogtreecommitdiff
path: root/src/libstddjb/error_isalready.c
blob: 005cff264c0fdc6c223f7d76a6b0d6348e230754 (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 == EADDRINUSE
#endif
  ;
}