Searched refs:mntbuf (Results 1 - 10 of 10) sorted by relevance

/netbsd-6-1-5-RELEASE/lib/libc/compat/gen/
H A Dcompat_getmntinfo.c65 static struct statfs12 *mntbuf; local
75 (mntsize = getfsstat(mntbuf, (long)bufsize, flags)) == -1)
78 if (mntbuf)
79 free(mntbuf);
81 if ((mntbuf = malloc(bufsize)) == NULL)
83 if ((mntsize = getfsstat(mntbuf, (long)bufsize, flags)) == -1)
86 *mntbufp = mntbuf;
/netbsd-6-1-5-RELEASE/lib/libc/gen/
H A Dgetmntinfo.c58 static struct statvfs *mntbuf; local
68 (mntsize = getvfsstat(mntbuf, bufsize, flags)) == -1)
71 if (mntbuf)
72 free(mntbuf);
74 if ((mntbuf = malloc(bufsize)) == NULL)
76 if ((mntsize = getvfsstat(mntbuf, bufsize, flags)) == -1)
79 *mntbufp = mntbuf;
/netbsd-6-1-5-RELEASE/tests/fs/nfs/nfsservice/
H A Dgetmntinfo.c62 static struct statvfs *mntbuf; local
72 (mntsize = getvfsstat(mntbuf, bufsize, flags)) == -1)
75 if (mntbuf)
76 free(mntbuf);
78 if ((mntbuf = malloc(bufsize)) == NULL)
80 if ((mntsize = getvfsstat(mntbuf, bufsize, flags)) == -1)
83 *mntbufp = mntbuf;
/netbsd-6-1-5-RELEASE/bin/df/
H A Ddf.c85 struct statvfs *mntbuf; local
157 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT);
163 mntsize = regetmntinfo(&mntbuf, mntsize);
165 if ((mntbuf = malloc(argc * sizeof(*mntbuf))) == NULL)
183 if (!statvfs(mntpt, &mntbuf[mntsize]))
185 (mntbuf[mntsize].f_flag & MNT_LOCAL) == 0)
189 (!selected(mntbuf[mntsize].f_fstypename,
190 sizeof(mntbuf[mntsize].f_fstypename)))
193 mntbuf[mntsiz
217 struct statvfs *mntbuf; local
292 struct statvfs *mntbuf; local
[all...]
/netbsd-6-1-5-RELEASE/sbin/umount/
H A Dumount.c92 struct statvfs *mntbuf; local
156 if ((mnts = getmntinfo(&mntbuf, ST_NOWAIT)) == 0) {
161 if (checkvfsname(mntbuf[mnts].f_fstypename, typelist))
163 if (umountfs(mntbuf[mnts].f_mntonname, typelist,
300 static struct statvfs *mntbuf; local
304 if (mntbuf == NULL &&
305 (mntsize = getmntinfo(&mntbuf, MNT_NOWAIT)) == 0) {
310 if ((what == MNTON) && !strcmp(mntbuf[i].f_mntfromname, name)) {
312 *type = mntbuf[i].f_fstypename;
313 return (mntbuf[
[all...]
/netbsd-6-1-5-RELEASE/sbin/dump/
H A Dsnapshot.c65 struct statvfs *mntbuf, *fs, fsb; local
69 mntbuf = NULL;
85 n = getmntinfo(&mntbuf, MNT_NOWAIT);
86 for (fs = mntbuf, i = 0; i < n; i++, fs++) {
180 if (mntbuf)
181 free(mntbuf);
188 if (mntbuf)
189 free(mntbuf);
H A Doptr.c424 struct statvfs *mntbuf, *fs; local
427 if ((mntbufc = getmntinfo(&mntbuf, MNT_NOWAIT)) == 0)
429 for (fs = mntbuf, i = 0; i < mntbufc; i++, fs++) {
/netbsd-6-1-5-RELEASE/sbin/mount/
H A Dmount.c103 struct statvfs *mntbuf; local
179 if ((mntbuf = getmntpt(fs->fs_file)) == NULL)
183 mntfromname = mntbuf->f_mntfromname;
192 if ((mntsize = getmntinfo(&mntbuf, MNT_NOWAIT)) == 0)
195 if (checkvfsname(mntbuf[i].f_fstypename,
198 prmount(&mntbuf[i]);
222 (mntbuf = getmntpt(canonical_path)) == NULL) &&
223 (mntbuf = getmntpt(*argv)) == NULL
230 mntfromname = mntbuf->f_mntfromname;
231 if ((fs = getfsfile(mntbuf
641 struct statvfs *mntbuf; local
[all...]
/netbsd-6-1-5-RELEASE/sbin/mount_lfs/
H A Dmount_lfs.c158 struct statvfs *mntbuf; local
170 if ((mntsize = getmntinfo(&mntbuf, MNT_NOWAIT)) == 0)
173 if (strcmp(mntbuf[i].f_mntfromname, args.fspec) == 0) {
174 oldflags = mntbuf[i].f_flag;
/netbsd-6-1-5-RELEASE/tests/util/df/
H A Dgetmntinfo.c208 getmntinfo(struct statvfs **mntbuf, int flags) argument
216 *mntbuf = allstatvfs;

Completed in 175 milliseconds