8e5937ca25
`posix_fallocate` ensures that a byte range in a file is allocated so that subsequent writes don't fail. Unlike ftruncate, posix_fallocate does not shrink files. The Linux syscall fallocate is similar to posix_fallocate except with far more control over how byte ranges are allocated (e.g. it supports file holes and other features). This MR doesn't implement fallocate as it requires syscall and redoxfs support. Finally, I changed the flags for flock from usize to c_int. That matches what we have in libc and also avoids some silly, needless type casting.
0 lines
0 B
Plaintext
0 lines
0 B
Plaintext
The file is empty.