auronandace
17ff347332
move assert bits from C to cbindgen
2026-04-12 08:37:54 +01:00
auronandace
121ee8edb0
remove ucred from sys_socket bits
2026-04-09 09:59:24 +01:00
Jeremy Soller
19b0b44eb9
Merge branch 'elf-bits' into 'master'
...
move elf bits to cbindgen
See merge request redox-os/relibc!1157
2026-04-03 07:01:10 -06:00
auronandace
700cf642e5
move elf bits to cbindgen
2026-04-03 09:15:08 +01:00
auronandace
a0dd75a011
move unistd bits to cbindgen
2026-04-03 08:58:37 +01:00
Jeremy Soller
0630fa12f2
Merge branch 'stdio-bits' into 'master'
...
move stdio bits to cbindgen
See merge request redox-os/relibc!1145
2026-04-01 08:40:50 -06:00
auronandace
1764004b80
move stdio bits to cbindgen
2026-03-31 08:53:10 +01:00
auronandace
afd9cad0c3
move stdlib bits to cbindgen
2026-03-31 08:31:26 +01:00
auronandace
3b69b617a2
move wchar bits to cbindgen
2026-03-29 15:49:01 +01:00
Jeremy Soller
18e47cdf5a
Merge branch 'malloc-bits' into 'master'
...
move malloc bits to cbindgen
See merge request redox-os/relibc!1138
2026-03-29 07:10:14 -06:00
Jeremy Soller
078bfe81f1
Merge branch 'dirent-bits' into 'master'
...
move dirent bits to cbindgen
See merge request redox-os/relibc!1137
2026-03-29 07:09:58 -06:00
auronandace
d84c8bf8f3
move malloc bits to cbindgen
2026-03-29 08:40:37 +01:00
auronandace
42d555b043
move dirent bits to cbindgen
2026-03-29 08:10:13 +01:00
auronandace
80db4127fd
move errno bits from C to cbindgen
2026-03-29 07:44:55 +01:00
auronandace
306cd8b68f
move netdb bits to cbindgen
2026-03-28 17:44:18 +00:00
auronandace
254e81ef74
move sys_wait bits from C to cbindgen
2026-03-28 15:12:54 +00:00
auronandace
dbc6507c79
move sys_time bits from C to cbindgen
2026-03-28 14:57:11 +00:00
auronandace
516729bd83
move netinet_in bits to cbindgen
2026-03-28 08:15:24 +00:00
auronandace
71560ce9ca
move ctype bits from C to cbindgen
2026-03-27 08:07:18 +00:00
auronandace
bc5ee99856
move sys stat bits from C file to cbindgen
2026-03-26 13:58:09 +00:00
Jeremy Soller
8dec9f36ff
Merge branch 'sys-mman-bits' into 'master'
...
move sys mman bits to cbindgen
See merge request redox-os/relibc!1119
2026-03-26 06:30:51 -06:00
auronandace
db8021d4c8
move sys mman bits to cbindgen
2026-03-26 11:33:11 +00:00
auronandace
bdceda8665
move sys ioctl bits to cbindgen
2026-03-26 11:09:52 +00:00
auronandace
23996c4fd7
move sys select bits to cbindgen
2026-03-25 14:28:00 +00:00
auronandace
6f48e1c954
move sys resource bits file to cbindgen
2026-03-25 13:34:03 +00:00
auronandace
7ce47e0cad
remove empty C ptrace bits header
2026-03-25 12:26:24 +00:00
Wildan M
c119eba845
Define feature macros in unistd
2026-03-13 21:19:35 +07:00
Wildan M
8810e143ec
Fix blkcnt_t type
2026-02-24 07:47:35 +07:00
auronandace
4b3d1aa5ca
change sa_flags in sigaction to int to match spec
2026-02-19 09:46:56 +00:00
auronandace
e8118dc293
removed the C locale bits header
2026-02-11 15:38:42 +00:00
Wildan M
2c522c355f
Fix wchar_t redefinition in C++
2026-01-27 14:40:23 +07:00
Wildan M
632b3a9a4f
Fix SIZE_MAX for i586
2026-01-25 01:09:39 +07:00
Connor-GH
6356142c79
stdio.h: add std{in,out,err} macros; regex.h: add REG_MINIMAL macro
2026-01-23 09:41:19 -06:00
Wildan M
5476770359
Define max limits in rust
2026-01-17 18:17:35 +07:00
Jeremy Soller
375061a69c
Add sys/sysmacros.h from musl (fixes last commit)
2026-01-16 12:47:06 -07:00
Jeremy Soller
03c370d7f3
Fix dev_t type and add sys/sysmacros.h include from musl
2026-01-16 12:42:58 -07:00
Jeremy Soller
b833e44293
Revert "Remove bits/stdlib"
...
This reverts commit 8867ba80df .
2026-01-15 18:40:23 -07:00
Pascal Reich
08f93dfbdc
add mathematical constants
2026-01-12 12:38:28 -07:00
Wildan M
8867ba80df
Remove bits/stdlib
2025-12-28 19:43:54 +07:00
Jeremy Soller
b1c9847b97
Include sys/stat.h and unistd.h in fcntl.h, remove bits/fcntl.h
2025-12-19 13:01:45 -07:00
Jeremy Soller
549cae066f
Add sys/queue.h from NetBSD like Alpine Linux does
2025-11-20 09:37:09 -07:00
Wildan M
1712290deb
Define posix_dent for posix_getdents
2025-10-12 20:25:37 +07:00
Andrzej J. Skalski
42493b88eb
fixing bindgen c++ [[noreturn]] issue.
2025-08-30 11:30:34 -06:00
Jeremy Soller
fd9a1c9668
Workaround clang issue with [[noreturn]] in C files
2025-08-24 18:30:13 -06:00
Josh Megnauth
70ae45ff85
Improve sysconf.h on Linux
...
I copied the constants and definitions from musl which we can presume is
correct. Relibc is missing some features which affects our sysconf as
well, such as constants in limits.h or a working resources.h.
2025-08-20 02:05:05 -04:00
Jeremy Soller
f170902a29
Add u_int types for compatibility
2025-08-13 09:36:26 -06:00
Josh Megnauth
cfe00d3316
Add paths.h for Fish
...
Fish only requires BSHELL. The constants are implementation specific so
this header will evolve as needed.
Cbindgen doesn't emit defines for strings (even CStrs) so I only
provided what's needed for Fish in a C header for now with the ideal
implementation, in Rust, unbuilt.
2025-08-09 01:16:12 -04:00
Ron Williams
b7589a63c5
Fixes to improve signals for openposixtestsuite
2025-08-04 07:37:14 -06:00
Josh Megnauth
e677ad55d5
Better priorities & LOG_UPTO for syslog.h
...
* Fix PERROR to match musl/glibc better
* More unit tests + enabled on Linux
* Pack priority and facility into one i32 and check the bits with
bitflags
* Add LOG_UPTO (logic is straight from musl)
Not done:
* "%m" - this could just be added to printf
* LOG_CONS
2025-08-01 23:45:26 -04:00
Josh Megnauth
64d9847e37
Linux support for syslog.h
...
Linux's syslog is a local socket, so this uses the recent UDS work.
* Most of redox.rs is refactored into mod.rs now which has all of the C
facing functions and consts.
* I wrapped the global logger in a Mutex instead of a RwLock. The logger
is almost always locked for writing so a Mutex is simpler as RwLock
provides no benefits.
* I implemented LOG_PERROR which also prints errors to stderr as well as
the log.
* Syslog should be sys/syslog.h with syslog.h as an alias (the
original code only had syslog.h).
2025-07-24 21:46:49 -04:00