xref: /vim-8.2.3635/src/proto/fileio.pro (revision 0a7984af)
1/* fileio.c */
2void filemess(buf_T *buf, char_u *name, char_u *s, int attr);
3int readfile(char_u *fname, char_u *sfname, linenr_T from, linenr_T lines_to_skip, linenr_T lines_to_read, exarg_T *eap, int flags);
4int is_dev_fd_file(char_u *fname);
5int prep_exarg(exarg_T *eap, buf_T *buf);
6void set_file_options(int set_options, exarg_T *eap);
7void set_forced_fenc(exarg_T *eap);
8int check_file_readonly(char_u *fname, int perm);
9int vim_fsync(int fd);
10int set_rw_fname(char_u *fname, char_u *sfname);
11void msg_add_fname(buf_T *buf, char_u *fname);
12int msg_add_fileformat(int eol_type);
13void msg_add_lines(int insert_space, long lnum, off_T nchars);
14void msg_add_eol(void);
15int time_differs(stat_T *st, long mtime, long mtime_ns);
16int need_conversion(char_u *fenc);
17int get_fio_flags(char_u *ptr);
18int get_win_fio_flags(char_u *ptr);
19int get_mac_fio_flags(char_u *ptr);
20char_u *shorten_fname1(char_u *full_path);
21char_u *shorten_fname(char_u *full_path, char_u *dir_name);
22void shorten_buf_fname(buf_T *buf, char_u *dirname, int force);
23void shorten_fnames(int force);
24void shorten_filenames(char_u **fnames, int count);
25char_u *modname(char_u *fname, char_u *ext, int prepend_dot);
26char_u *buf_modname(int shortname, char_u *fname, char_u *ext, int prepend_dot);
27int vim_fgets(char_u *buf, int size, FILE *fp);
28int vim_rename(char_u *from, char_u *to);
29int check_timestamps(int focus);
30int buf_check_timestamp(buf_T *buf, int focus);
31void buf_reload(buf_T *buf, int orig_mode);
32void buf_store_time(buf_T *buf, stat_T *st, char_u *fname);
33void write_lnum_adjust(linenr_T offset);
34int readdir_core(garray_T *gap, char_u *path, int withattr, void *context, int (*checkitem)(void *context, void *item), int sort);
35int delete_recursive(char_u *name);
36void vim_deltempdir(void);
37char_u *vim_tempname(int extra_char, int keep);
38void forward_slash(char_u *fname);
39int match_file_pat(char_u *pattern, regprog_T **prog, char_u *fname, char_u *sfname, char_u *tail, int allow_dirs);
40int match_file_list(char_u *list, char_u *sfname, char_u *ffname);
41char_u *file_pat_to_reg_pat(char_u *pat, char_u *pat_end, char *allow_dirs, int no_bslash);
42long read_eintr(int fd, void *buf, size_t bufsize);
43long write_eintr(int fd, void *buf, size_t bufsize);
44/* vim: set ft=c : */
45