diff options
Diffstat (limited to 'usr')
-rw-r--r-- | usr/src/man/man2/stat.2 | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/usr/src/man/man2/stat.2 b/usr/src/man/man2/stat.2 index ff1db97318..831c592df0 100644 --- a/usr/src/man/man2/stat.2 +++ b/usr/src/man/man2/stat.2 @@ -4,11 +4,10 @@ .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] -.TH STAT 2 "Oct 10, 2007" +.TH STAT 2 "Mar 15, 2021" .SH NAME stat, lstat, fstat, fstatat \- get file status .SH SYNOPSIS -.LP .nf #include <fcntl.h> #include <sys/types.h> @@ -34,8 +33,6 @@ stat, lstat, fstat, fstatat \- get file status .fi .SH DESCRIPTION -.sp -.LP The \fBstat()\fR function obtains information about the file pointed to by \fIpath\fR. Read, write, or execute permission of the named file is not required, but all directories listed in the path name leading to the file must @@ -117,7 +114,7 @@ to the modes described on the \fBmknod\fR(2) manual page, the mode of a file can also be \fBS_IFSOCK\fR if the file is a socket, \fBS_IFDOOR\fR if the file is a door, \fBS_IFPORT\fR if the file is an event port, or \fBS_IFLNK\fR if the file is a symbolic link. \fBS_IFLNK\fR can be returned either by \fBlstat()\fR -or by \fBfstat()\fR when the \fBAT_SYMLINK_NOFOLLOW\fR flag is set. +or by \fBfstatat()\fR when the \fBAT_SYMLINK_NOFOLLOW\fR flag is set. .RE .sp @@ -255,13 +252,9 @@ that contains the file. .RE .SH RETURN VALUES -.sp -.LP Upon successful completion, \fB0\fR is returned. Otherwise, \fB\(mi1\fR is returned and \fBerrno\fR is set to indicate the error. .SH ERRORS -.sp -.LP The \fBstat()\fR, \fBfstat()\fR, \fBlstat()\fR, and \fBfstatat()\fR functions will fail if: .sp @@ -458,7 +451,6 @@ corresponding I/O device has been retired by the fault management framework. .RE .SH EXAMPLES -.LP \fBExample 1 \fRUse \fBstat()\fR to obtain file status information. .sp .LP @@ -589,8 +581,6 @@ status = lstat("/modules/pass1", &buffer); .in -2 .SH USAGE -.sp -.LP If \fBchmod()\fR or \fBfchmod()\fR is used to change the file group owner permissions on a file with non-trivial ACL entries, only the ACL mask is set to the new permissions and the group owner permission bits in the file's mode @@ -603,8 +593,6 @@ users and groups that have ACL entries on the file. The \fBstat()\fR, \fBfstat()\fR, and \fBlstat()\fR functions have transitional interfaces for 64-bit file offsets. See \fBlf64\fR(5). .SH ATTRIBUTES -.sp -.LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp @@ -619,15 +607,13 @@ Interface Stability Committed _ MT-Level Async-Signal-Safe _ -Standard See below. +Standard See below. .TE .sp .LP For \fBstat()\fR, \fBfstat()\fR, and \fBlstat()\fR, see \fBstandards\fR(5). .SH SEE ALSO -.sp -.LP \fBaccess\fR(2), \fBchmod\fR(2), \fBchown\fR(2), \fBcreat\fR(2), \fBlink\fR(2), \fBmknod\fR(2), \fBpipe\fR(2), \fBread\fR(2), \fBtime\fR(2), \fBunlink\fR(2), \fButime\fR(2), \fBwrite\fR(2), \fBfattach\fR(3C), \fBstat.h\fR(3HEAD), |