stat.2: Refer reader to major() and minor() to decompose a device ID

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2008-12-01 12:40:03 -05:00
parent 6437f56b55
commit e9ef777f73
1 changed files with 6 additions and 1 deletions

View File

@ -37,7 +37,7 @@
.\" 2007-06-08 mtk: Added example program
.\" 2007-07-05 mtk: Added details on underlying system call interfaces
.\"
.TH STAT 2 2008-09-10 "Linux" "Linux Programmer's Manual"
.TH STAT 2 2008-12-01 "Linux" "Linux Programmer's Manual"
.SH NAME
stat, fstat, lstat \- get file status
.SH SYNOPSIS
@ -119,6 +119,11 @@ struct stat {
The
.I st_dev
field describes the device on which this file resides.
(The
.BR major (3)
and
.BR minor (3)
macros may be useful to decompose the device ID in this field.)
The
.I st_rdev