Home
last modified time | relevance | path

Searched refs:mtab (Results 1 – 13 of 13) sorted by relevance

/titanic_41/usr/src/cmd/file/
H A Dmagicutils.c225 Entry *mtab; /* generic magic table pointer */ in f_mkmtab() local
235 mtab = mtab1; in f_mkmtab()
239 mtab = mtab2; in f_mkmtab()
245 if (mtab == (Entry *)NULL) { in f_mkmtab()
246 if ((mtab = calloc(sizeof (Entry), NENT)) == NULL) { in f_mkmtab()
253 ep = mtab; in f_mkmtab()
254 mend = &mtab[NENT]; in f_mkmtab()
275 oldsize = mend - mtab; in f_mkmtab()
277 if ((mtab = realloc(mtab, tbsize)) == NULL) { in f_mkmtab()
283 (void) memset(mtab + oldsize, 0, in f_mkmtab()
[all …]
/titanic_41/usr/src/cmd/hal/tools/
H A Dhal-storage-shared.c74 struct mtab_handle *mtab; in mtab_open() local
76 mtab = g_new0 (struct mtab_handle, 1); in mtab_open()
77 mtab->n_mounts = getmntinfo (&mtab->mounts, MNT_NOWAIT); in mtab_open()
78 if (mtab->n_mounts == 0) { in mtab_open()
79 g_free (mtab); in mtab_open()
83 *handle = mtab; in mtab_open()
98 struct mtab_handle *mtab = handle; in mtab_next() local
100 if (mtab->iter < mtab->n_mounts) in mtab_next()
101 return mtab->mounts[mtab->iter++].f_mntfromname; in mtab_next()
/titanic_41/usr/src/cmd/prtvtoc/
H A Dprtvtoc.c244 struct mnttab mtab; in getmntpt() local
254 while (getmntent(file, &mtab) == 0) { in getmntpt()
255 item = mtab.mnt_special; in getmntpt()
256 if ((item == NULL) || (mtab.mnt_mountp == NULL)) in getmntpt()
283 safe_strdup(mtab.mnt_mountp); in getmntpt()
476 char *name, char **mtab) in puttable() argument
523 if (mtab && mtab[idx]) in puttable()
524 (void) printf(" %s", mtab[idx]); in puttable()
534 char **mtab) in puttable64() argument
579 if ((idx < 7) && mtab && mtab[idx]) in puttable64()
[all …]
/titanic_41/usr/src/cmd/fs.d/ufs/quotaon/
H A Dquotaon.c94 FILE *mtab, *vfstab, *tmp; in main() local
204 mtab = fopen(MNTTAB, "r"); in main()
205 if (mtab == NULL) { in main()
211 while ((status = getmntent(mtab, &mntp)) == 0) in main()
215 rewind(mtab); in main()
225 while ((status = getmntent(mtab, &mntp)) == NULL) { in main()
233 fclose(mtab); in main()
/titanic_41/usr/src/cmd/fs.d/ufs/quotacheck/
H A Dquotacheck.c127 FILE *mtab, *vfstab; in main() local
231 if ((mtab = fopen(MNTTAB, "r")) == NULL) { in main()
236 while (getmntent(mtab, &mntp) == NULL) { in main()
248 fclose(mtab); in main()
276 FILE *mtab; in preen() local
281 if ((mtab = fopen(MNTTAB, "r")) == NULL) { in preen()
304 rewind(mtab); in preen()
306 if (getmntany(mtab, &mntp, &mpref) == 0 && in preen()
329 rewind(mtab); in preen()
331 if (getmntany(mtab, &mntp, &mpref) != 0) { in preen()
[all …]
/titanic_41/usr/src/cmd/zoneadm/
H A Dzfs.c1514 struct mnttab *mtab; in zone_mount_rootfs() local
1523 mtab = mounts->root_mnttab; in zone_mount_rootfs()
1524 if (mtab == NULL) in zone_mount_rootfs()
1541 if (mtab->mnt_mountp != NULL) { in zone_mount_rootfs()
1544 if ((zhp = zfs_open(g_zfs, mtab->mnt_special, in zone_mount_rootfs()
1557 if (zfs_mount(zhp, mtab->mnt_mntopts, 0) != 0) { in zone_mount_rootfs()
1562 mtab->mnt_mountp) != 0) in zone_mount_rootfs()
1576 if (mtab->mnt_mntopts != NULL) in zone_mount_rootfs()
1580 if (mount(mtab->mnt_special, zoneroot, flags, mtab->mnt_fstype, NULL, 0, in zone_mount_rootfs()
1581 mtab->mnt_mntopts, MAX_MNTOPT_STR * sizeof (char)) != 0) { in zone_mount_rootfs()
[all …]
/titanic_41/usr/src/cmd/fs.d/ufs/repquota/
H A Drepquota.c107 FILE *mtab, *vfstab; in main() local
204 if ((mtab = fopen(MNTTAB, "r")) == NULL) { in main()
209 while (getmntent(mtab, &mntp) == 0) { in main()
220 (void) fclose(mtab); in main()
/titanic_41/usr/src/cmd/fs.d/ufs/fsck/
H A Dmain.c803 struct mnttab mtab; in hasvfsopt() local
807 mtab.mnt_mntopts = vfs->vfs_mntopts; in hasvfsopt()
808 return (hasmntopt(&mtab, opt)); in hasvfsopt()
/titanic_41/usr/src/cmd/fs.d/ufs/edquota/
H A Dedquota.c663 FILE *mtab; in setupfs() local
666 if ((mtab = fopen(MNTTAB, "r")) == (FILE *)0) { in setupfs()
670 while (getmntent(mtab, &mntp) == 0) { in setupfs()
698 (void) fclose(mtab); in setupfs()
/titanic_41/usr/src/cmd/fs.d/ufs/quota/
H A Dquota.c243 FILE *mtab; in showquotas() local
266 mtab = fopen(MNTTAB, "r"); in showquotas()
267 while (getmntent(mtab, &mnt) == NULL) { in showquotas()
434 fclose(mtab); in showquotas()
/titanic_41/usr/src/lib/libxcurses/h/posix/
H A Dmkslocal.h803 #define M_FSMOUNT "/etc/mtab"
/titanic_41/usr/src/cmd/fs.d/
H A Ddf.c520 struct extmnttab mtab; in mtab_read_file() local
531 while ((status = getextmntent(fp, &mtab, sizeof (struct extmnttab))) in mtab_read_file()
542 mtep->mte_mount = mntdup(&mtab); in mtab_read_file()
544 mtep->mte_ignore = (hasmntopt((struct mnttab *)&mtab, in mtab_read_file()
/titanic_41/usr/src/lib/libxcurses/h/
H A Dmks.h240 #define M_FSMOUNT M_ETCDIR(mtab)