/* * stub for the MontaukOS git port. * * git calls statvfs() in one place: fsmonitor's "is this a network * filesystem" probe, which this port does not build. MontaukOS exposes no * filesystem statistics syscall, so the call fails and callers take their * "unknown filesystem" branch. */ #ifndef _MONTAUK_GIT_SYS_STATVFS_H_ #define _MONTAUK_GIT_SYS_STATVFS_H_ #include #include typedef unsigned long fsblkcnt_t; typedef unsigned long fsfilcnt_t; struct statvfs { unsigned long f_bsize; unsigned long f_frsize; fsblkcnt_t f_blocks; fsblkcnt_t f_bfree; fsblkcnt_t f_bavail; fsfilcnt_t f_files; fsfilcnt_t f_ffree; fsfilcnt_t f_favail; unsigned long f_fsid; unsigned long f_flag; unsigned long f_namemax; unsigned long f_type; }; static inline int statvfs(const char *path, struct statvfs *buf) { (void) path; (void) buf; errno = ENOSYS; return -1; } static inline int fstatvfs(int fd, struct statvfs *buf) { (void) fd; (void) buf; errno = ENOSYS; return -1; } #endif /* _MONTAUK_GIT_SYS_STATVFS_H_ */