فهرست منبع

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);