add SEEK_DATA and SEEK_HOLE to unistd.h
authorÉrico Nogueira <ericonr@disroot.org>
Fri, 17 Dec 2021 07:59:43 +0000 (04:59 -0300)
committerRich Felker <dalias@aerifal.cx>
Sun, 9 Jan 2022 05:31:05 +0000 (00:31 -0500)
commitcbacd638e32a02edbe66c48ae3d1361bc06a492a
tree1e0d049e95224632933380293d7fcdddedb9fe69
parentc4d4028dde90562f631edf559fbc42d8ec1b29de
add SEEK_DATA and SEEK_HOLE to unistd.h

these are linux specific constants. glibc exposes them behind
_GNU_SOURCE, but, since SEEK_* is reserved for the implementation, we
can simply define them. furthermore, since they can't be used with
fseek() and other functions that deal with FILE, we don't add them to
stdio.h.
include/unistd.h