Searched refs:mtab (Results 1 - 17 of 17) sorted by relevance

/netbsd-6-1-5-RELEASE/external/bsd/am-utils/dist/conf/checkmount/
H A Dcheckmount_default.c52 #define _PATH_MTAB "/etc/mtab"
61 FILE *mtab; local
65 /* scan mtab for path */
66 if (!(mtab = setmntent(_PATH_MTAB, "r"))) {
74 * Well, our patched amd rewrites mtab in place to avoid NFS lossage, so
78 if (flock(fileno(mtab), LOCK_SH) < 0) {
80 if (lockf(fileno(mtab), F_LOCK, 0) < 0) {
86 while (!found && (ment = getmntent(mtab))) {
98 (void) endmntent(mtab);
103 /* swap files never show up in mtab, onl
[all...]
H A Dcheckmount_svr4.c57 FILE *mtab; local
62 /* scan mtab for path */
63 if (!(mtab = fopen(MNTTAB, "r"))) {
68 while (!found && (err = getmntent(mtab, &ment)) == 0) {
88 (void) fclose(mtab);
94 /* swap files never show up in mtab, only root fs */
/netbsd-6-1-5-RELEASE/external/bsd/tmux/dist/
H A Dcmd-bind-key.c92 const struct mode_key_table *mtab; local
97 if ((mtab = mode_key_findtable(tablename)) == NULL) {
102 cmd = mode_key_fromstring(mtab->cmdstr, args->argv[1]);
110 if ((mbind = SPLAY_FIND(mode_key_tree, mtab->tree, &mtmp)) != NULL) {
118 SPLAY_INSERT(mode_key_tree, mtab->tree, mbind);
H A Dcmd-list-keys.c106 const struct mode_key_table *mtab; local
112 if ((mtab = mode_key_findtable(tablename)) == NULL) {
119 SPLAY_FOREACH(mbind, mode_key_tree, mtab->tree) {
132 SPLAY_FOREACH(mbind, mode_key_tree, mtab->tree) {
140 cmdstr = mode_key_tostring(mtab->cmdstr, mbind->cmd);
144 mtab->name, (int) width, key, cmdstr);
H A Dcmd-unbind-key.c89 const struct mode_key_table *mtab; local
93 if ((mtab = mode_key_findtable(tablename)) == NULL) {
100 if ((mbind = SPLAY_FIND(mode_key_tree, mtab->tree, &mtmp)) != NULL) {
101 SPLAY_REMOVE(mode_key_tree, mtab->tree, mbind);
H A Dmode-key.c415 const struct mode_key_table *mtab; local
417 for (mtab = mode_key_tables; mtab->name != NULL; mtab++) {
418 if (strcasecmp(name, mtab->name) == 0)
419 return (mtab);
427 const struct mode_key_table *mtab; local
431 for (mtab = mode_key_tables; mtab->name != NULL; mtab
[all...]
/netbsd-6-1-5-RELEASE/external/bsd/am-utils/lib/libamu/
H A DMakefile14 .PATH: ${DIST} ${IDIST}/conf/mtab ${IDIST}/conf/transp ${IDIST}/conf/umount
16 SRCS= hasmntopt.c misc_rpc.c mount_fs.c mtab.c mtab_bsd.c \
/netbsd-6-1-5-RELEASE/lib/libc/net/
H A Dnsdispatch.c281 (*mod->unregister)(mod->mtab, mod->mtabsize);
342 mod.mtab = (*reg_fn)(mod.name, &mod.mtabsize, &mod.unregister);
343 if (mod.mtab == NULL || mod.mtabsize == 0) {
353 qsort(mod.mtab, mod.mtabsize, sizeof(mod.mtab[0]),
560 ns_mtab *mtab, mtabkey; local
577 mtab = bsearch(&mtabkey, mod->mtab, mod->mtabsize,
578 sizeof(mod->mtab[0]), _nsmtabcmp);
579 if (mtab !
[all...]
/netbsd-6-1-5-RELEASE/external/bsd/am-utils/dist/libamu/
H A DMakefile.am17 mtab.c \
/netbsd-6-1-5-RELEASE/sys/miscfs/procfs/
H A Dprocfs_linux.c562 procfs_format_sfs(char **mtab, size_t *mlen, char *buf, size_t blen, argument
583 *mtab = realloc(*mtab, *mlen + blen, M_TEMP, M_WAITOK);
584 memcpy(*mtab + *mlen, buf, blen);
593 char *bf, *mtab = NULL; local
610 root |= procfs_format_sfs(&mtab, &mtabsz, bf, LBFSZ,
622 (void)procfs_format_sfs(&mtab, &mtabsz, bf, LBFSZ,
628 error = uiomove_frombuf(mtab, mtabsz, uio);
629 free(mtab, M_TEMP);
/netbsd-6-1-5-RELEASE/external/bsd/am-utils/dist/
H A DMakefile.am198 conf/mtab/mtab_aix.c \
199 conf/mtab/mtab_bsd.c \
200 conf/mtab/mtab_file.c \
201 conf/mtab/mtab_isc3.c \
202 conf/mtab/mtab_linux.c \
203 conf/mtab/mtab_mach3.c \
204 conf/mtab/mtab_osf.c \
205 conf/mtab/mtab_svr4.c \
206 conf/mtab/mtab_ultrix.c \
/netbsd-6-1-5-RELEASE/include/
H A Dnsswitch.h205 ns_mtab *mtab; /* method table */ member in struct:__anon4987
206 u_int mtabsize; /* size of mtab */
/netbsd-6-1-5-RELEASE/usr.bin/fstat/
H A Dfstat.c742 static struct mtab { struct
743 struct mtab *next;
747 struct mtab *mt;
756 if ((mt = malloc(sizeof (struct mtab))) == NULL) {
757 err(1, "malloc(%u)", (unsigned int)sizeof(struct mtab));
/netbsd-6-1-5-RELEASE/external/apache2/mDNSResponder/nss/
H A Dnss_mdnsd.c206 static ns_mtab mtab[] = { variable
218 *nelems = sizeof(mtab) / sizeof(mtab[0]);
227 return mtab;
/netbsd-6-1-5-RELEASE/usr.sbin/pstat/
H A Dpstat.c635 static struct mtab { struct
636 struct mtab *next;
640 struct mtab *mt;
647 if ((mt = malloc(sizeof(struct mtab))) == NULL)
/netbsd-6-1-5-RELEASE/usr.bin/crunch/examples/
H A Dreally-big.conf77 special amd objs vers.amd.o afs_ops.o am_ops.o clock.o util.o xutil.o efs_ops.o mapc.o info_file.o info_hes.o info_ndbm.o info_passwd.o info_nis.o info_union.o map.o srvr_afs.o srvr_nfs.o mntfs.o misc_rpc.o mount_fs.o mtab.o mtab_bsd.o nfs_ops.o nfs_prot_svc.o nfs_start.o nfs_subr.o opts.o pfs_ops.o rpc_fwd.o sched.o sfs_ops.o amq_svc.o amq_subr.o umount_fs.o host_ops.o nfsx_ops.o ufs_ops.o ifs_ops.o amd.o get_args.o restart.o wire.o
/netbsd-6-1-5-RELEASE/usr.bin/newsyslog/
H A Dnewsyslog.c944 static int mtab[] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; local
955 nd = mtab[tm.tm_mon];

Completed in 237 milliseconds