pointer size checker

This commit is contained in:
2022-04-19 06:11:37 +03:00
committed by Motiejus Jakštys
parent 64bd5df633
commit 3c507ffe08
4 changed files with 28 additions and 20 deletions

View File

@@ -154,8 +154,8 @@ OFFSET TYPE NAME DESCRIPTION
40 u64 nblocks_users
48 u64 nblocks_groupmembers
56 u64 nblocks_additional_gids
64 u64 getgr_max
72 u64 getpw_max
64 u64 getgr_bufsize
72 u64 getpw_bufsize
80 [48]u8 padding
```
@@ -168,7 +168,7 @@ number of bytes. However, interpreting `[2]u6` with `xxd(1)` is harder than
interpreting `[2]u8`. Therefore we are using the space we have to make these
integers byte-wide.
`getgr_max` and `getpw_max` is a hint for the caller of `getgr*` and
`getgr_bufsize` and `getpw_bufsize` is a hint for the caller of `getgr*` and
`getpw*`-family calls. This is the recommended size of the buffer, so the
caller does not receive `ENOMEM`.