mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
* sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
call_fallocate in misc subdir. * sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file. * sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove. * sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate instead of __fallocate64. * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
This commit is contained in:
@ -28,7 +28,7 @@
|
||||
int __have_fallocate attribute_hidden;
|
||||
#endif
|
||||
|
||||
extern int __fallocate64 (int fd, int mode, __off64_t offset, __off64_t len)
|
||||
extern int __call_fallocate (int fd, int mode, __off64_t offset, __off64_t len)
|
||||
attribute_hidden;
|
||||
|
||||
/* Reserve storage for the data of the file associated with FD. */
|
||||
@ -40,7 +40,7 @@ posix_fallocate (int fd, __off_t offset, __off_t len)
|
||||
if (__builtin_expect (__have_fallocate >= 0, 1))
|
||||
# endif
|
||||
{
|
||||
int res = __fallocate64 (fd, 0, offset, len);
|
||||
int res = __call_fallocate (fd, 0, offset, len);
|
||||
if (! res)
|
||||
return 0;
|
||||
|
||||
|
Reference in New Issue
Block a user