Loading...
--- Libc/Libc-1725.40.4/emulated/statvfs.3
+++ Libc/Libc-391/emulated/statvfs.3
@@ -32,23 +32,17 @@
.Dt STATVFS 3
.Os
.Sh NAME
-.Nm fstatvfs ,
-.Nm statvfs
+.Nm statvfs ,
+.Nm fstatvfs
.Nd retrieve file system information
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
.In sys/statvfs.h
.Ft int
-.Fo fstatvfs
-.Fa "int fildes"
-.Fa "struct statvfs *buf"
-.Fc
+.Fn statvfs "const char * restrict path" "struct statvfs * restrict buf"
.Ft int
-.Fo statvfs
-.Fa "const char *restrict path"
-.Fa "struct statvfs *restrict buf"
-.Fc
+.Fn fstatvfs "int fd" "struct statvfs *buf"
.Sh DESCRIPTION
The
.Fn statvfs
@@ -141,8 +135,29 @@
.Fn statvfs
function fails if one or more of the following are true:
.Bl -tag -width Er
+.It Bq Er ENOTDIR
+A component of the path prefix of
+.Fa Path
+is not a directory.
+.It Bq Er ENAMETOOLONG
+The length of a component of
+.Fa path
+exceeds
+.Dv {NAME_MAX}
+characters, or the length of
+.Fa path
+exceeds
+.Dv {PATH_MAX}
+characters.
+.It Bq Er ENOENT
+The file referred to by
+.Fa path
+does not exist.
.It Bq Er EACCES
Search permission is denied for a component of the path prefix of
+.Fa path .
+.It Bq Er ELOOP
+Too many symbolic links were encountered in translating
.Fa path .
.It Bq Er EFAULT
.Fa Buf
@@ -153,27 +168,6 @@
An
.Tn I/O
error occurred while reading from or writing to the file system.
-.It Bq Er ELOOP
-Too many symbolic links were encountered in translating
-.Fa path .
-.It Bq Er ENAMETOOLONG
-The length of a component of
-.Fa path
-exceeds
-.Dv {NAME_MAX}
-characters, or the length of
-.Fa path
-exceeds
-.Dv {PATH_MAX}
-characters.
-.It Bq Er ENOENT
-The file referred to by
-.Fa path
-does not exist.
-.It Bq Er ENOTDIR
-A component of the path prefix of
-.Fa Path
-is not a directory.
.El
.Pp
The
@@ -181,7 +175,7 @@
functions fails if one or more of the following are true:
.Bl -tag -width Er
.It Bq Er EBADF
-.Fa fildes
+.Fa fd
is not a valid open file descriptor.
.It Bq Er EFAULT
.Fa Buf