【问题标题】:Does the st_ino field of struct stat give information about permissions?struct stat 的 st_ino 字段是否提供有关权限的信息?
【发布时间】:2011-08-03 23:25:05
【问题描述】:

st_ino 是否向我们提供有关文件权限设置的任何信息?如果是怎么办? 我以为只有st_gidst_uid 和类似的数据成员存储了与权限相关的信息。

【问题讨论】:

    标签: file unix permissions


    【解决方案1】:

    st_ino 只是 inode 编号 - 它是一个 ino_t,它在系统、文件系统和编译器实现特定的方式中是 typedef 和/或 #defined,但通常是 int、@987654324 @,或int64

    它不包含有关权限的信息。

    【讨论】:

      猜你喜欢
      • 2020-06-14
      • 1970-01-01
      • 1970-01-01
      • 2018-05-22
      • 2012-08-29
      • 2012-12-14
      • 1970-01-01
      • 1970-01-01
      • 2014-01-01
      相关资源
      最近更新 更多