From ff9333d473adb4ae1de2d9323394073793627823 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 19 Feb 2019 16:23:24 +0000 Subject: Add skalibs/posixishard.h This will break things. It's a known issue. Patches to other packages will come later, to adapt them to the new API. To work around brokenness, there needs to be *two* different headers: 1. one to be used before including system headers, that maximizes visibility by enabling system-dependent feature test macros (that will be tested by system headers) 2. one to be used after including system headers, that performs preprocessor tests and defines. skalibs/nonposix.h is the first one. Previously, there was no second one, and the tests were scattered all over. There was a strnlen declaration in skalibs/posixplz.h (which serves a totally different function: declaring things that should be in POSIX, but *are not*, i.e. working around problems in the standard, instead of problems in systems failing to respect the standard), a build-time sysdep for error.h, #defines for MSG_NOSIGNAL, etc. etc. skalibs/posixishard.h now is the second one, and centralizes all the tests. As a result, the eproto sysdep is unnecessary and has been removed. skalibs/error.h is now a static header, it is not built anymore. --- src/headers/error-addrinuse | 3 --- src/headers/error-already | 1 - src/headers/error-footer | 2 -- src/headers/error-header | 9 --------- src/headers/error-proto | 3 --- 5 files changed, 18 deletions(-) delete mode 100644 src/headers/error-addrinuse delete mode 100644 src/headers/error-already delete mode 100644 src/headers/error-footer delete mode 100644 src/headers/error-header delete mode 100644 src/headers/error-proto (limited to 'src/headers') diff --git a/src/headers/error-addrinuse b/src/headers/error-addrinuse deleted file mode 100644 index 6f1e4fe..0000000 --- a/src/headers/error-addrinuse +++ /dev/null @@ -1,3 +0,0 @@ - -/* BSD sucks */ -#define error_isalready(e) (((e) == EALREADY) || ((e) == EINPROGRESS) || ((e) == EADDRINUSE)) diff --git a/src/headers/error-already b/src/headers/error-already deleted file mode 100644 index ac6b8a7..0000000 --- a/src/headers/error-already +++ /dev/null @@ -1 +0,0 @@ -#define error_isalready(e) (((e) == EALREADY) || ((e) == EINPROGRESS)) diff --git a/src/headers/error-footer b/src/headers/error-footer deleted file mode 100644 index ddd5dae..0000000 --- a/src/headers/error-footer +++ /dev/null @@ -1,2 +0,0 @@ - -#endif diff --git a/src/headers/error-header b/src/headers/error-header deleted file mode 100644 index f9913e5..0000000 --- a/src/headers/error-header +++ /dev/null @@ -1,9 +0,0 @@ -/* ISC license. */ - -#ifndef ERROR_H -#define ERROR_H - -#include - -extern int error_temp (int) gccattr_const ; -#define error_isagain(e) (((e) == EAGAIN) || ((e) == EWOULDBLOCK)) diff --git a/src/headers/error-proto b/src/headers/error-proto deleted file mode 100644 index fd0c01d..0000000 --- a/src/headers/error-proto +++ /dev/null @@ -1,3 +0,0 @@ - -/* Did I ever mention that BSD sucks ? */ -#define EPROTO EPROTOTYPE -- cgit v1.2.3