summaryrefslogtreecommitdiffstats
path: root/lib/libutil/util.h
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2000-04-30 17:37:46 +0000
committermillert <millert@openbsd.org>2000-04-30 17:37:46 +0000
commit72ac04f0ed11ee38d53ae827b9ebf2a86e4b0b22 (patch)
treee47a550075cf73478e917854a424363ee2b5895b /lib/libutil/util.h
parentAdd missing fcntl.h (diff)
downloadwireguard-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