Commit Graph

110 Commits

Author SHA1 Message Date
Kevin Lange
5813ea96e1 remove the debug print in tab completion in sh 2014-05-30 22:00:07 -07:00
Kevin Lange
41b7bb88f7 Allow builtins in pipelines 2014-05-30 20:50:19 -07:00
Kevin Lange
6296aff867 Fix handling of eof in login 2014-05-30 17:05:49 -07:00
Kevin Lange
8ed59a8cb8 Hacky implementation of pipes in shell 2014-05-30 16:23:40 -07:00
Kevin Lange
1edb302b94 support ^D in shell rline 2014-05-29 21:46:38 -07:00
Kevin Lange
8c5b5f3f0c hostnames won't start with -, let's naively pretend... 2014-05-27 23:45:00 -07:00
Kevin Lange
d696f51f8b Real unix pipes 2014-05-27 21:38:30 -07:00
Kevin Lange
f054cebdce naive implementation of sudo and possibly insecure setuid support 2014-05-25 21:59:51 -07:00
Kevin Lange
c231d1c090 Cleanup some direct system calls in userspace 2014-05-11 17:40:16 -07:00
Kevin Lange
29841b03fc Fix waitpid calls to account for EINTR 2014-04-29 00:28:41 -07:00
Kevin Lange
4d8335ad75 Implement proper wait/waitpid.
This is a pretty big commit, so let's run through it in parts:

- All of the userspace changes are to switch away from syscall_wait
  Mostly, this is to waitpid; some things were tweaked to do things
  "properly" instead of waiting for particular processes. Init has
  been fixed to do a proper spin wait.
- syscall_wait is gone - as are its uses. newlib bindings have been
  using just waitpid for a while now.
- waitpid now performs like a Unix waitpid
- process reaping is no longer a "do this on next change thing":
  it happens when a process is waited on, like it should
  (That means we can have real zombies: terminated processes that
  have not yet been waited on)
- Reparenting of children to init has been implemented, so you
  can fork-daemonize!

Overall, this is pretty big... So I hope it doesn't break everything.
2014-04-27 01:37:33 -07:00
Kevin Lange
b8551d2174 Kill the old compositor 2014-04-15 19:45:56 -07:00
Kevin Lange
00ecfff45f make kbd library reentrant 2014-04-14 21:03:23 -07:00
Kevin Lange
e52728fcba Run fullscreen terminal under yutani 2014-04-12 18:15:44 -07:00
Kevin Lange
d85f3fd4ce Resurrect vga terminal 2014-04-11 20:03:01 -07:00
Kevin Lange
6ea113d8b2 Very early work on yutani 2014-04-05 18:36:07 -07:00
Kevin Lange
5ead18d352 Fix typo 2014-04-05 15:44:38 -07:00
Kevin Lange
51d398fc76 Remove special handling for tty access, make init do it 2014-04-05 15:43:14 -07:00
Kevin Lange
af0467946e colors for dev files in ls -l 2014-04-01 23:15:04 -07:00
Kevin Lange
6d2e151eff fix derp in cat 2014-04-01 22:59:29 -07:00
Kevin Lange
d7086574ca Build updates 2014-03-27 23:37:38 -07:00
Kevin Lange
cc4391d783 Initial work on modules
There's a lot here, so let's through it:
- Lots of work to include a symbol table in the kernel. We can't rely on
  our bootloader to give us our own ELF information, so we do this
  separately. This probably should be changed to output a C source
  rather than assembly, but that's a TODO.
- Makefile can now generate modules. It works basically the same way any
  other kernel object works, expect with a slightly different linking
  scheme.
- Commands have been added to the debug shell to load modules, but they
  don't work yet - still need to get through relocation and linking.
- Commands have been added to the debug shell to print the symbol list,
  as well as print symbol values (but note that printing symbol values
  is kinda dangerous if you don't know what they are, so don't just go
  printing things willy-nilly).
