diff options
author | 2015-05-29 12:33:41 +0000 | |
---|---|---|
committer | 2015-05-29 12:33:41 +0000 | |
commit | ecf5af1ff7c2cf52e88a8a9d96bcb252f25062bf (patch) | |
tree | e2142ddf9afa9d6b7470f511eaeba88bee2e1a93 /sys/dev/softraid.c | |
parent | Make things a little less confusing by making fill_buffer self-contained (diff) | |
download | wireguard-openbsd-ecf5af1ff7c2cf52e88a8a9d96bcb252f25062bf.tar.xz wireguard-openbsd-ecf5af1ff7c2cf52e88a8a9d96bcb252f25062bf.zip |
Only mmap() on regular files; mmap() on /dev/stdin will happily map as
much as we ask for but only the first page will be usable. (We could get
the actual size with ioctl(FIONREAD) and mmap() that but it would need
to be done in the parent - I think just using read() is simpler.)
Diffstat (limited to 'sys/dev/softraid.c')
0 files changed, 0 insertions, 0 deletions