| /vim-8.2.3635/src/ |
| H A D | session.c | 96 FILE *fd, in ses_arglist() argument 106 if (fputs(cmd, fd) < 0 || put_eol(fd) == FAIL) in ses_arglist() 246 FILE *fd, in ses_winsizes() argument 304 FILE *fd, in put_view() argument 488 if (fprintf(fd, in put_view() 495 || fprintf(fd, in put_view() 600 FILE *fd, in makeopens() argument 1100 FILE *fd; in write_session_file() local 1109 if (fd != NULL && fclose(fd) != 0) in write_session_file() 1133 FILE *fd; in ex_mkrc() local [all …]
|
| H A D | dosinst.c | 191 FILE *fd; in check_unpack() local 222 fclose(fd); in check_unpack() 227 fclose(fd); in check_unpack() 386 FILE *fd; in get_vim_env() local 425 fclose(fd); in get_vim_env() 705 FILE *fd; in inspect_system() local 797 fclose(fd); in inspect_system() 831 FILE *fd; in install_bat_choice() local 836 if (fd == NULL) in install_bat_choice() 909 fclose(fd); in install_bat_choice() [all …]
|
| H A D | spellfile.c | 352 FILE *fd; in spell_load_file() local 591 fclose(fd); in spell_load_file() 673 FILE *fd; in suggest_load_files() local 796 fclose(fd); in suggest_load_files() 1580 FILE *fd, in spell_read_tree() argument 1636 FILE *fd, in read_tree_node() argument 2188 FILE *fd; in spell_read_aff() local 2254 fclose(fd); in spell_read_aff() 3508 FILE *fd; in spell_read_dic() local 4088 FILE *fd; in spell_read_wordfile() local [all …]
|
| H A D | profiler.c | 452 FILE *fd, in prof_func_line() argument 476 FILE *fd, in prof_sort_list() argument 497 fprintf(fd, "\n"); in prof_sort_list() 718 func_dump_profile(FILE *fd) in func_dump_profile() argument 768 fprintf(fd, "\n"); in func_dump_profile() 779 fprintf(fd, "\n"); in func_dump_profile() 858 fprintf(fd, "\n"); in script_dump_profile() 907 fprintf(fd, "\n"); in script_dump_profile() 918 FILE *fd; in profile_dump() local 923 if (fd == NULL) in profile_dump() [all …]
|
| H A D | uninstall.c | 201 FILE *fd; in batfile_thisversion() local 206 fd = fopen(path, "r"); in batfile_thisversion() 207 if (fd != NULL) in batfile_thisversion() 217 fclose(fd); in batfile_thisversion() 258 FILE *fd; in remove_if_exists() local 262 fd = fopen(buf, "r"); in remove_if_exists() 263 if (fd != NULL) in remove_if_exists() 265 fclose(fd); in remove_if_exists() 317 FILE *fd; in main() local 400 if (fd != NULL) in main() [all …]
|
| H A D | iscygpty.c | 108 int is_cygpty(int fd) in is_cygpty() argument 120 h = (HANDLE) _get_osfhandle(fd); in is_cygpty() 173 int fd, ret = 0; in is_cygpty_used() local 175 for (fd = 0; fd < 3; fd++) { in is_cygpty_used() 176 ret |= is_cygpty(fd); in is_cygpty_used()
|
| H A D | channel.c | 59 # define fd_read(fd, buf, len) read(fd, buf, len) argument 130 fd_close(sock_T fd) in fd_close() argument 1404 fd_close(*fd); in ch_close_part() 1407 *fd = INVALID_FD; in ch_close_part() 3470 fds[0].fd = fd; in channel_wait() 3552 sock_T fd; in channel_read() local 3725 sock_T fd; in channel_read_json_block() local 3945 sock_T fd; in channel_handle_events() local 4038 sock_T fd; in channel_send() local 4508 maxfd = (int)fd; in channel_select_setup() [all …]
|
| H A D | pty.c | 168 setup_slavepty(int fd) in setup_slavepty() argument 170 if (fd < 0) in setup_slavepty() 175 if (ioctl(fd, I_PUSH, "ptem") != 0) in setup_slavepty() 178 if (ioctl(fd, I_PUSH, "ldterm") != 0) in setup_slavepty() 181 if (ioctl(fd, I_PUSH, "ttcompat") != 0) in setup_slavepty() 453 mch_isatty(int fd) in mch_isatty() argument 467 if (ioctl(fd, I_STR, &istr) == 0) in mch_isatty() 472 return isatty(fd); in mch_isatty()
|
| H A D | map.c | 1723 FILE *fd, in makemap() argument 1877 || put_eol(fd) < 0 in makemap() 1879 || put_eol(fd) < 0) in makemap() 1887 if (fputs(cmd, fd) < 0) in makemap() 1905 || putc(' ', fd) < 0 in makemap() 1907 || put_eol(fd) < 0) in makemap() 1918 || put_eol(fd) < 0 in makemap() 1920 || put_eol(fd) < 0) in makemap() 1956 if (fputc(*p++, fd) < 0) in put_escstr() 2015 if (putc('\\', fd) < 0) in put_escstr() [all …]
|
| H A D | os_unix.c | 2618 if (fd >= 0 && fchdir(fd) < 0) in mch_FullName() 2621 fd = -1; in mch_FullName() 2631 fd < 0 && in mch_FullName() 2692 if (fd >= 0) in mch_FullName() 4076 int fd = 1; in mch_get_shellsize() local 4091 int fd = 1; in mch_get_shellsize() local 4749 int fd; in mch_call_shell_fork() local 6218 fds[0].fd = fd; in RealWaitForChar() 6346 maxfd = fd; in RealWaitForChar() 6559 FILE *fd; in mch_expand_wildcards() local [all …]
|
| H A D | bufwrite.c | 640 int fd; in buf_write() local 1218 fd = mch_open((char *)IObuff, in buf_write() 1236 close(fd); in buf_write() 1790 fd = -1; in buf_write() 1791 write_info.bw_fd = fd; in buf_write() 1891 write_info.bw_fd = fd; in buf_write() 1903 && mch_fstat(fd, &st) == 0 in buf_write() 1906 close(fd); in buf_write() 1914 vim_ignored = ftruncate(fd, (off_t)0); in buf_write() 2229 (void)mch_fsetperm(fd, perm); in buf_write() [all …]
|
| H A D | misc1.c | 2274 FILE *fd; in get_cmd_output() local 2311 if (fd == NULL) in get_cmd_output() 2317 fseek(fd, 0L, SEEK_END); in get_cmd_output() 2319 fseek(fd, 0L, SEEK_SET); in get_cmd_output() 2324 fclose(fd); in get_cmd_output() 2365 FILE *fd; in get_cmd_output_as_rettv() local 2392 if (fd == NULL) in get_cmd_output_as_rettv() 2406 fclose(fd); in get_cmd_output_as_rettv() 2418 if (putc(NL, fd) == EOF) in get_cmd_output_as_rettv() 2438 fclose(fd); in get_cmd_output_as_rettv() [all …]
|
| H A D | terminal.c | 4768 FILE *fd; in f_term_dumpwrite() local 4906 fputs("*", fd); in f_term_dumpwrite() 4908 fputs("+", fd); in f_term_dumpwrite() 4912 fputs("&", fd); in f_term_dumpwrite() 4942 fputs("\n", fd); in f_term_dumpwrite() 4945 fclose(fd); in f_term_dumpwrite() 5000 c = fgetc(fd); in read_dump_file() 5056 c = fgetc(fd); in read_dump_file() 5079 c = fgetc(fd); in read_dump_file() 5092 c = fgetc(fd); in read_dump_file() [all …]
|
| H A D | viminfo.c | 175 putc(c, fd); in viminfo_writestring() 177 putc('\n', fd); in viminfo_writestring() 208 putc('"', fd); in barline_writestring() 214 putc('n', fd); in barline_writestring() 220 putc(*p, fd); in barline_writestring() 224 putc(*p, fd); in barline_writestring() 230 putc('|', fd); in barline_writestring() 236 putc('"', fd); in barline_writestring() 3089 int fd; in write_viminfo() local 3101 if (fd < 0) in write_viminfo() [all …]
|
| H A D | help.c | 795 FILE *fd; in fix_help_buffer() local 857 fd = mch_fopen((char *)fnames[fi], "r"); in fix_help_buffer() 858 if (fd != NULL) in fix_help_buffer() 860 vim_fgets(IObuff, IOSIZE, fd); in fix_help_buffer() 917 fclose(fd); in fix_help_buffer() 961 FILE *fd; in helptags_one() local 1029 fd = mch_fopen((char *)files[fi], "r"); in helptags_one() 1030 if (fd == NULL) in helptags_one() 1038 while (!vim_fgets(IObuff, IOSIZE, fd) && !got_int) in helptags_one() 1118 fclose(fd); in helptags_one()
|
| H A D | fileio.c | 128 int fd = 0; in readfile() local 610 close(fd); in readfile() 650 close(fd); in readfile() 677 close(fd); // ignore errors in readfile() 729 if (fd < 0) in readfile() 1053 if (fd < 0) in readfile() 2960 int fd = 0; in check_file_readonly() local 2971 ? TRUE : (close(fd), FALSE) in check_file_readonly() 2982 vim_fsync(int fd) in vim_fsync() argument 2987 r = fcntl(fd, F_FULLFSYNC); in vim_fsync() [all …]
|
| H A D | dosinst.h | 290 FILE *fd; in get_shell_folder_path() local 294 fd = fopen(tbuf, "w"); in get_shell_folder_path() 295 if (fd == NULL) in get_shell_folder_path() 301 fclose(fd); in get_shell_folder_path()
|
| H A D | diff.c | 998 FILE *fd; in check_external_diff() local 1007 if (fd == NULL) in check_external_diff() 1013 fclose(fd); in check_external_diff() 1021 fclose(fd); in check_external_diff() 1022 fd = NULL; in check_external_diff() 1025 if (fd == NULL) in check_external_diff() 1041 fclose(fd); in check_external_diff() 1637 if (fd == NULL) in diff_read() 1646 if (fd == NULL) in diff_read() 1814 if (fd != NULL) in diff_read() [all …]
|
| H A D | fold.c | 3524 put_folds(FILE *fd, win_T *wp) in put_folds() argument 3528 if (put_line(fd, "silent! normal! zE") == FAIL in put_folds() 3530 || put_line(fd, "let &fdl = &fdl") == FAIL) in put_folds() 3560 || put_eol(fd) == FAIL) in put_folds_recurse() 3574 FILE *fd, in put_foldopen_recurse() argument 3591 if (fprintf(fd, "%ld", fp->fd_top + off) < 0 in put_foldopen_recurse() 3592 || put_eol(fd) == FAIL in put_foldopen_recurse() 3593 || put_line(fd, "normal! zo") == FAIL) in put_foldopen_recurse() 3633 || put_eol(fd) == FAIL in put_fold_open_close() 3634 || fprintf(fd, "normal! z%c", in put_fold_open_close() [all …]
|
| H A D | blob.c | 187 read_blob(FILE *fd, blob_T *blob) in read_blob() argument 191 if (fstat(fileno(fd), &st) < 0) in read_blob() 196 if (fread(blob->bv_ga.ga_data, 1, blob->bv_ga.ga_len, fd) in read_blob() 207 write_blob(FILE *fd, blob_T *blob) in write_blob() argument 209 if (fwrite(blob->bv_ga.ga_data, 1, blob->bv_ga.ga_len, fd) in write_blob()
|
| H A D | misc2.c | 2686 get2c(FILE *fd) in get2c() argument 2690 n = getc(fd); in get2c() 2692 c = getc(fd); in get2c() 2702 get3c(FILE *fd) in get3c() argument 2706 n = getc(fd); in get3c() 2708 c = getc(fd); in get3c() 2711 c = getc(fd); in get3c() 2721 get4c(FILE *fd) in get4c() argument 2728 c = getc(fd); in get4c() 2731 c = getc(fd); in get4c() [all …]
|
| H A D | vim.h | 1764 # define read_eintr(fd, buf, count) vim_read((fd), (buf), (count)) argument 1765 # define write_eintr(fd, buf, count) vim_write((fd), (buf), (count)) argument 1771 # define vim_read(fd, buf, count) read((fd), (char *)(buf), (unsigned int)(count)) argument 1772 # define vim_write(fd, buf, count) write((fd), (char *)(buf), (unsigned int)(count)) argument 1774 # define vim_read(fd, buf, count) read((fd), (char *)(buf), (size_t) (count)) argument 1775 # define vim_write(fd, buf, count) write((fd), (char *)(buf), (size_t) (count)) argument
|
| /vim-8.2.3635/runtime/doc/ |
| H A D | doctags.c | 23 FILE *fd; in main() local 34 fd = fopen(argv[0], "r"); in main() 35 if (fd == NULL) in main() 40 while (fgets(line, LINELEN, fd) != NULL) in main() 79 fclose(fd); in main()
|
| /vim-8.2.3635/src/proto/ |
| H A D | misc2.pro | 53 int get2c(FILE *fd); 54 int get3c(FILE *fd); 55 int get4c(FILE *fd); 56 char_u *read_string(FILE *fd, int cnt); 57 int put_bytes(FILE *fd, long_u nr, int len);
|
| /vim-8.2.3635/runtime/syntax/ |
| H A D | gpg.vim | 42 \ attribute-fd cert-digest-algo charset cipher-algo 43 \ command-fd comment completes-needed compress 50 \ local-user logger-fd marginals-needed max-cert-depth 52 \ passphrase-fd personal-cipher-preferences 56 \ secret-keyring set-filename set-policy-url status-fd
|