Lines Matching refs:mntbuf
123 struct statfs *mntbuf;
233 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT);
234 mntsize = regetmntinfo(&mntbuf, mntsize, vfslist);
237 mntbuf = malloc(argc * sizeof(*mntbuf));
238 if (mntbuf == NULL)
342 mntbuf[mntsize++] = statfsbuf;
347 if (aflag || (mntbuf[i].f_flags & MNT_IGNORE) == 0) {
348 update_maxwidths(&maxwidths, &mntbuf[i]);
350 addstat(&totalbuf, &mntbuf[i]);
354 if (aflag || (mntbuf[i].f_flags & MNT_IGNORE) == 0)
355 prtstat(&mntbuf[i], &maxwidths);
371 struct statfs *mntbuf;
373 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT);
375 if (!strcmp(mntbuf[i].f_mntfromname, name))
376 return (mntbuf[i].f_mntonname);
382 * Make a pass over the file system info in ``mntbuf'' filtering out
390 struct statfs *mntbuf;
395 mntbuf = *mntbufp;
397 if (checkvfsname(mntbuf[i].f_fstypename, vfslist))
405 error = statfs(mntbuf[i].f_mntonname, &mntbuf[j]);
410 mntbuf[i].f_mntonname);
411 mntbuf[j] = mntbuf[i];