Merge branch 'errno-bits' into 'master'

move errno bits from C to cbindgen

See merge request redox-os/relibc!1136
This commit is contained in:
Jeremy Soller
2026-03-29 07:09:41 -06:00
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"