diff options
author | Stefan Hoffmann <stefan991@gmail.com> | 2014-08-27 19:14:44 +0200 |
---|---|---|
committer | Stefan Hoffmann <stefan991@gmail.com> | 2014-08-31 15:37:55 +0200 |
commit | 5d074a0aa6b307a11ee572db6bf48ca17c3a8a23 (patch) | |
tree | 3dd3a2b9e8e229d772bf25286f238d92aba7ca16 /src/nvim/os | |
parent | 9ee1c3604c0cc8a3ec1bac32fb33e9c0d0887155 (diff) | |
download | rneovim-5d074a0aa6b307a11ee572db6bf48ca17c3a8a23.tar.gz rneovim-5d074a0aa6b307a11ee572db6bf48ca17c3a8a23.tar.bz2 rneovim-5d074a0aa6b307a11ee572db6bf48ca17c3a8a23.zip |
fileinfo: rename os_get_file_info{,_link,_fd}
Diffstat (limited to 'src/nvim/os')
-rw-r--r-- | src/nvim/os/fs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/os/fs.c b/src/nvim/os/fs.c index 71e8a55c0e..217d0a78ac 100644 --- a/src/nvim/os/fs.c +++ b/src/nvim/os/fs.c @@ -331,7 +331,7 @@ int os_remove(const char *path) /// @param path Path to the file. /// @param[out] file_info Pointer to a FileInfo to put the information in. /// @return `true` on success, `false` for failure. -bool os_get_file_info(const char *path, FileInfo *file_info) +bool os_fileinfo(const char *path, FileInfo *file_info) { return os_stat(path, &(file_info->stat)); } @@ -341,7 +341,7 @@ bool os_get_file_info(const char *path, FileInfo *file_info) /// @param path Path to the file. /// @param[out] file_info Pointer to a FileInfo to put the information in. /// @return `true` on success, `false` for failure. -bool os_get_file_info_link(const char *path, FileInfo *file_info) +bool os_fileinfo_link(const char *path, FileInfo *file_info) { uv_fs_t request; int result = uv_fs_lstat(uv_default_loop(), &request, path, NULL); @@ -355,7 +355,7 @@ bool os_get_file_info_link(const char *path, FileInfo *file_info) /// @param file_descriptor File descriptor of the file. /// @param[out] file_info Pointer to a FileInfo to put the information in. /// @return `true` on success, `false` for failure. -bool os_get_file_info_fd(int file_descriptor, FileInfo *file_info) +bool os_fileinfo_fd(int file_descriptor, FileInfo *file_info) { uv_fs_t request; int result = uv_fs_fstat(uv_default_loop(), &request, file_descriptor, NULL); |