Subversion Repositories HelenOS

Rev

Hide changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff Changes
4682 5455 d 18 h svoboda /trunk/uspace/ Fix warnings in Bdsh and PCI lib.  
/trunk/uspace/app/bdsh/cmds/modules/cp/cp.c
/trunk/uspace/app/bdsh/cmds/modules/ls/ls.c
/trunk/uspace/app/bdsh/cmds/modules/ls/ls.h
/trunk/uspace/app/bdsh/cmds/modules/rm/rm.c
/trunk/uspace/srv/pci/libpci/generic.c
/trunk/uspace/srv/pci/libpci/i386-ports.c
/trunk/uspace/srv/pci/libpci/names.c
4648 5473 d 18 h jermar /trunk/uspace/app/bdsh/ Fix a couple of memory leaks and an improper use of sizeof().  
/trunk/uspace/app/bdsh/util.c
4620 5482 d 17 h svoboda /trunk/uspace/ Allow to determine whether a task returned value before terminatign.  
/trunk/uspace/app/bdsh/exec.c
/trunk/uspace/app/getvc/getvc.c
/trunk/uspace/lib/libc/generic/task.c
/trunk/uspace/lib/libc/include/task.h
/trunk/uspace/srv/ns/task.c
4617 5482 d 22 h svoboda /trunk/uspace/ Allow task to return value (will be improved).  
/trunk/uspace/app/bdsh/exec.c
/trunk/uspace/app/getvc/getvc.c
/trunk/uspace/lib/libc/generic/libc.c
/trunk/uspace/lib/libc/generic/task.c
/trunk/uspace/lib/libc/include/ipc/ns.h
/trunk/uspace/lib/libc/include/task.h
/trunk/uspace/srv/ns/ns.c
/trunk/uspace/srv/ns/task.c
/trunk/uspace/srv/ns/task.h
4587 5490 d 16 h jermar /trunk/uspace/ Implement stat() and VFS_IN_STAT.
Modify bdsh() to use stat() during ls.
In devfs, allow lookups that don't
specify one of L_FILE and L_DIRECTORY.
 
