AquilaOS documentation
How it works, and its code
Toggle main menu visibility
Loading...
Searching...
No Matches
helpers.c
Go to the documentation of this file.
1
7
8
#include <
fs/posix.h
>
9
17
int
posix_file_eof
(
struct
file
*
file
)
18
{
19
return
(
size_t
)
file
->
offset
>=
file
->vnode->size;
20
}
posix_file_eof
int posix_file_eof(struct file *file)
Says whether a file's offset is at or past its end, so that a read returns nothing.
Definition
helpers.c:17
posix.h
file
An open file (POSIX's "open file description", fs/file.c).
Definition
vfs.h:157
file::offset
off_t offset
Definition
vfs.h:163
kernel
fs
posix
helpers.c
Generated by
1.18.0