2014-03-09 19:36:28 -07:00
Kevin Lange
1e50d39d67 kill nlcr/no-nlcr stuff from terminal 2013-08-19 19:37:13 -07:00
Kevin Lange
720a62d6aa ICANON support (still a bit rough)
This is a massive hack and I admit it.
2013-07-27 22:01:08 -07:00
Kevin Lange
40f0c41932 Preliminary termios support
This is some initial work on support real PTYs.
Canonical mode is not supported at the moment.
2013-07-27 00:18:29 -07:00
Kevin Lange
ab0045918f clean up cd shell command 2013-06-29 18:48:57 -07:00
Kevin Lange
bc0c06e005 Add a little warning app to vga mode 2013-06-28 19:02:11 -07:00
Kevin Lange
9a40a41f03 Drop legacy fullscreen support and add new fullscreen support 2013-06-28 00:42:40 -07:00
Kevin Lange
ae59df2514 Fix up some toaru-specific bits in the shell 2013-05-28 22:00:27 -07:00
Kevin Lange
046f17a81a ^A and ^E in shell 2013-05-28 19:01:52 -07:00
Kevin Lange
80445dafcc Various shell and terminal cleanups 2013-05-22 21:59:28 -07:00
Kevin Lange
9c2b45e0aa Unbreak sh's 'Command not found'... 2013-05-22 19:18:14 -07:00
Kevin Lange
d9f22b293a wat 2013-05-15 19:09:58 -07:00
Kevin Lange
04dccab9a4 Swap /bin and /usr/bin in PATH 2013-05-10 19:34:01 -07:00
Kevin Lange
8d20462288 work around -onlcr 2013-05-09 23:56:49 -07:00
Kevin Lange
e809b4e3da Add back in Command not found message 2013-05-08 01:05:38 -07:00
Kevin Lange
096628fb1d Make sh use execvp directly 2013-05-08 00:45:46 -07:00
Kevin Lange
0789c46bfe Add /usr/bin to default PATH 2013-05-08 00:45:27 -07:00
Kevin Lange
8f3b31466f add kill app 2013-05-06 01:29:04 -07:00
Kevin Lange
1e664bef2b Integrate signals into libc 2013-05-05 15:00:24 -07:00
Kevin Lange
9f7fa061ea Fix how 'touch' opens files. 2013-04-24 00:20:07 -07:00
Kevin Lange
a2a890e1a8 Fresh new VFS syscalls: unlink, chmod, umask 2013-04-23 01:14:33 -07:00
Kevin Lange
01a4b5f22d fix USER setting in login 2013-04-22 22:37:17 -07:00
Kevin Lange
cd677b44c3 Fix up some terminal bits, add F keys 2013-04-13 20:21:40 -07:00
Tyler Bindon
ccfcd53943 Use source filename when copying to directory 2013-04-10 05:50:06 +00:00
Tyler Bindon
bd26aff1fd Let's not overwrite directories 2013-04-10 04:25:04 +00:00
Kevin Lange
5152ed6305 pid_t for pid on fork 2013-04-02 15:25:40 -07:00
Kevin Lange
6fba751f9c [grok.org.uk advisory] format string in sh 2013-04-02 15:16:12 -07:00
Kevin Lange
ed233cad89 Clean up formatting for (terminal) login prompt 2013-03-31 13:01:28 -07:00
Kevin Lange
98b6ae5867 esh -> sh, clean up
* login should set some environment variables now
* init should start terminals as login shells, so --single doesn't really
  mean "single user" any more, just sorta single terminal session
* system() should work now since esh now accepts -c; not that vim is
  still going to be unhappy because it does crazy shit.
2013-03-28 00:12:48 -07:00
Kevin Lange
c06c3a483e Fix ^R in esh...
... such that it doesn't clear the right hand side of the prompt, which
now contains the date and time.
2013-03-27 18:30:19 -07:00
Kevin Lange
f2274f0d2f New prompt format 2013-03-27 17:42:57 -07:00
Kevin Lange
5867eec659 Deprecate legacy terminal size feedback 2013-03-25 22:24:26 -07:00
Kevin Lange
6f94ce2296 procfs extensions and ps command 2013-03-18 21:52:45 -07:00
Kevin Lange
71342f842d procfs, and more pty cleanup 2013-03-18 00:52:12 -07:00
Kevin Lange
3b5b532a27 device file coloring in ls 2013-03-17 16:32:10 -07:00
Kevin Lange
eb92cccecd Cleanup 2013-03-15 00:52:09 -07:00
Kevin Lange
22f04f137b Relatively compliant uname() implementation
Also, sleep() as a function (implemented by way of nanosleep) and new
absolute and relative sleep system calls added to newlib.

[ci skip] I damn well know this is going to break CI.
2013-03-13 21:55:25 -07:00
Kevin Lange
4dbdaf342d compositor2 -> compositor 2013-02-10 02:01:31 -08:00
Kevin Lange
b2f94bd393 Completely new build system for userspace 2013-02-10 01:36:35 -08:00