Go to the documentation of this file. 1 #ifndef NVIM_OS_FILEIO_H
2 #define NVIM_OS_FILEIO_H
74 #ifdef INCLUDE_GENERATED_DECLARATIONS
75 # include "os/fileio.h.generated.h"
77 #endif // NVIM_OS_FILEIO_H
@ kFileTruncate
Definition: fileio.h:31
@ kFileNonBlocking
Definition: fileio.h:36
Structure used to read from/write to file.
Definition: fileio.h:11
FILE * fp
Definition: edit.c:3050
@ kFileNoSymlink
Do not allow symbolic links.
Definition: fileio.h:27
size_t rbuffer_size(RBuffer *buf) FUNC_ATTR_NONNULL_ALL
Definition: rbuffer.c:40
RBuffer * rv
Read or write buffer.
Definition: fileio.h:14
bool non_blocking
True if EAGAIN should not restart syscalls.
Definition: fileio.h:17
bool eof
True if end of file was encountered.
Definition: fileio.h:16
@ kFileCreate
Definition: fileio.h:23
#define REAL_FATTR_NONNULL_ALL
Definition: func_attr.h:183
@ kFileAppend
Definition: fileio.h:34
FileOpenFlags
file_open() flags
Definition: fileio.h:21
@ kFileWriteOnly
Definition: fileio.h:25
bool wr
True if file is in write mode.
Definition: fileio.h:15
@ kFileCreateOnly
Definition: fileio.h:28
int _error
Error code for use with RBuffer callbacks or zero.
Definition: fileio.h:13
#define REAL_FATTR_PURE
Definition: func_attr.h:163
static int REAL_FATTR_WARN_UNUSED_RESULT
Definition: typval_encode.c.h:302
int fd
File descriptor.
Definition: fileio.h:12
@ kRWBufferSize
Definition: fileio.h:71
@ kFileReadOnly
Open file read-only. Default.
Definition: fileio.h:22