summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-02-13 05:20:56 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-02-13 05:20:56 +0000
commita9bdca561cfb59434393120533fb5c33d920cb2e (patch)
tree8a5a1c56f97797222ef38fc7a9af1c02110815b5 /lib
parentf253465cb582390ddb853f36cefd01062b7ffb3f (diff)
Mention that certain fields are accessible to the super-user only.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/stat.210
-rw-r--r--lib/libc/sys/statfs.22
2 files changed, 8 insertions, 4 deletions
diff --git a/lib/libc/sys/stat.2 b/lib/libc/sys/stat.2
index 0d0a69c740d..04f63c7ba87 100644
--- a/lib/libc/sys/stat.2
+++ b/lib/libc/sys/stat.2
@@ -1,4 +1,4 @@
-.\" $NetBSD: stat.2,v 1.9 1996/01/17 02:15:28 jtc Exp $
+.\" $OpenBSD: stat.2,v 1.3 1997/02/13 05:20:55 millert Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
@@ -243,7 +243,11 @@ points to an invalid address.
.It Bq Er EIO
An I/O error occurred while reading from or writing to the file system.
.El
-.Sh CAVEAT
+.Sh CAVEATS
+The file generation number,
+.Fa st_gen ,
+is only available to the super-user.
+.br
The fields in the stat structure currently marked
.Fa st_spare1 ,
.Fa st_spare2 ,
@@ -273,7 +277,7 @@ and
function calls are expected to conform to
.St -p1003.1-88 .
.Sh HISTORY
-A
+An
.Fn lstat
function call appeared in
.Bx 4.2 .
diff --git a/lib/libc/sys/statfs.2 b/lib/libc/sys/statfs.2
index dc11af277a0..5fb4dc054d7 100644
--- a/lib/libc/sys/statfs.2
+++ b/lib/libc/sys/statfs.2
@@ -69,7 +69,7 @@ struct statfs {
long f_bavail; /* free blocks avail to non-superuser */
long f_files; /* total file nodes in file system */
long f_ffree; /* free file nodes in fs */
- fsid_t f_fsid; /* file system id */
+ fsid_t f_fsid; /* file system id (super-user only) */
uid_t f_owner; /* user that mounted the file system */
long f_spare[4]; /* spare for later */
char f_fstypename[MFSNAMELEN]; /* fs type name */