Subversion Repositories HelenOS

Rev

Go to most recent revision | Hide changed files | Directory listing | RSS feed

Filtering Options

Rev Age Author Path Log message Diff Changes
4482 5503 d 7 h decky /trunk/uspace/lib/libc/ I/O subsystem overhaul:
- add more POSIX-like file and stream functions (with real functionality of stdin, stdout, stderr)
- cleanup console access methods (now generic to any console-like device)
- remove unsafe stream functions
- add special open_node(), fd_node(), fd_phone() (file) and fopen_node(), fnode(), fphone() (stream) functions for HelenOS-specific I/O operations
 
/trunk/uspace/lib/libc/generic/io/console.c
/trunk/uspace/lib/libc/generic/io/klog.c
/trunk/uspace/lib/libc/include/io/color.h
/trunk/uspace/lib/libc/include/io/console.h
/trunk/uspace/lib/libc/include/io/keycode.h
/trunk/uspace/lib/libc/include/io/klog.h
/trunk/uspace/lib/libc/include/io/style.h
/trunk/uspace/lib/libc/generic/console.c
/trunk/uspace/lib/libc/generic/io/fprintf.c
/trunk/uspace/lib/libc/generic/io/sprintf.c
/trunk/uspace/lib/libc/generic/io/stdio.c
/trunk/uspace/lib/libc/generic/io/stream.c
/trunk/uspace/lib/libc/generic/io/vsprintf.c
/trunk/uspace/lib/libc/generic/kbd.c
/trunk/uspace/lib/libc/include/console
/trunk/uspace/lib/libc/include/console.h
/trunk/uspace/lib/libc/include/io/io.h
/trunk/uspace/lib/libc/include/io/stream.h
/trunk/uspace/lib/libc/include/kbd
/trunk/uspace/lib/libc/Makefile
/trunk/uspace/lib/libc/generic/io/asprintf.c
/trunk/uspace/lib/libc/generic/io/io.c
/trunk/uspace/lib/libc/generic/io/printf.c
/trunk/uspace/lib/libc/generic/io/printf_core.c
/trunk/uspace/lib/libc/generic/io/snprintf.c
/trunk/uspace/lib/libc/generic/io/vprintf.c
/trunk/uspace/lib/libc/generic/io/vsnprintf.c
/trunk/uspace/lib/libc/generic/vfs/vfs.c
/trunk/uspace/lib/libc/include/dirent.h
/trunk/uspace/lib/libc/include/fcntl.h
/trunk/uspace/lib/libc/include/fibril.h
/trunk/uspace/lib/libc/include/io/printf_core.h
/trunk/uspace/lib/libc/include/stdio.h
/trunk/uspace/lib/libc/include/unistd.h
/trunk/uspace/lib/libc/include/vfs/vfs.h
4481 5503 d 7 h decky /trunk/uspace/lib/libc/include/ipc/ sync header files with implementation
coding style
 
/trunk/uspace/lib/libc/include/ipc/vfs.h
/trunk/uspace/lib/libc/include/ipc/console.h
/trunk/uspace/lib/libc/include/ipc/ipc.h
/trunk/uspace/lib/libc/include/ipc/loader.h
/trunk/uspace/lib/libc/include/ipc/ns.h
4480 5503 d 7 h decky /trunk/uspace/lib/libc/include/loader/ sync header files with implementation  
/trunk/uspace/lib/libc/include/loader/loader.h
/trunk/uspace/lib/libc/include/loader/pcb.h
4479 5503 d 7 h decky /trunk/uspace/lib/libc/include/ add error constant from VFS
cleanup
 
/trunk/uspace/lib/libc/include/errno.h
4478 5503 d 7 h decky /trunk/uspace/lib/libc/generic/ explicit typecast  
/trunk/uspace/lib/libc/generic/ipc.c
4477 5503 d 7 h decky /trunk/uspace/lib/libc/generic/ setup stdin, stdout and stderr according to preset file nodes
cleanup
 
/trunk/uspace/lib/libc/generic/libc.c
4476 5503 d 7 h decky /trunk/uspace/lib/libc/generic/ add support for passing preset files
cleanup
 
/trunk/uspace/lib/libc/generic/loader.c
4475 5503 d 7 h decky /trunk/uspace/lib/libc/ async framework: add generic support for processing pending operations (in a separate fibril)
coding style
 
