Changeset View
Changeset View
Standalone View
Standalone View
head/lib/libc/sys/stat.2
Show All 22 Lines | |||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" @(#)stat.2 8.4 (Berkeley) 5/1/95 | .\" @(#)stat.2 8.4 (Berkeley) 5/1/95 | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd December 5, 2018 | .Dd March 30, 2020 | ||||
.Dt STAT 2 | .Dt STAT 2 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm stat , | .Nm stat , | ||||
.Nm lstat , | .Nm lstat , | ||||
.Nm fstat , | .Nm fstat , | ||||
.Nm fstatat | .Nm fstatat | ||||
.Nd get file status | .Nd get file status | ||||
▲ Show 20 Lines • Show All 334 Lines • ▼ Show 20 Lines | |||||
The | The | ||||
.Fa sb | .Fa sb | ||||
or | or | ||||
.Fa path | .Fa path | ||||
argument | argument | ||||
points to an invalid address. | points to an invalid address. | ||||
.It Bq Er EIO | .It Bq Er EIO | ||||
An I/O error occurred while reading from or writing to the file system. | An I/O error occurred while reading from or writing to the file system. | ||||
.It Bq Er EINTEGRITY | |||||
Corrupted data was detected while reading from the file system. | |||||
.It Bq Er ELOOP | .It Bq Er ELOOP | ||||
Too many symbolic links were encountered in translating the pathname. | Too many symbolic links were encountered in translating the pathname. | ||||
.It Bq Er ENAMETOOLONG | .It Bq Er ENAMETOOLONG | ||||
A component of a pathname exceeded 255 characters, | A component of a pathname exceeded 255 characters, | ||||
or an entire path name exceeded 1023 characters. | or an entire path name exceeded 1023 characters. | ||||
.It Bq Er ENOENT | .It Bq Er ENOENT | ||||
The named file does not exist. | The named file does not exist. | ||||
.It Bq Er ENOTDIR | .It Bq Er ENOTDIR | ||||
Show All 15 Lines | |||||
is not a valid open file descriptor. | is not a valid open file descriptor. | ||||
.It Bq Er EFAULT | .It Bq Er EFAULT | ||||
The | The | ||||
.Fa sb | .Fa sb | ||||
argument | argument | ||||
points to an invalid address. | points to an invalid address. | ||||
.It Bq Er EIO | .It Bq Er EIO | ||||
An I/O error occurred while reading from or writing to the file system. | An I/O error occurred while reading from or writing to the file system. | ||||
.It Bq Er EINTEGRITY | |||||
Corrupted data was detected while reading from the file system. | |||||
.It Bq Er EOVERFLOW | .It Bq Er EOVERFLOW | ||||
The file size in bytes cannot be | The file size in bytes cannot be | ||||
represented correctly in the structure pointed to by | represented correctly in the structure pointed to by | ||||
.Fa sb . | .Fa sb . | ||||
.El | .El | ||||
.Pp | .Pp | ||||
In addition to the errors returned by the | In addition to the errors returned by the | ||||
.Fn lstat , | .Fn lstat , | ||||
▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines |