Searched refs:mntsize (Results 1 - 7 of 7) sorted by relevance
/netbsd-current/lib/libc/compat/gen/ |
H A D | compat_getmntinfo.c | 62 static int mntsize; local 67 if (mntsize <= 0 && 68 (mntsize = __compat_getfsstat(NULL, 0L, MNT_NOWAIT)) == -1) 71 (mntsize = __compat_getfsstat(mntbuf, (long)bufsize, flags)) == -1) 73 while (bufsize <= mntsize * sizeof(struct statfs12)) { 76 bufsize = (mntsize + 1) * sizeof(struct statfs12); 79 if ((mntsize = __compat_getfsstat(mntbuf, (long)bufsize, 84 return (mntsize);
|
H A D | compat___getmntinfo13.c | 61 static int mntsize; local 66 if (mntsize <= 0 && 67 (mntsize = __compat_getvfsstat(NULL, 0L, MNT_NOWAIT)) == -1) 70 (mntsize = __compat_getvfsstat(mntbuf, bufsize, flags)) == -1) 72 while (bufsize <= mntsize * sizeof(struct statvfs90)) { 75 bufsize = (mntsize + 1) * sizeof(struct statvfs90); 78 if ((mntsize = __compat_getvfsstat(mntbuf, bufsize, 83 return (mntsize);
|
/netbsd-current/lib/libc/gen/ |
H A D | getmntinfo.c | 57 static int mntsize; local 62 if (mntsize <= 0 && 63 (mntsize = getvfsstat(NULL, (size_t)0, MNT_NOWAIT)) == -1) 66 (mntsize = getvfsstat(mntbuf, bufsize, flags)) == -1) 68 while (bufsize <= mntsize * sizeof(struct statvfs)) { 71 bufsize = (mntsize + 1) * sizeof(struct statvfs); 74 if ((mntsize = getvfsstat(mntbuf, bufsize, flags)) == -1) 78 return (mntsize);
|
/netbsd-current/tests/fs/nfs/nfsservice/ |
H A D | getmntinfo.c | 64 static int mntsize; local 69 if (mntsize <= 0 && 70 (mntsize = getvfsstat(NULL, (size_t)0, MNT_NOWAIT)) == -1) 73 (mntsize = getvfsstat(mntbuf, bufsize, flags)) == -1) 75 while (bufsize <= mntsize * sizeof(struct statvfs)) { 78 bufsize = (mntsize + 1) * sizeof(struct statvfs); 81 if ((mntsize = getvfsstat(mntbuf, bufsize, flags)) == -1) 85 return (mntsize);
|
/netbsd-current/sbin/mount_lfs/ |
H A D | mount_lfs.c | 155 int mntsize, oldflags, i; local 169 if ((mntsize = getmntinfo(&mntbuf, MNT_NOWAIT)) == 0) 171 for (i = 0; i < mntsize; i++) {
|
/netbsd-current/sbin/mount/ |
H A D | mount.c | 113 int all, ch, forceall, i, init_flags, mntsize, rval; local 203 if ((mntsize = getmntinfo(&mntbuf, MNT_NOWAIT)) == 0) 205 for (i = 0; i < mntsize; i++) { 645 int i, mntsize; local 647 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT); 648 for (i = 0; i < mntsize; i++)
|
/netbsd-current/sbin/umount/ |
H A D | umount.c | 347 static int mntsize; local 352 (mntsize = getmntinfo(&mntbuf, MNT_NOWAIT)) == 0) { 356 for (i = mntsize - 1; i >= 0; i--) {
|
Completed in 109 milliseconds