fix test cases for CNAME search list bugfix
[adns] / regress / harness.h
CommitLineData
f9476535 1#ifndef HARNESS_H_INCLUDED
2#define HARNESS_H_INCLUDED
3#include "internal.h"
4#include "hsyscalls.h"
5/* There is a Q function (Q for Question) for each such syscall;
6 * it constructs a string representing the call, and calls Q_str
7 * on it, or constructs it in vb and calls Q_vb;
8 */
9void Qselect( int max , const fd_set *rfds , const fd_set *wfds , const fd_set *efds , struct timeval *to );
10#ifdef HAVE_POLL
11void Qpoll( const struct pollfd *fds , int nfds , int timeout );
12#endif
13void Qsocket( int type );
14void Qfcntl( int fd , int cmd , long arg );
15void Qconnect( int fd , const struct sockaddr *addr , int addrlen );
16void Qclose( int fd );
17void Qsendto( int fd , const void *msg , int msglen , const struct sockaddr *addr , int addrlen );
18void Qrecvfrom( int fd , int buflen , int addrlen );
19void Qread( int fd , size_t buflen );
20void Qwrite( int fd , const void *buf , size_t len );
21void Q_vb(void);
22extern void Tshutdown(void);
23/* General help functions */
24void Tfailed(const char *why);
25void Toutputerr(void);
26void Tnomem(void);
27void Tfsyscallr(const char *fmt, ...) PRINTFFORMAT(1,2);
28void Tensureoutputfile(void);
29void Tmust(const char *call, const char *arg, int cond);
30void Tvbf(const char *fmt, ...) PRINTFFORMAT(1,2);
31void Tvbvf(const char *fmt, va_list al);
32void Tvbfdset(int max, const fd_set *set);
33void Tvbpollfds(const struct pollfd *fds, int nfds);
34void Tvbaddr(const struct sockaddr *addr, int addrlen);
35void Tvbbytes(const void *buf, int len);
36void Tvberrno(int e);
37void Tvba(const char *str);
38/* Shared globals */
39extern vbuf vb;
40extern struct timeval currenttime;
41extern const struct Terrno { const char *n; int v; } Terrnos[];
42#endif