Преглед изворни кода

lseek: allow SEEK_DATA/SEEK_HOLE to be used

Waldemar Brodkorb пре 1 година
родитељ
комит
d3f81bd1dc
1 измењених фајлова са 2 додато и 0 уклоњено
  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);