diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2024-08-09 06:10:13 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2024-08-09 06:10:13 +0200 |
commit | d3f81bd1dcf63c10f0d47a87ef4373cc9e1e749b (patch) | |
tree | e93bafd806fd71e71b27b24a403eca12689d92cb /libc | |
parent | dc3ad9110793e67b13421135f714085cb8ab3c68 (diff) |
lseek: allow SEEK_DATA/SEEK_HOLE to be used
Diffstat (limited to 'libc')
-rw-r--r-- | libc/sysdeps/linux/common/lseek.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/lseek.c b/libc/sysdeps/linux/common/lseek.c index 80d69318a..0fc99efae 100644 --- a/libc/sysdeps/linux/common/lseek.c +++ b/libc/sysdeps/linux/common/lseek.c @@ -40,6 +40,8 @@ off_t __NC(lseek)(int fd, off_t offset attribute_unused, int whence) case SEEK_SET: case SEEK_CUR: case SEEK_END: + case SEEK_DATA: + case SEEK_HOLE: break; default: __set_errno(EINVAL); |