Merge branch 'unistd-bits' into 'master'

move unistd bits to cbindgen

See merge request redox-os/relibc!1156
This commit is contained in:
Jeremy Soller
2026-04-03 07:00:35 -06:00
2 changed files with 14 additions and 20 deletions
-19
View File
@@ -1,19 +0,0 @@
#ifndef _BITS_UNISTD_H
#define _BITS_UNISTD_H
#define _POSIX_VERSION 200809L
#define _POSIX_BARRIERS 202405L
#define _POSIX_MONOTONIC_CLOCK 200112L
#define _POSIX_REALTIME_SIGNALS 202405L
#define _POSIX_SEMAPHORES 200112L
#define _POSIX_SHELL 1
#define _POSIX_SHARED_MEMORY_OBJECTS 200112L
#define _POSIX_THREADS 202405L
#define _POSIX_THREAD_ATTR_STACKADDR 202405L
#define _POSIX_THREAD_ATTR_STACKSIZE 202405L
#define _POSIX_TIMEOUTS 202405L
#define _POSIX_TIMERS 202405L
#define _XOPEN_SHM 1
#define _XOPEN_VERSION 700L
#endif
+14 -1
View File
@@ -1,7 +1,20 @@
sys_includes = ["stddef.h", "stdint.h", "sys/types.h", "features.h"]
include_guard = "_RELIBC_UNISTD_H"
trailer = """
#include <bits/unistd.h>
#define _POSIX_VERSION 200809L
#define _POSIX_BARRIERS 202405L
#define _POSIX_MONOTONIC_CLOCK 200112L
#define _POSIX_REALTIME_SIGNALS 202405L
#define _POSIX_SEMAPHORES 200112L
#define _POSIX_SHELL 1
#define _POSIX_SHARED_MEMORY_OBJECTS 200112L
#define _POSIX_THREADS 202405L
#define _POSIX_THREAD_ATTR_STACKADDR 202405L
#define _POSIX_THREAD_ATTR_STACKSIZE 202405L
#define _POSIX_TIMEOUTS 202405L
#define _POSIX_TIMERS 202405L
#define _XOPEN_SHM 1
#define _XOPEN_VERSION 700L
"""
language = "C"
style = "Tag"