/trunk/uspace/app/bdsh/cmds/modules/ls/ls.c
/trunk/uspace/app/bdsh/cmds/modules/ls/ls.h
/trunk/uspace/lib/libc/generic/vfs/vfs.c
/trunk/uspace/lib/libc/include/sys/stat.h
/trunk/uspace/srv/fs/devfs/devfs_ops.c
/trunk/uspace/srv/vfs/vfs_ops.c
4572 5492 d 16 h svoboda /trunk/uspace/ Allow libblock to operate in write-through mode. With 'wtcache' mount option, FAT sets write-through mode on the cache.  
/trunk/uspace/app/bdsh/cmds/modules/bdd/bdd.c
/trunk/uspace/lib/libblock/libblock.c
/trunk/uspace/lib/libblock/libblock.h
/trunk/uspace/srv/fs/fat/fat_ops.c
4541 5503 d 16 h svoboda /trunk/uspace/ Stdio stream buffering (only for writing a.t.m.) Issue: Do we need two moving delimiters (head, tail) to recover from error or is one moving data delimiter enough, like in the current implementation? (Where the buffer must be drained as a whole, cannot do it part at a time.  
/trunk/uspace/app/bdsh/input.c
/trunk/uspace/app/tester/console/console1.c
/trunk/uspace/app/tetris/screen.c
/trunk/uspace/lib/libc/generic/io/io.c
/trunk/uspace/lib/libc/include/stdio.h
4496 5514 d 21 h decky /trunk/uspace/ be more pedantic about undefined function prototypes (to avoid memory access traps)
add missing header files
 
/trunk/uspace/app/bdsh/cmds/modules/bdd/bdd.c
/trunk/uspace/app/bdsh/cmds/modules/kcon/kcon.c
/trunk/uspace/app/bdsh/cmds/modules/mkdir/mkdir.c
/trunk/uspace/app/bdsh/cmds/modules/pwd/pwd.c
/trunk/uspace/app/bdsh/cmds/modules/rm/rm.c
/trunk/uspace/app/bdsh/input.c
/trunk/uspace/app/tester/console/console1.c
/trunk/uspace/app/trace/trace.c
/trunk/uspace/lib/libc/Makefile.toolchain
/trunk/uspace/lib/libc/generic/mem.c
/trunk/uspace/srv/ns/clonable.c
/trunk/uspace/srv/ns/ns.c
4486 5515 d 18 h decky /trunk/uspace/app/bdsh/ bdsh: sync with I/O changes, block until spawned task exits  
/trunk/uspace/app/bdsh/cmds/modules/kcon/kcon.c
/trunk/uspace/app/bdsh/exec.c
/trunk/uspace/app/bdsh/input.c
4408 5530 d 16 h svoboda /trunk/uspace/app/bdsh/ Add 'bdd' shell command (block device dump) for testing block device drivers.  
/trunk/uspace/app/bdsh/cmds/modules/bdd
/trunk/uspace/app/bdsh/cmds/modules/bdd/bdd.c
/trunk/uspace/app/bdsh/cmds/modules/bdd/bdd.h
/trunk/uspace/app/bdsh/cmds/modules/bdd/bdd_def.h
/trunk/uspace/app/bdsh/cmds/modules/bdd/entry.h
/trunk/uspace/app/bdsh/Makefile
/trunk/uspace/app/bdsh/cmds/modules/modules.h
4379 5538 d 17 h svoboda /trunk/uspace/app/bdsh/ Slash missing in bdsh makefile.  
/trunk/uspace/app/bdsh/Makefile
4371 5538 d 19 h jermar /trunk/uspace/app/bdsh/ Add a bdsh wrapper around mount().  
/trunk/uspace/app/bdsh/cmds/modules/mount
/trunk/uspace/app/bdsh/cmds/modules/mount/entry.h
/trunk/uspace/app/bdsh/cmds/modules/mount/mount.c
/trunk/uspace/app/bdsh/cmds/modules/mount/mount.h
/trunk/uspace/app/bdsh/cmds/modules/mount/mount_def.h
/trunk/uspace/app/bdsh/Makefile
/trunk/uspace/app/bdsh/cmds/modules/modules.h
4364 5542 d 3 h jermar /trunk/uspace/app/bdsh/ Add a primitive 'mv' command. This 'mv' is a mere wrapper around rename() and
as such cannot move files across file systems and doesn't work on FAT (because
FAT does not support hardlinks).
 
