mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 02:32:47 +00:00
* Remove __P and convert to ANSI prototypes.
* Remove 'register'. (some functions had 7+ register functions...) * Fix SCM ID's.
This commit is contained in:
parent
b231cb3945
commit
a99d101352
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=90046
@ -29,13 +29,13 @@
|
|||||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
|
||||||
* $FreeBSD$
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if !defined(lint) && defined(LIBC_SCCS)
|
#if !defined(lint) && defined(LIBC_SCCS)
|
||||||
static char sccsid[] = "@(#)gmon.c 8.1 (Berkeley) 6/4/93";
|
static char sccsid[] = "@(#)gmon.c 8.1 (Berkeley) 6/4/93";
|
||||||
#endif
|
#endif
|
||||||
|
#include <sys/cdefs.h>
|
||||||
|
__FBSDID("$FreeBSD$");
|
||||||
|
|
||||||
#include "namespace.h"
|
#include "namespace.h"
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
@ -67,15 +67,15 @@ static int s_scale;
|
|||||||
|
|
||||||
#define ERR(s) _write(2, s, sizeof(s))
|
#define ERR(s) _write(2, s, sizeof(s))
|
||||||
|
|
||||||
void moncontrol __P((int));
|
void moncontrol(int);
|
||||||
static int hertz __P((void));
|
static int hertz(void);
|
||||||
|
|
||||||
void
|
void
|
||||||
monstartup(lowpc, highpc)
|
monstartup(lowpc, highpc)
|
||||||
u_long lowpc;
|
u_long lowpc;
|
||||||
u_long highpc;
|
u_long highpc;
|
||||||
{
|
{
|
||||||
register int o;
|
int o;
|
||||||
char *cp;
|
char *cp;
|
||||||
struct gmonparam *p = &_gmonparam;
|
struct gmonparam *p = &_gmonparam;
|
||||||
|
|
||||||
|
@ -32,12 +32,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#if !defined(lint) && !defined(_KERNEL) && defined(LIBC_SCCS)
|
#if !defined(lint) && !defined(_KERNEL) && defined(LIBC_SCCS)
|
||||||
#if 0
|
|
||||||
static char sccsid[] = "@(#)mcount.c 8.1 (Berkeley) 6/4/93";
|
static char sccsid[] = "@(#)mcount.c 8.1 (Berkeley) 6/4/93";
|
||||||
#endif
|
#endif
|
||||||
static const char rcsid[] =
|
#include <sys/cdefs.h>
|
||||||
"$FreeBSD$";
|
__FBSDID("$FreeBSD$");
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/gmon.h>
|
#include <sys/gmon.h>
|
||||||
@ -46,10 +44,10 @@ static const char rcsid[] =
|
|||||||
#include <vm/vm.h>
|
#include <vm/vm.h>
|
||||||
#include <vm/vm_param.h>
|
#include <vm/vm_param.h>
|
||||||
#include <vm/pmap.h>
|
#include <vm/pmap.h>
|
||||||
void bintr __P((void));
|
void bintr(void);
|
||||||
void btrap __P((void));
|
void btrap(void);
|
||||||
void eintr __P((void));
|
void eintr(void);
|
||||||
void user __P((void));
|
void user(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -68,16 +66,16 @@ void user __P((void));
|
|||||||
* perform this optimization.
|
* perform this optimization.
|
||||||
*/
|
*/
|
||||||
_MCOUNT_DECL(frompc, selfpc) /* _mcount; may be static, inline, etc */
|
_MCOUNT_DECL(frompc, selfpc) /* _mcount; may be static, inline, etc */
|
||||||
register uintfptr_t frompc, selfpc;
|
uintfptr_t frompc, selfpc;
|
||||||
{
|
{
|
||||||
#ifdef GUPROF
|
#ifdef GUPROF
|
||||||
u_int delta;
|
u_int delta;
|
||||||
#endif
|
#endif
|
||||||
register fptrdiff_t frompci;
|
fptrdiff_t frompci;
|
||||||
register u_short *frompcindex;
|
u_short *frompcindex;
|
||||||
register struct tostruct *top, *prevtop;
|
struct tostruct *top, *prevtop;
|
||||||
register struct gmonparam *p;
|
struct gmonparam *p;
|
||||||
register long toindex;
|
long toindex;
|
||||||
#ifdef _KERNEL
|
#ifdef _KERNEL
|
||||||
MCOUNT_DECL(s)
|
MCOUNT_DECL(s)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user