mirror of
https://github.com/neovim/neovim.git
synced 2025-09-11 05:48:17 +00:00
Use generated headers in os.h
This commit is contained in:
@@ -4,62 +4,16 @@
|
|||||||
|
|
||||||
#include "nvim/vim.h"
|
#include "nvim/vim.h"
|
||||||
|
|
||||||
int os_chdir(const char *path);
|
|
||||||
|
|
||||||
int os_dirname(char_u *buf, size_t len);
|
|
||||||
|
|
||||||
bool os_isdir(const char_u *name);
|
|
||||||
|
|
||||||
bool os_can_exe(const char_u *name);
|
|
||||||
|
|
||||||
int32_t os_getperm(const char_u *name);
|
|
||||||
|
|
||||||
int os_setperm(const char_u *name, int perm);
|
|
||||||
|
|
||||||
bool os_file_exists(const char_u *name);
|
|
||||||
|
|
||||||
bool os_file_is_readonly(const char *name);
|
|
||||||
|
|
||||||
int os_file_is_writable(const char *name);
|
|
||||||
|
|
||||||
bool os_get_file_size(const char *name, off_t *size);
|
|
||||||
|
|
||||||
int os_rename(const char_u *path, const char_u *new_path);
|
|
||||||
|
|
||||||
int os_mkdir(const char *path, int32_t mode);
|
|
||||||
|
|
||||||
int os_rmdir(const char *path);
|
|
||||||
|
|
||||||
int os_remove(const char *path);
|
|
||||||
|
|
||||||
uint64_t os_get_total_mem_kib(void);
|
|
||||||
const char *os_getenv(const char *name);
|
|
||||||
int os_setenv(const char *name, const char *value, int overwrite);
|
|
||||||
char *os_getenvname_at_index(size_t index);
|
|
||||||
|
|
||||||
int64_t os_get_pid(void);
|
|
||||||
|
|
||||||
void os_get_hostname(char *hostname, size_t len);
|
|
||||||
|
|
||||||
int os_get_usernames(garray_T *usernames);
|
|
||||||
int os_get_user_name(char *s, size_t len);
|
|
||||||
int os_get_uname(uid_t uid, char *s, size_t len);
|
|
||||||
char *os_get_user_directory(const char *name);
|
|
||||||
|
|
||||||
int os_stat(const char_u *name, uv_stat_t *statbuf);
|
|
||||||
|
|
||||||
/// Struct which encapsulates stat information.
|
/// Struct which encapsulates stat information.
|
||||||
typedef struct {
|
typedef struct {
|
||||||
// TODO(stefan991): make stat private
|
// TODO(stefan991): make stat private
|
||||||
uv_stat_t stat;
|
uv_stat_t stat;
|
||||||
} FileInfo;
|
} FileInfo;
|
||||||
|
|
||||||
bool os_get_file_info(const char *path, FileInfo *file_info);
|
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||||
|
# include "os/fs.h.generated.h"
|
||||||
bool os_get_file_info_link(const char *path, FileInfo *file_info);
|
# include "os/mem.h.generated.h"
|
||||||
|
# include "os/env.h.generated.h"
|
||||||
bool os_get_file_info_fd(int file_descriptor, FileInfo *file_info);
|
# include "os/users.h.generated.h"
|
||||||
|
#endif
|
||||||
bool os_file_info_id_equal(FileInfo *file_info_1, FileInfo *file_info_2);
|
|
||||||
|
|
||||||
#endif // NVIM_OS_OS_H
|
#endif // NVIM_OS_OS_H
|
||||||
|
Reference in New Issue
Block a user