/trunk/uspace/app/bdsh/cmds/modules/mv
/trunk/uspace/app/bdsh/cmds/modules/mv/entry.h
/trunk/uspace/app/bdsh/cmds/modules/mv/mv.c
/trunk/uspace/app/bdsh/cmds/modules/mv/mv.h
/trunk/uspace/app/bdsh/cmds/modules/mv/mv_def.h
/trunk/uspace/app/bdsh/Makefile
/trunk/uspace/app/bdsh/cmds/modules/module_aliases.h
/trunk/uspace/app/bdsh/cmds/modules/modules.h
4361 5543 d 17 h jermar /trunk/uspace/app/bdsh/cmds/modules/cat/ HelenOS open() returns the actual error code, not mere -1.  
/trunk/uspace/app/bdsh/cmds/modules/cat/cat.c
4268 5570 d 6 h svoboda /trunk/uspace/ str_cpy() and str_ncpy() in userspace. Nuke strcpy() and strncpy().  
/trunk/uspace/app/bdsh/cmds/modules/ls/ls.c
/trunk/uspace/app/tetris/scores.c
/trunk/uspace/app/tetris/tetris.c
/trunk/uspace/lib/libc/generic/loader.c
/trunk/uspace/lib/libc/generic/string.c
/trunk/uspace/lib/libc/generic/vfs/vfs.c
/trunk/uspace/lib/libc/include/string.h
/trunk/uspace/srv/fs/fat/fat_ops.c
/trunk/uspace/srv/fs/tmpfs/tmpfs_ops.c
4266 5570 d 15 h svoboda /trunk/uspace/ strdup() -> str_dup()  
/trunk/uspace/app/bdsh/cmds/modules/ls/ls.c
/trunk/uspace/app/bdsh/cmds/modules/mkdir/mkdir.c
/trunk/uspace/app/bdsh/cmds/modules/touch/touch.c
/trunk/uspace/app/bdsh/exec.c
/trunk/uspace/app/bdsh/input.c
/trunk/uspace/app/tetris/scores.c
/trunk/uspace/app/tetris/tetris.c
/trunk/uspace/lib/libc/generic/string.c
/trunk/uspace/lib/libc/generic/vfs/vfs.c
/trunk/uspace/lib/libc/include/string.h
4264 5570 d 16 h svoboda /trunk/uspace/ Nuke strcpy() and strcmp().  
/trunk/uspace/app/bdsh/cmds/builtin_cmds.c
/trunk/uspace/app/bdsh/cmds/mod_cmds.c
/trunk/uspace/app/bdsh/cmds/modules/help/help.c
/trunk/uspace/app/bdsh/cmds/modules/mkdir/mkdir.c
/trunk/uspace/app/bdsh/cmds/modules/rm/rm.c
/trunk/uspace/app/bdsh/exec.c
/trunk/uspace/app/bdsh/input.c
/trunk/uspace/app/tester/devmap/devmap1.c
/trunk/uspace/app/tetris/scores.c
/trunk/uspace/app/tetris/screen.c
/trunk/uspace/app/tetris/tetris.c
/trunk/uspace/lib/libc/generic/console.c
/trunk/uspace/lib/libc/generic/getopt.c
/trunk/uspace/lib/libc/generic/string.c
/trunk/uspace/lib/libc/include/stdio.h
/trunk/uspace/lib/libc/include/string.h
/trunk/uspace/srv/devmap/devmap.c
/trunk/uspace/srv/fs/fat/fat_dentry.c
/trunk/uspace/srv/fs/fat/fat_ops.c
/trunk/uspace/srv/fs/tmpfs/tmpfs_dump.c
/trunk/uspace/srv/fs/tmpfs/tmpfs_ops.c
/trunk/uspace/srv/loader/main.c
/trunk/uspace/srv/pci/libpci/names.c
/trunk/uspace/srv/rd/rd.c
/trunk/uspace/srv/vfs/vfs_ops.c
4255 5572 d 19 h svoboda /trunk/uspace/app/bdsh/ Read UCS chars in bdsh and encode them. (bdsh is still largely ignorant of UCS but it will work somehow with the characters now).  
/trunk/uspace/app/bdsh/input.c
4239 5574 d 22 h svoboda /trunk/uspace/ Make Czech layout work partially in bdsh.  
/trunk/uspace/app/bdsh/input.c
/trunk/uspace/app/tester/print/print4.c
/trunk/uspace/lib/libc/Makefile.toolchain
/trunk/uspace/lib/libc/generic/console.c
/trunk/uspace/lib/libc/generic/io/io.c
/trunk/uspace/lib/libc/include/console.h
/trunk/uspace/srv/kbd/layout/cz.c
4168 5588 d 18 h svoboda /trunk/uspace/ 'kcon' shell builtin for switching to debug console.  
/trunk/uspace/app/bdsh/cmds/modules/kcon
/trunk/uspace/app/bdsh/cmds/modules/kcon/entry.h
/trunk/uspace/app/bdsh/cmds/modules/kcon/kcon.c
/trunk/uspace/app/bdsh/cmds/modules/kcon/kcon.h
/trunk/uspace/app/bdsh/cmds/modules/kcon/kcon_def.h
/trunk/uspace/app/bdsh/Makefile
/trunk/uspace/app/bdsh/cmds/modules/modules.h
/trunk/uspace/lib/libc/generic/console.c
/trunk/uspace/lib/libc/include/console.h
/trunk/uspace/lib/libc/include/ipc/console.h
/trunk/uspace/srv/console/console.c
4112 5598 d 18 h svoboda /trunk/uspace/app/bdsh/ Fix grammar.  
/trunk/uspace/app/bdsh/exec.c
3980 5610 d 22 h svoboda /trunk/uspace/app/bdsh/ The command line should ignore Tab.  
/trunk/uspace/app/bdsh/input.c
3945 5618 d 2 h svoboda /trunk/uspace/app/bdsh/cmds/modules/ls/ Fix file size display when doing 'ls' of another directory.  
/trunk/uspace/app/bdsh/cmds/modules/ls/ls.c
/trunk/uspace/app/bdsh/cmds/modules/ls/ls.h
3882 5626 d 18 h decky /trunk/uspace/ cleanup configuration
code cleanup
 
