summaryrefslogtreecommitdiff
path: root/src/headers/error-header
blob: af294e2c8200a556197bd651d5b2f4a9d343f3c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* ISC license. */

#ifndef ERROR_H
#define ERROR_H

#include <errno.h>
#include <string.h>
#include <skalibs/gccattributes.h>

#define error_str(e) ((char const *)strerror(e))
extern int error_temp (int) gccattr_const ;
#define error_isagain(e) (((e) == EAGAIN) || ((e) == EWOULDBLOCK))