Searched refs:mntbuf (Results 1 - 6 of 6) sorted by relevance

/macosx-10.10.1/Libc-1044.1.2/gen/FreeBSD/
H A Dgetmntinfo.c49 static struct statfs *mntbuf; local
55 if (bufsize > 0 && (mntsize = getfsstat(mntbuf, bufsize, flags)) < 0)
58 if (mntbuf)
59 free(mntbuf);
61 if ((mntbuf = (struct statfs *)malloc(bufsize)) == 0)
63 if ((mntsize = getfsstat(mntbuf, bufsize, flags)) < 0)
66 *mntbufp = mntbuf;
H A Dgetmntinfo64.c49 static struct statfs64 *mntbuf; local
55 if (bufsize > 0 && (mntsize = getfsstat64(mntbuf, bufsize, flags)) < 0)
58 if (mntbuf)
59 free(mntbuf);
61 if ((mntbuf = (struct statfs64 *)malloc(bufsize)) == 0)
63 if ((mntsize = getfsstat64(mntbuf, bufsize, flags)) < 0)
66 *mntbufp = mntbuf;
/macosx-10.10.1/diskdev_cmds-576/mount.tproj/
H A Dmount.c122 struct statfs *mntbuf; local
206 if ((mntsize = getmntinfo(&mntbuf, MNT_NOWAIT)) == 0)
209 if (checkvfsname(mntbuf[i].f_fstypename, vfslist))
211 prmount(&mntbuf[i]);
220 if ((mntbuf = getmntpt(*argv)) == NULL)
233 mntfromname = mntbuf->f_mntfromname;
235 fs = getfsfile(mntbuf->f_mntonname);
241 rval = mountfs(mntbuf->f_fstypename, mntfromname,
242 mntbuf->f_mntonname, init_flags, options, 0);
284 if ((mntbuf
339 struct statfs *mntbuf; local
502 struct statfs *mntbuf; local
[all...]
/macosx-10.10.1/diskdev_cmds-576/umount.tproj/
H A Dumount.c133 struct statfs *mntbuf; local
203 if ((mnts = getmntinfo(&mntbuf, MNT_NOWAIT)) == 0) {
209 if (checkvfsname(mntbuf[mnts].f_fstypename, typelist))
211 if (umountfs(mntbuf[mnts].f_mntonname, typelist) != 0)
521 static struct statfs *mntbuf; variable in typeref:struct:statfs
529 if (mntbuf == NULL &&
530 (mntsize = getmntinfo(&mntbuf, MNT_NOWAIT)) == 0) {
535 if ((what == MNTON) && !strcmp(mntbuf[i].f_mntfromname, name)) {
537 *type = mntbuf[i].f_fstypename;
538 return (mntbuf[
[all...]
/macosx-10.10.1/file_cmds-242/df/
H A Ddf.c146 struct statfs statfsbuf, *mntbuf; local
251 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT);
254 update_maxwidths(&maxwidths, &mntbuf[i]);
258 mntsize = regetmntinfo(&mntbuf, mntsize, vfslist);
261 update_maxwidths(&maxwidths, &mntbuf[i]);
263 if (aflag || (mntbuf[i].f_flags & MNT_IGNORE) == 0)
264 prtstat(&mntbuf[i], &maxwidths);
314 struct statfs *mntbuf; local
316 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT);
318 if (!strcmp(mntbuf[
333 struct statfs *mntbuf; local
[all...]
/macosx-10.10.1/NFS-82/nfsstat/
H A Dnfsstat.c1410 struct statfs *mntbuf; local
1422 if ((mntsize = getmntinfo(&mntbuf, MNT_NOWAIT)) == 0)
1426 if (mountpath && (strcmp(mountpath, mntbuf[i].f_mntonname) || !strcmp(mntbuf[i].f_fstypename, "autofs")))
1428 if (!mountpath && strcmp(mntbuf[i].f_fstypename, "nfs"))
1431 if (read_mountinfo(&mntbuf[i].f_fsid, &buf, &buflen)) {
1432 warnx("Unable to get mount info for %s", mntbuf[i].f_mntonname);
1436 print_mountinfo(&mntbuf[i], buf, buflen);

Completed in 188 milliseconds