ktrace.c (4ac5adf036a78e6761d6d3067e6d41ec5fde5a95) ktrace.c (09ac2438bf13a7ef57bad701ab51a437930da10c)
1/*-
2 * Copyright (c) 1988, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 28 unchanged lines hidden (view full) ---

37 The Regents of the University of California. All rights reserved.\n";
38#endif /* not lint */
39
40#ifndef lint
41#if 0
42static char sccsid[] = "@(#)ktrace.c 8.1 (Berkeley) 6/6/93";
43#endif
44static const char rcsid[] =
1/*-
2 * Copyright (c) 1988, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 28 unchanged lines hidden (view full) ---

37 The Regents of the University of California. All rights reserved.\n";
38#endif /* not lint */
39
40#ifndef lint
41#if 0
42static char sccsid[] = "@(#)ktrace.c 8.1 (Berkeley) 6/6/93";
43#endif
44static const char rcsid[] =
45 "$Id: ktrace.c,v 1.4 1996/06/19 09:56:29 jraynard Exp $";
45 "$Id: ktrace.c,v 1.5 1996/06/30 09:40:44 joerg Exp $";
46#endif /* not lint */
47
48#include <sys/param.h>
49#include <sys/stat.h>
50#include <sys/file.h>
51#include <sys/time.h>
52#include <sys/errno.h>
53#include <sys/uio.h>

--- 118 unchanged lines hidden (view full) ---

172 }
173 return(atoi(p));
174}
175
176void
177usage()
178{
179 (void)fprintf(stderr,
46#endif /* not lint */
47
48#include <sys/param.h>
49#include <sys/stat.h>
50#include <sys/file.h>
51#include <sys/time.h>
52#include <sys/errno.h>
53#include <sys/uio.h>

--- 118 unchanged lines hidden (view full) ---

172 }
173 return(atoi(p));
174}
175
176void
177usage()
178{
179 (void)fprintf(stderr,
180"usage:\tktrace [-aCcid] [-f trfile] [-g pgid] [-p pid] [-t [acgn]\n\tktrace [-aCcid] [-f trfile] [-t [acgn] command\n");
180"usage:\tktrace [-aCcid] [-f trfile] [-g pgid] [-p pid] [-t [cnisuv]\n\tktrace [-aCcid] [-f trfile] [-t [cnisuw] command\n");
181 exit(1);
182}
183
184void
185no_ktrace(sig)
186 int sig;
187{
188 (void)fprintf(stderr,
189"error:\tktrace() system call not supported in the running kernel\n\tre-compile kernel with 'options KTRACE'\n");
190 exit(1);
191}
181 exit(1);
182}
183
184void
185no_ktrace(sig)
186 int sig;
187{
188 (void)fprintf(stderr,
189"error:\tktrace() system call not supported in the running kernel\n\tre-compile kernel with 'options KTRACE'\n");
190 exit(1);
191}