Commit Graph

23 Commits

Author SHA1 Message Date
auronandace 08a01d62d8 move IOV_MAX to limits header 2026-06-11 13:27:13 +01:00
auronandace 9ea36a0c6c verify POSIX header includes 2026-06-08 18:27:53 +01:00
Connor-GH 38737af78d pty: update libc functions for ptyd changes
Of note is that `unlockpt` is required, both by the standard, and our
implementation. This has been taken care of inside of `openpty`, which
is the only non-libc way we are acquiring ptys. Additionally, it has
been modified such that it is POSIX compliant, so any outside future
changes to ptyd will not affect it.

This is part of my ptyd changes (#100). This can be safely merged once
the changes from base/ and userutils/ are merged alongside it.
2026-06-03 19:41:38 -05:00
Wildan M aaf2e492cc Include ssize_t for limits.h 2026-05-18 17:11:40 +07:00
Connor-GH cf65eedbaf platform/redox: migrate more functions to use their *at variants
Additionally, this adds the `SYMLOOP_MAX` constant in `limits.h` to
replace the `MAX_LEVEL` magic number used during symlink resolution.

`fstat` was kept because it is more difficult than the others to do a
drop-in replacement in terms of `fstatat` for since a naive approach
would cause mutual recursion.
2026-05-04 11:44:53 -05:00
Connor-GH 7ade6fc0ca limits.h: add more constants
This helps us to pass several tests in Sortie's os-test suite. I forget
the exact number, but it was something like 8 or so tests:
https://doc.redox-os.org/test-results/os-test/os-test-20260410/html/limits/index.html#limits
2026-04-13 19:59:38 -05:00
auronandace dccb22d55f verify limits header includes 2026-02-05 09:42:21 +00:00
auronandace e492dd29ba define PTHREAD_STACK_MIN 2026-02-01 14:59:48 +00:00
Anhad Singh 0f4a82b5e8 fix(pthread/tls): destructors
Also added tests for it.

Signed-off-by: Anhad Singh <andypython@protonmail.com>
2026-01-23 14:24:43 +11:00
Wildan M 5476770359 Define max limits in rust 2026-01-17 18:17:35 +07:00
auronandace 321b65d7e1 Update and add spec links, correct typo 2025-12-23 09:21:28 +00:00
Jeremy Soller 0405048890 Format limits and sysconf 2025-12-19 11:46:38 -07:00
Jeremy Soller 7e987b67bc Add more limits and expose them through sysconf 2025-12-19 10:18:15 -07:00
Jeremy Soller c1d3ff3d53 Add POSIX limits 2025-12-19 09:15:45 -07:00
Jeremy Soller c2eed49e2d Add NAME_MAX 2025-10-29 12:30:28 -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 ff853a7b82 Define HOST_NAME_MAX 2024-10-10 15:14:53 -06:00
Agoston Szepessy a83d4cbced Implement getpass()
Also make fields in `termios` public; required for modifying them.

There's an new type of test: `EXPECT_INPUT_BINS`. These require a `.exp`
file to be present along with the `.c` file. The `.exp` file takes the
produced binary as an argument and sends input to the program. This is
useful for testing functions like `getpass()`.
2024-07-23 16:07:25 +02:00
Jeremy Soller a2321e4b2b Add initgroups 2024-01-16 20:00:57 -07:00
jD91mZM2 593925ceb4 Unambiguate all include guards
GNU binutils also uses _FNMATCH_H for a guard, maybe along others!
2020-06-29 11:34:51 +02:00
Mateusz Mikuła 63a1319e50 Cbindgen update 2019-07-10 10:08:39 +00:00
Jeremy Soller 950b4526c7 - Disable output of empty header files
- Remove incorrect header styles
- Use export.replace where header style was previously needed
- Check compilation of tests using system gcc
2018-11-26 21:35:02 -07:00
jD91mZM2 418a960f3b Implement realpath 2018-10-07 10:32:51 +02:00