From f2fd63aff22816e682f7d16dd79f194faea722f3 Mon Sep 17 00:00:00 2001 From: Hidetoshi Shimokawa Date: Fri, 16 Jul 1999 06:28:55 +0000 Subject: [PATCH] Make profil() 64bit-safe for alpha. uintfptr_t may be better for offset, but we must wait until the definition of uintfptr_t moves from machine/profile.h. Reviewed by: bde --- include/unistd.h | 2 +- lib/libc/sys/profil.2 | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/unistd.h b/include/unistd.h index 5ea6727a17a..7c6bc11c86b 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -156,7 +156,7 @@ char *mktemp __P((char *)); int nfssvc __P((int, void *)); int nice __P((int)); ssize_t pread __P((int, void *, size_t, off_t)); -int profil __P((char *, int, int, int)); +int profil __P((char *, size_t, vm_offset_t, int)); ssize_t pwrite __P((int, const void *, size_t, off_t)); int rcmd __P((char **, int, const char *, const char *, const char *, int *)); diff --git a/lib/libc/sys/profil.2 b/lib/libc/sys/profil.2 index 100b8f43b19..b0815fa5d5b 100644 --- a/lib/libc/sys/profil.2 +++ b/lib/libc/sys/profil.2 @@ -33,7 +33,7 @@ .\" SUCH DAMAGE. .\" .\" @(#)profil.2 8.1 (Berkeley) 6/4/93 -.\" $Id: profil.2,v 1.6 1997/04/11 18:47:07 bde Exp $ +.\" $Id: profil.2,v 1.7 1997/06/23 04:02:01 steve Exp $ .\" .Dd June 4, 1993 .Dt PROFIL 2 @@ -44,7 +44,7 @@ .Sh SYNOPSIS .Fd #include .Ft int -.Fn profil "char *samples" "int size" "int offset" "int scale" +.Fn profil "char *samples" "size_t size" "vm_offset_t offset" "int scale" .Sh DESCRIPTION The .Fn profil