/trunk/uspace/lib/libc/generic/async.c
/trunk/uspace/lib/libc/include/async.h
4474 5503 d 7 h decky /trunk/uspace/lib/libc/generic/ add serialization (just to be sure)  
/trunk/uspace/lib/libc/generic/devmap.c
4473 5503 d 7 h decky /trunk/uspace/lib/libc/generic/ avoid compiler warning  
/trunk/uspace/lib/libc/generic/mem.c
4472 5503 d 7 h decky /trunk/uspace/lib/libc/ replace count_t with size_t
coding style
 
/trunk/uspace/lib/libc/generic/string.c
/trunk/uspace/lib/libc/include/string.h
4471 5503 d 7 h decky /trunk/uspace/lib/libc/generic/ cstyle  
/trunk/uspace/lib/libc/generic/as.c
4470 5503 d 7 h decky /trunk/uspace/lib/libc/ pass current task stdin, stdout and stderr as preset files to the loader
add task_wait()
 
/trunk/uspace/lib/libc/generic/task.c
/trunk/uspace/lib/libc/include/task.h
4469 5503 d 7 h decky /trunk/uspace/lib/libc/generic/ avoid compiler warning  
/trunk/uspace/lib/libc/generic/ddi.c
4468 5503 d 7 h decky /trunk/uspace/lib/libc/arch/ remove redundant index_t and count_t types (which were always quite ambiguous and not actually needed)  
/trunk/uspace/lib/libc/arch/amd64/include/types.h
/trunk/uspace/lib/libc/arch/arm32/include/types.h
/trunk/uspace/lib/libc/arch/ia32/include/types.h
/trunk/uspace/lib/libc/arch/ia64/include/types.h
/trunk/uspace/lib/libc/arch/mips32/include/types.h
/trunk/uspace/lib/libc/arch/ppc32/include/types.h
/trunk/uspace/lib/libc/arch/sparc64/include/types.h
4467 5503 d 7 h decky /trunk/uspace/lib/libc/arch/arm32/include/ fix include  
/trunk/uspace/lib/libc/arch/arm32/include/fibril.h
4466 5503 d 7 h decky /trunk/uspace/lib/libc/ reorder compiler options to be consistent with kernel  
/trunk/uspace/lib/libc/Makefile.toolchain
4465 5503 d 7 h decky /trunk/uspace/srv/fs/ implement VFS_OPEN_NODE and VFS_DEVICE (no device handle is returned)
implement no-op VFS_SYNC and VFS_CLOSE
 
/trunk/uspace/srv/fs/fat/fat.c
/trunk/uspace/srv/fs/fat/fat.h
/trunk/uspace/srv/fs/fat/fat_fat.c
/trunk/uspace/srv/fs/fat/fat_ops.c
/trunk/uspace/srv/fs/tmpfs/tmpfs.c
/trunk/uspace/srv/fs/tmpfs/tmpfs.h
/trunk/uspace/srv/fs/tmpfs/tmpfs_ops.c
4464 5503 d 7 h decky /trunk/uspace/srv/fs/devfs/ devfs rewrite:
- implement VFS_OPEN_NODE, VFS_DEVICE, VFS_SYNC, VFS_CLOSE
- connect to underlying device during VFS_LOOKUP (if L_OPEN flag is used) and VFS_OPEN_NODE
- disconnect from underlying device during VFS_CLOSE
- forward VFS_READ, VFS_WRITE and VFS_SYNC to the underlying device
- VFS_DEVICE: return underlying device handle
 
/trunk/uspace/srv/fs/devfs/devfs.c
/trunk/uspace/srv/fs/devfs/devfs_ops.c
/trunk/uspace/srv/fs/devfs/devfs_ops.h
4463 5503 d 7 h decky /trunk/uspace/srv/vfs/ VFS rewrite:
- add new VFS methods
- VFS_NODE for getting VFS node for a file descriptor
- VFS_OPEN_NODE for opening an i-node directly
- VFS_DEVICE for getting the underlying device of a file (if any)
- VFS_SYNC for syncing buffers
- L_OPEN flag is set to underlying filesystem in VFS_LOOKUP when opening a file to support initialization (if any)
- VFS_CLOSE is now propagated to underlying filesystem to support cleanup (if any)
 
/trunk/uspace/srv/vfs/vfs.c
/trunk/uspace/srv/vfs/vfs.h
/trunk/uspace/srv/vfs/vfs_lookup.c
/trunk/uspace/srv/vfs/vfs_node.c
/trunk/uspace/srv/vfs/vfs_ops.c
/trunk/uspace/srv/vfs/vfs_register.c

Show All