红联Linux门户
Linux帮助

struct stat结构体的中time的意义

发布时间:2010-09-18 21:57:51来源:红联作者:龙战110
在文件属性结构体中

st_atime表示最后访问的时间
st_mtime表示最后修改的时间
st_ctime表示文件状态最后改变的时间

请问其中的st_mtime和st_ctime有什么区别? 文件修改了状态不就改变了吗?状态被改变了文件不就被修改了吗 ?

求解、、、、
文章评论

共有 1 条评论

  1. shenhao0129 于 2010-09-18 22:37:06发表:

    这个东西还是看英文的解释吧,中文翻译的不专业
    atime: The time when the file was last accessed. (eg: cat)
    ctime: The time when the file's status was last changed. (eg: chmod)
    mtime: The time when the file's data was last modified. (eg: vi)