aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/gmon.h
diff options
context:
space:
mode:
authorBruce M Simpson <bms@FreeBSD.org>2004-06-14 18:39:28 +0000
committerBruce M Simpson <bms@FreeBSD.org>2004-06-14 18:39:28 +0000
commit58f77491e3016103def9433a91b308d31bab2d60 (patch)
treeb1768b815798ac3281991345b7049b5e2476e066 /sys/sys/gmon.h
parent3b7f737e69efcdcdf593031c9c4b46c671ea440e (diff)
downloadsrc-58f77491e3016103def9433a91b308d31bab2d60.tar.gz
src-58f77491e3016103def9433a91b308d31bab2d60.zip
Add prototypes for the userland gmon support functions, which normally
live in src/lib/libc/gmon/gmon.c. glibc puts these prototypes in the same header, so put them here for the sake of consistency. PR: bin/4459 Reviewed by: bde
Notes
Notes: svn path=/head/; revision=130484
Diffstat (limited to 'sys/sys/gmon.h')
-rw-r--r--sys/sys/gmon.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/sys/gmon.h b/sys/sys/gmon.h
index 0b2e2352dc09..ac405abb726e 100644
--- a/sys/sys/gmon.h
+++ b/sys/sys/gmon.h
@@ -228,6 +228,15 @@ void mexitcount(uintfptr_t selfpc);
void nullfunc(void);
void nullfunc_loop(void);
+#else /* !_KERNEL */
+
+#include <sys/cdefs.h>
+
+__BEGIN_DECLS
+void moncontrol(int);
+void monstartup(u_long, u_long);
+__END_DECLS
+
#endif /* _KERNEL */
#endif /* !_SYS_GMON_H_ */