mtab
static const struct morsetab mtab[] = {
for (m = ((unsigned char)c < 0x80? mtab: hightab);
ns_mtab *mtab; /* method table */
mod.mtab = fn(mod.name, &mod.mtabsize, &mod.unregister);
if (mod.mtab == NULL || mod.mtabsize == 0) {
qsort(mod.mtab, mod.mtabsize, sizeof(mod.mtab[0]),
mod->unregister(mod->mtab, mod->mtabsize);
match = bsearch(&key, mod->mtab, mod->mtabsize,
sizeof(mod->mtab[0]), mtab_compare);
} mtab[48] = {
while (m < 47 && mtab[m + 1].days <= t2)
*ddp += mtab[m].coded;
t2 -= mtab[m].days - 1;
struct mtab *next;
struct mtab *mt;
if ((mt = malloc(sizeof (struct mtab))) == NULL)
static const int mtab[] = {31, 28, 31, 30, 31, 30, 31, 31,
ndays = mtab[month];
struct mtab *next;
struct mtab *mt;
if ((mt = malloc(sizeof(struct mtab))) == NULL)
for (mtab = mtabhead; mtab != NULL; mtab = mtab->mtab_next) {
if (*mtab->mtab_host == '\0')
if (mtab->mtab_time + expire < now) {
mtab->mtab_host, mtab->mtab_dirp);
bzero(mtab->mtab_host,
sizeof(mtab->mtab_host));
if (keep && is_mounted(mtab->mtab_host,
mtab->mtab_dirp)) {
mtab->mtab_host, mtab->mtab_dirp);
if (do_umount(mtab->mtab_host, mtab->mtab_dirp)) {
mtab->mtab_host, mtab->mtab_dirp);
clean_mtab(mtab->mtab_host, mtab->mtab_dirp,
struct mtablist *mtab;