From 73ea734a9f1aaebc843353a20ddd51c944204633 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 4 Mar 2009 22:49:21 +0000 Subject: [PATCH] * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: Declare fallocate{,64}. --- ChangeLog.m68k | 5 +++++ sysdeps/unix/sysv/linux/m68k/bits/fcntl.h | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/ChangeLog.m68k b/ChangeLog.m68k index f6af26a662..d199e36e0c 100644 --- a/ChangeLog.m68k +++ b/ChangeLog.m68k @@ -1,3 +1,8 @@ +2009-03-04 Joseph Myers + + * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: Declare + fallocate{,64}. + 2009-02-26 Joseph Myers * sysdeps/unix/sysv/linux/m68k/bits/stat.h: Protect UTIME_NOW and diff --git a/sysdeps/unix/sysv/linux/m68k/bits/fcntl.h b/sysdeps/unix/sysv/linux/m68k/bits/fcntl.h index 203d5a1a5a..1e396dcdbb 100644 --- a/sysdeps/unix/sysv/linux/m68k/bits/fcntl.h +++ b/sysdeps/unix/sysv/linux/m68k/bits/fcntl.h @@ -234,6 +234,23 @@ extern ssize_t splice (int __fdin, __off64_t *__offin, int __fdout, extern ssize_t tee (int __fdin, int __fdout, size_t __len, unsigned int __flags); +/* Reserve storage for the data of the file associated with FD. */ +# ifndef __USE_FILE_OFFSET64 +extern int fallocate (int __fd, int __mode, __off_t __offset, __off_t __len); +# else +# ifdef __REDIRECT +extern int __REDIRECT (fallocate, (int __fd, int __mode, __off_t __offset, + __off_t __len), + fallocate64); +# else +# define fallocate fallocate64 +# endif +# endif +# ifdef __USE_LARGEFILE64 +extern int fallocate64 (int __fd, int __mode, __off64_t __offset, + __off64_t __len); +# endif + #endif __END_DECLS