1 /* $NetBSD: trace.c,v 1.4 2014/01/26 21:43:45 christos Exp $ */
4 * Rob Zimmermann. All rights reserved.
6 * Keith Bostic. All rights reserved.
8 * See the LICENSE file for redistribution information.
13 #include <sys/cdefs.h>
16 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 ";
19 __RCSID("$NetBSD: trace.c,v 1.4 2014/01/26 21:43:45 christos Exp $");
22 #include <sys/queue.h>
24 #include <bitstring.h>
43 * PUBLIC: void vtrace_end __P((void));
48 if (tfp
!= NULL
&& tfp
!= stderr
)
56 * PUBLIC: void vtrace_init __P((const char *));
59 vtrace_init(const char *name
)
61 if (name
== NULL
|| (tfp
= fopen(name
, "w")) == NULL
)
63 vtrace("\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\nTRACE\n");
68 * Debugging trace routine.
70 * PUBLIC: void vtrace __P((const char *, ...));
73 vtrace(const char *fmt
, ...)
81 (void)vfprintf(tfp
, fmt
, ap
);