.if defined(__MINIX)
# Unsupported by Minix.
-# closefrom.c confstr.c extattr.c getdevmajor.c getmntinfo.c \
+# closefrom.c confstr.c extattr.c getdevmajor.c \
# pthread_atfork.c setdomainname.c sethostname.c setproctitle.c \
# sysctl.c sysctlbyname.c sysctlgetmibinfo.c sysctlnametomib.c \
# devname.c wait3.c
fts.c ftw.c getbsize.c getcap.c getcwd.c \
getdomainname.c getgrent.c \
getgrouplist.c getgroupmembership.c gethostname.c \
- getloadavg.c getlogin.c \
+ getloadavg.c getlogin.c getmntinfo.c \
getnetgrent.c getpagesize.c \
getpass.c getprogname.c getpwent.c getttyent.c \
getusershell.c glob.c humanize_number.c initdir.c initgroups.c \
#ifndef __minix
struct disk_geom geo;
struct dkwedge_info dkw;
- struct statvfs *mp;
- char *s2;
- int len, n;
#else
u64_t minix_fssize;
#endif
+ struct statvfs *mp;
+ char *s2;
+ int len, n;
struct stat sb;
int ch, fsi, fso, Fflag, Iflag, Zflag;
char *cp, *s1, *special;
if (fsi < 0 || fstat(fsi, &sb) == -1)
err(EXIT_FAILURE, "%s: open for read", special);
-#ifndef __minix
if (!Nflag) {
fso = open(special, O_WRONLY, 0);
if (fso < 0)
}
}
+#ifndef __minix
if (getdiskinfo(special, fsi, disktype, &geo, &dkw) == -1)
errx(EXIT_FAILURE, lmsg, special);
}
}
#else
- {
- fso = open(special, O_WRONLY, 0);
- if (fso < 0)
- err(EXIT_FAILURE,
- "%s: open for write", special);
-
if(minix_sizeup(special, &minix_fssize) < 0)
errx(EXIT_FAILURE, "minix_sizeup failed");
if (sectorsize == 0)
sectorsize = 512;
- }
#endif
}
int statvfs(const char *__restrict, struct statvfs *__restrict);
int fstatvfs(int, struct statvfs *);
int getvfsstat(struct statvfs *, size_t, int);
+#ifndef __LIBC12_SOURCE__
+int getmntinfo(struct statvfs **, int) __RENAME(__getmntinfo13);
+#endif /* __LIBC12_SOURCE__ */
int statvfs1(const char *__restrict, struct statvfs *__restrict, int);
int fstatvfs1(int, struct statvfs *, int);