|
AquilaOS documentation
How it works, and its code
|
An open file (POSIX's "open file description", fs/file.c). More...
#include <vfs.h>
Data Structures | |
| union | [union].__unnamed0__ |
Data Fields | |
| union | |
| off_t | offset |
| int | flags |
| struct file_lock * | lock |
| int | ref |
An open file (POSIX's "open file description", fs/file.c).
There's one for each open(), pipe(), socket() or accept(), with its offset and status flags, shared by the descriptors that dup() and fork() copy.
| int file::flags |
Definition at line 164 of file vfs.h.
Referenced by at_lookup(), at_uio(), copy_fds(), do_openat(), fd_vnode(), nonblock(), pipefs_fifo_open(), pipefs_pipe(), posix_file_open(), posix_file_read(), posix_file_readdir(), posix_file_write(), proc_fd_install(), socket_accept(), socket_bind(), socket_can_read(), socket_can_write(), socket_connect(), socket_create(), socket_getname(), socket_getsockopt(), socket_inet_create(), socket_inet_recv(), socket_ioctl(), socket_listen(), socket_recv(), socket_send(), socket_setsockopt(), socket_shutdown(), socket_shutdown_dir(), socket_tcp_accept(), socket_tcp_create(), socket_unix_accept(), socket_unix_create(), socket_unix_recv(), socket_unix_send(), sys_fchdir(), sys_fcntl(), sys_fstat(), sys_ftruncate(), sys_ioctl(), sys_isatty(), sys_lseek(), sys_mmap(), sys_readdir(), tty_open(), vfs_file_can_read(), vfs_file_can_write(), vfs_file_close(), vfs_file_flock(), vfs_file_open(), vfs_file_read(), vfs_file_trunc(), vfs_file_wait_queue(), vfs_file_write(), and vfs_perms_check().
| struct file_lock* file::lock |
Definition at line 167 of file vfs.h.
Referenced by vfs_file_flock(), and vfs_file_lock_release().
| off_t file::offset |
Definition at line 163 of file vfs.h.
Referenced by cpio_eof(), posix_file_eof(), posix_file_lseek(), posix_file_read(), posix_file_readdir(), posix_file_write(), socket_tcp_accept(), socket_unix_accept(), socket_unix_can_read(), socket_unix_can_write(), socket_unix_connect(), socket_unix_recv(), socket_unix_send(), socket_unix_wait_queue(), sys_lseek(), tmpfs_file_can_read(), tmpfs_file_eof(), and unix_conn_shut().
| int file::ref |
Definition at line 170 of file vfs.h.
Referenced by file_new(), file_put(), file_ref(), and sys_fchdir().