diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2006-04-19 20:44:55 +0000 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2006-04-19 20:44:55 +0000 |
| commit | 9c1c7397a0c3e80b6f642ca43b916c66f0d13ca8 (patch) | |
| tree | 5114c55a3a8f353d0cce9614d2228c85b968a162 | |
| parent | 690db71bffaa5bc95efb90d843167a794d5f12c1 (diff) | |
| download | man-pages-9c1c7397a0c3e80b6f642ca43b916c66f0d13ca8.tar.gz | |
Added NOTE that st_size is always returned as zero for most /proc files.
| -rw-r--r-- | man2/stat.2 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/man2/stat.2 b/man2/stat.2 index 447e983e58..099b012ae0 100644 --- a/man2/stat.2 +++ b/man2/stat.2 @@ -261,6 +261,14 @@ or of the form if neither of these macros is defined. On file systems that do not support sub-second timestamps, these nanosecond fields are returned with the value 0. + +For most files under the +.I /proc +directory, +.BR stat () +does not return the file size in the +.I st_size +field; instead the field is returned with the value 0. .SH "RETURN VALUE" On success, zero is returned. On error, \-1 is returned, and .I errno |
