* Remove 'register'. (some functions had 7+ register functions...)

* Fix SCM ID's.
This commit is contained in:
David E. O'Brien 2002-02-01 01:08:48 +00:00
parent ea8d448a92
commit 22626efa0f
16 changed files with 77 additions and 68 deletions

View File

@ -34,6 +34,8 @@
#if defined(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)alarm.c 8.1 (Berkeley) 6/4/93"; static char sccsid[] = "@(#)alarm.c 8.1 (Berkeley) 6/4/93";
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
/* /*
* Backwards compatible alarm. * Backwards compatible alarm.
@ -46,7 +48,7 @@ alarm(secs)
unsigned int secs; unsigned int secs;
{ {
struct itimerval it, oitv; struct itimerval it, oitv;
register struct itimerval *itp = &it; struct itimerval *itp = &it;
timerclear(&itp->it_interval); timerclear(&itp->it_interval);
itp->it_value.tv_sec = secs; itp->it_value.tv_sec = secs;

View File

@ -30,7 +30,6 @@
static char rcsid[] = "$OpenBSD: basename.c,v 1.4 1999/05/30 17:10:30 espie Exp $"; static char rcsid[] = "$OpenBSD: basename.c,v 1.4 1999/05/30 17:10:30 espie Exp $";
#endif /* not lint */ #endif /* not lint */
#endif #endif
#include <sys/cdefs.h> #include <sys/cdefs.h>
__FBSDID("$FreeBSD$"); __FBSDID("$FreeBSD$");
@ -44,7 +43,7 @@ basename(path)
const char *path; const char *path;
{ {
static char bname[MAXPATHLEN]; static char bname[MAXPATHLEN];
register const char *endp, *startp; const char *endp, *startp;
/* Empty or NULL string gets treated as "." */ /* Empty or NULL string gets treated as "." */
if (path == NULL || *path == '\0') { if (path == NULL || *path == '\0') {

View File

@ -36,8 +36,9 @@
#if defined(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
/* from static char sccsid[] = "@(#)crypt.c 5.11 (Berkeley) 6/25/91"; */ /* from static char sccsid[] = "@(#)crypt.c 5.11 (Berkeley) 6/25/91"; */
static char rcsid[] = "$FreeBSD$";
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <unistd.h> #include <unistd.h>
#include <stdio.h> #include <stdio.h>
@ -55,7 +56,7 @@ __warn_references(des_setkey,
int int
des_setkey(key) des_setkey(key)
register const char *key; const char *key;
{ {
fprintf(stderr, "WARNING! des_setkey(3) not present in the system!\n"); fprintf(stderr, "WARNING! des_setkey(3) not present in the system!\n");
return (0); return (0);
@ -81,7 +82,7 @@ __warn_references(setkey,
int int
setkey(key) setkey(key)
register const char *key; const char *key;
{ {
fprintf(stderr, "WARNING! setkey(3) not present in the system!\n"); fprintf(stderr, "WARNING! setkey(3) not present in the system!\n");
return (0); return (0);
@ -92,7 +93,7 @@ __warn_references(encrypt,
int int
encrypt(block, flag) encrypt(block, flag)
register char *block; char *block;
int flag; int flag;
{ {
fprintf(stderr, "WARNING! encrypt(3) not present in the system!\n"); fprintf(stderr, "WARNING! encrypt(3) not present in the system!\n");

View File

@ -30,7 +30,6 @@
static char rcsid[] = "$OpenBSD: dirname.c,v 1.4 1999/05/30 17:10:30 espie Exp $"; static char rcsid[] = "$OpenBSD: dirname.c,v 1.4 1999/05/30 17:10:30 espie Exp $";
#endif /* not lint */ #endif /* not lint */
#endif #endif
#include <sys/cdefs.h> #include <sys/cdefs.h>
__FBSDID("$FreeBSD$"); __FBSDID("$FreeBSD$");
@ -44,7 +43,7 @@ dirname(path)
const char *path; const char *path;
{ {
static char bname[MAXPATHLEN]; static char bname[MAXPATHLEN];
register const char *endp; const char *endp;
/* Empty or NULL string gets treated as "." */ /* Empty or NULL string gets treated as "." */
if (path == NULL || *path == '\0') { if (path == NULL || *path == '\0') {

View File

@ -32,12 +32,10 @@
*/ */
#if defined(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
#if 0
static char sccsid[] = "@(#)exec.c 8.1 (Berkeley) 6/4/93"; static char sccsid[] = "@(#)exec.c 8.1 (Berkeley) 6/4/93";
#endif
static const char rcsid[] =
"$FreeBSD$";
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include "namespace.h" #include "namespace.h"
#include <sys/param.h> #include <sys/param.h>
@ -199,8 +197,8 @@ execvp(name, argv)
char * const *argv; char * const *argv;
{ {
char **memp; char **memp;
register int cnt, lp, ln; int cnt, lp, ln;
register char *p; char *p;
int eacces, save_errno; int eacces, save_errno;
char *bp, *cur, *path, buf[MAXPATHLEN]; char *bp, *cur, *path, buf[MAXPATHLEN];
struct stat sb; struct stat sb;

View File

@ -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(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)getcwd.c 8.5 (Berkeley) 2/7/95"; static char sccsid[] = "@(#)getcwd.c 8.5 (Berkeley) 2/7/95";
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include "namespace.h" #include "namespace.h"
#include <sys/param.h> #include <sys/param.h>
@ -59,12 +59,12 @@ getcwd(pt, size)
char *pt; char *pt;
size_t size; size_t size;
{ {
register struct dirent *dp; struct dirent *dp;
register DIR *dir = NULL; DIR *dir = NULL;
register dev_t dev; dev_t dev;
register ino_t ino; ino_t ino;
register int first; int first;
register char *bpt, *bup; char *bpt, *bup;
struct stat s; struct stat s;
dev_t root_dev; dev_t root_dev;
ino_t root_ino; ino_t root_ino;

View File

@ -32,13 +32,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(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)getnetgrent.c 8.2 (Berkeley) 4/27/95"; static char sccsid[] = "@(#)getnetgrent.c 8.2 (Berkeley) 4/27/95";
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <stdio.h> #include <stdio.h>
#include <strings.h> #include <strings.h>
@ -242,8 +242,8 @@ getnetgrent(hostp, userp, domp)
void void
endnetgrent() endnetgrent()
{ {
register struct linelist *lp, *olp; struct linelist *lp, *olp;
register struct netgrp *gp, *ogp; struct netgrp *gp, *ogp;
lp = linehead; lp = linehead;
while (lp) { while (lp) {
@ -411,10 +411,10 @@ static int
parse_netgrp(group) parse_netgrp(group)
char *group; char *group;
{ {
register char *spos, *epos; char *spos, *epos;
register int len, strpos; int len, strpos;
#ifdef DEBUG #ifdef DEBUG
register int fields; int fields;
#endif #endif
char *pos, *gpos; char *pos, *gpos;
struct netgrp *grp; struct netgrp *grp;
@ -522,8 +522,8 @@ static struct linelist *
read_for_group(group) read_for_group(group)
char *group; char *group;
{ {
register char *pos, *spos, *linep, *olinep; char *pos, *spos, *linep, *olinep;
register int len, olen; int len, olen;
int cont; int cont;
struct linelist *lp; struct linelist *lp;
char line[LINSIZ + 2]; char line[LINSIZ + 2];

View File

@ -32,13 +32,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(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)popen.c 8.3 (Berkeley) 5/3/95"; static char sccsid[] = "@(#)popen.c 8.3 (Berkeley) 5/3/95";
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include "namespace.h" #include "namespace.h"
#include <sys/param.h> #include <sys/param.h>
@ -164,7 +164,7 @@ int
pclose(iop) pclose(iop)
FILE *iop; FILE *iop;
{ {
register struct pid *cur, *last; struct pid *cur, *last;
int omask; int omask;
int pstat; int pstat;
pid_t pid; pid_t pid;

View File

@ -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(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)psignal.c 8.1 (Berkeley) 6/4/93"; static char sccsid[] = "@(#)psignal.c 8.1 (Berkeley) 6/4/93";
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
/* /*
* Print the name of the signal indicated * Print the name of the signal indicated
@ -52,7 +52,7 @@ psignal(sig, s)
unsigned int sig; unsigned int sig;
const char *s; const char *s;
{ {
register const char *c; const char *c;
if (sig < NSIG) if (sig < NSIG)
c = sys_siglist[sig]; c = sys_siglist[sig];

View File

@ -34,6 +34,8 @@
#if defined(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)pwcache.c 8.1 (Berkeley) 6/4/93"; static char sccsid[] = "@(#)pwcache.c 8.1 (Berkeley) 6/4/93";
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <sys/types.h> #include <sys/types.h>
@ -57,8 +59,8 @@ user_from_uid(uid, nouser)
char name[UT_NAMESIZE + 1]; char name[UT_NAMESIZE + 1];
} c_uid[NCACHE]; } c_uid[NCACHE];
static int pwopen; static int pwopen;
register struct passwd *pw; struct passwd *pw;
register struct ncache *cp; struct ncache *cp;
cp = c_uid + (uid & MASK); cp = c_uid + (uid & MASK);
if (cp->uid != uid || !*cp->name) { if (cp->uid != uid || !*cp->name) {

View File

@ -34,6 +34,8 @@
#if defined(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)times.c 8.1 (Berkeley) 6/4/93"; static char sccsid[] = "@(#)times.c 8.1 (Berkeley) 6/4/93";
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <sys/param.h> #include <sys/param.h>
#include <sys/time.h> #include <sys/time.h>
@ -48,7 +50,7 @@ static char sccsid[] = "@(#)times.c 8.1 (Berkeley) 6/4/93";
clock_t clock_t
times(tp) times(tp)
register struct tms *tp; struct tms *tp;
{ {
struct rusage ru; struct rusage ru;
struct timeval t; struct timeval t;

View File

@ -34,6 +34,8 @@
#if defined(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)timezone.c 8.1 (Berkeley) 6/4/93"; static char sccsid[] = "@(#)timezone.c 8.1 (Berkeley) 6/4/93";
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <sys/types.h> #include <sys/types.h>
#include <sys/time.h> #include <sys/time.h>
@ -59,7 +61,7 @@ timezone(zone, dst)
int zone, int zone,
dst; dst;
{ {
register char *beg, char *beg,
*end; *end;
if ( (beg = getenv("TZNAME")) ) { /* set in environment */ if ( (beg = getenv("TZNAME")) ) { /* set in environment */
@ -109,11 +111,11 @@ static struct zone {
*/ */
char * char *
_tztab(zone,dst) _tztab(zone,dst)
register int zone; int zone;
int dst; int dst;
{ {
register struct zone *zp; struct zone *zp;
register char sign; char sign;
for (zp = zonetab; zp->offset != -1;++zp) /* static tables */ for (zp = zonetab; zp->offset != -1;++zp) /* static tables */
if (zp->offset == zone) { if (zp->offset == zone) {

View File

@ -34,6 +34,8 @@
#if defined(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)ttyslot.c 8.1 (Berkeley) 6/4/93"; static char sccsid[] = "@(#)ttyslot.c 8.1 (Berkeley) 6/4/93";
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <ttyent.h> #include <ttyent.h>
#include <stdio.h> #include <stdio.h>
@ -43,9 +45,9 @@ static char sccsid[] = "@(#)ttyslot.c 8.1 (Berkeley) 6/4/93";
int int
ttyslot() ttyslot()
{ {
register struct ttyent *ttyp; struct ttyent *ttyp;
register int slot; int slot;
register char *p; char *p;
int cnt; int cnt;
char *name; char *name;

View File

@ -34,6 +34,8 @@
#if defined(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)ualarm.c 8.1 (Berkeley) 6/4/93"; static char sccsid[] = "@(#)ualarm.c 8.1 (Berkeley) 6/4/93";
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <sys/time.h> #include <sys/time.h>
#include <unistd.h> #include <unistd.h>
@ -47,8 +49,8 @@ static char sccsid[] = "@(#)ualarm.c 8.1 (Berkeley) 6/4/93";
*/ */
unsigned unsigned
ualarm(usecs, reload) ualarm(usecs, reload)
register unsigned usecs; unsigned usecs;
register unsigned reload; unsigned reload;
{ {
struct itimerval new, old; struct itimerval new, old;

View File

@ -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(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)unvis.c 8.1 (Berkeley) 6/4/93"; static char sccsid[] = "@(#)unvis.c 8.1 (Berkeley) 6/4/93";
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <sys/types.h> #include <sys/types.h>
#include <vis.h> #include <vis.h>
@ -241,10 +241,10 @@ unvis(cp, c, astate, flag)
int int
strunvis(dst, src) strunvis(dst, src)
register char *dst; char *dst;
register const char *src; const char *src;
{ {
register char c; char c;
char *start = dst; char *start = dst;
int state = 0; int state = 0;
@ -272,10 +272,10 @@ strunvis(dst, src)
int int
strunvisx(dst, src, flag) strunvisx(dst, src, flag)
register char *dst; char *dst;
register const char *src; const char *src;
{ {
register char c; char c;
char *start = dst; char *start = dst;
int state = 0; int state = 0;

View File

@ -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(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)vis.c 8.1 (Berkeley) 7/19/93"; static char sccsid[] = "@(#)vis.c 8.1 (Berkeley) 7/19/93";
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <sys/types.h> #include <sys/types.h>
#include <limits.h> #include <limits.h>
@ -50,9 +50,9 @@ static char sccsid[] = "@(#)vis.c 8.1 (Berkeley) 7/19/93";
*/ */
char * char *
vis(dst, c, flag, nextc) vis(dst, c, flag, nextc)
register char *dst; char *dst;
int c, nextc; int c, nextc;
register int flag; int flag;
{ {
c = (unsigned char)c; c = (unsigned char)c;
@ -171,11 +171,11 @@ done:
*/ */
int int
strvis(dst, src, flag) strvis(dst, src, flag)
register char *dst; char *dst;
register const char *src; const char *src;
int flag; int flag;
{ {
register char c; char c;
char *start; char *start;
for (start = dst; (c = *src); ) for (start = dst; (c = *src); )
@ -186,9 +186,9 @@ strvis(dst, src, flag)
int int
strvisx(dst, src, len, flag) strvisx(dst, src, len, flag)
register char *dst; char *dst;
register const char *src; const char *src;
register size_t len; size_t len;
int flag; int flag;
{ {
int c; int c;