move errno bits from C to cbindgen

This commit is contained in:
auronandace
2026-03-29 07:44:55 +01:00
parent a78c1f5cfd
commit 80db4127fd
2 changed files with 6 additions and 17 deletions
-16
View File
@@ -1,16 +0,0 @@
#ifndef _BITS_ERRNO_H
#define _BITS_ERRNO_H
#ifdef __cplusplus
extern "C" {
#endif
#define errno (*__errno_location())
#define program_invocation_name (*__program_invocation_name())
#define program_invocation_short_name (*__program_invocation_short_name())
#ifdef __cplusplus
} // extern "C"
#endif
#endif /* _BITS_ERRNO_H */
+6 -1
View File
@@ -1,7 +1,12 @@
# POSIX header spec: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/errno.h.html
#
# There are no spec quotations relating to includes
sys_includes = ["bits/errno.h"]
sys_includes = []
after_includes = """
#define errno (*__errno_location())
#define program_invocation_name (*__program_invocation_name())
#define program_invocation_short_name (*__program_invocation_short_name())
"""
include_guard = "_RELIBC_ERRNO_H"
language = "C"
style = "Tag"