X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/3e170ce000f1506b7b5d2c5c7faec85ceabb573d..0a7de7458d150b5d4dffc935ba399be265ef0a1a:/bsd/man/man2/stat.2 diff --git a/bsd/man/man2/stat.2 b/bsd/man/man2/stat.2 index 7282de5a9..e6ed48bf0 100644 --- a/bsd/man/man2/stat.2 +++ b/bsd/man/man2/stat.2 @@ -105,11 +105,13 @@ returns information about the link, while .Fn stat returns information about the file the link references. -The attributes cannot be relied on in case of symbolic links. -In this case, the only attributes returned from an -.Fn lstat -that refer to the symbolic link itself are the file type (S_IFLNK), -size, blocks, and link count (always 1). +For symbolic links, the st_mode member contains meaningful information +when used with the file type macros, and the st_size member contains +the length of the pathname contained in the symbolic link. File mode +bits and the contents of the remaining members of the stat structure +are unspecified. The value returned in the st_size member is the +length of the contents of the symbolic link, and does not count any +trailing null. .Pp The .Fn fstat