/trunk/uspace/lib/libc/include/macros.h
/trunk/uspace/Makefile
/trunk/uspace/app/bdsh/Makefile
/trunk/uspace/app/init/Makefile
/trunk/uspace/app/init/version.c
/trunk/uspace/app/klog/Makefile
/trunk/uspace/app/tester/Makefile
/trunk/uspace/app/tetris/Makefile
/trunk/uspace/app/trace/Makefile
/trunk/uspace/lib/libblock/Makefile
/trunk/uspace/lib/libc/Makefile
/trunk/uspace/lib/libc/Makefile.toolchain
/trunk/uspace/lib/libc/arch/amd64/Makefile.inc
/trunk/uspace/lib/libc/arch/amd64/_link.ld.in
/trunk/uspace/lib/libc/arch/arm32/Makefile.inc
/trunk/uspace/lib/libc/arch/arm32/_link.ld.in
/trunk/uspace/lib/libc/arch/ia32/Makefile.inc
/trunk/uspace/lib/libc/arch/ia32/_link.ld.in
/trunk/uspace/lib/libc/arch/ia64/Makefile.inc
/trunk/uspace/lib/libc/arch/ia64/_link.ld.in
/trunk/uspace/lib/libc/arch/mips32/Makefile.inc
/trunk/uspace/lib/libc/arch/mips32/_link.ld.in
/trunk/uspace/lib/libc/arch/mips32eb/Makefile.inc
/trunk/uspace/lib/libc/arch/ppc32/Makefile.inc
/trunk/uspace/lib/libc/arch/ppc32/_link.ld.in
/trunk/uspace/lib/libc/arch/sparc64/Makefile.inc
/trunk/uspace/lib/libc/arch/sparc64/_link.ld.in
/trunk/uspace/lib/libfs/Makefile
/trunk/uspace/lib/softfloat/Makefile
/trunk/uspace/lib/softint/Makefile
/trunk/uspace/srv/console/Makefile
/trunk/uspace/srv/devmap/Makefile
/trunk/uspace/srv/fb/Makefile
/trunk/uspace/srv/fb/fb.c
/trunk/uspace/srv/fs/fat/Makefile
/trunk/uspace/srv/fs/fat/fat.c
/trunk/uspace/srv/fs/tmpfs/Makefile
/trunk/uspace/srv/kbd/Makefile
/trunk/uspace/srv/kbd/arch/ia64/src/kbd.c
/trunk/uspace/srv/kbd/arch/ppc32/src/kbd.c
/trunk/uspace/srv/loader/Makefile
/trunk/uspace/srv/loader/arch/amd64/Makefile.inc
/trunk/uspace/srv/loader/arch/amd64/_link.ld.in
/trunk/uspace/srv/loader/arch/arm32/Makefile.inc
/trunk/uspace/srv/loader/arch/arm32/_link.ld.in
/trunk/uspace/srv/loader/arch/ia32/Makefile.inc
/trunk/uspace/srv/loader/arch/ia32/_link.ld.in
/trunk/uspace/srv/loader/arch/ia64/Makefile.inc
/trunk/uspace/srv/loader/arch/ia64/_link.ld.in
/trunk/uspace/srv/loader/arch/mips32/Makefile.inc
/trunk/uspace/srv/loader/arch/mips32/_link.ld.in
/trunk/uspace/srv/loader/arch/ppc32/Makefile.inc
/trunk/uspace/srv/loader/arch/ppc32/_link.ld.in
/trunk/uspace/srv/loader/arch/sparc64/Makefile.inc
/trunk/uspace/srv/loader/arch/sparc64/_link.ld.in
/trunk/uspace/srv/ns/Makefile
/trunk/uspace/srv/pci/Makefile
/trunk/uspace/srv/pci/libpci/Makefile
/trunk/uspace/srv/rd/Makefile
/trunk/uspace/srv/vfs/Makefile
3834 5639 d 19 h svoboda /trunk/uspace/app/bdsh/cmds/modules/ls/ Fix file-size display on big-endian machines. Also, rather use off_t than uint64_t for holding file size.  
/trunk/uspace/app/bdsh/cmds/modules/ls/ls.c
3816 5647 d 20 h post /trunk/uspace/app/bdsh/cmds/modules/cp/ cstyle (nits) 80 column limit  
/trunk/uspace/app/bdsh/cmds/modules/cp/cp.c
3815 5647 d 21 h post /trunk/uspace/app/bdsh/cmds/modules/ Stop using assert() in modules/builtins as abort() will crash the entire shell.
Handle the case and report the issue, leaving the user able to reproduce it
without rebooting.
 
