diff options
author | 2016-01-25 23:43:20 +0000 | |
---|---|---|
committer | 2016-01-25 23:43:20 +0000 | |
commit | f7e12bbc164b488226e5adeffd8ebe9080487ad5 (patch) | |
tree | 97d4c708d7bf581ff6e4362af0b381d1c8357dcf /lib/libc/stdlib/malloc.c | |
parent | Add read/write_block0 and read/write_dpme functions, not yet used. (diff) | |
download | wireguard-openbsd-f7e12bbc164b488226e5adeffd8ebe9080487ad5.tar.xz wireguard-openbsd-f7e12bbc164b488226e5adeffd8ebe9080487ad5.zip |
Use new read/write_block0 and read/write_dpme which handle any
endian or alignment issues forcefully. Removes need for convert_*
functions so unhook convert.c from build. read/write_block become
static functions inside file_media.c.
Tweak struct block0 to stop trying to handle alignment issues by clever
declaration. Rely on the new functions to accurately translate between
on-disk and in-memory layouts.
Enables pdisk to work on amd64 and likely other architectures if
it's ever desirable. Does bring back DEV_BSIZE to pdisk.c since the
in-memory structure will *not* be 512 bytes on other archs.
Diffstat (limited to 'lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions