architecture.md: fix the header size

This commit is contained in:
Motiejus Jakštys 2023-01-03 13:44:59 +02:00
parent 4493b4408c
commit 5d3dfdc8dc

View File

@ -25,7 +25,7 @@ struct passwd {
Turbonss, among others, implements this call, and takes the following steps to Turbonss, among others, implements this call, and takes the following steps to
resolve a username to a `struct passwd*`: resolve a username to a `struct passwd*`:
- Open the DB (using `mmap`) and interpret it's first 64 bytes as a `*struct - Open the DB (using `mmap`) and interpret it's first 128 bytes as a `*struct
Header`. The header stores offsets to the sections of the file. This needs to Header`. The header stores offsets to the sections of the file. This needs to
be done once, when the NSS library is loaded. be done once, when the NSS library is loaded.
- Hash the username using a perfect hash function. Perfect hash function - Hash the username using a perfect hash function. Perfect hash function