Skip to content

Add getfsstat() and getvfsstat() support for OpenBSD, FreeBSD, NetBSD and DragonFlyBSD

Brad Smith requested to merge (removed):bsd_getfsstat into master

This adds getfsstat() and getvfsstat() support for OpenBSD, FreeBSD, NetBSD and DragonFlyBSD.

NetBSD uses getvfsstat() for the statvfs vs statfs difference with NetBSD. DragonFlyBSD also supports getvfsstat() but it's a wrapper over getfsstat(). So this will prefer getfsstat().

The existing mount.c should probably be renamed to mount_getmntent.c getmntent() is SVR4 API. Linux, Solaris, AIX.

Edited by Brad Smith

Merge request reports

Loading