chiark / gitweb /
Return owner if caller asks.
[adns.git] / regress / hcommon.c.m4
index 5d6f471389e3cd14b40c0e3bd3a63f5a59df4676..4684eafc81cc3df472e7c8fac1c486e3953acacb 100644 (file)
@@ -2,7 +2,7 @@ m4_dnl hcommon.c
 m4_dnl (part of complex test harness, not of the library)
 m4_dnl - routines used for both record and playback
 
-m4_dnl  This file is part of adns, which is Copyright (C) 1997, 1998 Ian Jackson
+m4_dnl  This file is part of adns, which is Copyright (C) 1997-1999 Ian Jackson
 m4_dnl  
 m4_dnl  This program is free software; you can redistribute it and/or modify
 m4_dnl  it under the terms of the GNU General Public License as published by
@@ -33,6 +33,7 @@ m4_include(hmacros.i4)
 
 vbuf vb;
 FILE *Toutputfile= 0;
+struct timeval currenttime;
 
 const struct Terrno Terrnos[]= {
   { "EAGAIN",                    EAGAIN                       },
@@ -50,6 +51,12 @@ const struct Terrno Terrnos[]= {
 
 static vbuf vbw;
 
+int Hgettimeofday(struct timeval *tv, struct timezone *tz) {
+  Tmust("gettimeofday","tz",!tz);
+  *tv= currenttime;
+  return 0;
+}
+
 int Hwritev(int fd, const struct iovec *vector, size_t count) {
   size_t i;