Lines Matching refs:fn

1369 static void status_line_bold_errno(const char *fn)  in status_line_bold_errno()  argument
1371 status_line_bold("'%s' "STRERROR_FMT, fn STRERROR_ERRNO); in status_line_bold_errno()
1974 static int file_insert(const char *fn, char *p, int initial) in file_insert() argument
1985 fd = open(fn, O_RDONLY); in file_insert()
1988 status_line_bold_errno(fn); in file_insert()
1994 status_line_bold_errno(fn); in file_insert()
1998 status_line_bold("'%s' is not a regular file", fn); in file_insert()
2005 status_line_bold_errno(fn); in file_insert()
2010 status_line_bold("can't read '%s'", fn); in file_insert()
2022 && ((access(fn, W_OK) < 0) || in file_insert()
2245 static void init_filename(char *fn) in init_filename() argument
2247 char *copy = xstrdup(fn); in init_filename()
2260 static void update_filename(char *fn) in update_filename() argument
2263 if (fn == NULL) in update_filename()
2266 if (current_filename == NULL || strcmp(fn, current_filename) != 0) { in update_filename()
2269 current_filename = xstrdup(fn); in update_filename()
2272 if (fn != current_filename) { in update_filename()
2274 current_filename = xstrdup(fn); in update_filename()
2281 static int init_text_buffer(char *fn) in init_text_buffer() argument
2290 update_filename(fn); in init_text_buffer()
2291 rc = file_insert(fn, text, 1); in init_text_buffer()
2331 static int file_write(char *fn, char *first, char *last) in file_write() argument
2335 if (fn == 0) { in file_write()
2342 fd = open(fn, (O_WRONLY | O_CREAT), 0666); in file_write()
2829 char *fn, cmd[MAX_INPUT_LEN], *cmdend, *args, *exp = NULL; in colon()
2860 fn = current_filename; in colon()
2961 fn = exp = expand_args(args); in colon()
2970 size = init_text_buffer(fn); in colon()
2987 fn, in colon()
3088 fn = exp = expand_args(args); in colon()
3091 init_filename(fn); in colon()
3110 size = file_insert(fn, q, 0); in colon()
3120 fn, in colon()
3331 if (!useforce && (fn == NULL || strcmp(fn, exp) != 0) && in colon()
3336 fn = exp; in colon()
3337 init_filename(fn); in colon()
3340 else if (readonly_mode && !useforce && fn) { in colon()
3341 status_line_bold("'%s' is read only", fn); in colon()
3353 l = file_write(fn, q, r); in colon()
3366 status_line_bold_errno(fn); in colon()
3370 status_line("'%s' %uL, %uC", fn, li, l); in colon()
4753 static void edit_file(char *fn) argument
4786 init_text_buffer(fn);