change definition of profil() to make it 64-bit friendly. This has
no practical consequence on 32-bit systems. old prototype was int profil(char *, int, int, int), and new one is int profile(char *, size_t, u_long, u_int). the size_t is the size of the buffer, and the u_long is the 'starting offset'. (I changed the last int to u_int, because it's treated as a u_int everywhere, and isn't logically a signed value.)
This commit is contained in:
parent
895c6508ee
commit
a2ce90f34c
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: unistd.h,v 1.25 1995/03/19 22:51:38 mycroft Exp $ */
|
/* $NetBSD: unistd.h,v 1.26 1995/11/22 23:07:19 cgd Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1991 The Regents of the University of California.
|
* Copyright (c) 1991 The Regents of the University of California.
|
||||||
|
@ -135,7 +135,7 @@ int nfssvc __P((int, void *));
|
||||||
int nice __P((int));
|
int nice __P((int));
|
||||||
void psignal __P((unsigned int, const char *));
|
void psignal __P((unsigned int, const char *));
|
||||||
extern __const char *__const sys_siglist[];
|
extern __const char *__const sys_siglist[];
|
||||||
int profil __P((char *, int, int, int));
|
int profil __P((char *, size_t, u_long, u_int));
|
||||||
int rcmd __P((char **, int, const char *,
|
int rcmd __P((char **, int, const char *,
|
||||||
const char *, const char *, int *));
|
const char *, const char *, int *));
|
||||||
char *re_comp __P((const char *));
|
char *re_comp __P((const char *));
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.\" $NetBSD: profil.2,v 1.2 1995/02/27 12:35:32 cgd Exp $
|
.\" $NetBSD: profil.2,v 1.3 1995/11/22 23:07:23 cgd Exp $
|
||||||
.\"
|
.\"
|
||||||
.\" Copyright (c) 1993
|
.\" Copyright (c) 1993
|
||||||
.\" The Regents of the University of California. All rights reserved.
|
.\" The Regents of the University of California. All rights reserved.
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
.Nd control process profiling
|
.Nd control process profiling
|
||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.Ft int
|
.Ft int
|
||||||
.Fn profil "char *samples" "int size" "int offset" "int scale"
|
.Fn profil "char *samples" "size_t size" "u_long offset" "u_int scale"
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
The
|
The
|
||||||
.Fn profil
|
.Fn profil
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: subr_prof.c,v 1.7 1995/10/07 06:28:33 mycroft Exp $ */
|
/* $NetBSD: subr_prof.c,v 1.8 1995/11/22 23:07:26 cgd Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1982, 1986, 1993
|
* Copyright (c) 1982, 1986, 1993
|
||||||
|
@ -153,8 +153,8 @@ sys_profil(p, v, retval)
|
||||||
{
|
{
|
||||||
register struct sys_profil_args /* {
|
register struct sys_profil_args /* {
|
||||||
syscallarg(caddr_t) samples;
|
syscallarg(caddr_t) samples;
|
||||||
syscallarg(u_int) size;
|
syscallarg(size_t) size;
|
||||||
syscallarg(u_int) offset;
|
syscallarg(u_long) offset;
|
||||||
syscallarg(u_int) scale;
|
syscallarg(u_int) scale;
|
||||||
} */ *uap = v;
|
} */ *uap = v;
|
||||||
register struct uprof *upp;
|
register struct uprof *upp;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
$NetBSD: syscalls.master,v 1.29 1995/10/10 01:32:53 mycroft Exp $
|
$NetBSD: syscalls.master,v 1.30 1995/11/22 23:07:29 cgd Exp $
|
||||||
|
|
||||||
; @(#)syscalls.master 8.2 (Berkeley) 1/13/94
|
; @(#)syscalls.master 8.2 (Berkeley) 1/13/94
|
||||||
|
|
||||||
|
@ -96,8 +96,8 @@
|
||||||
41 STD { int sys_dup(u_int fd); }
|
41 STD { int sys_dup(u_int fd); }
|
||||||
42 STD { int sys_pipe(void); }
|
42 STD { int sys_pipe(void); }
|
||||||
43 STD { gid_t sys_getegid(void); }
|
43 STD { gid_t sys_getegid(void); }
|
||||||
44 STD { int sys_profil(caddr_t samples, u_int size, \
|
44 STD { int sys_profil(caddr_t samples, size_t size, \
|
||||||
u_int offset, u_int scale); }
|
u_long offset, u_int scale); }
|
||||||
#ifdef KTRACE
|
#ifdef KTRACE
|
||||||
45 STD { int sys_ktrace(char *fname, int ops, int facs, \
|
45 STD { int sys_ktrace(char *fname, int ops, int facs, \
|
||||||
int pid); }
|
int pid); }
|
||||||
|
|
Loading…
Reference in New Issue