mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
* Remove 'register'. (some functions had 7+ register functions...)
* Fix SCM ID's.
This commit is contained in:
parent
ea8d448a92
commit
22626efa0f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=90041
@ -34,6 +34,8 @@
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
static char sccsid[] = "@(#)alarm.c 8.1 (Berkeley) 6/4/93";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
/*
|
||||
* Backwards compatible alarm.
|
||||
@ -46,7 +48,7 @@ alarm(secs)
|
||||
unsigned int secs;
|
||||
{
|
||||
struct itimerval it, oitv;
|
||||
register struct itimerval *itp = ⁢
|
||||
struct itimerval *itp = ⁢
|
||||
|
||||
timerclear(&itp->it_interval);
|
||||
itp->it_value.tv_sec = secs;
|
||||
|
@ -30,7 +30,6 @@
|
||||
static char rcsid[] = "$OpenBSD: basename.c,v 1.4 1999/05/30 17:10:30 espie Exp $";
|
||||
#endif /* not lint */
|
||||
#endif
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
@ -44,7 +43,7 @@ basename(path)
|
||||
const char *path;
|
||||
{
|
||||
static char bname[MAXPATHLEN];
|
||||
register const char *endp, *startp;
|
||||
const char *endp, *startp;
|
||||
|
||||
/* Empty or NULL string gets treated as "." */
|
||||
if (path == NULL || *path == '\0') {
|
||||
|
@ -36,8 +36,9 @@
|
||||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
/* from static char sccsid[] = "@(#)crypt.c 5.11 (Berkeley) 6/25/91"; */
|
||||
static char rcsid[] = "$FreeBSD$";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
@ -55,7 +56,7 @@ __warn_references(des_setkey,
|
||||
|
||||
int
|
||||
des_setkey(key)
|
||||
register const char *key;
|
||||
const char *key;
|
||||
{
|
||||
fprintf(stderr, "WARNING! des_setkey(3) not present in the system!\n");
|
||||
return (0);
|
||||
@ -81,7 +82,7 @@ __warn_references(setkey,
|
||||
|
||||
int
|
||||
setkey(key)
|
||||
register const char *key;
|
||||
const char *key;
|
||||
{
|
||||
fprintf(stderr, "WARNING! setkey(3) not present in the system!\n");
|
||||
return (0);
|
||||
@ -92,7 +93,7 @@ __warn_references(encrypt,
|
||||
|
||||
int
|
||||
encrypt(block, flag)
|
||||
register char *block;
|
||||
char *block;
|
||||
int flag;
|
||||
{
|
||||
fprintf(stderr, "WARNING! encrypt(3) not present in the system!\n");
|
||||
|
@ -30,7 +30,6 @@
|
||||
static char rcsid[] = "$OpenBSD: dirname.c,v 1.4 1999/05/30 17:10:30 espie Exp $";
|
||||
#endif /* not lint */
|
||||
#endif
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
@ -44,7 +43,7 @@ dirname(path)
|
||||
const char *path;
|
||||
{
|
||||
static char bname[MAXPATHLEN];
|
||||
register const char *endp;
|
||||
const char *endp;
|
||||
|
||||
/* Empty or NULL string gets treated as "." */
|
||||
if (path == NULL || *path == '\0') {
|
||||
|
@ -32,12 +32,10 @@
|
||||
*/
|
||||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)exec.c 8.1 (Berkeley) 6/4/93";
|
||||
#endif
|
||||
static const char rcsid[] =
|
||||
"$FreeBSD$";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include "namespace.h"
|
||||
#include <sys/param.h>
|
||||
@ -199,8 +197,8 @@ execvp(name, argv)
|
||||
char * const *argv;
|
||||
{
|
||||
char **memp;
|
||||
register int cnt, lp, ln;
|
||||
register char *p;
|
||||
int cnt, lp, ln;
|
||||
char *p;
|
||||
int eacces, save_errno;
|
||||
char *bp, *cur, *path, buf[MAXPATHLEN];
|
||||
struct stat sb;
|
||||
|
@ -29,13 +29,13 @@
|
||||
* 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
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
static char sccsid[] = "@(#)getcwd.c 8.5 (Berkeley) 2/7/95";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include "namespace.h"
|
||||
#include <sys/param.h>
|
||||
@ -59,12 +59,12 @@ getcwd(pt, size)
|
||||
char *pt;
|
||||
size_t size;
|
||||
{
|
||||
register struct dirent *dp;
|
||||
register DIR *dir = NULL;
|
||||
register dev_t dev;
|
||||
register ino_t ino;
|
||||
register int first;
|
||||
register char *bpt, *bup;
|
||||
struct dirent *dp;
|
||||
DIR *dir = NULL;
|
||||
dev_t dev;
|
||||
ino_t ino;
|
||||
int first;
|
||||
char *bpt, *bup;
|
||||
struct stat s;
|
||||
dev_t root_dev;
|
||||
ino_t root_ino;
|
||||
|
@ -32,13 +32,13 @@
|
||||
* 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
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
static char sccsid[] = "@(#)getnetgrent.c 8.2 (Berkeley) 4/27/95";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include <stdio.h>
|
||||
#include <strings.h>
|
||||
@ -242,8 +242,8 @@ getnetgrent(hostp, userp, domp)
|
||||
void
|
||||
endnetgrent()
|
||||
{
|
||||
register struct linelist *lp, *olp;
|
||||
register struct netgrp *gp, *ogp;
|
||||
struct linelist *lp, *olp;
|
||||
struct netgrp *gp, *ogp;
|
||||
|
||||
lp = linehead;
|
||||
while (lp) {
|
||||
@ -411,10 +411,10 @@ static int
|
||||
parse_netgrp(group)
|
||||
char *group;
|
||||
{
|
||||
register char *spos, *epos;
|
||||
register int len, strpos;
|
||||
char *spos, *epos;
|
||||
int len, strpos;
|
||||
#ifdef DEBUG
|
||||
register int fields;
|
||||
int fields;
|
||||
#endif
|
||||
char *pos, *gpos;
|
||||
struct netgrp *grp;
|
||||
@ -522,8 +522,8 @@ static struct linelist *
|
||||
read_for_group(group)
|
||||
char *group;
|
||||
{
|
||||
register char *pos, *spos, *linep, *olinep;
|
||||
register int len, olen;
|
||||
char *pos, *spos, *linep, *olinep;
|
||||
int len, olen;
|
||||
int cont;
|
||||
struct linelist *lp;
|
||||
char line[LINSIZ + 2];
|
||||
|
@ -32,13 +32,13 @@
|
||||
* 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
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
static char sccsid[] = "@(#)popen.c 8.3 (Berkeley) 5/3/95";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include "namespace.h"
|
||||
#include <sys/param.h>
|
||||
@ -164,7 +164,7 @@ int
|
||||
pclose(iop)
|
||||
FILE *iop;
|
||||
{
|
||||
register struct pid *cur, *last;
|
||||
struct pid *cur, *last;
|
||||
int omask;
|
||||
int pstat;
|
||||
pid_t pid;
|
||||
|
@ -29,13 +29,13 @@
|
||||
* 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
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
static char sccsid[] = "@(#)psignal.c 8.1 (Berkeley) 6/4/93";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
/*
|
||||
* Print the name of the signal indicated
|
||||
@ -52,7 +52,7 @@ psignal(sig, s)
|
||||
unsigned int sig;
|
||||
const char *s;
|
||||
{
|
||||
register const char *c;
|
||||
const char *c;
|
||||
|
||||
if (sig < NSIG)
|
||||
c = sys_siglist[sig];
|
||||
|
@ -34,6 +34,8 @@
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
static char sccsid[] = "@(#)pwcache.c 8.1 (Berkeley) 6/4/93";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
@ -57,8 +59,8 @@ user_from_uid(uid, nouser)
|
||||
char name[UT_NAMESIZE + 1];
|
||||
} c_uid[NCACHE];
|
||||
static int pwopen;
|
||||
register struct passwd *pw;
|
||||
register struct ncache *cp;
|
||||
struct passwd *pw;
|
||||
struct ncache *cp;
|
||||
|
||||
cp = c_uid + (uid & MASK);
|
||||
if (cp->uid != uid || !*cp->name) {
|
||||
|
@ -34,6 +34,8 @@
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
static char sccsid[] = "@(#)times.c 8.1 (Berkeley) 6/4/93";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/time.h>
|
||||
@ -48,7 +50,7 @@ static char sccsid[] = "@(#)times.c 8.1 (Berkeley) 6/4/93";
|
||||
|
||||
clock_t
|
||||
times(tp)
|
||||
register struct tms *tp;
|
||||
struct tms *tp;
|
||||
{
|
||||
struct rusage ru;
|
||||
struct timeval t;
|
||||
|
@ -34,6 +34,8 @@
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
static char sccsid[] = "@(#)timezone.c 8.1 (Berkeley) 6/4/93";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
@ -59,7 +61,7 @@ timezone(zone, dst)
|
||||
int zone,
|
||||
dst;
|
||||
{
|
||||
register char *beg,
|
||||
char *beg,
|
||||
*end;
|
||||
|
||||
if ( (beg = getenv("TZNAME")) ) { /* set in environment */
|
||||
@ -109,11 +111,11 @@ static struct zone {
|
||||
*/
|
||||
char *
|
||||
_tztab(zone,dst)
|
||||
register int zone;
|
||||
int zone;
|
||||
int dst;
|
||||
{
|
||||
register struct zone *zp;
|
||||
register char sign;
|
||||
struct zone *zp;
|
||||
char sign;
|
||||
|
||||
for (zp = zonetab; zp->offset != -1;++zp) /* static tables */
|
||||
if (zp->offset == zone) {
|
||||
|
@ -34,6 +34,8 @@
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
static char sccsid[] = "@(#)ttyslot.c 8.1 (Berkeley) 6/4/93";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include <ttyent.h>
|
||||
#include <stdio.h>
|
||||
@ -43,9 +45,9 @@ static char sccsid[] = "@(#)ttyslot.c 8.1 (Berkeley) 6/4/93";
|
||||
int
|
||||
ttyslot()
|
||||
{
|
||||
register struct ttyent *ttyp;
|
||||
register int slot;
|
||||
register char *p;
|
||||
struct ttyent *ttyp;
|
||||
int slot;
|
||||
char *p;
|
||||
int cnt;
|
||||
char *name;
|
||||
|
||||
|
@ -34,6 +34,8 @@
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
static char sccsid[] = "@(#)ualarm.c 8.1 (Berkeley) 6/4/93";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include <sys/time.h>
|
||||
#include <unistd.h>
|
||||
@ -47,8 +49,8 @@ static char sccsid[] = "@(#)ualarm.c 8.1 (Berkeley) 6/4/93";
|
||||
*/
|
||||
unsigned
|
||||
ualarm(usecs, reload)
|
||||
register unsigned usecs;
|
||||
register unsigned reload;
|
||||
unsigned usecs;
|
||||
unsigned reload;
|
||||
{
|
||||
struct itimerval new, old;
|
||||
|
||||
|
@ -29,13 +29,13 @@
|
||||
* 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
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
static char sccsid[] = "@(#)unvis.c 8.1 (Berkeley) 6/4/93";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <vis.h>
|
||||
@ -241,10 +241,10 @@ unvis(cp, c, astate, flag)
|
||||
|
||||
int
|
||||
strunvis(dst, src)
|
||||
register char *dst;
|
||||
register const char *src;
|
||||
char *dst;
|
||||
const char *src;
|
||||
{
|
||||
register char c;
|
||||
char c;
|
||||
char *start = dst;
|
||||
int state = 0;
|
||||
|
||||
@ -272,10 +272,10 @@ strunvis(dst, src)
|
||||
|
||||
int
|
||||
strunvisx(dst, src, flag)
|
||||
register char *dst;
|
||||
register const char *src;
|
||||
char *dst;
|
||||
const char *src;
|
||||
{
|
||||
register char c;
|
||||
char c;
|
||||
char *start = dst;
|
||||
int state = 0;
|
||||
|
||||
|
@ -29,13 +29,13 @@
|
||||
* 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
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
static char sccsid[] = "@(#)vis.c 8.1 (Berkeley) 7/19/93";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <limits.h>
|
||||
@ -50,9 +50,9 @@ static char sccsid[] = "@(#)vis.c 8.1 (Berkeley) 7/19/93";
|
||||
*/
|
||||
char *
|
||||
vis(dst, c, flag, nextc)
|
||||
register char *dst;
|
||||
char *dst;
|
||||
int c, nextc;
|
||||
register int flag;
|
||||
int flag;
|
||||
{
|
||||
c = (unsigned char)c;
|
||||
|
||||
@ -171,11 +171,11 @@ vis(dst, c, flag, nextc)
|
||||
*/
|
||||
int
|
||||
strvis(dst, src, flag)
|
||||
register char *dst;
|
||||
register const char *src;
|
||||
char *dst;
|
||||
const char *src;
|
||||
int flag;
|
||||
{
|
||||
register char c;
|
||||
char c;
|
||||
char *start;
|
||||
|
||||
for (start = dst; (c = *src); )
|
||||
@ -186,9 +186,9 @@ strvis(dst, src, flag)
|
||||
|
||||
int
|
||||
strvisx(dst, src, len, flag)
|
||||
register char *dst;
|
||||
register const char *src;
|
||||
register size_t len;
|
||||
char *dst;
|
||||
const char *src;
|
||||
size_t len;
|
||||
int flag;
|
||||
{
|
||||
int c;
|
||||
|
Loading…
Reference in New Issue
Block a user