Lines Matching refs:file
49 #include "fs/file.h"
60 * struct file instance instead of a file descriptor. Currently used
65 static ssize_t file_pwrite64(struct file *filep, const void *buf,
74 * file pointer, but will return its current setting
85 /* Then seek to the correct position in the file */
90 /* This might fail is the offset is beyond the end of file */
100 /* Restore the file position */
122 * it writes into a given position without changing the file pointer. The
125 * the file.
133 * fd file descriptor (or socket descriptor) to write to
139 * end-of-file condition, or -1 on failure with errno set appropriately.
143 * POSIX requires that opening a file with the O_APPEND flag should have no
145 * like on Linux, if a file is opened with O_APPEND, pwrite() appends data
146 * to the end of the file, regardless of the value of offset.
152 struct file *filep;
154 /* Get the file structure corresponding to the file descriptor. */