Lines Matching defs:mnttab
38 #include <sys/mnttab.h>
72 char mnttab[MAXPATHLEN + 1];
83 * The basic mount struct that describes an mnttab entry.
88 struct mnttab ment; /* the mnttab data */
112 "/etc/mnttab",
129 static void doexec(struct mnttab *);
141 static mountent_t *new_mountent(struct mnttab *);
148 struct mnttab mget;
215 * mnttab may be a symlink to a file in another file system.
217 * and /etc/mnttab is symlinked to a file in /tmp.
219 * read-write file itself so that the subsequent mnttab.temp
222 if (realpath(MNTTAB, mnttab) == NULL) {
223 strcpy(mnttab, MNTTAB);
237 * Read the whole mnttab into memory.
250 myname, mnttab);
280 * Perhaps there is a bogus mnttab entry that
308 "%s: warning: %s not in mnttab\n"),
330 doexec(struct mnttab *ment)
510 gettext("%s: line in mnttab exceeds %d characters\n"),
515 gettext("%s: line in mnttab has too few entries\n"),
526 * order of /etc/mnttab.
567 * If no mount points are specified and none were found in mnttab,
608 myname, mnttab);
645 * it returns all mnttab entries with a few exceptions. Sets the global
668 * No mount list specified: take all mnttab mount points
701 struct mnttab mnew;
709 myname, resolve, mnttab);
730 * Returns the tail of a linked list of all mnttab entries. I.e, it's faster
731 * to return the mnttab in reverse order.
741 struct mnttab mget;
743 if ((fp = fopen(mnttab, "r")) == NULL) {
745 myname, mnttab);
926 new_mountent(struct mnttab *ment)