Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 274269 | Differences between
and this patch

Collapse All | Expand All

(-)a/sysdeps/unix/sysv/linux/i386/fallocate.c (+6 lines)
Lines 16-21 Link Here
16
   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
16
   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
17
   02111-1307 USA.  */
17
   02111-1307 USA.  */
18
18
19
#include <errno.h>
19
#include <fcntl.h>
20
#include <fcntl.h>
20
#include <sysdep.h>
21
#include <sysdep.h>
21
22
Lines 28-32 extern int __call_fallocate (int fd, int mode, __off64_t offset, __off64_t len) Link Here
28
int
29
int
29
fallocate (int fd, int mode, __off_t offset, __off_t len)
30
fallocate (int fd, int mode, __off_t offset, __off_t len)
30
{
31
{
32
#ifdef __NR_fallocate
31
  return __call_fallocate (fd, mode, offset, len);
33
  return __call_fallocate (fd, mode, offset, len);
34
#else
35
  __set_errno (ENOSYS);
36
  return -1;
37
#endif
32
}
38
}
(-)a/sysdeps/unix/sysv/linux/i386/fallocate64.c (+6 lines)
Lines 16-21 Link Here
16
   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
16
   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
17
   02111-1307 USA.  */
17
   02111-1307 USA.  */
18
18
19
#include <errno.h>
19
#include <fcntl.h>
20
#include <fcntl.h>
20
#include <sysdep.h>
21
#include <sysdep.h>
21
22
Lines 28-32 extern int __call_fallocate (int fd, int mode, __off64_t offset, __off64_t len) Link Here
28
int
29
int
29
fallocate64 (int fd, int mode, __off64_t offset, __off64_t len)
30
fallocate64 (int fd, int mode, __off64_t offset, __off64_t len)
30
{
31
{
32
#ifdef __NR_fallocate
31
  return __call_fallocate (fd, mode, offset, len);
33
  return __call_fallocate (fd, mode, offset, len);
34
#else
35
  __set_errno (ENOSYS);
36
  return -1;
37
#endif
32
}
38
}

Return to bug 274269