mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
* sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
This commit is contained in:
@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
* sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
|
* sysdeps/unix/sysv/linux/fallocate.c: Handle old kernel headers.
|
||||||
* sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
|
* sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
|
||||||
|
|
||||||
2009-03-25 Andrew Stubbs <ams@codesourcery.com>
|
2009-03-25 Andrew Stubbs <ams@codesourcery.com>
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
int
|
int
|
||||||
fallocate (int fd, int mode, __off_t offset, __off_t len)
|
fallocate (int fd, int mode, __off_t offset, __off_t len)
|
||||||
{
|
{
|
||||||
#ifndef __NR_fallocate
|
#ifdef __NR_fallocate
|
||||||
return INLINE_SYSCALL (fallocate, 6, fd, mode,
|
return INLINE_SYSCALL (fallocate, 6, fd, mode,
|
||||||
__LONG_LONG_PAIR (offset >> 31, offset),
|
__LONG_LONG_PAIR (offset >> 31, offset),
|
||||||
__LONG_LONG_PAIR (len >> 31, len));
|
__LONG_LONG_PAIR (len >> 31, len));
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
int
|
int
|
||||||
__fallocate64_l64 (int fd, int mode, __off64_t offset, __off64_t len)
|
__fallocate64_l64 (int fd, int mode, __off64_t offset, __off64_t len)
|
||||||
{
|
{
|
||||||
#ifndef __NR_fallocate
|
#ifdef __NR_fallocate
|
||||||
return INLINE_SYSCALL (fallocate, 6, fd, mode,
|
return INLINE_SYSCALL (fallocate, 6, fd, mode,
|
||||||
__LONG_LONG_PAIR ((long int) (offset >> 32),
|
__LONG_LONG_PAIR ((long int) (offset >> 32),
|
||||||
(long int) offset),
|
(long int) offset),
|
||||||
|
@ -25,6 +25,11 @@
|
|||||||
int
|
int
|
||||||
fallocate (int fd, int mode, __off_t offset, __off_t len)
|
fallocate (int fd, int mode, __off_t offset, __off_t len)
|
||||||
{
|
{
|
||||||
|
#ifdef __NR_fallocate
|
||||||
return INLINE_SYSCALL (fallocate, 4, fd, mode, offset, len);
|
return INLINE_SYSCALL (fallocate, 4, fd, mode, offset, len);
|
||||||
|
#else
|
||||||
|
__set_errno (ENOSYS);
|
||||||
|
return -1;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
strong_alias (fallocate, fallocate64)
|
strong_alias (fallocate, fallocate64)
|
||||||
|
Reference in New Issue
Block a user