Searched defs:mnttab (Results 1 - 8 of 8) sorted by relevance

/osnet-11/usr/src/lib/libshadowfs/common/
H A Dshadow_open.c37 FILE *mnttab = NULL; local
38 struct mnttab mntent, search;
47 if ((mnttab = fopen(MNTTAB, "r")) == NULL) {
49 dgettext(TEXT_DOMAIN, "failed to open /etc/mnttab"));
55 if (getmntany(mnttab, &mntent, &search) != 0) {
90 (void) fclose(mnttab);
100 if (mnttab != NULL)
101 (void) fclose(mnttab);
H A Dshadow_migrate.c380 FILE *mnttab = NULL; local
381 struct mnttab mntent, search;
387 if ((mnttab = fopen(MNTTAB, "r")) == NULL)
389 dgettext(TEXT_DOMAIN, "failed to open /etc/mnttab")));
393 if (getmntany(mnttab, &mntent, &search) != 0) {
395 (void) fclose(mnttab);
403 (void) fclose(mnttab);
408 (void) fclose(mnttab);
/osnet-11/usr/src/lib/libbe/common/
H A Dbe_activate.c35 #include <sys/mnttab.h>
44 char *mnttab = MNTTAB; variable
/osnet-11/usr/src/lib/libshare_plugins/legacy/
H A Dlibshare_legacy.c35 #include <sys/mnttab.h>
711 FILE *mnttab; local
712 struct mnttab entry, result;
723 mnttab = fopen(MNTTAB, "r");
724 if (mnttab == NULL)
730 if (getmntany(mnttab, &result, &entry) == 0) {
731 (void) fclose(mnttab);
757 * lookup mnttab entry for "/"
775 (void) fclose(mnttab);
859 FILE *mnttab; local
[all...]
/osnet-11/usr/src/lib/libpkg/common/
H A Dpkgserv.c44 #include <sys/mnttab.h>
157 FILE *mnttab = NULL; local
175 * search the mnttab and find our mountpoint and the underlying
196 if (mnttab == NULL)
197 mnttab = fopen(MNTTAB, "r");
199 resetmnttab(mnttab);
201 while (getextmntent(mnttab, &xmnt, 0) == 0) {
236 if (mnttab != NULL) {
238 (void) fclose(mnttab);
/osnet-11/usr/src/lib/libsmb/common/
H A Dsmb_util.c37 #include <sys/mnttab.h>
87 static int smb_getzfsmount(const char *, struct mnttab *);
738 struct mnttab mnttab; local
742 if ((rc = smb_getzfsmount(path, &mnttab)) == 0) {
743 resource = mnttab.mnt_special;
759 * mnttab entry.
764 struct mnttab mnttab; local
767 if ((rc = smb_getzfsmount(path, &mnttab))
781 smb_getzfsmount(const char *path, struct mnttab *mnttab) argument
[all...]
/osnet-11/usr/src/lib/libbrand/common/
H A Dlibbrand.c47 #include <sys/mnttab.h>
328 FILE *mnttab; local
329 struct mnttab query, result;
331 if ((mnttab = fopen(MNTTAB, "r")) == NULL) {
339 if (getmntany(mnttab, &result, &query) != 0) {
340 (void) fclose(mnttab);
344 (void) fclose(mnttab);
/osnet-11/usr/src/lib/libzonecfg/common/
H A Dlibzonecfg.c42 #include <sys/mnttab.h>
3917 * pointing to a mnttab structure containing the mount's information.
3923 zonecfg_find_mounts(char *rootpath, int (*callback)(const struct mnttab *,
3925 FILE *mnttab; local
3926 struct mnttab m;
3940 mnttab = fopen("/etc/mnttab", "r");
3942 if (mnttab == NULL)
3945 if (ioctl(fileno(mnttab), MNTIOC_SHOWHIDDEN, NULL) < 0) {
3950 while (!getmntent(mnttab,
[all...]

Completed in 41 milliseconds