Skip to content

Commit

Permalink
experiment with statx
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxython committed Jan 24, 2024
1 parent d9ef8e5 commit 99d10ab
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 130 deletions.
55 changes: 55 additions & 0 deletions gpkg/glibc/fix-syscall-statx.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
--- glibc-2.38/sysdeps/unix/sysv/linux/fstatat64.c 2023-07-31 20:54:16.000000000 +0300
+++ glibc-2.38/sysdeps/unix/sysv/linux/fstatat64.c.patch 2024-01-24 23:33:04.238225159 +0300
@@ -53,7 +53,7 @@
/* 32-bit kABI with default 64-bit time_t, e.g. arc, riscv32. Also
64-bit time_t support is done through statx syscall. */
struct statx tmp;
- int r = INTERNAL_SYSCALL_CALL (statx, fd, file, AT_NO_AUTOMOUNT | flag,
+ int r = statx (fd, file, AT_NO_AUTOMOUNT | flag,
STATX_BASIC_STATS, &tmp);
if (r != 0)
return r;
--- glibc-2.38/sysdeps/unix/sysv/linux/fxstat64.c 2023-07-31 20:54:16.000000000 +0300
+++ glibc-2.38/sysdeps/unix/sysv/linux/fxstat64.c.patch 2024-01-24 23:35:17.668225108 +0300
@@ -53,7 +53,7 @@
# else
/* New 32-bit kABIs with only 64-bit time_t support, e.g. arc, riscv32. */
struct statx tmp;
- int r = INLINE_SYSCALL_CALL (statx, fd, "", AT_EMPTY_PATH,
+ int r = statx (fd, "", AT_EMPTY_PATH,
STATX_BASIC_STATS, &tmp);
if (r == 0)
__cp_stat64_statx (buf, &tmp);
--- glibc-2.38/sysdeps/unix/sysv/linux/fxstatat64.c 2023-07-31 20:54:16.000000000 +0300
+++ glibc-2.38/sysdeps/unix/sysv/linux/fxstatat64.c.patch 2024-01-24 23:36:21.868225084 +0300
@@ -49,7 +49,7 @@
if (vers == _STAT_VER_KERNEL)
{
struct statx tmp;
- int r = INLINE_SYSCALL_CALL (statx, fd, file, AT_NO_AUTOMOUNT | flag,
+ int r = statx (fd, file, AT_NO_AUTOMOUNT | flag,
STATX_BASIC_STATS, &tmp);
if (r == 0)
__cp_stat64_statx (st, &tmp);
--- glibc-2.38/sysdeps/unix/sysv/linux/lxstat64.c 2023-07-31 20:54:16.000000000 +0300
+++ glibc-2.38/sysdeps/unix/sysv/linux/lxstat64.c.patch 2024-01-24 23:40:04.098224999 +0300
@@ -58,7 +58,7 @@
if (vers == _STAT_VER_KERNEL)
{
struct statx tmp;
- int r = INLINE_SYSCALL_CALL (statx, AT_FDCWD, name,
+ int r = statx (AT_FDCWD, name,
AT_NO_AUTOMOUNT | AT_SYMLINK_NOFOLLOW,
STATX_BASIC_STATS, &tmp);
if (r == 0)
--- glibc-2.38/sysdeps/unix/sysv/linux/xstat64.c 2023-07-31 20:54:16.000000000 +0300
+++ glibc-2.38/sysdeps/unix/sysv/linux/xstat64.c.patch 2024-01-24 23:38:58.168225024 +0300
@@ -57,7 +57,7 @@
if (vers == _STAT_VER_KERNEL)
{
struct statx tmp;
- int r = INLINE_SYSCALL_CALL (statx, AT_FDCWD, name, AT_NO_AUTOMOUNT,
+ int r = statx (AT_FDCWD, name, AT_NO_AUTOMOUNT,
STATX_BASIC_STATS, &tmp);
if (r == 0)
__cp_stat64_statx (buf, &tmp);
52 changes: 0 additions & 52 deletions gpkg/glibc/fstatat64.c.patch

This file was deleted.

17 changes: 0 additions & 17 deletions gpkg/glibc/fxstat64.c.patch

This file was deleted.

20 changes: 0 additions & 20 deletions gpkg/glibc/fxstatat64.c.patch

This file was deleted.

21 changes: 0 additions & 21 deletions gpkg/glibc/lxstat64.c.patch

This file was deleted.

20 changes: 0 additions & 20 deletions gpkg/glibc/xstat64.c.patch

This file was deleted.

0 comments on commit 99d10ab

Please sign in to comment.