Linux
不败老子程文式
这个作者很懒,什么都没留下…
展开
-
关于Linux系统中“目录项”的解释
每个文件除了有一个索引节点inode数据结构外,还有一个目录项dentry(directory enrty)数据结构。dentry 结构中有个d_inode指针指向相应的inode结构。读者也许会问,既然inode结构和dentry结构都是对文件各方面属性的描述,那为什么不把这两个结构“合而为一”呢?这是因为二者所描述的目标不同,dentry结构代表的是逻辑意义上的文件,所描述的是文件逻辑上的属性转载 2013-12-26 16:14:00 · 2744 阅读 · 0 评论 -
fflush和fsync的一些总结
int fflush(FILE *stream);If stream points to an output stream or an update stream in which the most recent operation was not input, the fflush function causes any unwritten data for that stream to b转载 2013-12-27 09:28:57 · 1230 阅读 · 0 评论