Commit graph

182 commits

Author SHA1 Message Date
Jeremy Soller bf292bc0d1 Add signal support - exit on signal 2016-11-17 12:12:02 -07:00
Jeremy Soller b551b30300 More advanced setns syscall 2016-11-16 22:14:02 -07:00
Jeremy Soller d294d56b52 Add ability to contain a process in a scheme sandbox 2016-11-16 20:54:38 -07:00
Jeremy Soller 69c23ed187 Pass through fcntl 2016-11-15 17:09:28 -07:00
Jeremy Soller 1f29d163b1 Update to add chmod 2016-11-15 17:08:14 -07:00
Jeremy Soller 37395f36ea Update syscall and rust, add fcntl for permissions 2016-11-15 16:12:51 -07:00
Jeremy Soller 16f5c82796 FileHandle from in exec close 2016-11-15 14:09:08 -07:00
Jeremy Soller 297b6e09fc Merge branch 'cap2' of https://github.com/Yoric/redox into Yoric-cap2 2016-11-15 14:05:43 -07:00
Jeremy Soller 28cb4c1f18 Pass clone and exec to dup to identify dup location, make exec dup to implement cloexec 2016-11-14 20:55:31 -07:00
Jeremy Soller a916e29b3c Add sys:exe to get current executable 2016-11-14 20:54:33 -07:00
Jeremy Soller 8b56d14e41 Add fcntl 2016-11-14 12:15:34 -07:00
Jeremy Soller 3c0abadfd0 Implement more test arch features 2016-11-14 11:04:31 -07:00
Jeremy Soller 7e71c85c80 Use core intrinsics instead of memset 2016-11-14 10:50:00 -07:00
David Teller 9c90a8fe42 Converting file handles into a new type FileHandle
Keeping file handles (and pids, and scheme id, ...) as usize is a
footgun. Let's remove it.
2016-11-14 07:46:43 +01:00
David Teller 37a34ab7f7 Converting pids into a new type ContextId
Keeping pid (and file descriptor, and scheme id, ...) as usize is a
footgun. Let's remove it.
2016-11-14 07:46:43 +01:00
David Teller d16515ea12 Converting scheme ids into a new type SchemeId
Keeping scheme ids (and pids, and file handles, ...) as usize is a
footgun. Let's remove it.
2016-11-14 07:46:43 +01:00
David Teller 9f7c20bacf Introducing macros for defining SchemeId, Pid, ... 2016-11-14 07:46:43 +01:00
Jeremy Soller 7fa413019f Get CPU features 2016-11-07 13:56:02 -07:00
Jeremy Soller 6927a4c5cf Add memory information 2016-11-07 12:47:32 -07:00
Jeremy Soller 92ac91f4a5 Update scheme documentation 2016-11-04 13:38:40 -06:00
Jeremy Soller cab27d0f67 Add some documentation 2016-11-03 20:29:19 -06:00
Jeremy Soller 4a40a8b7f7 Fix eventing in kernel 2016-11-03 16:02:44 -06:00
David Teller a73d7e941f Improving self-documentation of the implementation of Registry. (#732) 2016-11-03 09:06:44 -06:00
pythoneer d5811b2661 increase process id range (#729) 2016-11-03 07:36:12 -06:00
Jeremy Soller e3317f05f7 Remove resource_sceme, Fix syscall crate name, add fmap 2016-11-02 19:48:25 -06:00
Jeremy Soller 324dbd52e4 Fix #725 by checking mode in chdir 2016-11-01 14:49:51 -06:00
Jeremy Soller d38ec4e09b Add contributing and readme 2016-11-01 12:04:50 -06:00
Jeremy Soller 25743a89a2 Correct init process, allow waiting on any children, reap zombies in init 2016-11-01 11:04:53 -06:00
Jeremy Soller 867a3badbf remove take message 2016-10-31 22:12:10 -06:00
Jeremy Soller 56ac46e933 Add null: and zero: 2016-10-31 21:54:56 -06:00
Jeremy Soller b95a399a59 Remove debugging 2016-10-31 19:40:27 -06:00
Jeremy Soller 973fdcb20b Fixes for TLS 2016-10-31 19:09:22 -06:00
Jeremy Soller 4fc9283aff Remove rd/wrfsbase 2016-10-31 18:04:28 -06:00
Jeremy Soller 149b0297a4 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 2491e4771e Redo networking (#22)
* Rewriting network functions

* Add buffer to dup
Fix non-blocking handling by triggering once on enabling events to read to EOF

* Modifications for UDP API

* Implement TCP client side

* Add active close

* Add DMAR parser

* Implement basic TCP listening. Need to improve the state machine

* Reduce debugging

* Fixes for close procedure

* Updates to fix path processing in libstd
2016-10-26 13:19:56 -06:00
David Teller 76ee483cc9 Documenting use of enable_and_halt(). (#21) 2016-10-24 16:03:03 -06:00
Jeremy Soller 221b4c0116 Add CPU ID lock 2016-10-23 11:24:10 -06:00
Jeremy Soller a715e157d4 Make all perCPU mappings available in all contexts - this will allow APs to pick up threads 2016-10-23 09:13:12 -06:00
Jeremy Soller cbac6c4b8d Remove unnecessary context switch in waitpid 2016-10-20 21:50:11 -06:00
Jeremy Soller 38531e2ecc Improve wait condition performance 2016-10-20 21:49:47 -06:00
Jeremy Soller 9037dee817 Do not block on IRQ read, add more debugging to RTL8168/9 2016-10-20 15:49:17 -06:00
Jeremy Soller 8fd25ee318 Add nonblocking root scheme 2016-10-20 12:31:39 -06:00
Jeremy Soller b50b03f8a0 Send multiple events if there are multiple packets 2016-10-14 22:06:43 -06:00
Jeremy Soller 77810d6713 Significant improvements for events - switch to event queue in orbital 2016-10-14 20:12:21 -06:00
Jeremy Soller 6d19f59c08 Allow O_NONBLOCK to be passed to pipe 2016-10-14 19:34:00 -06:00
Jeremy Soller ad448956d6 Add specification to vesad
Fix piping
Fix bug where resources are not closed
Add arpd
Remove question_mark features
2016-10-14 18:22:57 -06:00
Jeremy Soller 64402cfe6c Fixes for updating submodules 2016-10-14 12:00:25 -06:00
Jeremy Soller 4985e1b720 Disable orbital by default 2016-10-13 21:19:02 -06:00
Jeremy Soller c907222657 Allow schemes to be listed 2016-10-13 21:13:37 -06:00
Jeremy Soller d18bf07f3e Add sys scheme to allow inspection of processes. WIP: Signals. 2016-10-13 21:00:51 -06:00