Lines Matching defs:fname

51 static int read_execout(char *key, char **lp, char *fname, char *line,
53 static int call_read_execout(char *key, char **lp, char *fname, char *line,
88 char fname[MAXFILENAMELEN]; /* /etc prepended to mapname if reqd */
93 if ((fp = file_open(mapname, fname, stack, stkptr)) == NULL) {
98 if (stat(fname, &stbuf) < 0) {
116 fname, key);
119 rc = call_read_execout(key, &lp, fname, ml->linebuf, LINESZ);
142 lp = get_line(fp, fname, linebuf, sizeof (linebuf));
222 char fname[MAXFILENAMELEN]; /* /etc prepended to mapname if reqd */
231 if ((fp = file_open(mapname, fname, stack, stkptr)) == NULL) {
242 if (stat(fname, &stbuf) < 0) {
264 lp = get_line(fp, fname, linebuf, sizeof (linebuf));
335 char fname[MAXFILENAMELEN]; /* /etc prepended to mapname if reqd */
338 if ((fp = file_open(mastermap, fname, stack, stkptr)) == NULL)
341 while ((line = get_line(fp, fname, linebuf,
376 pr_msg("Warning: invalid entry for %s in %s ignored.\n", dir, fname);
403 pr_msg("Warning: invalid entry for %s in %s ignored.\n", dir, fname);
425 char fname[MAXFILENAMELEN]; /* /etc prepended to mapname if reqd */
427 if ((fp = file_open(map, fname, stack, stkptr)) == NULL)
430 while ((line = get_line(fp, fname, linebuf,
463 file_open(map, fname, stack, stkptr)
464 char *map, *fname;
471 (void) strcpy(fname, "/etc/");
472 (void) strcat(fname, map);
474 (void) strcpy(fname, map);
476 fp = fopen(fname, "r");
479 if (!stack_op(PUSH, fname, stack, stkptr)) {
557 * read_execout(char *key, char **lp, char *fname, char *line, int linesz)
564 read_execout(char *key, char **lp, char *fname, char *line, int linesz)
578 if (((args[0] = strdup(fname)) == NULL) ||
606 execv(fname, &args[0]);
627 *lp = get_line(fp0, fname, line, linesz);
643 fname, key, line);
684 call_read_execout(char *key, char **lp, char *fname, char *line,
692 (void) strlcpy(command.file, fname, MAXPATHLEN);
696 trace_prt(1, "call_read_execout %s %s\n", fname, key);