Move O_ constants to bits/open-flags.h for use by fcntl.h and stdlib.h

This commit is contained in:
Jeremy Soller
2026-06-10 08:41:29 -06:00
parent 50251287ce
commit a20662cc91
10 changed files with 117 additions and 90 deletions
+4 -1
View File
@@ -12,8 +12,11 @@
# stdint.h needed for unintptr_t for __stack_chk_guard
# sys/wait.h brings in signal.h which brings in features.h
# features required for deprecated and no return annotations
sys_includes = ["stddef.h", "sys/wait.h", "fcntl.h", "stdint.h"]
sys_includes = ["stddef.h", "sys/wait.h", "stdint.h"]
include_guard = "_RELIBC_STDLIB_H"
after_includes = """
#include <bits/open-flags.h> // for O_* constants, shared with fcntl.h
"""
trailer = """
#ifndef _RELIBC_STDLIB_EXTRA_H
#define _RELIBC_STDLIB_EXTRA_H