aboutsummaryrefslogtreecommitdiff
path: root/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64
diff options
context:
space:
mode:
Diffstat (limited to 'REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64')
-rw-r--r--REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/Versions5
-rw-r--r--REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/aio_read.c7
-rw-r--r--REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c1
-rw-r--r--REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/aio_write.c7
-rw-r--r--REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c1
-rw-r--r--REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c1
-rw-r--r--REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/fstatfs64.c1
-rw-r--r--REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c5
-rw-r--r--REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/fstatvfs64.c1
-rw-r--r--REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/fxstat.c45
-rw-r--r--REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/fxstat64.c1
-rw-r--r--REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c48
-rw-r--r--REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/fxstatat64.c1
-rw-r--r--REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/getdents.c4
-rw-r--r--REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/getdents64.c1
-rw-r--r--REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c3
-rw-r--r--REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c1
-rw-r--r--REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/glob64.c2
-rw-r--r--REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/internal_statvfs64.c1
-rw-r--r--REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c13
-rw-r--r--REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c1
-rw-r--r--REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/lxstat.c45
-rw-r--r--REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/lxstat64.c1
-rw-r--r--REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/openat.c11
-rw-r--r--REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/openat64.c1
-rw-r--r--REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/readdir.c7
-rw-r--r--REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/readdir64.c1
-rw-r--r--REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c1
-rw-r--r--REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c4
-rw-r--r--REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/sendfile64.c1
-rw-r--r--REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/statfs64.c1
-rw-r--r--REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/statvfs.c5
-rw-r--r--REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/statvfs64.c1
-rw-r--r--REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/syscalls.list11
-rw-r--r--REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/xstat.c44
-rw-r--r--REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/xstat64.c1
36 files changed, 285 insertions, 0 deletions
diff --git a/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/Versions b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/Versions
new file mode 100644
index 0000000000..a3b40ccd17
--- /dev/null
+++ b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/Versions
@@ -0,0 +1,5 @@
+libc {
+ GLIBC_2.10 {
+ fallocate64;
+ }
+}
diff --git a/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/aio_read.c b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/aio_read.c
new file mode 100644
index 0000000000..d10fc4320b
--- /dev/null
+++ b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/aio_read.c
@@ -0,0 +1,7 @@
+#define aio_read64 __renamed_aio_read64
+
+#include "../../../../pthread/aio_read.c"
+
+#undef aio_read64
+
+weak_alias (aio_read, aio_read64)
diff --git a/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c
new file mode 100644
index 0000000000..6a6a102c8d
--- /dev/null
+++ b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c
@@ -0,0 +1 @@
+/* Defined in aio_read.c. */
diff --git a/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/aio_write.c b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/aio_write.c
new file mode 100644
index 0000000000..b0fb469cb2
--- /dev/null
+++ b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/aio_write.c
@@ -0,0 +1,7 @@
+#define aio_write64 __renamed_aio_write64
+
+#include "../../../../pthread/aio_write.c"
+
+#undef aio_write64
+
+weak_alias (aio_write, aio_write64)
diff --git a/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c
new file mode 100644
index 0000000000..ced07fa273
--- /dev/null
+++ b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c
@@ -0,0 +1 @@
+/* Defined in aio_write.c. */
diff --git a/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
new file mode 100644
index 0000000000..330b33f7c7
--- /dev/null
+++ b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
@@ -0,0 +1 @@
+#include "fxstatat.c"
diff --git a/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/fstatfs64.c b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/fstatfs64.c
new file mode 100644
index 0000000000..2be4e59ba4
--- /dev/null
+++ b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/fstatfs64.c
@@ -0,0 +1 @@
+/* fstatfs64 is the same as fstatfs. */
diff --git a/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c
new file mode 100644
index 0000000000..5803b6f882
--- /dev/null
+++ b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c
@@ -0,0 +1,5 @@
+#define __fstatvfs64(file, buf) __no_fstatvfs64(file, buf)
+#define fstatvfs64(file, buf) no_fstatvfs64(file, buf)
+#include "../fstatvfs.c"
+strong_alias (__fstatvfs, __fstatvfs64)
+weak_alias (__fstatvfs, fstatvfs64)
diff --git a/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/fstatvfs64.c b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/fstatvfs64.c
new file mode 100644
index 0000000000..60f3dfec61
--- /dev/null
+++ b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/fstatvfs64.c
@@ -0,0 +1 @@
+/* fstatvfs64 is the same as fstatvfs. */
diff --git a/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/fxstat.c b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/fxstat.c
new file mode 100644
index 0000000000..00f0517772
--- /dev/null
+++ b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/fxstat.c
@@ -0,0 +1,45 @@
+/* fxstat using old-style Unix fstat system call.
+ Copyright (C) 1991-2017 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ <http://www.gnu.org/licenses/>. */
+
+/* Ho hum, since xstat == xstat64 we must get rid of the prototype or gcc
+ will complain since they don't strictly match. */
+#define __fxstat64 __fxstat64_disable
+
+#include <errno.h>
+#include <stddef.h>
+#include <sys/stat.h>
+
+#include <sysdep.h>
+#include <sys/syscall.h>
+
+/* Get information about the file FD in BUF. */
+int
+__fxstat (int vers, int fd, struct stat *buf)
+{
+ if (vers == _STAT_VER_KERNEL || vers == _STAT_VER_LINUX)
+ return INLINE_SYSCALL (fstat, 2, fd, buf);
+
+ __set_errno (EINVAL);
+ return -1;
+}
+
+hidden_def (__fxstat)
+weak_alias (__fxstat, _fxstat);
+#undef __fxstat64
+strong_alias (__fxstat, __fxstat64);
+hidden_ver (__fxstat, __fxstat64)
diff --git a/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/fxstat64.c b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/fxstat64.c
new file mode 100644
index 0000000000..9eff9ebeb7
--- /dev/null
+++ b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/fxstat64.c
@@ -0,0 +1 @@
+/* fxstat64 is in fxstat.c */
diff --git a/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c
new file mode 100644
index 0000000000..f00bf01ee9
--- /dev/null
+++ b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c
@@ -0,0 +1,48 @@
+/* Copyright (C) 2005-2017 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ <http://www.gnu.org/licenses/>. */
+
+/* Ho hum, since fxstatat == fxstatat64 we must get rid of the
+ prototype or gcc will complain since they don't strictly match. */
+#define __fxstatat64 __fxstatat64_disable
+
+#include <errno.h>
+#include <fcntl.h>
+#include <stddef.h>
+#include <stdio.h>
+#include <string.h>
+#include <sys/stat.h>
+
+#include <sysdep.h>
+#include <sys/syscall.h>
+
+
+/* Get information about the file NAME relative to FD in ST. */
+int
+__fxstatat (int vers, int fd, const char *file, struct stat *st, int flag)
+{
+ if (vers != _STAT_VER_KERNEL && vers != _STAT_VER_LINUX)
+ {
+ __set_errno (EINVAL);
+ return -1;
+ }
+
+ return INLINE_SYSCALL (newfstatat, 4, fd, file, st, flag);
+}
+libc_hidden_def (__fxstatat)
+#undef __fxstatat64
+strong_alias (__fxstatat, __fxstatat64);
+strong_alias (__fxstatat64, __GI___fxstatat64)
diff --git a/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/fxstatat64.c b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/fxstatat64.c
new file mode 100644
index 0000000000..05e7f413bb
--- /dev/null
+++ b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/fxstatat64.c
@@ -0,0 +1 @@
+/* fxstatat64 is in fxstatat.c */
diff --git a/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/getdents.c b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/getdents.c
new file mode 100644
index 0000000000..5ea4c572a3
--- /dev/null
+++ b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/getdents.c
@@ -0,0 +1,4 @@
+#define __getdents64 __no___getdents64_decl
+#include <sysdeps/unix/sysv/linux/getdents.c>
+#undef __getdents64
+weak_alias (__getdents, __getdents64);
diff --git a/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/getdents64.c b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/getdents64.c
new file mode 100644
index 0000000000..0df2c8f4c6
--- /dev/null
+++ b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/getdents64.c
@@ -0,0 +1 @@
+/* getdents64 is in getdents.c */
diff --git a/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c
new file mode 100644
index 0000000000..298d1e9e91
--- /dev/null
+++ b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c
@@ -0,0 +1,3 @@
+#include "../getdirentries.c"
+
+weak_alias (getdirentries, getdirentries64)
diff --git a/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c
new file mode 100644
index 0000000000..622baf0c87
--- /dev/null
+++ b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c
@@ -0,0 +1 @@
+/* Defined in getdirentries.c. */
diff --git a/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/glob64.c b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/glob64.c
new file mode 100644
index 0000000000..eab7703d5c
--- /dev/null
+++ b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/glob64.c
@@ -0,0 +1,2 @@
+/* This file is here so sysdeps/gnu/glob64.c doesn't take precedence. */
+#include <sysdeps/wordsize-64/glob64.c>
diff --git a/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/internal_statvfs64.c b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/internal_statvfs64.c
new file mode 100644
index 0000000000..d2a3509c6d
--- /dev/null
+++ b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/internal_statvfs64.c
@@ -0,0 +1 @@
+/* Nothing. */
diff --git a/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c
new file mode 100644
index 0000000000..25ee5a3507
--- /dev/null
+++ b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c
@@ -0,0 +1,13 @@
+#define lio_listio64 __renamed_lio_listio64
+
+#include "../../../../pthread/lio_listio.c"
+
+#undef lio_listio64
+
+#if SHLIB_COMPAT (librt, GLIBC_2_1, GLIBC_2_4)
+strong_alias (__lio_listio_21, __lio_listio64_21)
+compat_symbol (librt, __lio_listio64_21, lio_listio64, GLIBC_2_1);
+#endif
+
+strong_alias (__lio_listio_item_notify, __lio_listio64_item_notify)
+versioned_symbol (librt, __lio_listio64_item_notify, lio_listio64, GLIBC_2_4);
diff --git a/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c
new file mode 100644
index 0000000000..1dabae3692
--- /dev/null
+++ b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c
@@ -0,0 +1 @@
+/* Defined in lio_listio.c. */
diff --git a/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/lxstat.c b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/lxstat.c
new file mode 100644
index 0000000000..dad9e267d7
--- /dev/null
+++ b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/lxstat.c
@@ -0,0 +1,45 @@
+/* lxstat using old-style Unix lstat system call.
+ Copyright (C) 1991-2017 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ <http://www.gnu.org/licenses/>. */
+
+/* Ho hum, since xstat == xstat64 we must get rid of the prototype or gcc
+ will complain since they don't strictly match. */
+#define __lxstat64 __lxstat64_disable
+
+#include <errno.h>
+#include <stddef.h>
+#include <sys/stat.h>
+
+#include <sysdep.h>
+#include <sys/syscall.h>
+
+/* Get information about the file FD in BUF. */
+int
+__lxstat (int vers, const char *name, struct stat *buf)
+{
+ if (vers == _STAT_VER_KERNEL || vers == _STAT_VER_LINUX)
+ return INLINE_SYSCALL (lstat, 2, name, buf);
+
+ __set_errno (EINVAL);
+ return -1;
+}
+
+hidden_def (__lxstat)
+weak_alias (__lxstat, _lxstat);
+#undef __lxstat64
+strong_alias (__lxstat, __lxstat64);
+hidden_ver (__lxstat, __lxstat64)
diff --git a/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/lxstat64.c b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/lxstat64.c
new file mode 100644
index 0000000000..bb5dbd0fff
--- /dev/null
+++ b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/lxstat64.c
@@ -0,0 +1 @@
+/* lxstat64 is in lxstat.c */
diff --git a/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/openat.c b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/openat.c
new file mode 100644
index 0000000000..be31a35105
--- /dev/null
+++ b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/openat.c
@@ -0,0 +1,11 @@
+#define __openat64 __rename___openat64
+#define openat64 __rename_openat64
+
+#include "../openat.c"
+
+#undef __openat64
+#undef openat64
+
+strong_alias (__openat, __openat64)
+hidden_ver (__openat, __openat64)
+weak_alias (openat, openat64)
diff --git a/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/openat64.c b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/openat64.c
new file mode 100644
index 0000000000..b4a864b040
--- /dev/null
+++ b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/openat64.c
@@ -0,0 +1 @@
+/* Defined in openat.c. */
diff --git a/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/readdir.c b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/readdir.c
new file mode 100644
index 0000000000..e197d93b00
--- /dev/null
+++ b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/readdir.c
@@ -0,0 +1,7 @@
+#define readdir64 __no_readdir64_decl
+#define __readdir64 __no___readdir64_decl
+#include <sysdeps/posix/readdir.c>
+#undef __readdir64
+strong_alias (__readdir, __readdir64)
+#undef readdir64
+weak_alias (__readdir, readdir64)
diff --git a/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/readdir64.c b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/readdir64.c
new file mode 100644
index 0000000000..9796431dc4
--- /dev/null
+++ b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/readdir64.c
@@ -0,0 +1 @@
+/* readdir64 is in readdir.c */
diff --git a/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c
new file mode 100644
index 0000000000..b8fe9a31b4
--- /dev/null
+++ b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c
@@ -0,0 +1 @@
+/* readdir64_r is in readdir_r.c */
diff --git a/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c
new file mode 100644
index 0000000000..290f2c8f6c
--- /dev/null
+++ b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c
@@ -0,0 +1,4 @@
+#define readdir64_r __no_readdir64_r_decl
+#include <sysdeps/posix/readdir_r.c>
+#undef readdir64_r
+weak_alias (__readdir_r, readdir64_r)
diff --git a/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/sendfile64.c b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/sendfile64.c
new file mode 100644
index 0000000000..4c451bd093
--- /dev/null
+++ b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/sendfile64.c
@@ -0,0 +1 @@
+/* sendfile64 is alias of sendfile syscall. */
diff --git a/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/statfs64.c b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/statfs64.c
new file mode 100644
index 0000000000..06bc68826f
--- /dev/null
+++ b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/statfs64.c
@@ -0,0 +1 @@
+/* statfs64 is the same as statfs. */
diff --git a/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/statvfs.c b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/statvfs.c
new file mode 100644
index 0000000000..1e1c96333b
--- /dev/null
+++ b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/statvfs.c
@@ -0,0 +1,5 @@
+#define __statvfs64(file, buf) __no_statvfs64(file, buf)
+#define statvfs64(file, buf) no_statvfs64(file, buf)
+#include "../statvfs.c"
+strong_alias (__statvfs, __statvfs64)
+weak_alias (__statvfs, statvfs64)
diff --git a/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/statvfs64.c b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/statvfs64.c
new file mode 100644
index 0000000000..510015e420
--- /dev/null
+++ b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/statvfs64.c
@@ -0,0 +1 @@
+/* statvfs64 is the same as statvfs. */
diff --git a/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/syscalls.list b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/syscalls.list
new file mode 100644
index 0000000000..5c78677d77
--- /dev/null
+++ b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/syscalls.list
@@ -0,0 +1,11 @@
+# File name Caller Syscall name # args Strong name Weak names
+
+fstatfs - fstatfs i:ip __fstatfs fstatfs fstatfs64 __fstatfs64
+statfs - statfs i:sp __statfs statfs statfs64
+readahead - readahead i:iii __readahead readahead
+sendfile - sendfile i:iipi sendfile sendfile64
+sync_file_range - sync_file_range Ci:iiii sync_file_range
+prlimit EXTRA prlimit64 i:iipp prlimit prlimit64
+
+fanotify_mark EXTRA fanotify_mark i:iiiis fanotify_mark
+personality EXTRA personality i:i __personality personality
diff --git a/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/xstat.c b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/xstat.c
new file mode 100644
index 0000000000..af9f5dd5bd
--- /dev/null
+++ b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/xstat.c
@@ -0,0 +1,44 @@
+/* xstat using old-style Unix stat system call.
+ Copyright (C) 1991-2017 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ <http://www.gnu.org/licenses/>. */
+
+/* Ho hum, since xstat == xstat64 we must get rid of the prototype or gcc
+ will complain since they don't strictly match. */
+#define __xstat64 __xstat64_disable
+
+#include <errno.h>
+#include <stddef.h>
+#include <sys/stat.h>
+
+#include <sysdep.h>
+#include <sys/syscall.h>
+
+/* Get information about the file NAME in BUF. */
+int
+__xstat (int vers, const char *name, struct stat *buf)
+{
+ if (vers == _STAT_VER_KERNEL || vers == _STAT_VER_LINUX)
+ return INLINE_SYSCALL (stat, 2, name, buf);
+
+ __set_errno (EINVAL);
+ return -1;
+}
+hidden_def (__xstat)
+weak_alias (__xstat, _xstat);
+#undef __xstat64
+strong_alias (__xstat, __xstat64);
+hidden_ver (__xstat, __xstat64)
diff --git a/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/xstat64.c b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/xstat64.c
new file mode 100644
index 0000000000..e7acd3b45e
--- /dev/null
+++ b/REORG.TODO/sysdeps/unix/sysv/linux/wordsize-64/xstat64.c
@@ -0,0 +1 @@
+/* xstat64 is in xstat.c */