Changeset 76299 in vbox for trunk/include
- Timestamp:
- Dec 19, 2018 7:10:01 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/formats/ext.h
r76292 r76299 551 551 * @{ */ 552 552 /** Inode table and bitmaps are not initialized. */ 553 #define EXT_GROUP_DESC_F_INODE_UNINIT RT_BIT _16(0)553 #define EXT_GROUP_DESC_F_INODE_UNINIT RT_BIT(0) 554 554 /** Block bitmap is not initialized. */ 555 #define EXT_GROUP_DESC_F_BLOCK_UNINIT RT_BIT _16(1)555 #define EXT_GROUP_DESC_F_BLOCK_UNINIT RT_BIT(1) 556 556 /** Inode table is zeroed. */ 557 #define EXT_GROUP_DESC_F_INODE_ZEROED RT_BIT _16(2)557 #define EXT_GROUP_DESC_F_INODE_ZEROED RT_BIT(2) 558 558 /** @} */ 559 559 … … 576 576 typedef const EXTBLOCKGROUPDESC *PCEXTBLOCKGROUPDESC; 577 577 578 579 /** Number of block entries in the inodes block map. */ 580 #define EXT_INODE_BLOCK_ENTRIES 15 578 581 579 582 /** … … 611 614 } Osd1; 612 615 /** 0x28: Block map or extent tree. */ 613 uint32_t au32Block[ 15];616 uint32_t au32Block[EXT_INODE_BLOCK_ENTRIES]; 614 617 /** 0x64: File version. */ 615 618 uint32_t u32Version; … … 698 701 * @{ */ 699 702 /** Others can execute the file. */ 700 #define EXT_INODE_MODE_EXEC_OTHER RT_BIT _16(0)703 #define EXT_INODE_MODE_EXEC_OTHER RT_BIT(0) 701 704 /** Others can write to the file. */ 702 #define EXT_INODE_MODE_WRITE_OTHER RT_BIT _16(1)705 #define EXT_INODE_MODE_WRITE_OTHER RT_BIT(1) 703 706 /** Others can read the file. */ 704 #define EXT_INODE_MODE_READ_OTHER RT_BIT _16(2)707 #define EXT_INODE_MODE_READ_OTHER RT_BIT(2) 705 708 /** Members of the same group can execute the file. */ 706 #define EXT_INODE_MODE_EXEC_GROUP RT_BIT _16(3)709 #define EXT_INODE_MODE_EXEC_GROUP RT_BIT(3) 707 710 /** Members of the same group can write to the file. */ 708 #define EXT_INODE_MODE_WRITE_GROUP RT_BIT _16(4)711 #define EXT_INODE_MODE_WRITE_GROUP RT_BIT(4) 709 712 /** Members of the same group can read the file. */ 710 #define EXT_INODE_MODE_READ_GROUP RT_BIT _16(5)713 #define EXT_INODE_MODE_READ_GROUP RT_BIT(5) 711 714 /** Owner can execute the file. */ 712 #define EXT_INODE_MODE_EXEC_OWNER RT_BIT _16(6)715 #define EXT_INODE_MODE_EXEC_OWNER RT_BIT(6) 713 716 /** Owner can write to the file. */ 714 #define EXT_INODE_MODE_WRITE_OWNER RT_BIT _16(7)717 #define EXT_INODE_MODE_WRITE_OWNER RT_BIT(7) 715 718 /** Owner can read the file. */ 716 #define EXT_INODE_MODE_READ_OWNER RT_BIT _16(8)719 #define EXT_INODE_MODE_READ_OWNER RT_BIT(8) 717 720 /** Sticky file mode. */ 718 #define EXT_INODE_MODE_STICKY RT_BIT _16(9)721 #define EXT_INODE_MODE_STICKY RT_BIT(9) 719 722 /** File is set GID. */ 720 #define EXT_INODE_MODE_SET_GROUP_ID RT_BIT _16(10)723 #define EXT_INODE_MODE_SET_GROUP_ID RT_BIT(10) 721 724 /** File is set UID. */ 722 #define EXT_INODE_MODE_SET_USER_ID RT_BIT _16(11)725 #define EXT_INODE_MODE_SET_USER_ID RT_BIT(11) 723 726 /** @} */ 724 727 … … 739 742 /** Inode represents a socket. */ 740 743 #define EXT_INODE_MODE_TYPE_SOCKET UINT16_C(0xc000) 744 /** Returns the inode type from the combined mode field. */ 745 #define EXT_INODE_MODE_TYPE_GET_TYPE(a_Mode) ((a_Mode) & 0xf000) 741 746 /** @} */ 742 747
Note:
See TracChangeset
for help on using the changeset viewer.