Searched refs:mntbuf (Results 1 – 8 of 8) sorted by relevance
| /openbsd-src/bin/df/ |
| H A D | df.c | 74 struct statfs *mntbuf; in main() local 121 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT); in main() 126 mntsize = regetmntinfo(&mntbuf, mntsize); in main() 128 mntbuf = calloc(argc, sizeof(struct statfs)); in main() 129 if (mntbuf == NULL) in main() 139 if (!raw_df(*argv, &mntbuf[mntsize])) in main() 148 if (!statfs(mntpt, &mntbuf[mntsize])) in main() 149 if (lflag && (mntbuf[mntsize].f_flags & MNT_LOCAL) == 0) in main() 152 else if (!selected(mntbuf[mntsize].f_fstypename)) in main() 154 *argv, mntbuf[mntsize].f_fstypename); in main() [all …]
|
| /openbsd-src/lib/libc/gen/ |
| H A D | getmntinfo.c | 41 static struct statfs *mntbuf; in getmntinfo() local 47 if (bufsize > 0 && (mntsize = getfsstat(mntbuf, bufsize, flags)) == -1) in getmntinfo() 50 free(mntbuf); in getmntinfo() 52 if ((mntbuf = malloc(bufsize)) == NULL) { in getmntinfo() 56 if ((mntsize = getfsstat(mntbuf, bufsize, flags)) == -1) in getmntinfo() 59 *mntbufp = mntbuf; in getmntinfo()
|
| /openbsd-src/sbin/umount/ |
| H A D | umount.c | 259 struct statfs *mntbuf; in getmntname() local 262 if ((n = getmntinfo(&mntbuf, MNT_NOWAIT)) == 0) { in getmntname() 268 (strncmp(mntbuf[n].f_mntfromname, name, MNAMELEN) == 0 || in getmntname() 269 strncmp(mntbuf[n].f_mntfromspec, name, MNAMELEN) == 0)) { in getmntname() 271 memcpy(type, mntbuf[n].f_fstypename, in getmntname() 272 sizeof(mntbuf[n].f_fstypename)); in getmntname() 273 return (mntbuf[n].f_mntonname); in getmntname() 276 (strncmp(mntbuf[n].f_mntonname, name, MNAMELEN) == 0)) { in getmntname() 278 memcpy(type, mntbuf[n].f_fstypename, in getmntname() 279 sizeof(mntbuf[n].f_fstypename)); in getmntname() [all …]
|
| /openbsd-src/sbin/mount/ |
| H A D | mount.c | 106 struct statfs *mntbuf; in main() local 222 if ((mntsize = getmntinfo(&mntbuf, MNT_NOWAIT)) == 0) in main() 225 if (!selected(mntbuf[i].f_fstypename)) in main() 227 prmount(&mntbuf[i]); in main() 239 if ((mntbuf = getmntpt(mntpath)) == NULL) in main() 243 if ((mntbuf->f_flags & MNT_ROOTFS) && in main() 244 !strcmp(mntbuf->f_mntfromname, "root_device")) { in main() 246 fs = getfsfile(mntbuf->f_mntonname); in main() 254 fs->fs_vfstype = mntbuf->f_fstypename; in main() 255 fs->fs_spec = mntbuf->f_mntfromname; in main() [all …]
|
| /openbsd-src/usr.bin/fstat/ |
| H A D | fstat.c | 892 static struct statfs *mntbuf; in getfname() local 910 if (mntbuf == NULL) { in getfname() 911 nmounts = getmntinfo(&mntbuf, MNT_NOWAIT); in getfname() 916 if (!strcmp(mntbuf[i].f_mntfromname, filename)) { in getfname() 917 if (stat(mntbuf[i].f_mntonname, &sb) == -1) { in getfname()
|
| /openbsd-src/libexec/snmpd/snmpd_metrics/ |
| H A D | mib.c | 392 struct statfs *mntbuf, *mnt; in mib_hrstorage() local 428 if ((mntsize = getmntinfo(&mntbuf, MNT_NOWAIT)) == 0) { in mib_hrstorage() 495 mnt = &mntbuf[idx - 31]; in mib_hrstorage()
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/msan/tests/ |
| H A D | msan_test.cpp | 2368 struct mntent mntbuf; in TEST() local 2370 struct mntent *mnt = getmntent_r(fp, &mntbuf, buf, sizeof(buf)); in TEST()
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_common_interceptors.inc | 4497 __sanitizer_mntent *mntbuf, char *buf, int buflen) { 4499 COMMON_INTERCEPTOR_ENTER(ctx, getmntent_r, fp, mntbuf, buf, buflen); 4500 __sanitizer_mntent *res = REAL(getmntent_r)(fp, mntbuf, buf, buflen);
|