diff options
author | Paper <paper@paper.us.eu.org> | 2024-01-29 10:49:07 -0500 |
---|---|---|
committer | Paper <paper@paper.us.eu.org> | 2024-01-29 11:02:14 -0500 |
commit | 8a7e183ed3cf372563dc263066035870c3ea6995 (patch) | |
tree | b229a65039213f735601be568918d268352aa537 /libgcompat | |
parent | 8cf1638cc5293b3c7f63d5efd3de31f2a748bcfa (diff) | |
download | gcompat-8a7e183ed3cf372563dc263066035870c3ea6995.tar.gz gcompat-8a7e183ed3cf372563dc263066035870c3ea6995.tar.bz2 gcompat-8a7e183ed3cf372563dc263066035870c3ea6995.tar.xz gcompat-8a7e183ed3cf372563dc263066035870c3ea6995.zip |
add posix_fallocate64() wrapper
Signed-off-by: Paper <paper@paper.us.eu.org>
Diffstat (limited to 'libgcompat')
-rw-r--r-- | libgcompat/fcntl.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libgcompat/fcntl.c b/libgcompat/fcntl.c new file mode 100644 index 0000000..95de206 --- /dev/null +++ b/libgcompat/fcntl.c @@ -0,0 +1,10 @@ +#include <fcntl.h> /* posix_fallocate */ + +typedef long long off64_t; + +/* + * posix_fallocate64: gnu-ified 64-bit posix_fallocate +*/ +int posix_fallocate64(int fd, off64_t offset, off64_t len) { + return posix_fallocate(fd, offset, len); +} |