Searched refs:mntbuf (Results 1 - 10 of 10) sorted by relevance
/netbsd-6-1-5-RELEASE/lib/libc/compat/gen/ |
H A D | compat_getmntinfo.c | 65 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 D | getmntinfo.c | 58 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 D | getmntinfo.c | 62 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 D | df.c | 85 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 D | umount.c | 92 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 D | snapshot.c | 65 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 D | optr.c | 424 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 D | mount.c | 103 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 D | mount_lfs.c | 158 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 D | getmntinfo.c | 208 getmntinfo(struct statvfs **mntbuf, int flags) argument 216 *mntbuf = allstatvfs;
|
Completed in 175 milliseconds