Home
last modified time | relevance | path

Searched refs:mntinfo (Results 1 – 2 of 2) sorted by relevance

/freebsd/lib/libc/tests/gen/
H A Dgetmntinfo_test.c40 check_mntinfo(struct statfs *mntinfo, int n) in check_mntinfo() argument
45 ATF_REQUIRE_MSG(mntinfo[i].f_version == STATFS_VERSION, "%ju", in check_mntinfo()
46 (uintmax_t)mntinfo[i].f_version); in check_mntinfo()
47 ATF_REQUIRE(mntinfo[i].f_namemax <= sizeof(mntinfo[0].f_mntonname)); in check_mntinfo()
55 struct statfs *mntinfo; in ATF_TC_BODY() local
58 nmnts = getmntinfo(&mntinfo, 199); in ATF_TC_BODY()
63 nmnts = getmntinfo(&mntinfo, MNT_NOWAIT); in ATF_TC_BODY()
67 check_mntinfo(mntinfo, nmnts); in ATF_TC_BODY()
68 memset(mntinfo, 0xdf, sizeof(*mntinfo) * nmnts); in ATF_TC_BODY()
70 nmnts = getmntinfo(&mntinfo, MNT_WAIT); in ATF_TC_BODY()
[all …]
/freebsd/sbin/umount/
H A Dumount.c74 size_t mntinfo (struct statfs **);
158 if ((mntsize = mntinfo(&mntbuf)) <= 0) in main()
495 if ((mntsize = mntinfo(&mntbuf)) <= 0) in getmntentry()
609 mntinfo(struct statfs **mntbuf) in mntinfo() function