File:inode.h - ikarishinjieva/unixV6-code-analyze-chs GitHub Wiki

Source

5677

5678 /* flags */

5679 #define ILOCK 01 /* inode is locked */

  • INODE块锁标志
5680 #define IUPD 02 /* inode has been modified */
  • INODE块被修改标志
5681 #define IACC 04 /* inode access time to be updated */
  • INODE块被读取标志
5682 #define IMOUNT 010 /* inode is mounted on */
  • 该INODE块 装载 子文件系统
5683 #define IWANT 020 /* some process waiting on lock */
  • 有进程在等待使用该INODE块
5684 #define ITEXT 040 /* inode is pure text prototype */
  • 该文件是某程序的正文
5685

5686 /* modes */

5687 #define IALLOC 0100000 /* file is used */

  • 该 INODE 块已被分配使用
5688 #define IFMT 060000 /* type of file */

5689 #define IFDIR 040000 /* directory */

5690 #define IFCHR 020000 /* character special */

5691 #define IFBLK 060000 /* block special, 0 is regular */

5692 #define ILARG 010000 /* large addressing algorithm */

5693 #define ISUID 04000 /* set user id on execution */

5694 #define ISGID 02000 /* set group id on execution */

5695 #define ISVTX 01000 /* save swapped text even after use */

5696 #define IREAD 0400 /* read, write, execute permissions */
  • 读权限
5697 #define IWRITE 0200
  • 写权限
5698 #define IEXEC 0100
  • 执行权限
5699
⚠️ **GitHub.com Fallback** ⚠️