start packed group
This commit is contained in:
12
README.md
12
README.md
@@ -180,10 +180,10 @@ referred by their byte offset in the `Users` and `Groups` section relative to
|
||||
the beginning of the section.
|
||||
|
||||
```
|
||||
const PackedGroup = struct {
|
||||
const PackedGroup = packed 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.
|
||||
// 2^5-byte aligned (32b), this is an index there.
|
||||
members_offset: u27,
|
||||
groupname_len: u5,
|
||||
// a groupname_len-sized string
|
||||
@@ -347,10 +347,10 @@ Each section is padded to 64 bytes.
|
||||
```
|
||||
STATUS SECTION SIZE DESCRIPTION
|
||||
✅ Header 48 see "Turbonss header" section
|
||||
bdz_gid ? bdz(gid)
|
||||
bdz_groupname ? bdz(groupname)
|
||||
bdz_uid ? bdz(uid)
|
||||
bdz_name ? bdz(username)
|
||||
✅ 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
|
||||
|
||||
Reference in New Issue
Block a user