diff options
author | simokawa <simokawa@FreeBSD.org> | 1999-07-16 06:28:55 +0000 |
---|---|---|
committer | simokawa <simokawa@FreeBSD.org> | 1999-07-16 06:28:55 +0000 |
commit | 21fa36a2c1323e011b7bdaca4c409b642ad80d53 (patch) | |
tree | f428756b93b6edc7a019fdf486f91bad676b9281 | |
parent | ab1033c8353731697f2c1ba3aa4908375a5b3d3c (diff) | |
download | FreeBSD-src-21fa36a2c1323e011b7bdaca4c409b642ad80d53.zip FreeBSD-src-21fa36a2c1323e011b7bdaca4c409b642ad80d53.tar.gz |
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
-rw-r--r-- | include/unistd.h | 2 | ||||
-rw-r--r-- | lib/libc/sys/profil.2 | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/unistd.h b/include/unistd.h index 5ea6727..7c6bc11 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 100b8f4..b0815fa 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 <unistd.h> .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 |