Lines Matching defs:ns
38 #include <ns.h>
47 normalize_ns_name(char *ns)
49 if (ns == NULL)
51 else if ((strcasecmp(ns, "files") == 0) ||
52 (strcasecmp(ns, "system") == 0) ||
53 (strcasecmp(ns, "etc") == 0))
55 else if (strcasecmp(ns, "nis") == 0)
57 else if (strcasecmp(ns, "ldap") == 0)
60 return (ns);
108 ns_printer_get_list(const char *ns)
113 (void) setprinterentry(0, (char *)ns);
115 ns = normalize_ns_name((char *)ns);
116 while (getprinterentry(buf, sizeof (buf), (char *)ns) == 0) {
133 * name service (ns), or the name services configured under
137 ns_printer_get_name(const char *name, const char *ns)
151 ns = normalize_ns_name((char *)ns);
152 if (getprinterbyname((char *)name, buf, sizeof (buf), (char *)ns) == 0)