| 1 | #ifndef DEFINE_FUNC_ATTRIBUTES |
| 2 | # define DEFINE_FUNC_ATTRIBUTES |
| 3 | #endif |
| 4 | #include "nvim/func_attr.h" |
| 5 | #undef DEFINE_FUNC_ATTRIBUTES |
| 6 | void fs_init(void); |
| 7 | int os_chdir(const char *path) FUNC_ATTR_NONNULL_ALL; |
| 8 | int os_dirname(char_u *buf, size_t len) FUNC_ATTR_NONNULL_ALL; |
| 9 | _Bool os_isrealdir(const char *name) FUNC_ATTR_NONNULL_ALL; |
| 10 | _Bool os_isdir(const char_u *name) FUNC_ATTR_NONNULL_ALL; |
| 11 | _Bool os_isdir_executable(const char *name) FUNC_ATTR_NONNULL_ALL; |
| 12 | int os_nodetype(const char *name) FUNC_ATTR_NONNULL_ALL; |
| 13 | int os_exepath(char *buffer, size_t *size) FUNC_ATTR_NONNULL_ALL; |
| 14 | _Bool os_can_exe(const char *name, char **abspath, _Bool use_path) FUNC_ATTR_NONNULL_ARG(1); |
| 15 | int os_open(const char *path, int flags, int mode); |
| 16 | FILE *os_fopen(const char *path, const char *flags); |
| 17 | int os_set_cloexec(const int fd); |
| 18 | int os_close(const int fd); |
| 19 | int os_dup(const int fd) FUNC_ATTR_WARN_UNUSED_RESULT; |
| 20 | ptrdiff_t os_read(const int fd, _Bool *const ret_eof, char *const ret_buf, const size_t size, const _Bool non_blocking) FUNC_ATTR_WARN_UNUSED_RESULT; |
| 21 | ptrdiff_t os_readv(const int fd, _Bool *const ret_eof, struct iovec *iov, size_t iov_size, const _Bool non_blocking) FUNC_ATTR_NONNULL_ALL; |
| 22 | ptrdiff_t os_write(const int fd, const char *const buf, const size_t size, const _Bool non_blocking) FUNC_ATTR_WARN_UNUSED_RESULT; |
| 23 | int os_copy(const char *path, const char *new_path, int flags); |
| 24 | int os_fsync(int fd); |
| 25 | int32_t os_getperm(const char *name); |
| 26 | int os_setperm(const char *const name, int perm) FUNC_ATTR_NONNULL_ALL; |
| 27 | int os_chown(const char *path, uv_uid_t owner, uv_gid_t group); |
| 28 | int os_fchown(int fd, uv_uid_t owner, uv_gid_t group); |
| 29 | _Bool os_path_exists(const char_u *path); |
| 30 | int os_file_settime(const char *path, double atime, double mtime); |
| 31 | _Bool os_file_is_readable(const char *name) FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT; |
| 32 | int os_file_is_writable(const char *name) FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT; |
| 33 | int os_rename(const char_u *path, const char_u *new_path) FUNC_ATTR_NONNULL_ALL; |
| 34 | int os_mkdir(const char *path, int32_t mode) FUNC_ATTR_NONNULL_ALL; |
| 35 | int os_mkdir_recurse(const char *const dir, int32_t mode, char **const failed_dir) FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT; |
| 36 | int os_mkdtemp(const char *template, char *path) FUNC_ATTR_NONNULL_ALL; |
| 37 | int os_rmdir(const char *path) FUNC_ATTR_NONNULL_ALL; |
| 38 | _Bool os_scandir(Directory *dir, const char *path) FUNC_ATTR_NONNULL_ALL; |
| 39 | const char *os_scandir_next(Directory *dir) FUNC_ATTR_NONNULL_ALL; |
| 40 | void os_closedir(Directory *dir) FUNC_ATTR_NONNULL_ALL; |
| 41 | int os_remove(const char *path) FUNC_ATTR_NONNULL_ALL; |
| 42 | _Bool os_fileinfo(const char *path, FileInfo *file_info) FUNC_ATTR_NONNULL_ARG(2); |
| 43 | _Bool os_fileinfo_link(const char *path, FileInfo *file_info) FUNC_ATTR_NONNULL_ARG(2); |
| 44 | _Bool os_fileinfo_fd(int file_descriptor, FileInfo *file_info) FUNC_ATTR_NONNULL_ALL; |
| 45 | _Bool os_fileinfo_id_equal(const FileInfo *file_info_1, const FileInfo *file_info_2) FUNC_ATTR_NONNULL_ALL; |
| 46 | void os_fileinfo_id(const FileInfo *file_info, FileID *file_id) FUNC_ATTR_NONNULL_ALL; |
| 47 | uint64_t os_fileinfo_inode(const FileInfo *file_info) FUNC_ATTR_NONNULL_ALL; |
| 48 | uint64_t os_fileinfo_size(const FileInfo *file_info) FUNC_ATTR_NONNULL_ALL; |
| 49 | uint64_t os_fileinfo_hardlinks(const FileInfo *file_info) FUNC_ATTR_NONNULL_ALL; |
| 50 | uint64_t os_fileinfo_blocksize(const FileInfo *file_info) FUNC_ATTR_NONNULL_ALL; |
| 51 | _Bool os_fileid(const char *path, FileID *file_id) FUNC_ATTR_NONNULL_ALL; |
| 52 | _Bool os_fileid_equal(const FileID *file_id_1, const FileID *file_id_2) FUNC_ATTR_NONNULL_ALL; |
| 53 | _Bool os_fileid_equal_fileinfo(const FileID *file_id, const FileInfo *file_info) FUNC_ATTR_NONNULL_ALL; |
| 54 | #include "nvim/func_attr.h" |
| 55 | |