开发者

Does the st_ino field of struct stat give information about permissions?

开发者 https://www.devze.com 2023-03-26 05:42 出处:网络
Does st_ino give us any information about permission settings of a fil开发者_开发百科e? If yes how?

Does st_ino give us any information about permission settings of a fil开发者_开发百科e? If yes how? I thought only st_gid, st_uid and similar data members stored information related to permissions.


st_ino is just the inode number - it is an ino_t which is typedef'd and/or #defined in a system, filesystem, and compiler implementation specific way, but is generally an int, long, or int64.

It contains no information about permissions.

0

精彩评论

暂无评论...
验证码 换一张
取 消