Commit Graph

2905 Commits

Author SHA1 Message Date
Wildan M c7405e09bd Add statvfs tests to Makefile 2025-08-07 07:35:40 +07:00
Wildan M 0248aab7d4 Add basic test for statvfs 2025-08-07 07:19:56 +07:00
Jeremy Soller 710911febb Merge branch 'fix-syslog-tests' into 'master'
Move syslog tests to the correct location

See merge request redox-os/relibc!681
2025-08-04 20:35:27 -06:00
Josh Megnauth 292a4b18a9 Move syslog tests to correct location 2025-08-04 22:20:17 -04:00
Jeremy Soller 4a805ea97c Add some compatibility defines for libssh 2025-08-04 19:54:45 -06:00
Jeremy Soller 311d5621b8 Merge branch 'signals-stuff' into 'master'
Fixes to improve signals for openposixtestsuite

See merge request redox-os/relibc!680
2025-08-04 07:37:14 -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
Jeremy Soller 4f9267be59 Merge branch 'syslog-add-linux' into 'master'
Linux support for syslog.h

See merge request redox-os/relibc!675
2025-07-26 06:56:50 -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
Jeremy Soller 9e1ff3185e Merge branch 'backport-cstr-fns' into 'master'
Backport count_bytes and is_empty for CStr

See merge request redox-os/relibc!678
2025-07-22 06:42:12 -06: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
Jeremy Soller 2e92f987a9 Merge branch 'grp-header' into 'master'
Fix grp.h headers for Go

See merge request redox-os/relibc!677
2025-07-21 07:53:33 -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
Jeremy Soller 648d3be78e Merge branch 'get_socket_token' into 'master'
feat: Add redox_get_socket_token_v0 as a symbol for libredox.

See merge request redox-os/relibc!674
2025-07-19 07:36:21 -06:00
Ibuki.O b86f8a36fa feat: Add redox_get_socket_token_v0 as a symbol for libredox. 2025-07-19 13:31:44 +09:00
4lDO2 518798f64e Return EINVAL when killing with sig > 64. 2025-07-18 21:50:01 +02:00
4lDO2 40b8064eae Fix raise signal number being -32. 2025-07-18 20:35:33 +02:00
Jeremy Soller 2672e2aa43 Merge branch 'bind-connect-redoxfs' into 'master'
feat: Integrate UDS bind and connect operation with RedoxFS and switch get_proc_credentials to a capability-based approach.

See merge request redox-os/relibc!665
2025-07-18 08:57:49 -06: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
Jeremy Soller f6528d27dd Merge branch 'add-disabled-rename-symlink-test' into 'master'
Add disabled test for rename symlink bug

See merge request redox-os/relibc!673
2025-07-13 06:44:52 -06:00
Josh Megnauth c7da3c2c6b Add disabled test for rename symlink bug
This test should rename disabled until redox-os/relibc#212 is fixed. The
test works on Linux so it should work on Redox eventually too.

The issue is non-trivial because it involves a syscall, frename, that
may need to be redesigned. frename requires a file descriptor, but
opening a file resolves links which in turn fails with broken symlinks.
2025-07-12 21:33:33 -04:00
Jeremy Soller 1b61d1ba17 Merge branch 'ci-fixes' into 'master'
Fix CI, Add signal.h constants

See merge request redox-os/relibc!672
2025-07-11 20:28:45 -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
Jeremy Soller 8cd1b7e797 Merge branch 'use-redox-path-in-cwd' into 'master'
Use redox_path in canonicalize_using_cwd_internal

See merge request redox-os/relibc!669
2025-07-10 14:16:32 -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 baef620c7a Merge branch 'revert-74ebfb25' into 'master'
Revert "Merge branch 'rustifying' into 'master'"

See merge request redox-os/relibc!667
2025-07-06 12:55:10 -06: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 84d4100845 Merge branch 'sccache-opt' into 'master'
Add CC_WRAPPER support

See merge request redox-os/relibc!666
2025-07-04 19:53:50 -06:00
Wildan Mubarok 7a4a32e52b Add CC_WRAPPER support 2025-07-04 19:53:50 -06:00
Jeremy Soller 84bbf90ce1 Fix ___tls_get_addr on x86 2025-07-03 10:52:46 -06:00
Jeremy Soller 1550bb54b5 Merge branch 'expose_sys_call_through_libredox' into 'master'
Expose sys_call through libredox

See merge request redox-os/relibc!664
2025-06-30 14:14:55 -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
Jeremy Soller 74ebfb256d Merge branch 'rustifying' into 'master'
Rustify some functions (following TODO)

See merge request redox-os/relibc!663
2025-06-25 08:39:01 -06:00
David DA SILVA 7fd3a8d698 Rustify some functions (following TODO) 2025-06-25 08:39:01 -06:00
Jeremy Soller 63418095e5 Merge branch 'update-syscall' into 'master'
Update redox_syscall

See merge request redox-os/relibc!660
2025-06-12 12:23:29 -06:00
Jeremy Soller fa5d8204df Merge branch 'Fix-relative-path-mv' into 'master'
Fix issue with rename to relative destination

See merge request redox-os/relibc!659
2025-06-12 10:58:26 -06:00