X-Git-Url: https://git.distorted.org.uk/~mdw/adns/blobdiff_plain/70a778e57fbc29a2d2bc8976745a18f4edd1a03a..a719a4bedec2bc512b7f95f7446e02f6662ebbc7:/regress/hcommon.c.m4 diff --git a/regress/hcommon.c.m4 b/regress/hcommon.c.m4 index 5d6f471..4684eaf 100644 --- a/regress/hcommon.c.m4 +++ b/regress/hcommon.c.m4 @@ -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;