Commit Graph

1510 Commits

Author SHA1 Message Date
Jeremy Soller 1e97bae11b Merge branch 'kek/chroot3' into 'master'
Add capability to set the default scheme

See merge request redox-os/relibc!510
2024-09-23 14:36:45 +00:00
Kamil Koczurek 408a7b2ab6 Add capability to set the default scheme 2024-09-23 14:36:45 +00:00
Peter Limkilde Svendsen 0a23acd401 Implement iterators on pointers 2024-09-22 23:42:28 +00:00
4lDO2 7e38bb1476 Fix Linux compilation. 2024-09-21 13:42:43 +02:00
Jeremy Soller 4d29614ea8 Better stub for sigsuspend on redox 2024-09-19 21:01:07 -06:00
Jeremy Soller 1ac8c4834b Format 2024-09-19 16:09:11 -06:00
Jeremy Soller 1b7d059707 Add getrusage 2024-09-19 16:08:54 -06:00
Jeremy Soller 8a0b2dcbd0 Fix pthread_cleanup macros 2024-09-19 15:52:42 -06:00
Jeremy Soller 110aeadaa6 Fix backslashes in bits_pthread macros 2024-09-19 15:45:20 -06:00
Jeremy Soller 73fcc88aa2 Add O_SYNC for redox 2024-09-19 15:44:46 -06:00
Jeremy Soller eb33ac46f9 Export struct siginfo 2024-09-19 15:16:47 -06:00
Jeremy Soller 7371cbcab0 unistd: implement daemon function 2024-09-19 14:59:04 -06:00
Jeremy Soller 35743d7a18 Sync errno in File functions 2024-09-18 14:33:56 -06:00
4lDO2 0ded9780f1 Use multiline string in unistd config. 2024-09-14 00:49:08 +02:00
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