22 #ifndef LELY_IO_FILE_H_ 23 #define LELY_IO_FILE_H_ 120 #endif // !LELY_IO_FILE_H_ This is the public header file of the I/O library.
ssize_t io_pread(io_handle_t handle, void *buf, size_t nbytes, io_off_t offset)
Performs a read operation at the specified offset, without updating the file pointer.
io_off_t io_seek(io_handle_t handle, io_off_t offset, int whence)
Moves the current read/write offset of an open file.
Append data to the end of the file.
A seek operation with respect to the current offset in a file.
ssize_t io_pwrite(io_handle_t handle, const void *buf, size_t nbytes, io_off_t offset)
Performs a write operation at the specified offset, without updating the file pointer.
Create a new file if it does not exists.
Truncate an existing file (ignored if IO_FILE_NO_EXIST is set).
Fail if the file already exists (ignored unless IO_FILE_CREATE is set).
A seek operation with respect to the beginning of a file.
A seek operation with respect to the end of a file.
int64_t io_off_t
A file offset type.
io_handle_t io_open_file(const char *path, int flags)
Opens a regular file.