diff options
author | 2000-04-30 17:37:46 +0000 | |
---|---|---|
committer | 2000-04-30 17:37:46 +0000 | |
commit | 72ac04f0ed11ee38d53ae827b9ebf2a86e4b0b22 (patch) | |
tree | e47a550075cf73478e917854a424363ee2b5895b /lib/libutil/util.h | |
parent | Add missing fcntl.h (diff) | |
download | wireguard-openbsd-72ac04f0ed11ee38d53ae827b9ebf2a86e4b0b22.tar.xz wireguard-openbsd-72ac04f0ed11ee38d53ae827b9ebf2a86e4b0b22.zip |
Add OPENDEV_BLCK flag for opening the block devices (the character
device is opened by default).
Don't open the file w/o adding a /dev/ prefix unless the file has
a '/' in it. This prevents problems where someone says "disklabel
sd0" with a file called "sd0" in the cwd.
The OPENDEV_DRCT flag has been deprecated as it is the the default
behavior and always has been.
Add checks for >= MAXPATHLEN and return ENAMETOOLONG in that case.
Diffstat (limited to 'lib/libutil/util.h')
0 files changed, 0 insertions, 0 deletions