diff options
| author | David E. O'Brien <obrien@FreeBSD.org> | 2002-03-21 18:49:23 +0000 |
|---|---|---|
| committer | David E. O'Brien <obrien@FreeBSD.org> | 2002-03-21 18:49:23 +0000 |
| commit | 8fb3f3f68288ae2b1b53dd65e3dd673d83c80f4c (patch) | |
| tree | 12b252b7426e8a8904ef257bea10fea6038142f4 /lib/libc/stdio | |
| parent | ddf23aa842f17afcb0e9bfd88bfad20f6431d0a3 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdio')
| -rw-r--r-- | lib/libc/stdio/fdopen.c | 2 | ||||
| -rw-r--r-- | lib/libc/stdio/fgets.c | 10 | ||||
| -rw-r--r-- | lib/libc/stdio/flags.c | 4 | ||||
| -rw-r--r-- | lib/libc/stdio/fpurge.c | 2 | ||||
| -rw-r--r-- | lib/libc/stdio/fputc.c | 2 | ||||
| -rw-r--r-- | lib/libc/stdio/fread.c | 8 | ||||
| -rw-r--r-- | lib/libc/stdio/fseek.c | 4 | ||||
| -rw-r--r-- | lib/libc/stdio/ftell.c | 10 | ||||
| -rw-r--r-- | lib/libc/stdio/funopen.c | 2 | ||||
| -rw-r--r-- | lib/libc/stdio/fvwrite.c | 12 | ||||
| -rw-r--r-- | lib/libc/stdio/gets.c | 4 | ||||
| -rw-r--r-- | lib/libc/stdio/makebuf.c | 8 | ||||
| -rw-r--r-- | lib/libc/stdio/mktemp.c | 4 | ||||
| -rw-r--r-- | lib/libc/stdio/perror.c | 2 | ||||
| -rw-r--r-- | lib/libc/stdio/putc.c | 2 | ||||
| -rw-r--r-- | lib/libc/stdio/putchar.c | 2 | ||||
| -rw-r--r-- | lib/libc/stdio/setbuffer.c | 2 | ||||
| -rw-r--r-- | lib/libc/stdio/setvbuf.c | 8 | ||||
| -rw-r--r-- | lib/libc/stdio/stdio.c | 6 | ||||
| -rw-r--r-- | lib/libc/stdio/vfprintf.c | 4 | ||||
| -rw-r--r-- | lib/libc/stdio/vfscanf.c | 6 | ||||
| -rw-r--r-- | lib/libc/stdio/wbuf.c | 6 | ||||
| -rw-r--r-- | lib/libc/stdio/wsetup.c | 2 |
23 files changed, 56 insertions, 56 deletions
diff --git a/lib/libc/stdio/fdopen.c b/lib/libc/stdio/fdopen.c index 30bf5b9a115a..7b8af8aaf1de 100644 --- a/lib/libc/stdio/fdopen.c +++ b/lib/libc/stdio/fdopen.c @@ -54,7 +54,7 @@ fdopen(fd, mode) int fd; const char *mode; { - register FILE *fp; + FILE *fp; static int nofile; int flags, oflags, fdflags, tmp; diff --git a/lib/libc/stdio/fgets.c b/lib/libc/stdio/fgets.c index ccf5535d68c0..1802155522b5 100644 --- a/lib/libc/stdio/fgets.c +++ b/lib/libc/stdio/fgets.c @@ -57,12 +57,12 @@ static const char rcsid[] = char * fgets(buf, n, fp) char *buf; - register int n; - register FILE *fp; + int n; + FILE *fp; { - register size_t len; - register char *s; - register unsigned char *p, *t; + size_t len; + char *s; + unsigned char *p, *t; if (n <= 0) /* sanity check */ return (NULL); diff --git a/lib/libc/stdio/flags.c b/lib/libc/stdio/flags.c index 4f394609cad7..be1377d47527 100644 --- a/lib/libc/stdio/flags.c +++ b/lib/libc/stdio/flags.c @@ -56,10 +56,10 @@ static const char rcsid[] = */ int __sflags(mode, optr) - register const char *mode; + const char *mode; int *optr; { - register int ret, m, o; + int ret, m, o; switch (*mode++) { diff --git a/lib/libc/stdio/fpurge.c b/lib/libc/stdio/fpurge.c index 4959098a46fb..5f96c6a9a5c2 100644 --- a/lib/libc/stdio/fpurge.c +++ b/lib/libc/stdio/fpurge.c @@ -56,7 +56,7 @@ static const char rcsid[] = */ int fpurge(fp) - register FILE *fp; + FILE *fp; { int retval; FLOCKFILE(fp); diff --git a/lib/libc/stdio/fputc.c b/lib/libc/stdio/fputc.c index 24eb560d03d6..d7e8ab4c448e 100644 --- a/lib/libc/stdio/fputc.c +++ b/lib/libc/stdio/fputc.c @@ -50,7 +50,7 @@ static const char rcsid[] = int fputc(c, fp) int c; - register FILE *fp; + FILE *fp; { int retval; FLOCKFILE(fp); diff --git a/lib/libc/stdio/fread.c b/lib/libc/stdio/fread.c index f7e8985fbe86..08a15ef0cdd2 100644 --- a/lib/libc/stdio/fread.c +++ b/lib/libc/stdio/fread.c @@ -53,11 +53,11 @@ size_t fread(buf, size, count, fp) void *buf; size_t size, count; - register FILE *fp; + FILE *fp; { - register size_t resid; - register char *p; - register int r; + size_t resid; + char *p; + int r; size_t total; /* diff --git a/lib/libc/stdio/fseek.c b/lib/libc/stdio/fseek.c index 237d7939a0ad..86659e5bd197 100644 --- a/lib/libc/stdio/fseek.c +++ b/lib/libc/stdio/fseek.c @@ -58,7 +58,7 @@ static const char rcsid[] = int fseek(fp, offset, whence) - register FILE *fp; + FILE *fp; long offset; int whence; { @@ -109,7 +109,7 @@ _fseeko(fp, offset, whence, ltest) int whence; int ltest; { - register fpos_t (*seekfn) __P((void *, fpos_t, int)); + fpos_t (*seekfn) __P((void *, fpos_t, int)); fpos_t target, curoff, ret; size_t n; struct stat st; diff --git a/lib/libc/stdio/ftell.c b/lib/libc/stdio/ftell.c index 174eaa847369..9d5175061ee9 100644 --- a/lib/libc/stdio/ftell.c +++ b/lib/libc/stdio/ftell.c @@ -56,9 +56,9 @@ static const char rcsid[] = */ long ftell(fp) - register FILE *fp; + FILE *fp; { - register off_t rv; + off_t rv; rv = ftello(fp); if (rv > LONG_MAX) { @@ -73,7 +73,7 @@ ftell(fp) */ off_t ftello(fp) - register FILE *fp; + FILE *fp; { fpos_t rv; int ret; @@ -92,10 +92,10 @@ ftello(fp) int _ftello(fp, offset) - register FILE *fp; + FILE *fp; fpos_t *offset; { - register fpos_t pos; + fpos_t pos; size_t n; if (fp->_seek == NULL) { diff --git a/lib/libc/stdio/funopen.c b/lib/libc/stdio/funopen.c index f66c60e65efa..61ecfd888892 100644 --- a/lib/libc/stdio/funopen.c +++ b/lib/libc/stdio/funopen.c @@ -56,7 +56,7 @@ funopen(cookie, readfn, writefn, seekfn, closefn) #endif int (*closefn)(); { - register FILE *fp; + FILE *fp; int flags; if (readfn == NULL) { diff --git a/lib/libc/stdio/fvwrite.c b/lib/libc/stdio/fvwrite.c index 91968250972c..aee213449b57 100644 --- a/lib/libc/stdio/fvwrite.c +++ b/lib/libc/stdio/fvwrite.c @@ -56,13 +56,13 @@ static const char rcsid[] = */ int __sfvwrite(fp, uio) - register FILE *fp; - register struct __suio *uio; + FILE *fp; + struct __suio *uio; { - register size_t len; - register char *p; - register struct __siov *iov; - register int w, s; + size_t len; + char *p; + struct __siov *iov; + int w, s; char *nl; int nlknown, nldist; diff --git a/lib/libc/stdio/gets.c b/lib/libc/stdio/gets.c index 7a368cf14fea..7989bb6acdfb 100644 --- a/lib/libc/stdio/gets.c +++ b/lib/libc/stdio/gets.c @@ -54,8 +54,8 @@ char * gets(buf) char *buf; { - register int c; - register char *s; + int c; + char *s; static int warned; static char w[] = "warning: this program uses gets(), which is unsafe.\n"; diff --git a/lib/libc/stdio/makebuf.c b/lib/libc/stdio/makebuf.c index 34fe8e6e9731..8188f50f332e 100644 --- a/lib/libc/stdio/makebuf.c +++ b/lib/libc/stdio/makebuf.c @@ -58,10 +58,10 @@ static char sccsid[] = "@(#)makebuf.c 8.1 (Berkeley) 6/4/93"; */ void __smakebuf(fp) - register FILE *fp; + FILE *fp; { - register void *p; - register int flags; + void *p; + int flags; size_t size; int couldbetty; @@ -91,7 +91,7 @@ __smakebuf(fp) */ int __swhatbuf(fp, bufsize, couldbetty) - register FILE *fp; + FILE *fp; size_t *bufsize; int *couldbetty; { diff --git a/lib/libc/stdio/mktemp.c b/lib/libc/stdio/mktemp.c index e4c8c2872052..a0d396d524ed 100644 --- a/lib/libc/stdio/mktemp.c +++ b/lib/libc/stdio/mktemp.c @@ -104,11 +104,11 @@ mktemp(path) static int _gettemp(path, doopen, domkdir, slen) char *path; - register int *doopen; + int *doopen; int domkdir; int slen; { - register char *start, *trv, *suffp; + char *start, *trv, *suffp; char *pad; struct stat sbuf; int rval; diff --git a/lib/libc/stdio/perror.c b/lib/libc/stdio/perror.c index c137e063225e..77886bf604dd 100644 --- a/lib/libc/stdio/perror.c +++ b/lib/libc/stdio/perror.c @@ -50,7 +50,7 @@ void perror(s) const char *s; { - register struct iovec *v; + struct iovec *v; struct iovec iov[4]; v = iov; diff --git a/lib/libc/stdio/putc.c b/lib/libc/stdio/putc.c index 72d6bbff12d8..ca32e5420eda 100644 --- a/lib/libc/stdio/putc.c +++ b/lib/libc/stdio/putc.c @@ -58,7 +58,7 @@ static const char rcsid[] = int putc(c, fp) int c; - register FILE *fp; + FILE *fp; { int retval; FLOCKFILE(fp); diff --git a/lib/libc/stdio/putchar.c b/lib/libc/stdio/putchar.c index a611fbbb0679..f1c727bbf61b 100644 --- a/lib/libc/stdio/putchar.c +++ b/lib/libc/stdio/putchar.c @@ -63,7 +63,7 @@ putchar(c) int c; { int retval; - register FILE *so = stdout; + FILE *so = stdout; FLOCKFILE(so); retval = __sputc(c, so); diff --git a/lib/libc/stdio/setbuffer.c b/lib/libc/stdio/setbuffer.c index 7db2d4d79a4e..cb770bed60bc 100644 --- a/lib/libc/stdio/setbuffer.c +++ b/lib/libc/stdio/setbuffer.c @@ -46,7 +46,7 @@ static const char rcsid[] = void setbuffer(fp, buf, size) - register FILE *fp; + FILE *fp; char *buf; int size; { diff --git a/lib/libc/stdio/setvbuf.c b/lib/libc/stdio/setvbuf.c index c2179ca28bf1..f4167358f4b5 100644 --- a/lib/libc/stdio/setvbuf.c +++ b/lib/libc/stdio/setvbuf.c @@ -55,12 +55,12 @@ static const char rcsid[] = */ int setvbuf(fp, buf, mode, size) - register FILE *fp; + FILE *fp; char *buf; - register int mode; - register size_t size; + int mode; + size_t size; { - register int ret, flags; + int ret, flags; size_t iosize; int ttyflag; diff --git a/lib/libc/stdio/stdio.c b/lib/libc/stdio/stdio.c index 7f66fa8ab591..0358f101f480 100644 --- a/lib/libc/stdio/stdio.c +++ b/lib/libc/stdio/stdio.c @@ -60,7 +60,7 @@ __sread(cookie, buf, n) char *buf; int n; { - register FILE *fp = cookie; + FILE *fp = cookie; return(_read(fp->_file, buf, (size_t)n)); } @@ -71,7 +71,7 @@ __swrite(cookie, buf, n) char const *buf; int n; { - register FILE *fp = cookie; + FILE *fp = cookie; return (_write(fp->_file, buf, (size_t)n)); } @@ -82,7 +82,7 @@ __sseek(cookie, offset, whence) fpos_t offset; int whence; { - register FILE *fp = cookie; + FILE *fp = cookie; return (lseek(fp->_file, (off_t)offset, whence)); } diff --git a/lib/libc/stdio/vfprintf.c b/lib/libc/stdio/vfprintf.c index 03c3706d8830..15b1c64d6697 100644 --- a/lib/libc/stdio/vfprintf.c +++ b/lib/libc/stdio/vfprintf.c @@ -189,8 +189,8 @@ static char * __ultoa(u_long val, char *endp, int base, int octzero, char *xdigs, int needgrp, char thousep, const char *grp) { - register char *cp = endp; - register long sval; + char *cp = endp; + long sval; int ndig; /* diff --git a/lib/libc/stdio/vfscanf.c b/lib/libc/stdio/vfscanf.c index 5181a4eb54bd..c8644e806848 100644 --- a/lib/libc/stdio/vfscanf.c +++ b/lib/libc/stdio/vfscanf.c @@ -702,10 +702,10 @@ match_failure: */ static u_char * __sccl(tab, fmt) - register char *tab; - register u_char *fmt; + char *tab; + u_char *fmt; { - register int c, n, v, i; + int c, n, v, i; /* first `clear' the whole table */ c = *fmt++; /* first char hat => negated scanset */ diff --git a/lib/libc/stdio/wbuf.c b/lib/libc/stdio/wbuf.c index 54da709e77f2..a354345bf42c 100644 --- a/lib/libc/stdio/wbuf.c +++ b/lib/libc/stdio/wbuf.c @@ -54,10 +54,10 @@ static const char rcsid[] = */ int __swbuf(c, fp) - register int c; - register FILE *fp; + int c; + FILE *fp; { - register int n; + int n; /* * In case we cannot write, or longjmp takes us out early, diff --git a/lib/libc/stdio/wsetup.c b/lib/libc/stdio/wsetup.c index 074a880e66d5..be5c0a6c8580 100644 --- a/lib/libc/stdio/wsetup.c +++ b/lib/libc/stdio/wsetup.c @@ -53,7 +53,7 @@ static const char rcsid[] = */ int __swsetup(fp) - register FILE *fp; + FILE *fp; { /* make sure stdio is set up */ if (!__sdidinit) |
