Lines Matching refs:host
108 mntlist_contains(char *host, char *path)
112 m.m_host = host;
126 mntlist_insert(char *host, char *path)
128 if (!mntlist_contains(host, path)) {
133 m->m_host = exstrdup(host);
135 m->m_pos = rmtab_insert(host, path);
141 mntlist_new(char *host, char *path)
144 mntlist_insert(host, path);
153 mntlist_delete(char *host, char *path)
157 mm.m_host = host;
178 * Delete all entries for a host from the mount list
182 mntlist_delete_all(char *host)
192 if (strcasecmp(m->m_host, host))
353 char *host;
362 host = s;
377 host = s;
393 if (*host && *path)
394 mntlist_insert(host, path);
397 if (*host && *path)
398 mntlist_insert(host, path);
483 rmtab_insert(char *host, char *path)
494 * Check if host is an IPv6 literal
497 if (inet_pton(AF_INET6, host, &ipv6addr) > 0) {
498 if (fprintf(rmtabf, "[%s]:%s\n", host, path) == EOF) {
502 if (fprintf(rmtabf, "%s:%s\n", host, path) == EOF) {