/trunk/uspace/app/bdsh/cmds/modules/cp/cp.c
/trunk/uspace/app/bdsh/cmds/modules/rm/rm.c
3814 5647 d 22 h post /trunk/uspace/app/bdsh/cmds/modules/ls/ ls now prints file sizes  
/trunk/uspace/app/bdsh/cmds/modules/ls/ls.c
3813 5647 d 23 h post /trunk/uspace/app/bdsh/ Get rid of cli_strdup(), cli_strtok(), cli_strtok_r(), just use facilities in libc  
/trunk/uspace/app/bdsh/AUTHORS
/trunk/uspace/app/bdsh/cmds/modules/mkdir/mkdir.c
/trunk/uspace/app/bdsh/cmds/modules/touch/touch.c
/trunk/uspace/app/bdsh/exec.c
/trunk/uspace/app/bdsh/input.c
/trunk/uspace/app/bdsh/util.c
/trunk/uspace/app/bdsh/util.h
3812 5648 d 6 h post /trunk/uspace/app/bdsh/ Get rid of cli_restricted and cli_interactive  
/trunk/uspace/app/bdsh/input.c
/trunk/uspace/app/bdsh/scli.c
3811 5648 d 6 h post /trunk/uspace/app/bdsh/ exit should be a builtin, since it will eventually need to know about running jobs  
/trunk/uspace/app/bdsh/cmds/builtins/exit
/trunk/uspace/app/bdsh/cmds/builtins/exit/exit.c
/trunk/uspace/app/bdsh/cmds/builtins/exit/exit.h
/trunk/uspace/app/bdsh/cmds/builtins/exit/exit_def.h
/trunk/uspace/app/bdsh/cmds/builtins/exit/quit.c
/trunk/uspace/app/bdsh/cmds/builtins/exit/quit.h
/trunk/uspace/app/bdsh/cmds/builtins/exit/quit_def.h
/trunk/uspace/app/bdsh/cmds/modules/quit
/trunk/uspace/app/bdsh/Makefile
/trunk/uspace/app/bdsh/cmds/builtins/builtins.h
/trunk/uspace/app/bdsh/cmds/builtins/exit/entry.h
/trunk/uspace/app/bdsh/cmds/modules/modules.h
3810 5648 d 6 h post /trunk/uspace/app/bdsh/cmds/ Update the mknewcmd script  
/trunk/uspace/app/bdsh/cmds/mknewcmd
3809 5648 d 6 h post /trunk/uspace/app/bdsh/ Eliminate 'restrict' from command structure, get rid of needless aliases.
Order of search is builtin -> module -> external, there is no need to
restrict commands to (non)interative shells only any longer.
 
