Rev |
Age |
Author |
Path |
Log message |
Diff |
Changes |
3411 |
5823 d 13 h |
post |
/trunk/uspace/app/bdsh/cmds/modules/cat/ |
Take debug printfs out of cat |
|
/trunk/uspace/app/bdsh/cmds/modules/cat/cat.c
|
3410 |
5823 d 13 h |
svoboda |
/trunk/ |
Introduce directories '/app' and '/srv' on ramdisk instead of '/sbin' to mirror source tree. |
|
/trunk/uspace/dist/app /trunk/uspace/dist/srv
/trunk/uspace/dist/sbin
/trunk/boot/arch/amd64/Makefile.inc /trunk/boot/arch/arm32/loader/Makefile /trunk/boot/arch/ia32/Makefile.inc /trunk/boot/arch/mips32/loader/Makefile /trunk/boot/arch/ppc32/loader/Makefile /trunk/boot/arch/sparc64/loader/Makefile /trunk/uspace/app/bdsh/config.h /trunk/uspace/app/init/init.c
|
3396 |
5827 d 18 h |
post |
/trunk/uspace/app/bdsh/ |
We need cli_set_prompt() in the main loop as modules are unaware of cliuser_t |
|
/trunk/uspace/app/bdsh/scli.c
|
3378 |
5838 d 13 h |
post |
/trunk/uspace/app/bdsh/ |
main() - remove unused variable i |
|
/trunk/uspace/app/bdsh/scli.c
|
3377 |
5838 d 13 h |
post |
/trunk/uspace/app/bdsh/ |
Let 'cd' invoke cli_set_prompt(), no need to do it in every iteration of the main loop. |
|
/trunk/uspace/app/bdsh/cmds/builtins/cd/cd.c /trunk/uspace/app/bdsh/scli.c /trunk/uspace/app/bdsh/scli.h /trunk/uspace/app/bdsh/util.c /trunk/uspace/app/bdsh/util.h
|
3376 |
5839 d 17 h |
post |
/trunk/uspace/app/bdsh/ |
Just make cli_count_args() a function |
|
/trunk/uspace/app/bdsh/cmds/builtins/cd/cd.c /trunk/uspace/app/bdsh/cmds/modules/cat/cat.c /trunk/uspace/app/bdsh/cmds/modules/help/help.c /trunk/uspace/app/bdsh/cmds/modules/ls/ls.c /trunk/uspace/app/bdsh/cmds/modules/mkdir/mkdir.c /trunk/uspace/app/bdsh/cmds/modules/rm/rm.c /trunk/uspace/app/bdsh/cmds/modules/touch/touch.c /trunk/uspace/app/bdsh/util.c /trunk/uspace/app/bdsh/util.h
|
3375 |
5840 d 15 h |
post |
/trunk/uspace/app/bdsh/cmds/modules/ |
long_options[] should be const where implemented |
|
/trunk/uspace/app/bdsh/cmds/modules/cat/cat.c /trunk/uspace/app/bdsh/cmds/modules/mkdir/mkdir.c /trunk/uspace/app/bdsh/cmds/modules/rm/rm.c
|
3374 |
5840 d 17 h |
post |
/trunk/uspace/app/bdsh/ |
Drop inclusion of lib/ and lib/ustr in the Makefile (this completes housekeeping) |
|
/trunk/uspace/app/bdsh/Makefile
|
3373 |
5840 d 17 h |
post |
/trunk/uspace/app/bdsh/cmds/ |
Rename non-standard extensions (cmd.def -> cmd_def.h) |
|
/trunk/uspace/app/bdsh/cmds/builtins/cd/cd_def.h /trunk/uspace/app/bdsh/cmds/modules/cat/cat_def.h /trunk/uspace/app/bdsh/cmds/modules/help/help_def.h /trunk/uspace/app/bdsh/cmds/modules/ls/ls_def.h /trunk/uspace/app/bdsh/cmds/modules/mkdir/mkdir_def.h /trunk/uspace/app/bdsh/cmds/modules/pwd/pwd_def.h /trunk/uspace/app/bdsh/cmds/modules/quit/quit_def.h /trunk/uspace/app/bdsh/cmds/modules/rm/rm_def.h /trunk/uspace/app/bdsh/cmds/modules/touch/touch_def.h
/trunk/uspace/app/bdsh/cmds/builtins/cd/cd.def /trunk/uspace/app/bdsh/cmds/modules/cat/cat.def /trunk/uspace/app/bdsh/cmds/modules/help/help.def /trunk/uspace/app/bdsh/cmds/modules/ls/ls.def /trunk/uspace/app/bdsh/cmds/modules/mkdir/mkdir.def /trunk/uspace/app/bdsh/cmds/modules/pwd/pwd.def /trunk/uspace/app/bdsh/cmds/modules/quit/quit.def /trunk/uspace/app/bdsh/cmds/modules/rm/rm.def /trunk/uspace/app/bdsh/cmds/modules/touch/touch.def
/trunk/uspace/app/bdsh/cmds/builtins/builtins.h /trunk/uspace/app/bdsh/cmds/mknewcmd /trunk/uspace/app/bdsh/cmds/modules/modules.h
|
3372 |
5840 d 19 h |
post |
/trunk/uspace/app/bdsh/ |
More house cleaning, don't expose beyond what's needed |
|
/trunk/uspace/app/bdsh/exec.c /trunk/uspace/app/bdsh/exec.h /trunk/uspace/app/bdsh/input.c /trunk/uspace/app/bdsh/input.h /trunk/uspace/app/bdsh/scli.h
|
3371 |
5841 d 1 h |
post |
/trunk/uspace/app/bdsh/ |
pwd should be a module, not a builtin |
|
/trunk/uspace/app/bdsh/cmds/modules/pwd /trunk/uspace/app/bdsh/cmds/modules/pwd/entry.h /trunk/uspace/app/bdsh/cmds/modules/pwd/pwd.c /trunk/uspace/app/bdsh/cmds/modules/pwd/pwd.def /trunk/uspace/app/bdsh/cmds/modules/pwd/pwd.h
/trunk/uspace/app/bdsh/cmds/builtins/pwd
/trunk/uspace/app/bdsh/Makefile /trunk/uspace/app/bdsh/cmds/builtins/builtins.h /trunk/uspace/app/bdsh/cmds/modules/modules.h
|
3369 |
5841 d 11 h |
decky |
/trunk/ |
configurable cross-compiler prefix (using CROSS_PREFIX) |
|
/trunk/boot/arch/arm32/loader/Makefile /trunk/boot/arch/ia64/loader/Makefile /trunk/boot/arch/mips32/loader/Makefile /trunk/boot/arch/ppc32/loader/Makefile /trunk/boot/arch/ppc64/loader/Makefile /trunk/contrib/toolchain/toolchain.amd64.sh /trunk/contrib/toolchain/toolchain.arm32.sh /trunk/contrib/toolchain/toolchain.ia32.sh /trunk/contrib/toolchain/toolchain.ia64.sh /trunk/contrib/toolchain/toolchain.mipseb32.sh /trunk/contrib/toolchain/toolchain.mipsel32.sh /trunk/contrib/toolchain/toolchain.ppc32.sh /trunk/contrib/toolchain/toolchain.ppc64.sh /trunk/kernel/arch/amd64/Makefile.inc /trunk/kernel/arch/arm32/Makefile.inc /trunk/kernel/arch/ia32/Makefile.inc /trunk/kernel/arch/ia32xen/Makefile.inc /trunk/kernel/arch/ia64/Makefile.inc /trunk/kernel/arch/mips32/Makefile.inc /trunk/kernel/arch/ppc32/Makefile.inc /trunk/kernel/arch/ppc64/Makefile.inc /trunk/uspace/lib/libc/arch/amd64/Makefile.inc /trunk/uspace/lib/libc/arch/arm32/Makefile.inc /trunk/uspace/lib/libc/arch/ia32/Makefile.inc /trunk/uspace/lib/libc/arch/ia64/Makefile.inc /trunk/uspace/lib/libc/arch/mips32/Makefile.inc /trunk/uspace/lib/libc/arch/mips32eb/Makefile.inc /trunk/uspace/lib/libc/arch/ppc32/Makefile.inc /trunk/uspace/lib/libc/arch/ppc64/Makefile.inc
|
3368 |
5841 d 12 h |
decky |
/trunk/ |
configurable cross-compiler prefix (using CROSS_PREFIX) |
|
/trunk/boot/arch/sparc64/loader/Makefile /trunk/contrib/toolchain/toolchain.sparc64.sh /trunk/kernel/arch/sparc64/Makefile.inc /trunk/uspace/lib/libc/arch/sparc64/Makefile.inc
|
3367 |
5841 d 22 h |
post |
/trunk/uspace/app/bdsh/ |
Add a README to explain how things work |
|
/trunk/uspace/app/bdsh/README
|
3366 |
5841 d 22 h |
post |
/trunk/uspace/app/bdsh/ |
Housekeeping list, complete lingering things before they get forgotten:
* cli_*() now sets a global cli_errno, error functions cleaned up
* Finish internal cli_*() functions in util.c
* Don't expose cli_init() or cli_finit()
* Get rid of unused globals
* Don't set globals in commands themselves
* Update README files
* Fix stale comments |
|
/trunk/uspace/app/bdsh/cmds/builtins/README /trunk/uspace/app/bdsh/cmds/modules/README /trunk/uspace/app/bdsh/cmds/modules/help/help.c /trunk/uspace/app/bdsh/cmds/modules/quit/quit.c /trunk/uspace/app/bdsh/errors.c /trunk/uspace/app/bdsh/errors.h /trunk/uspace/app/bdsh/errstr.h /trunk/uspace/app/bdsh/exec.c /trunk/uspace/app/bdsh/input.c /trunk/uspace/app/bdsh/scli.c /trunk/uspace/app/bdsh/scli.h /trunk/uspace/app/bdsh/util.c
|
3364 |
5843 d 22 h |
post |
/trunk/uspace/app/bdsh/cmds/modules/ |
Fix command description display, only command entry points need to be exposed. |
|
/trunk/uspace/app/bdsh/cmds/modules/cat/cat.c /trunk/uspace/app/bdsh/cmds/modules/cat/cat.h /trunk/uspace/app/bdsh/cmds/modules/help/help.c /trunk/uspace/app/bdsh/cmds/modules/help/help.h /trunk/uspace/app/bdsh/cmds/modules/ls/ls.c /trunk/uspace/app/bdsh/cmds/modules/ls/ls.def /trunk/uspace/app/bdsh/cmds/modules/ls/ls.h /trunk/uspace/app/bdsh/cmds/modules/mkdir/mkdir.c /trunk/uspace/app/bdsh/cmds/modules/mkdir/mkdir.def /trunk/uspace/app/bdsh/cmds/modules/mkdir/mkdir.h /trunk/uspace/app/bdsh/cmds/modules/rm/rm.c /trunk/uspace/app/bdsh/cmds/modules/rm/rm.def /trunk/uspace/app/bdsh/cmds/modules/rm/rm.h /trunk/uspace/app/bdsh/cmds/modules/touch/touch.def
|
3361 |
5844 d 12 h |
post |
/trunk/uspace/app/bdsh/ |
Update TODO list |
|
/trunk/uspace/app/bdsh/TODO
|
3360 |
5844 d 12 h |
post |
/trunk/uspace/app/bdsh/ |
Remove 'mount' |
|
/trunk/uspace/app/bdsh/cmds/modules/mount
/trunk/uspace/app/bdsh/Makefile /trunk/uspace/app/bdsh/cmds/modules/modules.h
|
3358 |
5844 d 21 h |
post |
/trunk/uspace/app/bdsh/cmds/modules/cat/ |
cat: no reason to set i = optind twice :) |
|
/trunk/uspace/app/bdsh/cmds/modules/cat/cat.c
|
3357 |
5844 d 21 h |
post |
/trunk/uspace/app/bdsh/cmds/modules/cat/ |
cat: purpose updated in cat.def |
|
/trunk/uspace/app/bdsh/cmds/modules/cat/cat.def
|
3356 |
5844 d 21 h |
post |
/trunk/uspace/app/bdsh/cmds/modules/cat/ |
Add a basic cat, cat --help shows future options |
|
/trunk/uspace/app/bdsh/cmds/modules/cat/cat.c /trunk/uspace/app/bdsh/cmds/modules/cat/cat.h
|
3355 |
5845 d 19 h |
post |
/trunk/uspace/app/bdsh/cmds/modules/mkdir/ |
mkdir: Get rid of useless while loop (spaghetti) |
|
/trunk/uspace/app/bdsh/cmds/modules/mkdir/mkdir.c
|
3354 |
5845 d 21 h |
post |
/trunk/uspace/app/bdsh/cmds/modules/mkdir/ |
mkdir: increment ret if mkdir() fails |
|
/trunk/uspace/app/bdsh/cmds/modules/mkdir/mkdir.c
|
3353 |
5845 d 21 h |
post |
/trunk/uspace/app/bdsh/cmds/modules/mkdir/ |
mkdir is finished, -p / --parents options and more now functional |
|
/trunk/uspace/app/bdsh/cmds/modules/mkdir/mkdir.c /trunk/uspace/app/bdsh/cmds/modules/mkdir/mkdir.h
|
3352 |
5846 d 8 h |
jermar |
/trunk/uspace/srv/ |
Add reference to the mounted FS root.
This makes it possible to keep the FS root logically unlinked (i.e. lnkcnt == 0)
because it prevents VFS from attempting to destroy it during closedir(). |
|
/trunk/uspace/srv/fs/fat/fat_ops.c /trunk/uspace/srv/fs/tmpfs/tmpfs_ops.c /trunk/uspace/srv/vfs/vfs_ops.c
|
3351 |
5846 d 10 h |
jermar |
/trunk/uspace/lib/libc/generic/io/ |
Cstyle and formatting changes. |
|
/trunk/uspace/lib/libc/generic/io/asprintf.c /trunk/uspace/lib/libc/generic/io/vsnprintf.c
|
3349 |
5846 d 17 h |
jermar |
/trunk/ |
Enable bdsh in most of the architectures, remove cli and simplify init. |
|
/trunk/uspace/app/cli
/trunk/boot/arch/amd64/Makefile.inc /trunk/boot/arch/arm32/loader/Makefile /trunk/boot/arch/ia32/Makefile.inc /trunk/boot/arch/mips32/loader/Makefile /trunk/boot/arch/ppc32/loader/Makefile /trunk/boot/arch/sparc64/loader/Makefile /trunk/uspace/Makefile /trunk/uspace/app/init/init.c
|
3348 |
5846 d 17 h |
jermar |
/trunk/uspace/lib/libc/ |
Add asprintf(). |
|
/trunk/uspace/lib/libc/generic/io/asprintf.c
/trunk/uspace/lib/libc/Makefile /trunk/uspace/lib/libc/generic/io/sprintf.c /trunk/uspace/lib/libc/include/stdio.h
|
3347 |
5846 d 17 h |
jermar |
/trunk/uspace/lib/libc/generic/io/ |
printf_putstr() must return the number of characters printed. |
|
/trunk/uspace/lib/libc/generic/io/printf_core.c
|
3346 |
5846 d 19 h |
post |
/trunk/ |
Merge with shell @ 3241 for bdsh |
|
/trunk/uspace/app/bdsh /trunk/uspace/lib/libc/generic/getopt.c /trunk/uspace/lib/libc/include/getopt.h
/trunk/boot/arch/ia32/Makefile.inc /trunk/uspace/Makefile /trunk/uspace/app/init/init.c /trunk/uspace/lib/libc/Makefile
|
3344 |
5848 d 9 h |
jermar |
/trunk/uspace/lib/libc/generic/ |
Change ipc_share_{in|out}_start() to use the async framework. |
|
/trunk/uspace/lib/libc/generic/ipc.c
|
3335 |
5850 d 7 h |
jermar |
/trunk/uspace/srv/fs/fat/ |
Support for readdir() on FAT. |
|
/trunk/uspace/srv/fs/fat/fat_ops.c
|
3334 |
5852 d 13 h |
jermar |
/trunk/uspace/lib/libc/generic/ |
Let ipc_data_{read|write}_start() use the async framework. |
|
/trunk/uspace/lib/libc/generic/ipc.c
|
3331 |
5852 d 15 h |
jermar |
/trunk/uspace/lib/libc/generic/vfs/ |
Fix canonify() to set correct length even for paths that have no components. |
|
/trunk/uspace/lib/libc/generic/vfs/canonify.c
|
3328 |
5852 d 17 h |
jermar |
/trunk/uspace/lib/libc/generic/vfs/ |
Fix off-by-one bug in absolutize(). |
|
/trunk/uspace/lib/libc/generic/vfs/vfs.c
|
3325 |
5853 d 8 h |
jermar |
/trunk/uspace/srv/fs/fat/ |
Determine the size of a directory node by walking the FAT and counting clusters.
This eliminates the hardcoded limit on the number of directory entries. |
|
/trunk/uspace/srv/fs/fat/fat_ops.c
|
3315 |
5854 d 8 h |
jermar |
/trunk/uspace/srv/loader/ |
Make sure that the loader keeps on read()ing until it read()s all it wanted to
read(). |
|
/trunk/uspace/srv/loader/elf_load.c
|
3314 |
5854 d 8 h |
jermar |
/trunk/uspace/srv/fs/fat/ |
fat_read() should expect IPC_M_DATA_READ instead of IPC_M_DATA_WRITE. |
|
/trunk/uspace/srv/fs/fat/fat_ops.c
|
3313 |
5854 d 9 h |
jermar |
/trunk/uspace/lib/libc/generic/vfs/ |
When read() fails, return the actual error. |
|
/trunk/uspace/lib/libc/generic/vfs/vfs.c
|
3312 |
5854 d 9 h |
jermar |
/trunk/uspace/srv/fs/fat/ |
When removing a FAT node from the ffn list, use the correct pointer instead of
an uninitialized one. |
|
/trunk/uspace/srv/fs/fat/fat_ops.c
|