summaryrefslogtreecommitdiff
path: root/src/user/app/shell/builtins.c
AgeCommit message (Collapse)Author
2023-08-14reorganization: first stepsdzwdz
2023-07-19user /keyboard: handle open()s instantly even if waiting for kbdzwdz
fixes e.g. `echo */*` in dash
2023-02-23fix: printf related warningsdzwdz
2023-01-25style: typedef structs, shorter namespacesdzwdz
I've wanted to do this for a while, and since I've just had a relatively large refactor commit (pcpy), this is as good of a time as any. Typedefing structs was mostly inspired by Plan 9's coding style. It makes some lines of code much shorter at basically no expense. Everything related to userland kept old-style struct definitions, so as not to force that style onto other people. I also considered changing SCREAMING_ENUM_FIELDS to NicerLookingCamelcase, but I didn't, just in case that'd be confusing.
2022-12-27sh: minor usability / aesthetic improvementsdzwdz
2022-12-25user/lib: reorganize a few header filesdzwdz
2022-10-04user/libc: camellia_open, takes cwd into accountdzwdz
2022-10-02syscall/open: add the full suite of READ/WRITE flagsdzwdz
2022-09-04user/shell: use perrordzwdz
2022-09-03user/whitelist: when a command isn't given, default to a shelldzwdz
2022-09-03user: implement a basic mkdirdzwdz
2022-08-28user/libc: unlink()dzwdz
2022-08-20user/ethdump: turn into a file serverdzwdz
2022-08-19user/libc: fextflags, add nonbuffering mode for freaddzwdz
useful for e.g. `hexdump -r /kdev/eth` to see packets as they come in
2022-08-14user/hexdump: cli arguments, large file support, collapsingdzwdz
2022-08-11vfs: support for removing filesdzwdz
2022-08-08user/libc: cwddzwdz
2022-08-08user: union filesystemsdzwdz
2022-08-07user/shell: make `whitelist` work in a more sensible waydzwdz
doesn't need to be a shell builtin now
2022-08-05add _syscall_getsizedzwdz
2022-08-04do some simple TODOs, organize the rest; general code maintainancedzwdz
2022-08-04syscalls: add _syscall_sleep()dzwdz
2022-08-03user/shell: make the builtins handle multiple args; misc fixesdzwdz
2022-08-03user/libc: "!files"dzwdz
similar to /dev/{stdin,stdout,stderr} on Linux, except handled by the libc instead of the kernel because that's the simplest way
2022-07-31user/shell: use an array of function pointers for the builtinsdzwdz
2022-07-30user: stderrdzwdz
2022-07-27user: cleanup init and the shell's codedzwdz