Lines Matching refs:mntbuf
104 struct statfs *mntbuf; in main() local
195 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT); in main()
196 mntsize = regetmntinfo(&mntbuf, mntsize); in main()
199 mntbuf = malloc(argc * sizeof(*mntbuf)); in main()
200 if (mntbuf == NULL) in main()
253 mntbuf[mntsize++] = statfsbuf; in main()
258 if (aflag || (mntbuf[i].f_flags & MNT_IGNORE) == 0) { in main()
259 update_maxwidths(&maxwidths, &mntbuf[i]); in main()
261 addstat(&totalbuf, &mntbuf[i]); in main()
265 if (aflag || (mntbuf[i].f_flags & MNT_IGNORE) == 0) in main()
266 prtstat(&mntbuf[i], &maxwidths); in main()
283 struct statfs *mntbuf; in getmntpt() local
285 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT); in getmntpt()
287 if (!strcmp(mntbuf[i].f_mntfromname, name)) in getmntpt()
288 return (mntbuf[i].f_mntonname); in getmntpt()
374 struct statfs *mntbuf; in regetmntinfo() local
379 mntbuf = *mntbufp; in regetmntinfo()
381 if (checkvfsselected(mntbuf[i].f_fstypename) != 0) in regetmntinfo()
389 error = statfs(mntbuf[i].f_mntonname, &mntbuf[j]); in regetmntinfo()
394 mntbuf[i].f_mntonname); in regetmntinfo()
395 mntbuf[j] = mntbuf[i]; in regetmntinfo()