summaryrefslogtreecommitdiffstats
path: root/extras/test/ld-preload-test/ld-preload-lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'extras/test/ld-preload-test/ld-preload-lib.c')
-rw-r--r--extras/test/ld-preload-test/ld-preload-lib.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/extras/test/ld-preload-test/ld-preload-lib.c b/extras/test/ld-preload-test/ld-preload-lib.c
index 8f74a25cf68..179bf8b05d0 100644
--- a/extras/test/ld-preload-test/ld-preload-lib.c
+++ b/extras/test/ld-preload-test/ld-preload-lib.c
@@ -293,6 +293,14 @@ utimes (const char *path, const struct timeval times[2])
}
int
+futimes (int fd, const struct timeval times[2])
+{
+ intercept ("futimes", 2);
+ set_errno ();
+ return -1;
+}
+
+int
utime (const char *path, const struct utimbuf *buf)
{
intercept ("utime", 2);