From 5fadc0cbb8577c61d66bd6f19ceaf0507c11e23b Mon Sep 17 00:00:00 2001 From: Jannis Hoffmann Date: Tue, 9 Jul 2024 14:41:53 +0200 Subject: initial clang-format --- include/error.h | 70 ++++++++++++++++++++++++++++----------------------------- 1 file changed, 35 insertions(+), 35 deletions(-) (limited to 'include/error.h') diff --git a/include/error.h b/include/error.h index 7685c9e..63132ff 100644 --- a/include/error.h +++ b/include/error.h @@ -3,8 +3,8 @@ #include -#ifndef EPROTO /* OpenBSD compat */ -#define EPROTO EINTR +#ifndef EPROTO /* OpenBSD compat */ + #define EPROTO EINTR #endif #define error_str(i) errstr(i) @@ -16,42 +16,42 @@ extern char *error_str(int); */ /* djb backwards compatibility - deprecated form of system errors */ - /* Comparison of error codes and constants: +/* Comparison of error codes and constants: intern Linux FreeBSD OmniOS */ -#define error_intr EINTR /* -1 4 4 4 */ -#define error_nomem ENOMEM /* -2 12 12 12 */ -#define error_noent ENOENT /* -3 2 2 2 */ -#define error_txtbsy ETXTBSY /* -4 26 26 26 */ -#define error_io EIO /* -5 5 5 5 */ -#define error_exist EEXIST /* -6 17 17 17 */ -#define error_timeout ETIMEDOUT /* -7 110 60 145 */ -#define error_inprogress EINPROGRESS /* -8 115 36 160 */ -#define error_wouldblock EWOULDBLOCK /* -9 EAGAIN EAGAIN EAGAIN */ -#define error_again EAGAIN /* -10 11 35 11 */ -#define error_pipe EPIPE /* -11 32 32 32 */ -#define error_perm EPERM /* -12 1 1 1 */ -#define error_acces EACCES /* -13 13 13 13 */ -#define error_nodevice ENODEV /* -14 (6) (6) 19 */ -#define error_proto EPROTO /* -15 71 92 71 */ -#define error_isdir EISDIR /* -16 21 21 21 */ -#define error_connrefused ECONNREFUSED /* -17 111 61 146 */ +#define error_intr EINTR /* -1 4 4 4 */ +#define error_nomem ENOMEM /* -2 12 12 12 */ +#define error_noent ENOENT /* -3 2 2 2 */ +#define error_txtbsy ETXTBSY /* -4 26 26 26 */ +#define error_io EIO /* -5 5 5 5 */ +#define error_exist EEXIST /* -6 17 17 17 */ +#define error_timeout ETIMEDOUT /* -7 110 60 145 */ +#define error_inprogress EINPROGRESS /* -8 115 36 160 */ +#define error_wouldblock EWOULDBLOCK /* -9 EAGAIN EAGAIN EAGAIN */ +#define error_again EAGAIN /* -10 11 35 11 */ +#define error_pipe EPIPE /* -11 32 32 32 */ +#define error_perm EPERM /* -12 1 1 1 */ +#define error_acces EACCES /* -13 13 13 13 */ +#define error_nodevice ENODEV /* -14 (6) (6) 19 */ +#define error_proto EPROTO /* -15 71 92 71 */ +#define error_isdir EISDIR /* -16 21 21 21 */ +#define error_connrefused ECONNREFUSED /* -17 111 61 146 */ //extern int error_notdir; /* -18 20 20 20 */ -#define error_rofs EROFS /* -19 30 30 30 */ -#define error_connreset ECONNRESET /* -20 104 54 131 */ +#define error_rofs EROFS /* -19 30 30 30 */ +#define error_connreset ECONNRESET /* -20 104 54 131 */ /* djb uses some internal application error and class definitions -- revised (feh) */ -#define CAT -10 /* raw message w/o terminating \n */ -#define LOG -90 /* generic logging */ -#define INFO -91 /* named logging */ -#define TEMP -97 /* (triggered) temporay alert condition */ -#define ALERT -98 /* (triggered) alert condition */ -#define WARN -99 /* exception condition */ -#define ESOFT -100 /* soft error, reversed negative */ -#define EHARD -111 /* hard error, reversed negative */ -#define USAGE 100 /* usage error on call -- explicit usage() */ -#define SYNTAX 101 /* usage/syntax error on call -- explicit syntaxerror() */ -#define DROP 110 /* connection dropped -- explicit dropped() */ -#define FATAL 111 /* internal error -- all */ -#define ERROR 112 /* application error */ +#define CAT -10 /* raw message w/o terminating \n */ +#define LOG -90 /* generic logging */ +#define INFO -91 /* named logging */ +#define TEMP -97 /* (triggered) temporay alert condition */ +#define ALERT -98 /* (triggered) alert condition */ +#define WARN -99 /* exception condition */ +#define ESOFT -100 /* soft error, reversed negative */ +#define EHARD -111 /* hard error, reversed negative */ +#define USAGE 100 /* usage error on call -- explicit usage() */ +#define SYNTAX 101 /* usage/syntax error on call -- explicit syntaxerror() */ +#define DROP 110 /* connection dropped -- explicit dropped() */ +#define FATAL 111 /* internal error -- all */ +#define ERROR 112 /* application error */ #endif -- cgit v1.2.3