stat.2 (108040) | stat.2 (108087) |
---|---|
1.\" Copyright (c) 1980, 1991, 1993, 1994 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)stat.2 8.4 (Berkeley) 5/1/95 | 1.\" Copyright (c) 1980, 1991, 1993, 1994 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)stat.2 8.4 (Berkeley) 5/1/95 |
33.\" $FreeBSD: head/lib/libc/sys/stat.2 108040 2002-12-18 13:33:04Z ru $ | 33.\" $FreeBSD: head/lib/libc/sys/stat.2 108087 2002-12-19 09:40:28Z ru $ |
34.\" 35.Dd February 15, 2002 36.Dt STAT 2 37.Os 38.Sh NAME 39.Nm stat , 40.Nm lstat , 41.Nm fstat --- 116 unchanged lines hidden (view full) --- 158#ifndef _POSIX_SOURCE 159#define st_atime st_atimespec.tv_sec 160#define st_mtime st_mtimespec.tv_sec 161#define st_ctime st_ctimespec.tv_sec 162#endif 163.Ed 164.Pp 165The size-related fields of the | 34.\" 35.Dd February 15, 2002 36.Dt STAT 2 37.Os 38.Sh NAME 39.Nm stat , 40.Nm lstat , 41.Nm fstat --- 116 unchanged lines hidden (view full) --- 158#ifndef _POSIX_SOURCE 159#define st_atime st_atimespec.tv_sec 160#define st_mtime st_mtimespec.tv_sec 161#define st_ctime st_ctimespec.tv_sec 162#endif 163.Ed 164.Pp 165The size-related fields of the |
166.Fa struct stat | 166.Vt "struct stat" |
167are as follows: 168.Bl -tag -width XXXst_blksize 169.It st_blksize 170The optimal I/O block size for the file. 171.It st_blocks 172The actual number of blocks allocated for the file in 512-byte units. 173As short symbolic links are stored in the inode, this number may 174be zero. --- 43 unchanged lines hidden (view full) --- 218.Fn stat 219and 220.Fn lstat 221system calls will fail if: 222.Bl -tag -width Er 223.It Bq Er EACCES 224Search permission is denied for a component of the path prefix. 225.It Bq Er EFAULT | 167are as follows: 168.Bl -tag -width XXXst_blksize 169.It st_blksize 170The optimal I/O block size for the file. 171.It st_blocks 172The actual number of blocks allocated for the file in 512-byte units. 173As short symbolic links are stored in the inode, this number may 174be zero. --- 43 unchanged lines hidden (view full) --- 218.Fn stat 219and 220.Fn lstat 221system calls will fail if: 222.Bl -tag -width Er 223.It Bq Er EACCES 224Search permission is denied for a component of the path prefix. 225.It Bq Er EFAULT |
226The |
|
226.Fa sb 227or 228.Fa path | 227.Fa sb 228or 229.Fa path |
230argument |
|
229points to an invalid address. 230.It Bq Er EIO 231An I/O error occurred while reading from or writing to the file system. 232.It Bq Er ELOOP 233Too many symbolic links were encountered in translating the pathname. 234.It Bq Er ENAMETOOLONG 235A component of a pathname exceeded 255 characters, 236or an entire path name exceeded 1023 characters. --- 7 unchanged lines hidden (view full) --- 244.Fa sb . 245.El 246.Pp 247.Bl -tag -width Er 248The 249.Fn fstat 250system call will fail if: 251.It Bq Er EBADF | 231points to an invalid address. 232.It Bq Er EIO 233An I/O error occurred while reading from or writing to the file system. 234.It Bq Er ELOOP 235Too many symbolic links were encountered in translating the pathname. 236.It Bq Er ENAMETOOLONG 237A component of a pathname exceeded 255 characters, 238or an entire path name exceeded 1023 characters. --- 7 unchanged lines hidden (view full) --- 246.Fa sb . 247.El 248.Pp 249.Bl -tag -width Er 250The 251.Fn fstat 252system call will fail if: 253.It Bq Er EBADF |
254The |
|
252.Fa fd | 255.Fa fd |
256argument |
|
253is not a valid open file descriptor. 254.It Bq Er EFAULT | 257is not a valid open file descriptor. 258.It Bq Er EFAULT |
259The |
|
255.Fa sb | 260.Fa sb |
261argument |
|
256points to an invalid address. 257.It Bq Er EIO 258An I/O error occurred while reading from or writing to the file system. 259.It Bq Er EOVERFLOW 260The file size in bytes cannot be 261represented correctly in the structure pointed to by 262.Fa sb . 263.El --- 31 unchanged lines hidden --- | 262points to an invalid address. 263.It Bq Er EIO 264An I/O error occurred while reading from or writing to the file system. 265.It Bq Er EOVERFLOW 266The file size in bytes cannot be 267represented correctly in the structure pointed to by 268.Fa sb . 269.El --- 31 unchanged lines hidden --- |