5 * Rob Zimmermann. All rights reserved.
7 * Keith Bostic. All rights reserved.
9 * See the LICENSE file for redistribution information.
15 static const char sccsid
[] = "Id: trace.c,v 8.4 1997/08/03 15:04:23 bostic Exp (Berkeley) Date: 1997/08/03 15:04:23";
18 #include <sys/queue.h>
20 #include <bitstring.h>
39 * PUBLIC: void vtrace_end __P((void));
44 if (tfp
!= NULL
&& tfp
!= stderr
)
52 * PUBLIC: void vtrace_init __P((char *));
58 if (name
== NULL
|| (tfp
= fopen(name
, "w")) == NULL
)
60 vtrace("\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\nTRACE\n");
65 * Debugging trace routine.
67 * PUBLIC: void vtrace __P((const char *, ...));
71 vtrace(const char *fmt
, ...)
88 (void)vfprintf(tfp
, fmt
, ap
);