From d072adfbe40e15715e2065f1900f8d5a76491c5f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 20 Oct 2022 21:34:20 -0400 Subject: Hide errno utility functions --- include/zix/common.h | 10 ---------- include/zix/sem.h | 2 -- 2 files changed, 12 deletions(-) (limited to 'include') diff --git a/include/zix/common.h b/include/zix/common.h index df49afe..788fdaa 100644 --- a/include/zix/common.h +++ b/include/zix/common.h @@ -38,16 +38,6 @@ ZIX_CONST_API const char* zix_strerror(ZixStatus status); -/// Return an errno value converted to a status code -ZIX_CONST_API -ZixStatus -zix_errno_status(int e); - -/// Return success if `r` is non-zero, or `errno` as a status code otherwise -ZIX_PURE_API -ZixStatus -zix_errno_status_if(int r); - /// Function for comparing two elements typedef int (*ZixComparator)(const void* a, const void* b, diff --git a/include/zix/sem.h b/include/zix/sem.h index e7db792..25088bf 100644 --- a/include/zix/sem.h +++ b/include/zix/sem.h @@ -19,9 +19,7 @@ extern "C" { #endif -#include #include -#include /** @defgroup zix_sem Semaphore -- cgit v1.2.1