start with cmph.zig and bdz.zig

This commit is contained in:
2022-02-23 15:25:55 +02:00
committed by Motiejus Jakštys
parent 6c386e720e
commit 4f1bada988
5 changed files with 87 additions and 68 deletions

View File

@@ -139,8 +139,8 @@ OFFSET TYPE NAME DESCRIPTION
8 u32 num_users number of passwd entries
12 u32 num_groups number of group entries
16 u32 offset_bdz_uid2user
20 u32 offset_bdz_groupname2group
24 u32 offset_bdz_name2user
20 u32 offset_bdz_groupname2group
28 u32 offset_idx offset to the first idx_ section
32 u32 offset_groups
36 u32 offset_users
@@ -180,7 +180,7 @@ referred by their byte offset in the `Users` and `Groups` section relative to
the beginning of the section.
```
const Group = struct {
const PackedGroup = struct {
gid: u32,
// index to a separate structure with a list of members. The memberlist is
// always 2^5-byte aligned (32b), this is an index there.
@@ -345,10 +345,10 @@ Each section is padded to 64 bytes.
```
STATUS SECTION SIZE DESCRIPTION
✅ Header 48 see "Turbonss header" section
bdz_gid2group ? gid->group bdz
bdz_uid2user ? uid->user bdz
bdz_groupname2group ? groupname->group bdz
bdz_name2user ? username->user bdz
bdz_gid ? bdz(gid)
bdz_groupname ? bdz(groupname)
bdz_uid ? bdz(uid)
bdz_name ? bdz(username)
idx_gid2group len(group)*29/8 bdz->offset Groups
idx_groupname2group len(group)*29/8 bdz->offset Groups
idx_uid2user len(user)*29/8 bdz->offset Users