Commit Graph

267 Commits

Author SHA1 Message Date
Xavier L'Heureux f2357390e9 Fix redox's implementation 2019-08-11 21:06:47 -04:00
Xavier L'Heureux 0a558de76c Fix reference getting moved
The sigaction handler called map on an option, creating a pointer to a
move value. This in turned caused UB for signal handlers. Avoid using
pointers directly, and instead prefer references.
2019-08-11 20:47:18 -04:00
Xavier L'Heureux 225583230f Test 2019-08-11 18:11:19 -04:00
Jeremy Soller 37a5da34b9 Fix pte_osSemaphorePend deadlock 2019-08-09 21:18:20 -06:00
jD91mZM2 a7b354c8e0 Update to latest syscall after merging ptrace 2019-08-04 19:46:10 +02:00
jD91mZM2 a1e45941bf Fix ptrace after latest kernel changes 2019-08-04 19:05:45 +02:00
jD91mZM2 b8c50c7c64 Format 2019-08-04 19:05:45 +02:00
jD91mZM2 c7d499d4f2 Upgrade to the 2018 edition
I didn't think it'd be this useful first, but thank god for `cargo fix --edition`!
2019-08-04 19:05:45 +02:00
jD91mZM2 72c2f59f17 Update redox_syscall to use bitflags 2019-08-04 19:05:45 +02:00
jD91mZM2 82abb3313e Support adding WUNTRACED 2019-08-04 19:05:45 +02:00
jD91mZM2 f389010fff Initial ptrace compatibility for Redox OS 2019-08-04 19:05:45 +02:00
jD91mZM2 43ff8801bc Format 2019-08-04 19:05:44 +02:00
jD91mZM2 35c1d5210c Implement the Once<T> synchronization structure
Not sure if I should add a RwLock for the ptrace state too...
2019-08-04 19:05:44 +02:00
jD91mZM2 e559a3e2e5 Stub for ptrace
It's happening...
2019-08-04 19:05:44 +02:00
Jeremy Soller 25e67b9f58 Add setsockopt support for SO_RCVTIMEO and SO_SNDTIMEO 2019-07-24 17:18:01 -06:00
Jeremy Soller 9d7ec9b146 Fix getcwd on Redox 2019-07-21 07:57:31 -06:00
Jeremy Soller 06bab2aa81 Fix Redox fchdir 2019-07-06 19:25:05 -06:00
Mateusz Mikuła c8887900b9 Add sigaltstack 2019-07-05 12:29:53 +00:00
Mateusz Mikuła 6742e41948 Clippy fixes 2019-07-04 14:47:08 +00:00
Mateusz Mikuła ff94798253 Make errno thread local 2019-07-01 16:51:19 +02:00
jD91mZM2 f9dca89c1f Merge branch 'cleanup' 2019-07-01 08:39:09 +02:00
jD91mZM2 6203a85713 Fix thread-locals 2019-06-27 08:25:08 +02:00
jD91mZM2 d704a35b85 Untested: Remove duplicate Mutex efforts in pte.rs
See #151
2019-06-27 07:29:30 +02:00
Mateusz Mikuła 7597c082e7 Fix Clippy warnings 2019-05-11 22:34:13 +02:00
Mateusz Mikuła 30f6a9c323 Cargo fmt 2019-05-11 13:48:03 +02:00
Jeremy Soller cfc541019c Add socketpair on Linux with stub on Redox 2019-04-28 19:12:54 -06:00
Jeremy Soller 75cb7033c7 Fix use of timeout in epoll_pwait on redox 2019-04-28 13:33:17 -06:00
Jeremy Soller d2cb0959f3 Fix redox epoll timeout 2019-04-28 13:10:34 -06:00
Jeremy Soller 6a9d070115 Fix time path, use c_str macro 2019-04-28 12:56:00 -06:00
Jeremy Soller 61dea7f52b Add all 3 epoll_ctl ops 2019-04-28 11:30:14 -06:00
Jeremy Soller 16083a6020 Remove epoll_ctl debug message 2019-04-28 11:27:52 -06:00
Jeremy Soller 8efa7a3ed8 Fixes for epoll on Redox 2019-04-28 11:27:01 -06:00
Jeremy Soller e6e31dd3b4 Format 2019-04-28 10:29:20 -06:00
Jeremy Soller 10fdea88f2 Bring in changes that were accidently lost 2019-04-28 10:26:10 -06:00
Jeremy Soller dd9328bd41 Add pipe2 2019-04-28 09:13:24 -06:00
Jeremy Soller 68c4e95b6d Merge branch 'epoll' 2019-04-28 09:10:52 -06:00
Jeremy Soller 6a16275817 Fix warning, format makefile, and update depends 2019-04-24 19:50:57 -06:00
Jeremy Soller 7bde036031 Remove va_list submodule, format 2019-04-21 15:45:55 -06:00
jD91mZM2 6d4ac9dba8 Finally, get rid of all rust warnings
Just a small step along the way to reduce the massive wall of spam
every time you compile.

This was done partly automagically with `cargo fix`. The rest was me
deleting or commenting out a bunch of variables. Hope nothing was
important...
2019-04-21 21:12:16 +02:00
Jeremy Soller 83f89912e0 Do not copy kernel-allocated TLS 2019-04-20 10:36:18 -06:00
Jeremy Soller 30aef27c76 Correctly set up TLS on Redox and other fixes for pthread_clone 2019-04-14 19:08:58 -06:00
Jeremy Soller 73dda0f32c Add missing cast 2019-04-06 21:38:59 -06:00
Jeremy Soller f2b86e985c Ensure that getpeername and getsockname return a sockaddr of family AF_INET 2019-04-06 21:34:56 -06:00
Jeremy Soller 588f032f75 Rename can be done with O_PATH 2019-04-06 20:47:20 -06:00
Jeremy Soller 862c76b25f Correct error for unknown protocol type in socket 2019-04-01 20:35:15 -06:00
Jeremy Soller 42d40da973 Map stacks based on provided size. 2019-03-31 15:04:37 -06:00
Jeremy Soller 17372b4f69 Fix thread starting before pte_osThreadStart 2019-03-30 16:18:07 -06:00
Jeremy Soller 5715fb7ba6 Work on switching to epoll as backend for select and poll 2019-03-10 13:03:00 -06:00
Jeremy Soller 73c368ddab Use correct open flags 2019-02-19 19:29:19 -07:00
Jeremy Soller 0dd801da03 Implement ttyname by adding fpath function to Sys. Remove realpath function and use fpath internally 2019-01-27 17:10:55 -07:00