]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Add #defines to map public I/O routines.
authorTed Lemon <source@isc.org>
Thu, 15 Feb 2001 14:11:11 +0000 (14:11 +0000)
committerTed Lemon <source@isc.org>
Thu, 15 Feb 2001 14:11:11 +0000 (14:11 +0000)
minires/ns_sign.c
minires/ns_verify.c
minires/res_send.c

index 641751f5f1837add16b1c84c7409dda78f4f3dff..f1d603d14e4f10def25cc5609cfb4ecff625ec05 100644 (file)
@@ -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
  */
 
 #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. */
index b6ce68970ecb3cbd081469e9f850a53e62f6ae35..afa1c5a6099aff7bc4e1890d1d56dfc486842d40 100644 (file)
@@ -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
  */
 
 #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. */
index 9f3a83f9d7be8a5b5f82ca0e3337dd2a49eb4e5d..24011b67866fbc6caaff6ad693bf27942a70bb78 100644 (file)
@@ -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
 
 #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
         */