3 * Rob Zimmermann. All rights reserved.
5 * Keith Bostic. All rights reserved.
7 * See the LICENSE file for redistribution information.
13 static const char sccsid
[] = "$Id: trace.c,v 8.1 1996/12/12 09:16:24 bostic Exp $ (Berkeley) $Date: 1996/12/12 09:16:24 $";
16 #include <sys/queue.h>
18 #include <bitstring.h>
37 * PUBLIC: void trace_end __P((void));
42 if (tfp
!= NULL
&& tfp
!= stderr
)
50 * PUBLIC: void trace_init __P((char *));
56 if (name
== NULL
|| (tfp
= fopen(name
, "w")) == NULL
)
58 trace("\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\nTRACE\n");
63 * Debugging trace routine.
65 * PUBLIC: void trace __P((const char *, ...));
69 trace(const char *fmt
, ...)
86 (void)vfprintf(tfp
, fmt
, ap
);