From 204a42fb3af246e871c7544e750a3805f95c3146 Mon Sep 17 00:00:00 2001 From: millert Date: Thu, 13 Feb 1997 05:20:53 +0000 Subject: [PATCH] Mention that certain fields are accessible to the super-user only. --- lib/libc/sys/stat.2 | 10 +++++++--- lib/libc/sys/statfs.2 | 2 +- 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 */ -- 2.20.1