Lines Matching refs:mt
58 struct mtab_list *mtlist = 0, *mt; in xgetmountlist() local
72 mt = xzalloc(sizeof(struct mtab_list) + strlen(me->f_fstypename) + in xgetmountlist()
74 dlist_add_nomalloc((void *)&mtlist, (void *)mt); in xgetmountlist()
78 stat(me->f_mntonname, &(mt->stat)); in xgetmountlist()
79 statvfs(me->f_mntonname, &(mt->statvfs)); in xgetmountlist()
82 mt->dir = stpcpy(mt->type, me->f_fstypename)+1; in xgetmountlist()
83 mt->device = stpcpy(mt->dir, me->f_mntonname)+1; in xgetmountlist()
84 mt->opts = stpcpy(mt->device, me->f_mntfromname)+1; in xgetmountlist()
85 strcpy(mt->opts, ""); /* TODO: reverse from f_flags? */ in xgetmountlist()
151 struct mtab_list *mtlist = 0, *mt; in xgetmountlist() local
163 mt = xzalloc(sizeof(struct mtab_list) + strlen(me->mnt_fsname) + in xgetmountlist()
165 dlist_add_nomalloc((void *)&mtlist, (void *)mt); in xgetmountlist()
170 stat(me->mnt_dir, &(mt->stat)); in xgetmountlist()
171 statvfs(me->mnt_dir, &(mt->statvfs)); in xgetmountlist()
175 mt->dir = stpcpy(mt->type, me->mnt_type)+1; in xgetmountlist()
176 mt->device = stpcpy(mt->dir, me->mnt_dir)+1; in xgetmountlist()
177 mt->opts = stpcpy(mt->device, me->mnt_fsname)+1; in xgetmountlist()
178 strcpy(mt->opts, me->mnt_opts); in xgetmountlist()
180 octal_deslash(mt->dir); in xgetmountlist()
181 octal_deslash(mt->device); in xgetmountlist()