Home | History | Annotate | Download | only in src

Lines Matching refs:FILE

24 static void one_file(char *file, int nest, int hard_opt);
120 { "resolv-file", 2, 0, 'r' },
139 { "pid-file", 2, 0, 'x' },
144 { "conf-file", 2, 0, 'C' },
233 { 'C', ARG_DUP, "path", gettext_noop("Specify configuration file (defaults to %s)."), CONFFILE },
242 { LOPT_DHCP_HOST, ARG_ONE, "<filename>", gettext_noop("Read DHCP host specs from file"), NULL },
243 { LOPT_DHCP_OPTS, ARG_ONE, "<filename>", gettext_noop("Read DHCP option specs from file"), NULL },
244 { 'h', OPT_NO_HOSTS, NULL, gettext_noop("Do NOT load %s file."), HOSTSFILE },
245 { 'H', ARG_DUP, "path", gettext_noop("Specify a hosts file to be read in addition to %s."), HOSTSFILE },
260 { 'n', OPT_NO_POLL, NULL, gettext_noop("Do NOT poll %s file, reload only on SIGHUP."), RESOLVFILE },
283 { 'x', ARG_ONE, "path", gettext_noop("Specify path of PID file (defaults to %s)."), RUNFILE },
299 { '8', ARG_ONE, "<facilty>|<file>", gettext_noop("Log to this syslog facility or file. (defaults to DAEMON)"), NULL },
332 /* DHCP-internal options, for logging. not valid in config file */
347 { "boot-file-size", 13, 2 },
1001 /* allow file to override command line */
1019 case 'C': /* --conf-file */
1021 char *file = opt_string_alloc(arg);
1022 if (file)
1024 one_file(file, nest, 0);
1025 free(file);
1129 case 'x': /* --pid-file */
1147 case 'r': /* --resolv-file */
1154 /* replace default resolv file - possibly with nothing */
1984 new->file = dhcp_file;
2531 static void one_file(char *file, int nest, int hard_opt)
2535 FILE *f;
2545 if (hard_opt == 0 && stat(file, &statbuf) == 0)
2561 die(_("files nested too deep in %s"), file, EC_BADCONF);
2563 if (!(f = fopen(file, "r")))
2572 my_syslog(LOG_ERR, str, file, strerror(errno));
2576 die(str, file, EC_FILE);
2697 my_syslog(LOG_ERR, buff, file);
2699 die(buff, file, EC_BADCONF);
2936 die(_("only one resolv.conf file allowed in no-poll mode."), NULL, EC_BADCONF);
2941 FILE *f;