Lines Matching refs:fname
98 char *fname;
100 fname = my_gets(&elm.filec, prompt, pathname);
101 if (fname == NULL) /* ignore this attachment */
103 (void)strip_WSP(fname);
104 fname = skip_WSP(fname);
105 if (*fname == '\0') /* ignore this attachment */
107 pathname = savestr(fname); /* save this or it gets trashed */
121 detach_open_core(char *fname, const char *partstr)
128 if ((fd = open(fname, flags | O_CLOEXEC, 0600)) != -1 &&
136 partstr, fname);
150 if (Fopen(fname, "wef") != NULL)
169 warn("%s", fname);
217 char *fname;
219 if ((fname = detach_get_fname(prompt, pathname)) == NULL)
225 if (stat(fname, &sb) == 0 && !S_ISREG(sb.st_mode)) {
226 (void)printf("not a regular file: %s", fname);
231 switch (detach_open_core(fname, partstr)) {
233 return fname;