Age | Commit message (Collapse) | Author |
|
This commit introduces a more complete spawn implementation as well as
the SYS_spawn syscall and a libc interface.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Simplicity is divine, fork() may be powerful but is no longer simple. It
became a thing in the late 70s during the early days of UNIX when computing
was simple, when CPUs were only 16-bits, MMUs were not prevalent and RAM was
only 512 KB. However it isn't 1971 anymore, process management, CPUs and memory
architecture has advanced significantly since. This commit ceases work on the
fork() syscall as implementing it would only introduce unnecessary complexity,
security issues, hefty processing overhead and would perpetuate what should
now be considered legacy. The current best alternative would be providing
a form of process spawning as well as a mechanism to wait for the child
process to complete.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
- Remove OBUF_WAIT() and IBUF_WAIT() macros
- Buffer to console input
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
- Fix copying logic in tty_read()
- Handle ICANON correctly
- Add ECHO c_lflag bit
- Add TTY_SOURCE_DEV and TTY_SOURCE_RAW defines
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Add basic handling for canonical mode
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Holding down the caps-lock key would result in the LED blinking rapidly
which is obviously not normal. This commit corrects that behavior.
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|