{ "ECONNRESET", ECONNRESET },
{ "ECONNREFUSED", ECONNREFUSED },
{ "EPIPE", EPIPE },
+ { "ENOTSOCK", ENOTSOCK },
{ 0, 0 }
};
static vbuf vbw;
int Hgettimeofday(struct timeval *tv, struct timezone *tz) {
+ Tensurerecordfile();
Tmust("gettimeofday","tz",!tz);
*tv= currenttime;
return 0;
if (mallocedlist.head) {
fprintf(stderr,"adns test harness: memory leaked:");
for (loopnode=mallocedlist.head; loopnode; loopnode=loopnode->next)
- fprintf(stderr," %lu(%lu)",loopnode->count,(unsigned long)loopnode->sz);
+ fprintf(stderr," %lu",loopnode->count);
putc('\n',stderr);
if (ferror(stderr)) exit(-1);
}
exit(rv);
}
+
+pid_t Hgetpid(void) {
+ return 2264; /* just some number */
+}
+