Commit Graph

55 Commits

Author SHA1 Message Date
4lDO2 fa5bc90ead Add FUTEX_WAIT64. 2021-07-08 13:22:35 +02:00
jD91mZM2 6346fd671e Add AT_PHDR 2020-07-10 12:48:22 +02:00
jD91mZM2 10994eaa96 Add auxiliery vector 2020-07-10 12:10:24 +02:00
4lDO2 27fcecb30f Add MAP_FIXED_NOREPLACE. 2020-07-08 18:17:11 +02:00
4lDO2 6869e82a92 Add mmap2. 2020-07-08 15:36:59 +02:00
jD91mZM2 a1af645cbf Remove bloated ptrace flags
I have had a think, and these flags are pointless. Since this is a
microkernel, there should always be exactly one way to do something, and
it should be the most flexible and simplest to implement. And you can
already just set breakpoints on the address provided by the signal
handler, and we'll give the entrypoint as an address to the fexec call.
2020-07-07 13:44:15 +02:00
jD91mZM2 69a8340f12 Add PTRACE_STOP_SIGNAL_HANDLER
Not entirely a useful thing, one *could* also put a breakpoint on the
handler address... I'll need to think about this some more.
2020-07-07 10:51:57 +02:00
jD91mZM2 c23d36e892 ptrace: stop on fexec 2020-06-21 17:53:29 +02:00
4lDO2 eebf1c3856 Add missing match item for Greedy. 2020-06-16 21:50:56 +02:00
Jeremy Soller 783a03dc73 Merge branch 'complex-physalloc' into 'master'
Add a more complex physalloc syscall.

See merge request redox-os/syscall!46
2020-06-16 12:11:58 +00:00
4lDO2 3efc8d06be Add a more complex physalloc syscall. 2020-06-16 12:11:58 +00:00
jD91mZM2 1c637e72b2 ptrace: Block on read, not on write 2020-06-16 13:00:09 +02:00
jD91mZM2 6ba71e7e06 Add ptrace exit breakpoint 2019-08-15 14:21:50 +02:00
jD91mZM2 bf5e138def Allow catching int3 2019-07-31 16:43:28 +02:00
jD91mZM2 75a1e6f970 Add way to ignore signals 2019-07-30 15:54:07 +02:00
jD91mZM2 51f0ef2826 Implement Deref for PtraceFlags 2019-07-29 08:31:21 +02:00
jD91mZM2 a0581db1fa Merge ProtFlags and MapFlags 2019-07-28 17:36:10 +02:00
jD91mZM2 9a7bd554d5 Suggestion: Switch to bitflags 2019-07-26 12:23:03 +02:00
jD91mZM2 edf3c008dc u64s are bigger than I thought! 2019-07-26 10:28:42 +02:00
jD91mZM2 52441c28b1 First step for ptrace overhaul 2019-07-24 21:41:57 +02:00
jD91mZM2 85a45f382c WIP(ptrace): Better support for signals
Signals now cause an event, and there's a way to continue until the
next signal. I can see this being used for detection of `int3`
although I'm not entirely sure as it may prove being too late to stop
abortion of process.
2019-07-23 20:15:33 +02:00
jD91mZM2 dcacbaed80 Add PtraceEvent for catching tracee forks 2019-07-23 20:14:52 +02:00
jD91mZM2 e5bbe5b7e0 WIP(ptrace): Add PTRACE_WAIT 2019-07-01 16:16:34 +02:00
jD91mZM2 a7aff4b60d WIP(ptrace): Add an alternative to Linux' user_regs_struct 2019-06-25 10:07:58 +02:00
Jeremy Soller 5cdc240d13 0.1.54 - add method to disable caching when using physmap 2019-04-08 17:49:25 -06:00
Jeremy Soller 9eff3aeeef Add CLONE_STACK flag 2019-03-31 08:41:43 -06:00
Jeremy Soller 697dbd3001 0.1.46 - add sigprocmask 2018-12-28 21:13:33 -07:00
Jeremy Soller 114fc92d62 Add flags to fmap by using a struct for fmap arguments. 2018-12-28 15:04:23 -07:00
Jeremy Soller 7c805d2a28 Add more wait related calls 2018-01-05 17:49:26 -07:00
Jeremy Soller 8f01290058 Add WCONTINUED 2018-01-03 22:21:26 -07:00
Jeremy Soller 88a0512d71 Add WUNTRACED 2018-01-03 21:50:59 -07:00
Jeremy Soller 561557e774 Merge code cleanup from Rust fork, add clone_thread 2017-08-27 10:49:35 -06:00
Ian Douglas Scott 89bce1981b Add F_DUPFD flag 2017-08-08 10:57:51 -07:00
Ian Douglas Scott cbc01efc4e Add flag for fifo 2017-08-02 11:05:09 -07:00
Ian Douglas Scott 8786577cb7 Define F_GETFD and F_SETFD 2017-07-28 15:09:04 -07:00
Ian Douglas Scott 44d4ead33e Add MODE_CHR flag for "character special" 2017-07-10 16:35:04 -07:00
Jeremy Soller 9053a668e0 Convert to sigaction from signal 2017-07-09 20:31:34 -06:00
Jeremy Soller f3c97bee78 Add signal flags 2017-07-05 21:05:16 -06:00
Ian Douglas Scott 8579c43626 Add O_NOFOLLOW flag 2017-07-03 19:18:54 -07:00
Ian Douglas Scott 5c22611316 Add symlink-related flags 2017-06-26 09:21:30 -07:00
Jeremy Soller 1908eea7e9 O_RDWR is now a set of flags, O_STAT added to allow open of dir or file 2016-11-25 17:58:33 -07:00
Jeremy Soller 7497b715cd Use open for mkdir 2016-11-25 16:57:46 -07:00
Jeremy Soller 7b8cc59890 More full featured syscall to set namespace 2016-11-16 21:52:24 -07:00
Jeremy Soller af9aa0c3b2 Add CLONE_NEWNS 2016-11-16 20:50:34 -07:00
Jeremy Soller 3ee7a7ff0f Add chmod, update cargo version 2016-11-15 16:43:49 -07:00
Jeremy Soller 681f629afb Add flags to control owner, mode 2016-11-15 15:28:44 -07:00
Jeremy Soller f48cbf22f3 Add fcntl 2016-11-14 12:14:19 -07:00
Jeremy Soller 5a687dfeb5 Smp (#23)
* Fire up multiple processors

* Use IPIs to wake up secondary processors

* Much better exception information

* Modifications to show more information on fault

* WIP: Use real libstd

* Add TLS (not complete)

* Add random function, export getpid, cleanup

* Do not spin APs until new context

* Update rust

* Update rust

* Use rd/wrfsbase

* Implement TLS

* Implement compiler builtins and update rust

* Update rust

* Back to Redox libstd

* Update rust
2016-10-31 10:49:00 -06:00
Jeremy Soller 96846aba3f Add sys scheme to allow inspection of processes. WIP: Signals. 2016-10-13 21:00:51 -06:00
Jeremy Soller 207031175d Time (#11)
* WIP: Time syscalls

* Count time from PIT using low tickrate

* Implement realtime

* Implement nanosleep with a tight loop
2016-10-06 20:50:14 -06:00