diff options
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gmon/mcount.c | 20 | ||||
-rw-r--r-- | lib/libc/rpc/auth_unix.c | 6 | ||||
-rw-r--r-- | lib/libc/rpc/svc_auth.c | 7 |
3 files changed, 19 insertions, 14 deletions
diff --git a/lib/libc/gmon/mcount.c b/lib/libc/gmon/mcount.c index b27b386..caf0c14 100644 --- a/lib/libc/gmon/mcount.c +++ b/lib/libc/gmon/mcount.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. */ -#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"; #endif @@ -41,7 +41,7 @@ static const char rcsid[] = #include <sys/param.h> #include <sys/gmon.h> -#ifdef KERNEL +#ifdef _KERNEL #include <sys/systm.h> #include <vm/vm.h> #include <vm/vm_param.h> @@ -78,7 +78,7 @@ _MCOUNT_DECL(frompc, selfpc) /* _mcount; may be static, inline, etc */ register struct tostruct *top, *prevtop; register struct gmonparam *p; register long toindex; -#ifdef KERNEL +#ifdef _KERNEL MCOUNT_DECL(s) #endif @@ -91,14 +91,14 @@ _MCOUNT_DECL(frompc, selfpc) /* _mcount; may be static, inline, etc */ if (p->state != GMON_PROF_ON) return; #endif -#ifdef KERNEL +#ifdef _KERNEL MCOUNT_ENTER(s); #else p->state = GMON_PROF_BUSY; #endif frompci = frompc - p->lowpc; -#ifdef KERNEL +#ifdef _KERNEL /* * When we are called from an exception handler, frompci may be * for a user address. Convert such frompci's to the index of @@ -112,7 +112,7 @@ _MCOUNT_DECL(frompc, selfpc) /* _mcount; may be static, inline, etc */ if (frompci >= p->textsize) goto done; } -#endif /* KERNEL */ +#endif #ifdef GUPROF if (p->state != GMON_PROF_HIRES) @@ -161,7 +161,7 @@ _MCOUNT_DECL(frompc, selfpc) /* _mcount; may be static, inline, etc */ skip_guprof_stuff: #endif /* GUPROF */ -#ifdef KERNEL +#ifdef _KERNEL /* * When we are called from an exception handler, frompc is faked * to be for where the exception occurred. We've just solidified @@ -177,7 +177,7 @@ skip_guprof_stuff: else frompci = (uintfptr_t)btrap - p->lowpc; } -#endif /* KERNEL */ +#endif /* * check that frompc is a reasonable pc value. @@ -259,7 +259,7 @@ skip_guprof_stuff: } done: -#ifdef KERNEL +#ifdef _KERNEL MCOUNT_EXIT(s); #else p->state = GMON_PROF_ON; @@ -267,7 +267,7 @@ done: return; overflow: p->state = GMON_PROF_ERROR; -#ifdef KERNEL +#ifdef _KERNEL MCOUNT_EXIT(s); #endif return; diff --git a/lib/libc/rpc/auth_unix.c b/lib/libc/rpc/auth_unix.c index f2a0918..dced8f2 100644 --- a/lib/libc/rpc/auth_unix.c +++ b/lib/libc/rpc/auth_unix.c @@ -123,14 +123,14 @@ authunix_create(machname, uid, gid, len, aup_gids) * Allocate and set up auth handle */ auth = (AUTH *)mem_alloc(sizeof(*auth)); -#ifndef KERNEL +#ifndef _KERNEL if (auth == NULL) { (void)fprintf(stderr, "authunix_create: out of memory\n"); return (NULL); } #endif au = (struct audata *)mem_alloc(sizeof(*au)); -#ifndef KERNEL +#ifndef _KERNEL if (au == NULL) { (void)fprintf(stderr, "authunix_create: out of memory\n"); return (NULL); @@ -166,7 +166,7 @@ authunix_create(machname, uid, gid, len, aup_gids) abort(); au->au_origcred.oa_length = len = XDR_GETPOS(&xdrs); au->au_origcred.oa_flavor = AUTH_UNIX; -#ifdef KERNEL +#ifdef _KERNEL au->au_origcred.oa_base = mem_alloc((u_int) len); #else if ((au->au_origcred.oa_base = mem_alloc((u_int) len)) == NULL) { diff --git a/lib/libc/rpc/svc_auth.c b/lib/libc/rpc/svc_auth.c index 0063e75..fa1dca7 100644 --- a/lib/libc/rpc/svc_auth.c +++ b/lib/libc/rpc/svc_auth.c @@ -33,7 +33,12 @@ #ident "@(#)svc_auth.c 1.16 94/04/24 SMI" #if !defined(lint) && defined(SCCSIDS) +#if 0 static char sccsid[] = "@(#)svc_auth.c 1.26 89/02/07 Copyr 1984 Sun Micro"; +#else +static const char rcsid[] = + "$FreeBSD$"; +#endif #endif /* @@ -41,7 +46,7 @@ static char sccsid[] = "@(#)svc_auth.c 1.26 89/02/07 Copyr 1984 Sun Micro"; * */ -#ifdef KERNEL +#ifdef _KERNEL #include <sys/param.h> #include <rpc/types.h> #include <rpc/xdr.h> |