mirror of
git://sourceware.org/git/glibc.git
synced 2025-02-11 12:50:58 +08:00
This patch consolidates all the posix_fallocate{64} implementation for Linux in only one (sysdeps/unix/sysv/linux/posix_fallocate{64}.c). It also removes the syscall from the auto-generation using assembly macros. The macro SYSCALL_LL{64} is used to handle the offset argument along with the new INTERNAL_SYSCALL_CALL macro to define correct argument count for internal INTERNAL_SYSCALL call. Tested on x86_64, i686, x32, aarch64, ppc64le, and armhf. * io/Makefile (tests): Add tst-posix_fallocate and tst-posix_fallocate64. * io/tst-posix_fallocate-common.c: New file. * io/tst-posix_fallocate.c: Likewise. * io/tst-posix_fallocate64.c: Likewise. * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate.c: Remove file. * sysdeps/unix/sysv/linux/mips/mips64/n32/posix_fallocate64.c: Likewise. * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fallocate.c: Likewise. * sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fallocate64.c: Likewise. * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c: Likewise. * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate64.c: Likewise. * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate): Use SYSCALL_LL to pass both offset and len arguments. * sysdeps/unix/sysv/linux/posix_fallocate64.c (posix_fallocate64): Likewise. * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pwrite64): Add __libc_pwrite64 alias used by posix_fallocate64. |
||
---|---|---|
.. | ||
bits | ||
sys | ||
access.c | ||
bug-ftw1.c | ||
bug-ftw2.c | ||
bug-ftw3.c | ||
bug-ftw4.c | ||
bug-ftw5.c | ||
chdir.c | ||
chmod.c | ||
chown.c | ||
close.c | ||
creat64.c | ||
creat.c | ||
dup2.c | ||
dup3.c | ||
dup.c | ||
euidaccess.c | ||
faccessat.c | ||
fchdir.c | ||
fchmod.c | ||
fchmodat.c | ||
fchown.c | ||
fchownat.c | ||
fcntl.c | ||
fcntl.h | ||
flock.c | ||
fstat64.c | ||
fstat.c | ||
fstatat64.c | ||
fstatat.c | ||
fstatfs64.c | ||
fstatfs.c | ||
fstatvfs64.c | ||
fstatvfs.c | ||
fts64.c | ||
fts.c | ||
fts.h | ||
ftw64.c | ||
ftw.c | ||
ftw.h | ||
ftwtest-sh | ||
ftwtest.c | ||
futimens.c | ||
fxstat64.c | ||
fxstat.c | ||
fxstatat64.c | ||
fxstatat.c | ||
getcwd.c | ||
getdirname.c | ||
getwd.c | ||
have_o_cloexec.c | ||
isatty.c | ||
lchmod.c | ||
lchown.c | ||
link.c | ||
linkat.c | ||
lockf64.c | ||
lockf.c | ||
lseek64.c | ||
lseek.c | ||
lstat64.c | ||
lstat.c | ||
lxstat64.c | ||
lxstat.c | ||
Makefile | ||
mkdir.c | ||
mkdirat.c | ||
mkfifo.c | ||
mkfifoat.c | ||
mknod.c | ||
mknodat.c | ||
open64_2.c | ||
open64.c | ||
open_2.c | ||
open.c | ||
openat64_2.c | ||
openat64.c | ||
openat_2.c | ||
openat.c | ||
pipe2.c | ||
pipe.c | ||
poll.c | ||
poll.h | ||
posix_fadvise64.c | ||
posix_fadvise.c | ||
posix_fallocate64.c | ||
posix_fallocate.c | ||
ppoll.c | ||
pwd.c | ||
read.c | ||
readlink.c | ||
readlinkat.c | ||
rmdir.c | ||
sendfile64.c | ||
sendfile.c | ||
stat64.c | ||
stat.c | ||
statfs64.c | ||
statfs.c | ||
statvfs64.c | ||
statvfs.c | ||
symlink.c | ||
symlinkat.c | ||
test-lfs.c | ||
test-stat2.c | ||
test-stat.c | ||
test-utime.c | ||
tst-faccessat.c | ||
tst-fchmodat.c | ||
tst-fchownat.c | ||
tst-fcntl.c | ||
tst-fstatat.c | ||
tst-fts-lfs.c | ||
tst-fts.c | ||
tst-futimesat.c | ||
tst-getcwd.c | ||
tst-linkat.c | ||
tst-mkdirat.c | ||
tst-mkfifoat.c | ||
tst-mknodat.c | ||
tst-open-tmpfile.c | ||
tst-openat.c | ||
tst-posix_fallocate64.c | ||
tst-posix_fallocate-common.c | ||
tst-posix_fallocate.c | ||
tst-readlinkat.c | ||
tst-renameat.c | ||
tst-statvfs.c | ||
tst-symlinkat.c | ||
tst-ttyname_r.c | ||
tst-unlinkat.c | ||
ttyname_r.c | ||
ttyname.c | ||
umask.c | ||
unlink.c | ||
unlinkat.c | ||
utime.c | ||
utime.h | ||
utimensat.c | ||
Versions | ||
write.c | ||
xmknod.c | ||
xmknodat.c | ||
xstat64.c | ||
xstat.c |