Lines Matching +defs:pathname +defs:name
46 const char *name;
198 const char *varname, *pathname, *vn;
228 pathname = argv[0]; /* may be NULL */
233 for (cp = conf_table; cp->name != NULL; cp++) {
234 if (a_flag || strcmp(vn, cp->name) == 0) {
235 if ((cp->type == PATHCONF) == (pathname != NULL)) {
236 printvar(cp, pathname);
240 "%s: invalid variable type", cp->name);
255 print_longvar(const char *name, long value)
258 (void)printf("%s = %ld\n", name, value);
264 print_strvar(const char *name, const char *sval)
267 (void)printf("%s = %s\n", name, sval);
273 printvar(const struct conf_variable *cp, const char *pathname)
281 print_longvar(cp->name, cp->value);
292 print_strvar(cp->name, "undefined");
303 print_strvar(cp->name, "undefined");
305 print_strvar(cp->name, sval);
315 print_strvar(cp->name, "undefined");
317 print_longvar(cp->name, val);
322 if ((val = pathconf(pathname, (int)cp->value)) == -1) {
329 pathname, cp->value);
333 print_strvar(cp->name, "undefined");
335 print_longvar(cp->name, val);
346 "\t%s path_var pathname\n\t%s -a pathname\n", p, p, p, p);