Browse Source

lseek: allow SEEK_DATA/SEEK_HOLE to be used

Waldemar Brodkorb 8 months ago
parent
commit
d3f81bd1dc
1 changed files with 2 additions and 0 deletions
  1. 2 0
      libc/sysdeps/linux/common/lseek.c

+ 2 - 0
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);