Commit Graph

1496 Commits

Author SHA1 Message Date
4lDO2 a9f05d3c3c Add trailing NUL byte check on Redox. 2024-09-12 16:10:25 +02:00
Jeremy Soller 4935b98180 Make ino_t be c_ulonglong 2024-09-11 16:14:03 -06:00
Jeremy Soller 0b03a68150 Fix unistd header generation 2024-09-11 15:59:31 -06:00
4lDO2 c0e7af5289 Backwards-compatibly rewrite getdents to use special syscall. 2024-09-11 23:32:19 +02:00
4lDO2 198caa3bc5 Rustify Sys::open and some fs:: error handling. 2024-09-11 23:22:32 +02:00
4lDO2 b9653e689b Implement From<Errno> for io::Error. 2024-09-11 23:22:32 +02:00
4lDO2 4bd0d2a1ef Move pthread::Errno to separate module. 2024-09-11 23:22:29 +02:00
Jeremy Soller e73b891e77 Merge branch 'unsafe-blocks-in-sync' into 'master'
use unsafe blocks in `sync/`

See merge request redox-os/relibc!505
2024-09-11 21:21:36 +00:00
Jeremy Soller d6ef87ad3c Merge branch 'feat/ignore_neg_fd_poll' into 'master'
feat: ignore negative fd and clear its revents in poll(2)

See merge request redox-os/relibc!484
2024-09-11 21:17:31 +00:00
Jeremy Soller 3c2bc98275 Merge branch 'crypt-unsafe-blocks' into 'master'
Use unsafe blocks in crypt.h implementation

See merge request redox-os/relibc!503
2024-09-11 21:14:46 +00:00
Peter Limkilde Svendsen d806e79d36 Use unsafe blocks in crypt.h implementation 2024-09-11 21:14:46 +00:00
Jeremy Soller bf46e331bb Merge branch 'assert-unsafe-blocks' into 'master'
Use unsafe blocks in assert.h implementation

See merge request redox-os/relibc!502
2024-09-11 21:14:33 +00:00
Peter Limkilde Svendsen 8c583cc978 Use unsafe blocks in assert.h implementation 2024-09-11 21:14:33 +00:00
Peter Limkilde Svendsen 58bb5a9689 Use unsafe blocks in arpa/inet.h implementation 2024-09-11 21:14:14 +00:00
JustAnotherDev 7df5b16f9e set deny(unsafe_op_in_unsafe_fn) for 2024-09-11 20:55:05 +01:00
Arnold Loubriat 9e20c351d8 Add endian.h 2024-09-04 00:50:30 +02:00
Peter Limkilde Svendsen d20b29c552 Un-mutexify random() default buffer 2024-08-18 22:19:22 +00:00
Peter Limkilde Svendsen 3193656f22 Put random() state behind mutex 2024-08-15 23:26:16 +00:00
Jeremy Soller 092663c50a Merge branch 'no_legacy_scheme' into 'master'
Remove all uses of the legacy scheme syntax

See merge request redox-os/relibc!492
2024-08-15 14:57:30 +00:00
4lDO2 8dc3cca1e6 Allow (nonstandard?) pthread old{ty,state} == NULL 2024-08-10 12:59:20 +02:00
bjorn3 49c708f537 Remove all uses of the legacy scheme syntax" 2024-08-04 13:49:10 +02:00
Jeremy Soller a38638542d Merge branch 'ctermid' into 'master'
Implement ctermid()

See merge request redox-os/relibc!490
2024-08-01 18:42:29 +00:00
Jeremy Soller dc9a577354 Merge branch 'mktime-timegm-refactor' into 'master'
Refactor mktime, timegm and fix wcpncpy test

See merge request redox-os/relibc!487
2024-08-01 18:42:01 +00:00
Peter Limkilde Svendsen 17076f37b9 Refactor mktime, timegm and fix wcpncpy test 2024-08-01 18:42:01 +00:00
Jeremy Soller 455d7323e9 Merge branch 'swscanf_works' into 'master'
swscanf and vswscanf implementation proposal

See merge request redox-os/relibc!472
2024-08-01 18:41:14 +00:00
Nicolás Antinori 198c5502b7 swscanf and vswscanf implementation proposal 2024-08-01 18:41:14 +00:00
Jeremy Soller af4fbf374e Merge branch 'dprintf' into 'master'
Implement dprintf and vdprintf

See merge request redox-os/relibc!489
2024-08-01 18:39:58 +00:00
Agoston Szepessy cdf5c70d5b Implement ctermid() 2024-07-25 11:32:26 +02:00
Agoston Szepessy bb1e8fe8d7 Implement dprintf and vdprintf 2024-07-23 22:15:53 +02:00
Agoston Szepessy b5f767ea30 More PR feedback
Use u8 internally instead of `c_char`.
2024-07-23 18:07:09 +02:00
Agoston Szepessy 99ade44c12 PR feedback
- Remove `stdio` functions and use `File` API completely.
- Remove `unsafe` from wrapper function.
- Move static buffer to `getpass()` instead of keeping it in wrapper.
2024-07-23 16:56:39 +02:00
Agoston Szepessy 545e9e7b29 Implement getpass using File API
Returns a Result for better error handling.
2024-07-23 16:07:25 +02: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
Steve Lau c7300009cd feat: ignore negative fd and clear its revents in poll(2) 2024-07-20 20:41:52 +08:00
4lDO2 44ec1676ae Activate new threads' TCBs early. 2024-07-18 23:59:48 +02:00
4lDO2 d458b6cdcd Handle waitpid WUNTRACED stop signals properly. 2024-07-18 23:59:48 +02:00
4lDO2 ac5ac928f2 Implement raise() using pthread_kill. 2024-07-18 23:59:48 +02:00
4lDO2 15cdc4e0aa Fix (modified) audiod. 2024-07-18 23:59:47 +02:00
4lDO2 4cb6644181 Implement exit_this_thread on Redox. 2024-07-18 23:59:47 +02:00
4lDO2 c286dd6d33 Use new-thread proc API 2024-07-18 23:59:47 +02:00
4lDO2 bf26de70e2 Add setresuid/setresgid (suid/sgid stub on Redox). 2024-07-18 23:54:46 +02:00
Jeremy Soller 312b66e547 Merge branch 'usignal2' into 'master'
Implement syscall restart

See merge request redox-os/relibc!483
2024-07-17 09:38:41 +00:00
4lDO2 17cb748217 Implement syscall restart for waitpid. 2024-07-16 12:48:14 +02:00
4lDO2 4c20a9abb2 Enable syscall restart in futex_wait. 2024-07-16 11:55:06 +02:00
Peter Limkilde Svendsen dbcf8049fc Refactor rand48 functions with less unsafe 2024-07-15 17:44:56 +00:00
4lDO2 284f51b47e Fix struct sigaction defintion. 2024-07-09 15:39:57 +02:00
4lDO2 b64b0ebe18 Handle kill and killpg EINTR. 2024-07-09 15:00:58 +02:00
4lDO2 78247c8525 Pass signal correctly to SYS_KILL. 2024-07-09 15:00:58 +02:00
4lDO2 8298417dee Implement sigpending on Redox. 2024-07-09 15:00:58 +02:00
4lDO2 c639fd37ba Implement sigaltstack. 2024-07-09 15:00:57 +02:00