Home
last modified time | relevance | path

Searched refs:mntbuf (Results 1 – 25 of 184) sorted by relevance

12345678

/dports/devel/hs-git-annex/git-annex-8.20210903/_cabal_deps/mountpoints-1.0.2/cbits/
H A Dlibmounts.c61 static struct mntent *statfs_to_mntent (struct statfs *mntbuf) { in statfs_to_mntent() argument
62 _mntent.mnt_fsname = mntbuf->f_mntfromname; in statfs_to_mntent()
63 _mntent.mnt_dir = mntbuf->f_mntonname; in statfs_to_mntent()
64 _mntent.mnt_type = mntbuf->f_fstypename; in statfs_to_mntent()
75 struct statfs *mntbuf = NULL; variable
80 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT); in mounts_next()
84 mntbuf = NULL; in mounts_next()
88 return (statfs_to_mntent(&mntbuf[pos])); in mounts_next()
/dports/misc/rump/buildrump.sh-b914579/src/lib/libc/gen/
H A Dgetmntinfo.c56 static struct statvfs *mntbuf; in getmntinfo() local
66 (mntsize = getvfsstat(mntbuf, bufsize, flags)) == -1) in getmntinfo()
69 if (mntbuf) in getmntinfo()
70 free(mntbuf); in getmntinfo()
72 if ((mntbuf = malloc(bufsize)) == NULL) in getmntinfo()
74 if ((mntsize = getvfsstat(mntbuf, bufsize, flags)) == -1) in getmntinfo()
77 *mntbufp = mntbuf; in getmntinfo()
/dports/misc/rump/buildrump.sh-b914579/src/lib/libc/compat/gen/
H A Dcompat_getmntinfo.c61 static struct statfs12 *mntbuf; in __strong_alias() local
71 (mntsize = __compat_getfsstat(mntbuf, (long)bufsize, flags)) == -1) in __strong_alias()
74 if (mntbuf) in __strong_alias()
75 free(mntbuf); in __strong_alias()
77 if ((mntbuf = malloc(bufsize)) == NULL) in __strong_alias()
79 if ((mntsize = __compat_getfsstat(mntbuf, (long)bufsize, in __strong_alias()
83 *mntbufp = mntbuf; in __strong_alias()
/dports/net/rpki-client/rpki-client-portable-7.6/openbsd/src/lib/libc/gen/
H A Dgetmntinfo.c41 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()
/dports/net/rdist6/rdist-6.1.5/src/
H A Dfilesys-os.c85 if (mntbuf)
86 (void) free(mntbuf);
89 mntbuf = (char *) xmalloc(size);
95 mnt = (struct vmount *)mntbuf;
111 if (mntbuf)
112 (void) free(mntbuf);
116 mntbuf = (char *) xmalloc(size);
122 mnt = (struct statfs *) mntbuf;
230 if (mntbuf) {
231 (void) free(mntbuf);
[all …]
/dports/sysutils/eject/eject-1.5/
H A Deject.c125 struct statfs *mntbuf; local
126 mnts = getmntinfo(&mntbuf, MNT_NOWAIT);
132 if (strcmp(mntbuf[ch].f_mntonname, name) == 0) {
133 device = strdup(mntbuf[ch].f_mntfromname);
134 name = strdup(mntbuf[ch].f_mntfromname);
207 struct statfs *mntbuf; local
214 mnts = getmntinfo(&mntbuf, MNT_NOWAIT);
222 p = mntbuf[n].f_mntfromname - 1;
235 mntbuf[n].f_mntfromname, mntbuf[n].f_mntonname);
246 mp->mntfromname = mntbuf[n].f_mntfromname;
[all …]
/dports/misc/vifm/vifm-0.11/src/compat/
H A Dmntent.c57 static struct mntent * statfs_to_mntent(struct statfs *mntbuf);
86 static struct statfs *mntbuf; in getmntent() local
90 mntsize = getmntinfo(&mntbuf, MNT_NOWAIT); in getmntent()
100 return statfs_to_mntent(&mntbuf[pos]); in getmntent()
104 statfs_to_mntent(struct statfs *mntbuf) in statfs_to_mntent() argument
109 _mntent.mnt_fsname = mntbuf->f_mntfromname; in statfs_to_mntent()
110 _mntent.mnt_dir = mntbuf->f_mntonname; in statfs_to_mntent()
111 _mntent.mnt_type = mntbuf->f_fstypename; in statfs_to_mntent()
112 tmp = flags2opts (mntbuf->f_flags); in statfs_to_mntent()
/dports/x11-fm/rodent/rodent-5.3.16.3/apps/rodent-fstab/src/
H A Dfstab-linux.i57 struct mntent mntbuf; in private_is_mounted() local
59 while ((m = getmntent_r (tab_file, &mntbuf, buf, 2048)) != NULL) { in private_is_mounted()
124 struct mntent mntbuf; in count_elements() local
146 struct mntent mntbuf; in is_user_type() local
148 while ((mnt_struct = getmntent_r (fstab_fd, &mntbuf, buf, 2048)) != NULL) { in is_user_type()
174 struct mntent mntbuf; in get_mnt_items() local
228 struct mntent mntbuf; in fstab_get_mnt_dir() local
254 struct mntent mntbuf; in fstab_get_mnt_fsname() local
279 struct mntent mntbuf; in set_mounts_info() local
300 struct mntent mntbuf; in set_partition_info() local
[all …]
/dports/sysutils/unieject/unieject-6/lib/
H A Dfreebsd.c33 struct statfs *mntbuf; in checkmount() local
34 int mnts = getmntinfo(&mntbuf, MNT_NOWAIT); in checkmount()
45 if ( mntbuf[n].f_mntfromname[0] != '/' ) continue; in checkmount()
47 char *newdev = simplifylink(mntbuf[n].f_mntfromname); in checkmount()
48 char *newmnt = simplifylink(mntbuf[n].f_mntonname); in checkmount()
/dports/net-mgmt/zabbix5-java/zabbix-5.0.19/src/libs/zbxsysinfo/openbsd/
H A Ddiskspace.c202 struct statfs *mntbuf; in VFS_FS_DISCOVERY() local
205 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in VFS_FS_DISCOVERY()
216 zbx_json_addstring(&j, ZBX_LLD_MACRO_FSNAME, mntbuf[i].f_mntonname, ZBX_JSON_TYPE_STRING); in VFS_FS_DISCOVERY()
217 zbx_json_addstring(&j, ZBX_LLD_MACRO_FSTYPE, mntbuf[i].f_fstypename, ZBX_JSON_TYPE_STRING); in VFS_FS_DISCOVERY()
233 struct statfs *mntbuf; in vfs_fs_get() local
245 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in vfs_fs_get()
255 mpoint = mntbuf[i].f_mntonname; in vfs_fs_get()
270 zbx_strlcpy(mntpoint->fstype, mntbuf[i].f_fstypename, MAX_STRING_LEN); in vfs_fs_get()
285 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in vfs_fs_get()
295 mpoint = mntbuf[i].f_mntonname; in vfs_fs_get()
/dports/net-mgmt/zabbix5-frontend/zabbix-5.0.19/src/libs/zbxsysinfo/dragonfly/
H A Ddiskspace.c202 struct statfs *mntbuf; in VFS_FS_DISCOVERY() local
205 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in VFS_FS_DISCOVERY()
216 zbx_json_addstring(&j, ZBX_LLD_MACRO_FSNAME, mntbuf[i].f_mntonname, ZBX_JSON_TYPE_STRING); in VFS_FS_DISCOVERY()
217 zbx_json_addstring(&j, ZBX_LLD_MACRO_FSTYPE, mntbuf[i].f_fstypename, ZBX_JSON_TYPE_STRING); in VFS_FS_DISCOVERY()
233 struct statfs *mntbuf; in vfs_fs_get() local
245 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in vfs_fs_get()
255 mpoint = mntbuf[i].f_mntonname; in vfs_fs_get()
270 zbx_strlcpy(mntpoint->fstype, mntbuf[i].f_fstypename, MAX_STRING_LEN); in vfs_fs_get()
285 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in vfs_fs_get()
295 mpoint = mntbuf[i].f_mntonname; in vfs_fs_get()
/dports/net-mgmt/zabbix5-frontend/zabbix-5.0.19/src/libs/zbxsysinfo/openbsd/
H A Ddiskspace.c202 struct statfs *mntbuf; in VFS_FS_DISCOVERY() local
205 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in VFS_FS_DISCOVERY()
216 zbx_json_addstring(&j, ZBX_LLD_MACRO_FSNAME, mntbuf[i].f_mntonname, ZBX_JSON_TYPE_STRING); in VFS_FS_DISCOVERY()
217 zbx_json_addstring(&j, ZBX_LLD_MACRO_FSTYPE, mntbuf[i].f_fstypename, ZBX_JSON_TYPE_STRING); in VFS_FS_DISCOVERY()
233 struct statfs *mntbuf; in vfs_fs_get() local
245 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in vfs_fs_get()
255 mpoint = mntbuf[i].f_mntonname; in vfs_fs_get()
270 zbx_strlcpy(mntpoint->fstype, mntbuf[i].f_fstypename, MAX_STRING_LEN); in vfs_fs_get()
285 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in vfs_fs_get()
295 mpoint = mntbuf[i].f_mntonname; in vfs_fs_get()
/dports/net-mgmt/zabbix5-frontend/zabbix-5.0.19/src/libs/zbxsysinfo/osx/
H A Ddiskspace.c202 struct statfs *mntbuf; in VFS_FS_DISCOVERY() local
205 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in VFS_FS_DISCOVERY()
216 zbx_json_addstring(&j, ZBX_LLD_MACRO_FSNAME, mntbuf[i].f_mntonname, ZBX_JSON_TYPE_STRING); in VFS_FS_DISCOVERY()
217 zbx_json_addstring(&j, ZBX_LLD_MACRO_FSTYPE, mntbuf[i].f_fstypename, ZBX_JSON_TYPE_STRING); in VFS_FS_DISCOVERY()
233 struct statfs *mntbuf; in vfs_fs_get() local
245 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in vfs_fs_get()
255 mpoint = mntbuf[i].f_mntonname; in vfs_fs_get()
270 zbx_strlcpy(mntpoint->fstype, mntbuf[i].f_fstypename, MAX_STRING_LEN); in vfs_fs_get()
285 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in vfs_fs_get()
295 mpoint = mntbuf[i].f_mntonname; in vfs_fs_get()
/dports/net-mgmt/zabbix5-proxy/zabbix-5.0.19/src/libs/zbxsysinfo/dragonfly/
H A Ddiskspace.c202 struct statfs *mntbuf; in VFS_FS_DISCOVERY() local
205 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in VFS_FS_DISCOVERY()
216 zbx_json_addstring(&j, ZBX_LLD_MACRO_FSNAME, mntbuf[i].f_mntonname, ZBX_JSON_TYPE_STRING); in VFS_FS_DISCOVERY()
217 zbx_json_addstring(&j, ZBX_LLD_MACRO_FSTYPE, mntbuf[i].f_fstypename, ZBX_JSON_TYPE_STRING); in VFS_FS_DISCOVERY()
233 struct statfs *mntbuf; in vfs_fs_get() local
245 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in vfs_fs_get()
255 mpoint = mntbuf[i].f_mntonname; in vfs_fs_get()
270 zbx_strlcpy(mntpoint->fstype, mntbuf[i].f_fstypename, MAX_STRING_LEN); in vfs_fs_get()
285 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in vfs_fs_get()
295 mpoint = mntbuf[i].f_mntonname; in vfs_fs_get()
/dports/net-mgmt/zabbix5-proxy/zabbix-5.0.19/src/libs/zbxsysinfo/netbsd/
H A Ddiskspace.c202 struct statvfs *mntbuf; in VFS_FS_DISCOVERY() local
205 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in VFS_FS_DISCOVERY()
216 zbx_json_addstring(&j, ZBX_LLD_MACRO_FSNAME, mntbuf[i].f_mntonname, ZBX_JSON_TYPE_STRING); in VFS_FS_DISCOVERY()
217 zbx_json_addstring(&j, ZBX_LLD_MACRO_FSTYPE, mntbuf[i].f_fstypename, ZBX_JSON_TYPE_STRING); in VFS_FS_DISCOVERY()
233 struct statvfs *mntbuf; in vfs_fs_get() local
246 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in vfs_fs_get()
256 mpoint = mntbuf[i].f_mntonname; in vfs_fs_get()
271 zbx_strlcpy(mntpoint->fstype, mntbuf[i].f_fstypename, MAX_STRING_LEN); in vfs_fs_get()
286 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in vfs_fs_get()
296 mpoint = mntbuf[i].f_mntonname; in vfs_fs_get()
/dports/net-mgmt/zabbix4-server/zabbix-4.0.30/src/libs/zbxsysinfo/freebsd/
H A Ddiskspace.c202 struct statfs *mntbuf; in VFS_FS_DISCOVERY() local
205 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in VFS_FS_DISCOVERY()
218 zbx_json_addstring(&j, ZBX_LLD_MACRO_FSNAME, mntbuf[i].f_mntonname, ZBX_JSON_TYPE_STRING); in VFS_FS_DISCOVERY()
219 zbx_json_addstring(&j, ZBX_LLD_MACRO_FSTYPE, mntbuf[i].f_fstypename, ZBX_JSON_TYPE_STRING); in VFS_FS_DISCOVERY()
235 struct statfs *mntbuf; in vfs_fs_get() local
247 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in vfs_fs_get()
257 mpoint = mntbuf[i].f_mntonname; in vfs_fs_get()
272 zbx_strlcpy(mntpoint->fstype, mntbuf[i].f_fstypename, MAX_STRING_LEN); in vfs_fs_get()
287 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in vfs_fs_get()
297 mpoint = mntbuf[i].f_mntonname; in vfs_fs_get()
/dports/net-mgmt/zabbix4-server/zabbix-4.0.30/src/libs/zbxsysinfo/openbsd/
H A Ddiskspace.c202 struct statfs *mntbuf; in VFS_FS_DISCOVERY() local
205 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in VFS_FS_DISCOVERY()
218 zbx_json_addstring(&j, ZBX_LLD_MACRO_FSNAME, mntbuf[i].f_mntonname, ZBX_JSON_TYPE_STRING); in VFS_FS_DISCOVERY()
219 zbx_json_addstring(&j, ZBX_LLD_MACRO_FSTYPE, mntbuf[i].f_fstypename, ZBX_JSON_TYPE_STRING); in VFS_FS_DISCOVERY()
235 struct statfs *mntbuf; in vfs_fs_get() local
247 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in vfs_fs_get()
257 mpoint = mntbuf[i].f_mntonname; in vfs_fs_get()
272 zbx_strlcpy(mntpoint->fstype, mntbuf[i].f_fstypename, MAX_STRING_LEN); in vfs_fs_get()
287 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in vfs_fs_get()
297 mpoint = mntbuf[i].f_mntonname; in vfs_fs_get()
/dports/net-mgmt/zabbix4-proxy/zabbix-4.0.30/src/libs/zbxsysinfo/openbsd/
H A Ddiskspace.c202 struct statfs *mntbuf; in VFS_FS_DISCOVERY() local
205 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in VFS_FS_DISCOVERY()
218 zbx_json_addstring(&j, ZBX_LLD_MACRO_FSNAME, mntbuf[i].f_mntonname, ZBX_JSON_TYPE_STRING); in VFS_FS_DISCOVERY()
219 zbx_json_addstring(&j, ZBX_LLD_MACRO_FSTYPE, mntbuf[i].f_fstypename, ZBX_JSON_TYPE_STRING); in VFS_FS_DISCOVERY()
235 struct statfs *mntbuf; in vfs_fs_get() local
247 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in vfs_fs_get()
257 mpoint = mntbuf[i].f_mntonname; in vfs_fs_get()
272 zbx_strlcpy(mntpoint->fstype, mntbuf[i].f_fstypename, MAX_STRING_LEN); in vfs_fs_get()
287 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in vfs_fs_get()
297 mpoint = mntbuf[i].f_mntonname; in vfs_fs_get()
/dports/net-mgmt/zabbix4-proxy/zabbix-4.0.30/src/libs/zbxsysinfo/freebsd/
H A Ddiskspace.c202 struct statfs *mntbuf; in VFS_FS_DISCOVERY() local
205 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in VFS_FS_DISCOVERY()
218 zbx_json_addstring(&j, ZBX_LLD_MACRO_FSNAME, mntbuf[i].f_mntonname, ZBX_JSON_TYPE_STRING); in VFS_FS_DISCOVERY()
219 zbx_json_addstring(&j, ZBX_LLD_MACRO_FSTYPE, mntbuf[i].f_fstypename, ZBX_JSON_TYPE_STRING); in VFS_FS_DISCOVERY()
235 struct statfs *mntbuf; in vfs_fs_get() local
247 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in vfs_fs_get()
257 mpoint = mntbuf[i].f_mntonname; in vfs_fs_get()
272 zbx_strlcpy(mntpoint->fstype, mntbuf[i].f_fstypename, MAX_STRING_LEN); in vfs_fs_get()
287 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in vfs_fs_get()
297 mpoint = mntbuf[i].f_mntonname; in vfs_fs_get()
/dports/net-mgmt/zabbix4-proxy/zabbix-4.0.30/src/libs/zbxsysinfo/osx/
H A Ddiskspace.c202 struct statfs *mntbuf; in VFS_FS_DISCOVERY() local
205 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in VFS_FS_DISCOVERY()
218 zbx_json_addstring(&j, ZBX_LLD_MACRO_FSNAME, mntbuf[i].f_mntonname, ZBX_JSON_TYPE_STRING); in VFS_FS_DISCOVERY()
219 zbx_json_addstring(&j, ZBX_LLD_MACRO_FSTYPE, mntbuf[i].f_fstypename, ZBX_JSON_TYPE_STRING); in VFS_FS_DISCOVERY()
235 struct statfs *mntbuf; in vfs_fs_get() local
247 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in vfs_fs_get()
257 mpoint = mntbuf[i].f_mntonname; in vfs_fs_get()
272 zbx_strlcpy(mntpoint->fstype, mntbuf[i].f_fstypename, MAX_STRING_LEN); in vfs_fs_get()
287 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in vfs_fs_get()
297 mpoint = mntbuf[i].f_mntonname; in vfs_fs_get()
/dports/net-mgmt/zabbix4-proxy/zabbix-4.0.30/src/libs/zbxsysinfo/dragonfly/
H A Ddiskspace.c202 struct statfs *mntbuf; in VFS_FS_DISCOVERY() local
205 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in VFS_FS_DISCOVERY()
218 zbx_json_addstring(&j, ZBX_LLD_MACRO_FSNAME, mntbuf[i].f_mntonname, ZBX_JSON_TYPE_STRING); in VFS_FS_DISCOVERY()
219 zbx_json_addstring(&j, ZBX_LLD_MACRO_FSTYPE, mntbuf[i].f_fstypename, ZBX_JSON_TYPE_STRING); in VFS_FS_DISCOVERY()
235 struct statfs *mntbuf; in vfs_fs_get() local
247 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in vfs_fs_get()
257 mpoint = mntbuf[i].f_mntonname; in vfs_fs_get()
272 zbx_strlcpy(mntpoint->fstype, mntbuf[i].f_fstypename, MAX_STRING_LEN); in vfs_fs_get()
287 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in vfs_fs_get()
297 mpoint = mntbuf[i].f_mntonname; in vfs_fs_get()
/dports/net-mgmt/zabbix4-proxy/zabbix-4.0.30/src/libs/zbxsysinfo/netbsd/
H A Ddiskspace.c202 struct statvfs *mntbuf; in VFS_FS_DISCOVERY() local
205 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in VFS_FS_DISCOVERY()
218 zbx_json_addstring(&j, ZBX_LLD_MACRO_FSNAME, mntbuf[i].f_mntonname, ZBX_JSON_TYPE_STRING); in VFS_FS_DISCOVERY()
219 zbx_json_addstring(&j, ZBX_LLD_MACRO_FSTYPE, mntbuf[i].f_fstypename, ZBX_JSON_TYPE_STRING); in VFS_FS_DISCOVERY()
235 struct statvfs *mntbuf; in vfs_fs_get() local
248 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in vfs_fs_get()
258 mpoint = mntbuf[i].f_mntonname; in vfs_fs_get()
273 zbx_strlcpy(mntpoint->fstype, mntbuf[i].f_fstypename, MAX_STRING_LEN); in vfs_fs_get()
288 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in vfs_fs_get()
298 mpoint = mntbuf[i].f_mntonname; in vfs_fs_get()
/dports/net-mgmt/zabbix5-agent/zabbix-5.0.19/src/libs/zbxsysinfo/dragonfly/
H A Ddiskspace.c202 struct statfs *mntbuf; in VFS_FS_DISCOVERY() local
205 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in VFS_FS_DISCOVERY()
216 zbx_json_addstring(&j, ZBX_LLD_MACRO_FSNAME, mntbuf[i].f_mntonname, ZBX_JSON_TYPE_STRING); in VFS_FS_DISCOVERY()
217 zbx_json_addstring(&j, ZBX_LLD_MACRO_FSTYPE, mntbuf[i].f_fstypename, ZBX_JSON_TYPE_STRING); in VFS_FS_DISCOVERY()
233 struct statfs *mntbuf; in vfs_fs_get() local
245 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in vfs_fs_get()
255 mpoint = mntbuf[i].f_mntonname; in vfs_fs_get()
270 zbx_strlcpy(mntpoint->fstype, mntbuf[i].f_fstypename, MAX_STRING_LEN); in vfs_fs_get()
285 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in vfs_fs_get()
295 mpoint = mntbuf[i].f_mntonname; in vfs_fs_get()
/dports/net-mgmt/zabbix5-agent/zabbix-5.0.19/src/libs/zbxsysinfo/osx/
H A Ddiskspace.c202 struct statfs *mntbuf; in VFS_FS_DISCOVERY() local
205 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in VFS_FS_DISCOVERY()
216 zbx_json_addstring(&j, ZBX_LLD_MACRO_FSNAME, mntbuf[i].f_mntonname, ZBX_JSON_TYPE_STRING); in VFS_FS_DISCOVERY()
217 zbx_json_addstring(&j, ZBX_LLD_MACRO_FSTYPE, mntbuf[i].f_fstypename, ZBX_JSON_TYPE_STRING); in VFS_FS_DISCOVERY()
233 struct statfs *mntbuf; in vfs_fs_get() local
245 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in vfs_fs_get()
255 mpoint = mntbuf[i].f_mntonname; in vfs_fs_get()
270 zbx_strlcpy(mntpoint->fstype, mntbuf[i].f_fstypename, MAX_STRING_LEN); in vfs_fs_get()
285 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in vfs_fs_get()
295 mpoint = mntbuf[i].f_mntonname; in vfs_fs_get()
/dports/net-mgmt/zabbix4-server/zabbix-4.0.30/src/libs/zbxsysinfo/osx/
H A Ddiskspace.c202 struct statfs *mntbuf; in VFS_FS_DISCOVERY() local
205 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in VFS_FS_DISCOVERY()
218 zbx_json_addstring(&j, ZBX_LLD_MACRO_FSNAME, mntbuf[i].f_mntonname, ZBX_JSON_TYPE_STRING); in VFS_FS_DISCOVERY()
219 zbx_json_addstring(&j, ZBX_LLD_MACRO_FSTYPE, mntbuf[i].f_fstypename, ZBX_JSON_TYPE_STRING); in VFS_FS_DISCOVERY()
235 struct statfs *mntbuf; in vfs_fs_get() local
247 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in vfs_fs_get()
257 mpoint = mntbuf[i].f_mntonname; in vfs_fs_get()
272 zbx_strlcpy(mntpoint->fstype, mntbuf[i].f_fstypename, MAX_STRING_LEN); in vfs_fs_get()
287 if (0 == (rc = getmntinfo(&mntbuf, MNT_WAIT))) in vfs_fs_get()
297 mpoint = mntbuf[i].f_mntonname; in vfs_fs_get()

12345678