summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
17 hoursusr: oasm: Add initial parsing logicexptIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
17 hoursusr: oasm: Add IMM tokstr entryIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
17 hoursusr: oasm: Lex registers and operandsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
17 hoursusr: oasm: Add log.cIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
17 hoursusr: oasm: Store last token and line numberIan Moffett
Keep track of the last token type (for parser) and keep track of the current line number for debugging. Signed-off-by: Ian Moffett <ian@osmora.org>
17 hoursusr: oasm: Add register token typesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
18 hoursusr: oasm: Add quotes around token nameIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
22 hoursusr: Add initial "oasm" assembler workIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
28 hoursusr: osh: Introduce '&' for background tasksIan Moffett
Previously, when running programs from the shell. The execution must finish before anything else can be done. This commit allows users to add an ampersand ('&') after the command in order to run it in the background. This is an example of its usage: -- @ beep at 400 Hz for 9000ms (to annoy people for fun). @ We will be running it in the background and do a 'kstat' @ to see that the number of tasks have increased. beep 400 9000 & kstat .. -- Signed-off-by: Ian Moffett <ian@osmora.org>
29 hoursusr: osh: Refactor parsing logicIan Moffett
- Add parse_line() to simplify parsing user input - Fixup style ... Signed-off-by: Ian Moffett <ian@osmora.org>
41 hoursusr: osh: Only write printable charactersIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 daysusr: nerve: Add 'peek' verb to nerve(1)Ian Moffett
While poking at a nerve can be very useful, there are times where we need to peek at them to see their current state. This commit introduces the 'peek' verb to do exactly that. Here is how one may peek at the console features: -- [chloe::osmora]~ nerve peek consfeat ansi_esc=1 show_curs=1 -- Signed-off-by: Ian Moffett <ian@osmora.org>
3 daysusr: nerve: Convert nerve name in nerve_to_def()Ian Moffett
Add helper to convert nerve name into numeric nerve type so that peek_nerve() may be implemented while keeping things clean. Signed-off-by: Ian Moffett <ian@osmora.org>
3 daysusr: nerve: Ensure nerve packet does not overflowIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 daysusr: nerve: Use 32 bit datum rather than 8 bitIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 daysusr: Add 'whoami' programIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 daysusr: nerve: Add 'consfeat' nerveIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 daysusr: nerve: Write 'c' directlyIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 daysusr.bin: Add 'nerve' program to poke ctlfsIan Moffett
The 'nerve' program allows users to poke at a ctlfs entry and write their own data. Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskernel: spawn: Deprecate SPAWN_WAITIan Moffett
Deprecate SPAWN_WAIT in favor of waitpid() Signed-off-by: Ian Moffett <ian@osmora.org>
4 daysusr: Add 'kstat' program for system infoIan Moffett
The 'kstat' program provides kernel statistics and accounting information Signed-off-by: Ian Moffett <ian@osmora.org>
8 daysusr.bin: login: Remove useless debug messageIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 daysusr: date: Read back date after writingIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
9 daysusr.bin: Add 'sleep' programIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
9 daysusr: getconf: Add NAME_MAX, PATH_MAX and SSIZE_MAXIan Moffett
- Add additional limit defines - Expand 'val' to 32-bits Signed-off-by: Ian Moffett <ian@osmora.org>
10 daysusr: date: Allow time-setting by userIan Moffett
If the user believes the system time is off, they may now invoke 'date' with a time string "hh:mm:ss" to write it to the clock. Signed-off-by: Ian Moffett <ian@osmora.org>
10 daysusr: login: Parse custom shell pathIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
10 daysusr: login: Clean up check_user() logicIan Moffett
- Rely on have_* state vars - Duplicate 'p' after creation Signed-off-by: Ian Moffett <ian@osmora.org>
11 daysusr: login: Remove default 'USERNAME' defineIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
11 daysusr: login: Only rely on default shell for nowIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
11 daysusr: login: Re-allow char echoing after bad loginIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
11 daysusr: login: Implement 'password' input/hashingIan Moffett
- Update /etc/passwd to contain the hash for 'root' - Implement password checking login in the 'login' program - Add information about default credentials in the README Signed-off-by: Ian Moffett <ian@osmora.org>
11 daysusr: osh: Write current user to promptIan Moffett
Previosuly, this was fixed to "root" but now that we allow multiple users it would be best to make this dynamic. Signed-off-by: Ian Moffett <ian@osmora.org>
11 dayskernel: cons: Remove problematic lockIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
12 daysusr.bin: login: Add initial auth logicIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
12 daysusr.bin: Add initial /etc/passwd parsingIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
14 daysusr.bin: osh: Use "\033[2J" to clear screenIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-07-06usr.bin: readcore: Add missing '\n'Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-07-05usr.bin: readcore: Make sure we close the dump fdIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-07-05usr.bin: Add 'readcore' programIan Moffett
This commit introduces a new program called 'readcore'. This program allows a user to debug crashed programs by passing in the path of a coredump file. Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-29usr.bin: osh: Allow execution of direct pathsIan Moffett
This commit allows the end-user to supply a path (e.g., /usr/bin/mrow) straight to the shell to be interpreted as a binary executable path. Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-29usr: Add 'echo' program to replace osh builtinIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-29usr.bin: osh: Rename 'i' to 'buf_i'Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-29usr.bin: osh: Ensure argv is zerored per commandIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-28usr.bin: Add initial getconf implIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-28usr.bin: osh: Ignore tab as inputIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-28usr.bin: cat: Use fgets() in catIan Moffett
Implement line-by-line reading with fgets() instead of relying on read() Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-24usr.bin: elfdump: Fix argument orderIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-24usr.bin: osh: Clear argv after script commandIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-24usr.bin: Add initial 'cat' implementationIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>