/trunk/uspace/app/bdsh/cmds/builtin_cmds.c
/trunk/uspace/app/bdsh/cmds/builtins/builtin_aliases.h
/trunk/uspace/app/bdsh/cmds/builtins/cd/cd_def.h
/trunk/uspace/app/bdsh/cmds/cmds.h
/trunk/uspace/app/bdsh/cmds/mod_cmds.c
/trunk/uspace/app/bdsh/cmds/modules/cat/cat_def.h
/trunk/uspace/app/bdsh/cmds/modules/cp/cp_def.h
/trunk/uspace/app/bdsh/cmds/modules/help/help.c
/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/module_aliases.h
/trunk/uspace/app/bdsh/cmds/modules/pwd/pwd_def.h
/trunk/uspace/app/bdsh/cmds/modules/quit/quit.c
/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/sleep/sleep_def.h
/trunk/uspace/app/bdsh/cmds/modules/touch/touch_def.h
/trunk/uspace/app/bdsh/input.c
3803 5649 d 19 h decky /trunk/ configuration system overhaul (requires newt)  
/trunk/boot/boot.config
/trunk/kernel/kernel.config
/trunk/uspace/uspace.config
/trunk/HelenOS.config
/trunk/Makefile
/trunk/boot/Makefile
/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/boot/arch/sparc64/loader/Makefile
/trunk/kernel/Makefile
/trunk/tools/config.py
/trunk/uspace/Makefile
/trunk/uspace/app/bdsh/Makefile
/trunk/uspace/app/init/Makefile
/trunk/uspace/app/klog/Makefile
/trunk/uspace/app/tester/Makefile
/trunk/uspace/app/tetris/Makefile
/trunk/uspace/app/trace/Makefile
/trunk/uspace/lib/libblock/Makefile
/trunk/uspace/lib/libc/Makefile
/trunk/uspace/lib/libc/Makefile.toolchain
/trunk/uspace/lib/libc/arch/mips32/Makefile.inc
/trunk/uspace/lib/libfs/Makefile
/trunk/uspace/lib/softfloat/Makefile
/trunk/uspace/lib/softint/Makefile
/trunk/uspace/srv/console/Makefile
/trunk/uspace/srv/devmap/Makefile
/trunk/uspace/srv/fb/Makefile
/trunk/uspace/srv/fs/fat/Makefile
/trunk/uspace/srv/fs/tmpfs/Makefile
/trunk/uspace/srv/kbd/Makefile
/trunk/uspace/srv/loader/Makefile
/trunk/uspace/srv/ns/Makefile
/trunk/uspace/srv/pci/Makefile
/trunk/uspace/srv/pci/libpci/Makefile
/trunk/uspace/srv/rd/Makefile
/trunk/uspace/srv/vfs/Makefile
3767 5669 d 0 h svoboda /trunk/uspace/ Console color support overhaul. Create C library console interface.  
/trunk/uspace/lib/libc/generic/console.c
/trunk/uspace/lib/libc/include/console
/trunk/uspace/lib/libc/include/console.h
/trunk/uspace/lib/libc/include/console/color.h
/trunk/uspace/lib/libc/include/console/style.h
/trunk/uspace/app/bdsh/input.c
/trunk/uspace/app/tester/console/console1.c
/trunk/uspace/app/tetris/screen.c
/trunk/uspace/app/trace/trace.c
/trunk/uspace/lib/libc/Makefile
/trunk/uspace/lib/libc/include/ipc/console.h
/trunk/uspace/lib/libc/include/ipc/fb.h
/trunk/uspace/srv/console/console.c
/trunk/uspace/srv/console/gcons.c
/trunk/uspace/srv/console/screenbuffer.c
/trunk/uspace/srv/console/screenbuffer.h
/trunk/uspace/srv/fb/ega.c
/trunk/uspace/srv/fb/fb.c
/trunk/uspace/srv/fb/serial_console.c
3651 5702 d 1 h jermar /trunk/uspace/app/bdsh/cmds/modules/cp/ Nits.  
/trunk/uspace/app/bdsh/cmds/modules/cp/cp.c
3650 5702 d 1 h jermar /trunk/uspace/app/bdsh/cmds/modules/cp/ Several fixes for cp.  
/trunk/uspace/app/bdsh/cmds/modules/cp/cp.c
3645 5703 d 2 h post /trunk/uspace/app/bdsh/cmds/modules/cp/ cp: Fix counter if verbose, remove debug printfs  
/trunk/uspace/app/bdsh/cmds/modules/cp/cp.c
3643 5703 d 4 h post /trunk/uspace/app/bdsh/cmds/modules/cp/ cp: fix type mis-match  
/trunk/uspace/app/bdsh/cmds/modules/cp/cp.c
3642 5703 d 4 h post /trunk/uspace/app/bdsh/cmds/modules/cp/ make copy_file() deal with files with zero length  
/trunk/uspace/app/bdsh/cmds/modules/cp/cp.c