Commit Graph

99 Commits

Author SHA1 Message Date
Kevin Lange
d0518b1775 Fix loop in sudo on command-not-found 2015-07-13 07:49:16 +09:00
Kevin Lange
67c74f3224 free -? shows wrong options [ci skip] 2015-06-24 11:06:10 -07:00
Kevin Lange
2c551fd81b Pass unrecognized start= parameters to compositor 2015-06-18 21:48:56 -07:00
Kevin Lange
c6a2d2ebe7 Add a totally noncompliant /bin/free 2015-06-11 21:06:59 -07:00
Kevin Lange
9d723fe601 Add version info to sh 2015-06-11 21:06:27 -07:00
Kevin Lange
334abd12b4 Add a /bin/uptime 2015-06-11 21:06:15 -07:00
Kevin Lange
8fae365760 Display link targets in ls -l 2015-06-10 23:34:39 -07:00
Kevin Lange
20367b15f9 Fixups for merging symlinks 2015-06-10 20:59:27 -07:00
Mike Gerow
f033111390 Added hilighting for symlinks to ls 2015-06-03 19:10:44 -07:00
Mike Gerow
9f83cd6aec Added support to stat for reading info on symlinks 2015-06-03 19:10:17 -07:00
Mike Gerow
83c715d9df Added userspace command readlink 2015-06-03 19:09:49 -07:00
Mike Gerow
e094251139 Added userspace command ln 2015-06-03 19:09:18 -07:00
Kevin Lange
31fe3eb672 Fix missing setuid color in short output mode (ls) 2015-06-01 17:54:57 -07:00
Kevin Lange
cf2bd4cb22 Fix missing in return in 'set' command 2015-04-26 18:14:52 -07:00
Kevin Lange
8a1430879a Break out rline, add ^W support 2015-04-04 12:33:30 -07:00
Kevin Lange
632f13144f Fix garbage output from ls on bad directory 2015-04-01 09:08:08 -07:00
Lioncash
3438cb1771 sudo: Fix a missing fprintf argument 2015-03-17 12:08:29 -04:00
Kevin Lange
aaeb7d10f4 Port a bunch of other stuff to use getpwuid, etc. 2014-08-26 22:12:33 -07:00
Kevin Lange
9cc5ddd0e9 pwent stuff in libc, auth modules moved toa library 2014-08-26 21:34:29 -07:00
Kevin Lange
17e332b5e7 expose mounting to userspace 2014-06-09 20:13:11 -07:00
Kevin Lange
6492fb2d8e add which 2014-06-08 12:02:21 -07:00
Kevin Lange
775895e5ea remove extraneous test command from sh 2014-06-08 12:02:15 -07:00
Kevin Lange
06bd230076 fix out-of-order reference to cwd in sh prompt 2014-06-08 01:33:40 -07:00
Kevin Lange
01c3cb5581 Cleanup/fix ~ handling in shell 2014-06-08 00:21:23 -07:00
Kevin Lange
1ad63b4eae Dump user into their homedir on login 2014-06-08 00:13:07 -07:00
Kevin Lange
ef7d72c1e1 License headers and a tool to generate them 2014-06-07 23:13:29 -07:00
Kevin Lange
b6a50e4041 Fix missing linefeed before last argument in ls 2014-06-07 19:33:29 -07:00
Kevin Lange
7fa3a6ce32 fancy pstree 2014-06-07 18:32:19 -07:00
Kevin Lange
36feea1673 Support multiple paths in ls, with more expected output 2014-06-07 16:20:54 -07:00
Kevin Lange
b2f0324370 show s in right place for setuid binaries 2014-06-07 15:11:08 -07:00
Kevin Lange
9d3cef60cf support c (char device) and b (block device) in ls -l 2014-06-07 15:05:24 -07:00
Kevin Lange
5a59d1b4b5 flush before exit in echo [xxx: this needs to happen on exit] 2014-06-06 11:42:19 -07:00
Kevin Lange
2680ee8660 use save/restore in prompt rather than ramming to the left 2014-06-06 11:42:04 -07:00
Kevin Lange
55e52e2c33 make sure init is init and not just some kernel thread with ppid=0 2014-06-05 23:48:36 -07:00
Kevin Lange
72b63109b2 Add a simple pstree [not fancy yet] 2014-06-05 23:41:33 -07:00
Kevin Lange
40c399e43a Differentiate shell prompt for root 2014-06-05 22:36:03 -07:00
Kevin Lange
94c976a903 More awesome improvements to ls 2014-06-05 22:19:55 -07:00
Kevin Lange
6c72d9c3ae Various improvements to ls, like -h 2014-06-05 21:34:10 -07:00
Kevin Lange
51d0f31f42 use setuid in login/glogin 2014-06-03 23:14:03 -07:00
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