76int posix_fallocate(
int fd, off_t offset, off_t len)
80 if (!__builtin_saddll_overflow(offset, len, &c_test)) {
81 fstore_t store = {F_ALLOCATECONTIG, F_PEOFPOSMODE, 0, offset + len};
83 ret =
fcntl(fd, F_PREALLOCATE, &store);
86 store.fst_flags = F_ALLOCATEALL;
87 ret =
fcntl(fd, F_PREALLOCATE, &store);
int fcntl(int fd, int cmd,...)