diff options
author | bde <bde@FreeBSD.org> | 1995-11-12 06:43:28 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-11-12 06:43:28 +0000 |
commit | aa9a60640e2c942769c3a8f506c8cb6317bb1eaf (patch) | |
tree | 2f26975a8fd164c9658b820d74c731c86cbb9e18 /sys/kern/subr_prof.c | |
parent | 7a9faab8f26e7692e572f4cdd89f30d1be471ebd (diff) | |
download | FreeBSD-src-aa9a60640e2c942769c3a8f506c8cb6317bb1eaf.zip FreeBSD-src-aa9a60640e2c942769c3a8f506c8cb6317bb1eaf.tar.gz |
Included <sys/sysproto.h> to get central declarations for syscall args
structs and prototypes for syscalls.
Ifdefed duplicated decentralized declarations of args structs. It's
convenient to have this visible but they are hard to maintain. Some
are already different from the central declarations. 4.4lite2 puts
them in comments in the function headers but I wanted to avoid the
large changes for that.
Diffstat (limited to 'sys/kern/subr_prof.c')
-rw-r--r-- | sys/kern/subr_prof.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/kern/subr_prof.c b/sys/kern/subr_prof.c index f044c28..e0eabbd 100644 --- a/sys/kern/subr_prof.c +++ b/sys/kern/subr_prof.c @@ -31,11 +31,12 @@ * SUCH DAMAGE. * * @(#)subr_prof.c 8.3 (Berkeley) 9/23/93 - * $Id: subr_prof.c,v 1.8 1995/08/29 03:09:05 bde Exp $ + * $Id: subr_prof.c,v 1.9 1995/09/09 18:10:05 davidg Exp $ */ #include <sys/param.h> #include <sys/systm.h> +#include <sys/sysproto.h> #include <sys/kernel.h> #include <sys/proc.h> #include <vm/vm.h> @@ -147,12 +148,14 @@ sysctl_doprof(name, namelen, oldp, oldlenp, newp, newlen) * The scale factor is a fixed point number with 16 bits of fraction, so that * 1.0 is represented as 0x10000. A scale factor of 0 turns off profiling. */ +#ifndef _SYS_SYSPROTO_H_ struct profil_args { caddr_t samples; u_int size; u_int offset; u_int scale; }; +#endif /* ARGSUSED */ int profil(p, uap, retval) |