summaryrefslogtreecommitdiffstats
path: root/sys/dev/softraid.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2015-05-29 12:33:41 +0000
committernicm <nicm@openbsd.org>2015-05-29 12:33:41 +0000
commitecf5af1ff7c2cf52e88a8a9d96bcb252f25062bf (patch)
treee2142ddf9afa9d6b7470f511eaeba88bee2e1a93 /sys/dev/softraid.c
parentMake things a little less confusing by making fill_buffer self-contained (diff)
downloadwireguard-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