Commit Graph

1297 Commits

Author SHA1 Message Date
Florian Meißner b66df46f33 strtof(), strtod(): handle NaN and Infinity 2023-06-05 23:04:25 +00:00
Darley Barreto a237165bf8 Adding tcsetwinsize 2023-06-02 23:23:19 +00:00
Jeremy Soller 7195c9a687 Remove half of prior workaround 2023-05-31 21:40:25 -06:00
Jeremy Soller ffc53bf23b Workaround hang on pthread_create 2023-05-31 20:39:58 -06:00
Noa df6f4678e8 Fix warnings 2023-05-30 13:46:17 -05:00
Florian Meißner 14709b3d5c system(): on command == NULL, return nonzero if shell exists 2023-05-29 20:54:34 +02:00
Jeremy Soller 63b7b76ab3 Format 2023-05-22 10:01:18 -06:00
Darley Barreto 9642d2ab02 Adding some wcst* functions 2023-05-22 16:01:04 +00:00
4lDO2 cdd0f67b23 Rustfmt. 2023-05-17 15:28:10 +02:00
Jeremy Soller 7251fc7c47 Fix type error after fcntl redefinition 2023-05-17 07:24:19 -06:00
Jeremy Soller 7d9cd5ab88 Include bits/pthread.h in signal.h for pthread_t 2023-05-17 07:22:05 -06:00
David Carlier bae8bb68df lockf implementation proposal 2023-05-16 23:40:40 +01:00
4lDO2 89429f26c0 Follow POSIX by allowing NULL pthread_key_t dtors. 2023-05-12 18:09:22 +02:00
4lDO2 951e9dd1eb Define sem_t as typedef, not union. 2023-05-12 13:59:07 +02:00
Jeremy Soller c1376d01dc Implement pthread_kill 2023-05-11 21:00:21 -06:00
Jeremy Soller 2941e5b36a Add _POSIX_THREADS definition 2023-05-11 17:18:16 -06:00
4lDO2 9040c2a2a2 fix semaphores 2023-05-11 17:18:12 -06:00
Jeremy Soller d6af37e977 Fix a missing cast to sigset_t 2023-05-11 12:44:19 -06:00
Jeremy Soller a38e7aaa4b Update sigset_t to c_ulonglong 2023-05-11 12:13:10 -06:00
Jeremy Soller 66f1f32ac2 Pad RlctAttr for 32-bit systems 2023-05-11 12:06:53 -06:00
Jeremy Soller 64849c7d59 Fix types for 32-bit systems 2023-05-11 11:44:24 -06:00
Jeremy Soller 51c93c4b39 Cleanup of wchar_t and wint_t definitions 2023-05-11 10:41:49 -06:00
Jeremy Soller 848fde933b Merge branch 'remove_pthreads_emb' into 'master'
Replace pthreads-emb with a native implementation

See merge request redox-os/relibc!380
2023-05-11 13:56:11 +00:00
Jeremy Soller 29c898dff0 Cargo format 2023-05-11 07:48:51 -06:00
Jeremy Soller e1ecdbd8a5 Implement vfwprintf 2023-05-11 07:48:49 -06:00
Jeremy Soller 5a5bd0c983 Add stubs for wprintf functions 2023-05-11 07:48:21 -06:00
Jeremy Soller 63ea94c439 Merge branch 'sigwait_impl' into 'master'
signal adding sig(timed)wait implementations

See merge request redox-os/relibc!392
2023-05-10 12:49:38 +00:00
Darley Barreto 82eb083091 Fixing wcsrtombs 2023-05-10 12:48:33 +00:00
David Carlier a5cfc5d260 signal adding sig(timed)wait implementations 2023-05-09 20:33:03 +01:00
Jeremy Soller b25bbae2e0 Merge branch 'time__var_impl' into 'master'
clock_getres/clock_settime additions

See merge request redox-os/relibc!389
2023-05-09 14:24:25 +00:00
Darley Barreto c659bf11f9 Implementing ungetwc 2023-05-09 14:23:25 +00:00
David Carlier 2db85f9a3f clock_getres/clock_settime additions 2023-05-08 18:52:05 +01:00
Darley Barreto 7155005be2 Adding wcsrtombs. 2023-05-08 12:39:53 +00:00
4lDO2 4169e99aa5 Stop requiring #![feature(atomic_mut_ptr)]. 2023-05-07 19:20:20 +02:00
4lDO2 a7708a9fc8 Fix AtomicPtr::as_ptr compiler version problem. 2023-05-07 11:17:04 +02:00
Jeremy Soller 26a8e316f1 Merge branch 'rw_van_230506' into 'master'
fix tzset cbindgen declarations

See merge request redox-os/relibc!386
2023-05-06 20:24:35 +00:00
Ron Williams 95e9162d22 change tzname to be mut 2023-05-06 13:20:30 -07:00
4lDO2 90a789368e Add missing pthread_barrierattr_destroy. 2023-05-06 17:02:54 +02:00
4lDO2 439b054486 Rustify pthread_rwlock_t. 2023-05-06 17:02:54 +02:00
4lDO2 d5781306d8 Support custom pthread stacks. 2023-05-06 17:02:54 +02:00
4lDO2 f60461cbf7 Use drop_in_place for pthread_attr_destroy. 2023-05-06 17:02:53 +02:00
4lDO2 b4600182b8 Also add SIGRTMAX. 2023-05-06 17:02:53 +02:00
4lDO2 c92ab239e3 Send RLCT_CANCEL and not SIGTERM when main exits. 2023-05-06 17:02:53 +02:00
4lDO2 79dfddf82c Switch to a boring mutex+condvar based barrier.
While the atomic version might be better, at the moment the priority is
to just to get RLCT working reliably.
2023-05-06 17:02:53 +02:00
4lDO2 4e5596698d Hack to support multiple compiler versions. 2023-05-06 17:02:53 +02:00
4lDO2 a3e1eed100 Wake all when unlocking internal mutexes.
This is because we don't yet count the number of waiting threads,
instead just flagging where or not there are any waiters.
2023-05-06 17:02:53 +02:00
4lDO2 7bcfa9cfd9 Fix Linux. 2023-05-06 17:02:53 +02:00
4lDO2 d1da867919 Make sighold unsafe. 2023-05-06 17:02:53 +02:00
4lDO2 e6df6ccfb3 Fix once and try to improve barrier. 2023-05-06 17:02:53 +02:00
4lDO2 8d9dd0df45 Improve pthread_cleanup_{push,pop}. 2023-05-06 17:02:53 +02:00