aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2023-06-22 13:41:09 -0400
committerMike Gilbert <floppym@gentoo.org>2023-06-22 13:43:54 -0400
commit2911fdc0d72e37e99cac6609b4799ee06b29cd31 (patch)
tree856d65f0a930dd1b4b21ed109be19ad6a43844e3
parenttests: add more tests to make sure fchown/fchmod are handled correctly. (diff)
downloadsandbox-2911fdc0d72e37e99cac6609b4799ee06b29cd31.tar.gz
sandbox-2911fdc0d72e37e99cac6609b4799ee06b29cd31.tar.bz2
sandbox-2911fdc0d72e37e99cac6609b4799ee06b29cd31.zip
libsandbox: wrap musl time64 functions
musl uses different names from glibc for the time64 symbols. Add them to symbols.h, and use symlinks for the wrapper-func files. Bug: https://bugs.gentoo.org/908970 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
-rw-r--r--libsandbox/symbols.h.in4
l---------libsandbox/wrapper-funcs/__futimesat_time64.c1
l---------libsandbox/wrapper-funcs/__lutimes_time64.c1
l---------libsandbox/wrapper-funcs/__utimensat_time64.c1
l---------libsandbox/wrapper-funcs/__utimes_time64.c1
5 files changed, 8 insertions, 0 deletions
diff --git a/libsandbox/symbols.h.in b/libsandbox/symbols.h.in
index 297c13a..5805592 100644
--- a/libsandbox/symbols.h.in
+++ b/libsandbox/symbols.h.in
@@ -79,11 +79,15 @@ utime
__utime64
utimes
__utimes64
+__utimes_time64
utimensat
__utimensat64 utimensat_time64
+__utimensat_time64
futimesat
__futimesat64
+__futimesat_time64
lutimes
__lutimes64
+__lutimes_time64
fork
vfork
diff --git a/libsandbox/wrapper-funcs/__futimesat_time64.c b/libsandbox/wrapper-funcs/__futimesat_time64.c
new file mode 120000
index 0000000..c3a9b23
--- /dev/null
+++ b/libsandbox/wrapper-funcs/__futimesat_time64.c
@@ -0,0 +1 @@
+__futimesat64.c \ No newline at end of file
diff --git a/libsandbox/wrapper-funcs/__lutimes_time64.c b/libsandbox/wrapper-funcs/__lutimes_time64.c
new file mode 120000
index 0000000..1819ce7
--- /dev/null
+++ b/libsandbox/wrapper-funcs/__lutimes_time64.c
@@ -0,0 +1 @@
+__lutimes64.c \ No newline at end of file
diff --git a/libsandbox/wrapper-funcs/__utimensat_time64.c b/libsandbox/wrapper-funcs/__utimensat_time64.c
new file mode 120000
index 0000000..2dceb14
--- /dev/null
+++ b/libsandbox/wrapper-funcs/__utimensat_time64.c
@@ -0,0 +1 @@
+__utimensat64.c \ No newline at end of file
diff --git a/libsandbox/wrapper-funcs/__utimes_time64.c b/libsandbox/wrapper-funcs/__utimes_time64.c
new file mode 120000
index 0000000..3dea445
--- /dev/null
+++ b/libsandbox/wrapper-funcs/__utimes_time64.c
@@ -0,0 +1 @@
+__utimes64.c \ No newline at end of file