diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2016-05-07 19:30:54 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2016-05-07 19:30:54 +0000 |
commit | bf37253a5d69e1706f6287e376376ce7d0050965 (patch) | |
tree | 724ed399721200c1e749c052eebc372f991aa6a3 /lib/libc | |
parent | 53b6a816b5e1968f5e2fdfde9f60156e3a0309db (diff) |
Declare moncontrol(3) APIs in <sys/gmon.h>
Export _gmonparam again.
Make gcrt0.o use an reserved name for _monstartup()
ok millert@
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/Symbols.list | 2 | ||||
-rw-r--r-- | lib/libc/gmon/gmon.c | 7 | ||||
-rw-r--r-- | lib/libc/gmon/moncontrol.3 | 9 |
3 files changed, 11 insertions, 7 deletions
diff --git a/lib/libc/Symbols.list b/lib/libc/Symbols.list index 58e05df793b..201a98ecdcc 100644 --- a/lib/libc/Symbols.list +++ b/lib/libc/Symbols.list @@ -848,7 +848,9 @@ strtof strtold /* gmon */ +_gmonparam _mcleanup +_monstartup moncontrol monstartup diff --git a/lib/libc/gmon/gmon.c b/lib/libc/gmon/gmon.c index 886505f0c79..f505eb79d12 100644 --- a/lib/libc/gmon/gmon.c +++ b/lib/libc/gmon/gmon.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gmon.c,v 1.28 2016/03/14 14:48:02 mmcc Exp $ */ +/* $OpenBSD: gmon.c,v 1.29 2016/05/07 19:30:52 guenther Exp $ */ /*- * Copyright (c) 1983, 1992, 1993 * The Regents of the University of California. All rights reserved. @@ -48,11 +48,9 @@ static int s_scale; #define ERR(s) write(STDERR_FILENO, s, sizeof(s)) -void moncontrol(int); PROTO_NORMAL(moncontrol); +PROTO_DEPRECATED(monstartup); static int hertz(void); -void monstartup(u_long lowpc, u_long highpc); -void _mcleanup(void); void monstartup(u_long lowpc, u_long highpc) @@ -134,6 +132,7 @@ mapfailed: } ERR("monstartup: out of memory\n"); } +__strong_alias(_monstartup,monstartup); void _mcleanup(void) diff --git a/lib/libc/gmon/moncontrol.3 b/lib/libc/gmon/moncontrol.3 index 2443bd4379c..5d03634e2a7 100644 --- a/lib/libc/gmon/moncontrol.3 +++ b/lib/libc/gmon/moncontrol.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: moncontrol.3,v 1.7 2014/01/21 03:15:45 schwarze Exp $ +.\" $OpenBSD: moncontrol.3,v 1.8 2016/05/07 19:30:52 guenther Exp $ .\" .\" Copyright (c) 1980, 1991, 1992, 1993 .\" The Regents of the University of California. All rights reserved. @@ -27,7 +27,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: January 21 2014 $ +.Dd $Mdocdate: May 7 2016 $ .Dt MONCONTROL 3 .Os .Sh NAME @@ -35,8 +35,11 @@ .Nm monstartup .Nd control execution profile .Sh SYNOPSIS +.In sys/gmon.h +.Ft void .Fn moncontrol "int mode" -.Fn monstartup "u_long *lowpc" "u_long *highpc" +.Ft void +.Fn monstartup "u_long lowpc" "u_long highpc" .Sh DESCRIPTION An executable program compiled using the .Fl pg |