Clean things up for better presentation

master
rubenwardy 2017-03-31 16:29:51 +01:00
parent 82dcdede45
commit 72edeb3bcf
3 changed files with 6 additions and 7 deletions

View File

@ -1,8 +1,5 @@
# Rubix OS
Hedgehog logo © Laymik, licensed under CC-BY 3.0 US.
https://thenounproject.com/term/hedgehog/582725/
## Features
* SYS Calls
@ -13,6 +10,7 @@ https://thenounproject.com/term/hedgehog/582725/
* `close` - closes a file descriptor.
* `dup2` - duplicates fd from `old` to `new`. `new` is closed if it already exists.
* `pipe` - creates a pipe. fd[0] is read, fd[1] is write.
* `fopen` - open file. Not quite POSIX, as it's non-blocking
* `fork` - clones process.
Return value is 0 if child, PID of child if parent, -1 if error.
* `exec` - replaces the process with another program. PID is kept.
@ -26,16 +24,18 @@ https://thenounproject.com/term/hedgehog/582725/
* LibC help functions
* `popen` - opens a process and returns a FD. Uses `fork`, `pipe`, `exec`, and `dup2`.
* `wait`/`waitpid` - both use the `wait` syscall.
* Multi-processing
* Processe
* **time slicing** - timer based timer slices.
* **priority-based** - priority(P) = priority_base(P) + slices_since_last_ran(P)
* **blocked queue** - for processes waiting for a process or file resource.
* **process ownership** - processes have a parent, which can kill/wait them.
* **process groups** - a limited type of process group, where all processes
that share a parent and the parent itself are in a group.
* Objects
* Files
* `FiDes` - File descriptor. Interacted with using function pointers. Can be blocking or not.
* `pipe` - Pointed to by a FD.
* `in/out/err` - these are "files" too!
* `filesystem` - Files are limited to 256 bytes, maximum of 10 files.
## References

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 6.8 KiB

View File

@ -78,7 +78,7 @@ void main_console() {
if (status == 127) {
printf("%s: command not found\n", x);
} else {
printf("Program exited with code %d\n", status);
printf("\n\nProgram exited with code %d\n", status);
}
}
}