Josh Megnauth
728fb55203
Add %m to printf & fix CI
...
%m is a format specifier that prints an error string for errno. The
specifier is technically only for syslog, but musl and glibc implement
it for printf itself. Parsing for a single specifier in a single
function is error prone, especially when syslog itself is variadic.
2025-08-06 02:38:47 -04:00
Jeremy Soller
4a805ea97c
Add some compatibility defines for libssh
2025-08-04 19:54:45 -06:00
Ron Williams
b7589a63c5
Fixes to improve signals for openposixtestsuite
2025-08-04 07:37:14 -06:00
Jeremy Soller
1105a2092f
Merge branch 'syslog-expand-features' into 'master'
...
Better priorities & LOG_UPTO for syslog.h
See merge request redox-os/relibc!679
2025-08-02 06:52:35 -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
Jeremy Soller
1694cd3a4d
fix redox stat st_blocks
2025-08-01 12:44:10 -06:00
Jeremy Soller
6dd10a1f11
Fix connect on redox
2025-08-01 10:33:55 -06: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
Josh Megnauth
57c46f4dd8
Backport count_bytes and is_empty for CStr
2025-07-21 23:47:50 -04:00
Jeremy Soller
6babec246d
Merge branch 'fix-gocgo' into 'master'
...
Update pthread_attr_getstacksize to fix Go CGO
See merge request redox-os/relibc!676
2025-07-21 07:54:37 -06:00
Wildan Mubarok
0af7d7fdb5
Revert gid_t/uid_t
2025-07-21 00:22:38 +00:00
Wildan Mubarok
2c4bd8d061
Fix grp.h and gid_t/uid_t for Go
2025-07-21 00:15:02 +00:00
Wildan Mubarok
b23ac06a01
Update pthread_attr_getstacksize to fix Go CGO
2025-07-20 17:01:47 +00:00
Ibuki.O
b86f8a36fa
feat: Add redox_get_socket_token_v0 as a symbol for libredox.
2025-07-19 13:31:44 +09:00
Ibuki Omatsu
d44010170f
feat: Integrate UDS bind and connect operation with RedoxFS and switch get_proc_credentials to a capability-based approach.
2025-07-18 08:57:49 -06:00
Jeremy Soller
eb2d61fdff
Merge branch 'impl_syslog' into 'master'
...
Implement syslog functionality
See merge request redox-os/relibc!626
2025-07-17 22:49:51 -06:00
Bendeguz Pisch
4fc80ea7b0
Implement syslog functionality
2025-07-17 22:49:51 -06:00
Jeremy Soller
46c2f99919
Merge branch 'unix-domain-socket' into 'master'
...
feat: Implement Unix Domain Socket and related features.
See merge request redox-os/relibc!662
2025-07-17 22:48:37 -06:00
Ibuki Omatsu
206239f9a2
feat: Implement Unix Domain Socket and related features.
2025-07-17 22:48:37 -06:00
Ron Williams
770dc71816
Fix CI, Add signal.h constants
2025-07-11 20:28:45 -06:00
Jeremy Soller
b68ff56115
Revert "Merge branch 'use-redox-path-in-cwd' into 'master'"
...
This reverts merge request !669
2025-07-11 06:28:48 -06:00
Jeremy Soller
e86bbb0856
Merge branch 'strerror-exact-buf-size' into 'master'
...
Const calculate buffer size for strerror
See merge request redox-os/relibc!648
2025-07-10 14:16:56 -06:00
Josh Megnauth
1d5179eb71
Const calculate buffer size for strerror
...
The current buffer size is hard set to 256. Using const evaluation, the
maximum buf size can be calculated at compile time.
2025-07-10 03:18:17 +00:00
Josh Megnauth
db6097733c
Use redox_path in canonicalize_using_cwd_internal
...
`redox_path` handles most of the logic anyway.
2025-07-09 22:30:51 -04:00
Jeremy Soller
5673575354
Revert "Merge branch 'rustifying' into 'master'"
...
This reverts merge request !663
2025-07-06 12:54:39 -06:00
Jeremy Soller
84bbf90ce1
Fix ___tls_get_addr on x86
2025-07-03 10:52:46 -06:00
bjorn3
585cd80002
Expose sys_call through libredox
...
This makes it significantly easier to use outside of crates that already
depend on redox-rt, making it actually useful to many schemes.
2025-06-30 20:17:26 +02:00
David DA SILVA
7fd3a8d698
Rustify some functions (following TODO)
2025-06-25 08:39:01 -06:00
James Matlik
19de978799
Fix issue with rename to relative destination
2025-06-12 08:56:21 -04:00
Jeremy Soller
be49c1936a
Make x86_64 mcontext not opaque
2025-05-13 10:05:32 -06:00
Jeremy Soller
ac3eb38c0d
Include bits/sys/ioctl.h in sys/ioctl.h
2025-05-13 08:13:49 -06:00
Jeremy Soller
0bd38ac2ad
Fix DTPMOD relocation
2025-05-09 10:06:06 -06:00
Jeremy Soller
b887ad1ce6
Fix DTPOFF relocation
2025-05-07 21:04:31 -06:00
Jeremy Soller
0b1133a965
ld_so: do relocations before TLS
2025-05-07 16:27:00 -06:00
Jeremy Soller
4daade9721
log where unresolved symbol was required
2025-05-07 10:38:21 -06:00
Jeremy Soller
b2a6f00429
Use u64 for relibc internal fd set definition, does not affect C definition
2025-05-07 09:25:15 -06:00
Jeremy Soller
2b06118d5f
Fix deadlock when logging scopes
2025-05-06 21:50:38 -06:00
Jeremy Soller
a31584cdef
Fix dangling pointer with empty scandir
2025-05-06 21:28:05 -06:00
Jeremy Soller
78bab94ee0
Add end of dynamic library mapping to debug messages
2025-05-06 20:45:39 -06:00
Jeremy Soller
d194554fdc
Temporarily use insertion sort for qsort
2025-05-06 13:52:35 -06:00
Jeremy Soller
38cca8acc0
Fix select macros
2025-05-06 11:34:48 -06:00
Jeremy Soller
70d6a11606
openpty: terminate path with NUL
2025-05-06 09:28:58 -06:00
Jeremy Soller
1e48b13948
Debug recvmsg on redox
2025-05-04 09:32:10 -06:00
Jeremy Soller
275b92ee92
Make setitimer return enosys instead of panic on redox
2025-05-04 08:32:25 -06:00
Jeremy Soller
bb105d41ad
scanf: fix parsing 0 when using %i
2025-05-03 21:15:58 -06:00
Jeremy Soller
f8da7399d8
Use crates.io posix-regex and support extended regex
2025-05-03 16:31:04 -06:00
Jeremy Soller
0f3f6f3c15
Use flink to implement link on redox
2025-05-03 12:18:45 -06:00
Jeremy Soller
bce8eac3c7
Move CMSG functions to C macros
2025-05-03 11:21:27 -06:00
Jeremy Soller
a1db57a5a3
Get main function in crt0 to fix dynamic linking issues
2025-05-03 11:20:20 -06:00
Josh Megnauth
f85b33c3ed
Handle unwraps in get_dns_server()
2025-05-02 23:01:12 -04:00