diff options
-rw-r--r-- | minires/ns_sign.c | 9 | ||||
-rw-r--r-- | minires/ns_verify.c | 9 | ||||
-rw-r--r-- | minires/res_send.c | 19 |
3 files changed, 31 insertions, 6 deletions
diff --git a/minires/ns_sign.c b/minires/ns_sign.c index 641751f5..f1d603d1 100644 --- a/minires/ns_sign.c +++ b/minires/ns_sign.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999 by Internet Software Consortium, Inc. + * Copyright (c) 1999-2001 by Internet Software Consortium, Inc. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -16,7 +16,12 @@ */ #ifndef lint -static const char rcsid[] = "$Id: ns_sign.c,v 1.3 2001/01/16 22:33:10 mellon Exp $"; +static const char rcsid[] = "$Id: ns_sign.c,v 1.4 2001/02/15 14:10:58 mellon Exp $"; +#endif + +#if defined (TRACING) +#define time(x) trace_mr_time (x) +time_t trace_mr_time (time_t *); #endif /* Import. */ diff --git a/minires/ns_verify.c b/minires/ns_verify.c index b6ce6897..afa1c5a6 100644 --- a/minires/ns_verify.c +++ b/minires/ns_verify.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999 by Internet Software Consortium, Inc. + * Copyright (c) 1999-2001 by Internet Software Consortium, Inc. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -16,7 +16,12 @@ */ #ifndef lint -static const char rcsid[] = "$Id: ns_verify.c,v 1.3 2001/01/16 22:33:11 mellon Exp $"; +static const char rcsid[] = "$Id: ns_verify.c,v 1.4 2001/02/15 14:10:59 mellon Exp $"; +#endif + +#if defined (TRACING) +#define time(x) trace_mr_time (x) +time_t trace_mr_time (time_t *); #endif /* Import. */ diff --git a/minires/res_send.c b/minires/res_send.c index 9f3a83f9..24011b67 100644 --- a/minires/res_send.c +++ b/minires/res_send.c @@ -52,7 +52,7 @@ */ /* - * Portions Copyright (c) 1996-1999 by Internet Software Consortium. + * Portions Copyright (c) 1996-2001 by Internet Software Consortium. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -70,9 +70,20 @@ #if defined(LIBC_SCCS) && !defined(lint) static const char sccsid[] = "@(#)res_send.c 8.1 (Berkeley) 6/4/93"; -static const char rcsid[] = "$Id: res_send.c,v 1.5 2001/01/16 22:33:16 mellon Exp $"; +static const char rcsid[] = "$Id: res_send.c,v 1.6 2001/02/15 14:11:11 mellon Exp $"; #endif /* LIBC_SCCS and not lint */ +/* If we're tracing, rename the I/O functions. */ +#if defined (TRACING) +#define send trace_mr_send +#define recvfrom trace_mr_recvfrom +#define read trace_mr_read +#define connect trace_mr_connect +#define socket trace_mr_socket +#define bind trace_mr_bind +#define close trace_mr_close +#endif + /* * Send query to name server and wait for reply. */ @@ -252,6 +263,10 @@ res_nsend(res_state statp, statp->nsaddr_list[lastns] = ina; } +#if defined (TRACING) + trace_mr_statp_setup (statp); +#endif + /* * Send request, RETRY times, or until successful */ |