Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/librumphijack Also hijack futimens(2) so that t_sh test ...



details:   https://anonhg.NetBSD.org/src/rev/b1eee7e36ef5
branches:  trunk
changeset: 806617:b1eee7e36ef5
user:      enami <enami%NetBSD.org@localhost>
date:      Tue Mar 03 01:24:39 2015 +0000

description:
Also hijack futimens(2) so that t_sh test passes.

diffstat:

 lib/librumphijack/hijack.c |  12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diffs (47 lines):

diff -r 03ad44ff244d -r b1eee7e36ef5 lib/librumphijack/hijack.c
--- a/lib/librumphijack/hijack.c        Tue Mar 03 00:20:38 2015 +0000
+++ b/lib/librumphijack/hijack.c        Tue Mar 03 01:24:39 2015 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: hijack.c,v 1.112 2015/03/03 00:19:07 enami Exp $      */
+/*      $NetBSD: hijack.c,v 1.113 2015/03/03 01:24:39 enami Exp $      */
 
 /*-
  * Copyright (c) 2011 Antti Kantee.  All Rights Reserved.
@@ -34,7 +34,7 @@
 #include <rump/rumpuser_port.h>
 
 #if !defined(lint)
-__RCSID("$NetBSD: hijack.c,v 1.112 2015/03/03 00:19:07 enami Exp $");
+__RCSID("$NetBSD: hijack.c,v 1.113 2015/03/03 01:24:39 enami Exp $");
 #endif
 
 #include <sys/param.h>
@@ -113,7 +113,7 @@
        DUALCALL_LINK, DUALCALL_RENAME,
        DUALCALL_MKDIR, DUALCALL_RMDIR,
        DUALCALL_UTIMES, DUALCALL_LUTIMES, DUALCALL_FUTIMES,
-       DUALCALL_UTIMENSAT,
+       DUALCALL_UTIMENSAT, DUALCALL_FUTIMENS,
        DUALCALL_TRUNCATE, DUALCALL_FTRUNCATE,
        DUALCALL_FSYNC,
        DUALCALL_ACCESS,
@@ -307,6 +307,7 @@
        { DUALCALL_LUTIMES,     S(REALLUTIMES), RSYS_NAME(LUTIMES)      },
        { DUALCALL_FUTIMES,     S(REALFUTIMES), RSYS_NAME(FUTIMES)      },
        { DUALCALL_UTIMENSAT,   "utimensat",    RSYS_NAME(UTIMENSAT)    },
+       { DUALCALL_FUTIMENS,    "futimens",     RSYS_NAME(FUTIMENS)     },
        { DUALCALL_OPEN,        "open",         RSYS_NAME(OPEN)         },
        { DUALCALL_CHDIR,       "chdir",        RSYS_NAME(CHDIR)        },
        { DUALCALL_FCHDIR,      "fchdir",       RSYS_NAME(FCHDIR)       },
@@ -2392,6 +2393,11 @@
        (int, const struct timeval *),                                  \
        (fd, tv))
 
+FDCALL(int, futimens, DUALCALL_FUTIMENS,                               \
+       (int fd, const struct timespec *ts),                            \
+       (int, const struct timespec *),                                 \
+       (fd, ts))
+
 #ifdef HAVE_CHFLAGS
 FDCALL(int, fchflags, DUALCALL_FCHFLAGS,                               \
        (int fd, u_long flags),                                         \



Home | Main Index | Thread Index | Old Index