|
|
c6d234 |
commit 2e09a79ada1f6d92809a037d41895e3d9302ad59
|
|
|
c6d234 |
Author: Joseph Myers <joseph@codesourcery.com>
|
|
|
c6d234 |
Date: Fri Jun 7 22:24:35 2013 +0000
|
|
|
c6d234 |
|
|
|
c6d234 |
Avoid use of "register" as optimization hint.
|
|
|
c6d234 |
|
|
|
c6d234 |
Conflicts:
|
|
|
c6d234 |
hurd/hurdmalloc.c
|
|
|
c6d234 |
(Adjusted for missing previous backport.)
|
|
|
c6d234 |
resolv/arpa/nameser.h
|
|
|
c6d234 |
resolv/compat-gethnamaddr.c
|
|
|
c6d234 |
resolv/ns_print.c
|
|
|
c6d234 |
resolv/res_init.c
|
|
|
c6d234 |
resolv/res_mkquery.c
|
|
|
c6d234 |
(Changes were already part of the stub resolver rebase
|
|
|
c6d234 |
in glibc-rh677316-resolv.patch.)
|
|
|
c6d234 |
time/tzset.c
|
|
|
c6d234 |
(Changes were already part of the fix for rhbz#1234449.)
|
|
|
c6d234 |
wcsmbs/wcsrchr.c
|
|
|
c6d234 |
(Resolve textual conflict due to glibc-rh731837-16.patch.)
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/bits/byteswap.h b/bits/byteswap.h
|
|
|
c6d234 |
index 7e5daedb83e29a4c..068a824539a4a302 100644
|
|
|
c6d234 |
--- a/bits/byteswap.h
|
|
|
c6d234 |
+++ b/bits/byteswap.h
|
|
|
c6d234 |
@@ -48,7 +48,7 @@ __bswap_32 (unsigned int __bsx)
|
|
|
c6d234 |
# else
|
|
|
c6d234 |
# define __bswap_32(x) \
|
|
|
c6d234 |
(__extension__ \
|
|
|
c6d234 |
- ({ register unsigned int __bsx = (x); __bswap_constant_32 (__bsx); }))
|
|
|
c6d234 |
+ ({ unsigned int __bsx = (x); __bswap_constant_32 (__bsx); }))
|
|
|
c6d234 |
# endif
|
|
|
c6d234 |
#else
|
|
|
c6d234 |
static __inline unsigned int
|
|
|
c6d234 |
diff --git a/crypt/crypt.c b/crypt/crypt.c
|
|
|
c6d234 |
index 3360639139715348..34b8f2e280263f7a 100644
|
|
|
c6d234 |
--- a/crypt/crypt.c
|
|
|
c6d234 |
+++ b/crypt/crypt.c
|
|
|
c6d234 |
@@ -88,8 +88,8 @@ _ufc_doit_r(itr, __data, res)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
int i;
|
|
|
c6d234 |
long64 l, r, s, *k;
|
|
|
c6d234 |
- register long64 *sb01 = (long64*)__data->sb0;
|
|
|
c6d234 |
- register long64 *sb23 = (long64*)__data->sb2;
|
|
|
c6d234 |
+ long64 *sb01 = (long64*)__data->sb0;
|
|
|
c6d234 |
+ long64 *sb23 = (long64*)__data->sb2;
|
|
|
c6d234 |
|
|
|
c6d234 |
l = (((long64)res[0]) << 32) | ((long64)res[1]);
|
|
|
c6d234 |
r = (((long64)res[2]) << 32) | ((long64)res[3]);
|
|
|
c6d234 |
diff --git a/debug/stpcpy_chk.c b/debug/stpcpy_chk.c
|
|
|
c6d234 |
index 2bb7b518447b8b66..3934d132d930093c 100644
|
|
|
c6d234 |
--- a/debug/stpcpy_chk.c
|
|
|
c6d234 |
+++ b/debug/stpcpy_chk.c
|
|
|
c6d234 |
@@ -29,8 +29,8 @@ __stpcpy_chk (dest, src, destlen)
|
|
|
c6d234 |
const char *src;
|
|
|
c6d234 |
size_t destlen;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register char *d = dest;
|
|
|
c6d234 |
- register const char *s = src;
|
|
|
c6d234 |
+ char *d = dest;
|
|
|
c6d234 |
+ const char *s = src;
|
|
|
c6d234 |
|
|
|
c6d234 |
do
|
|
|
c6d234 |
{
|
|
|
c6d234 |
diff --git a/debug/wcscat_chk.c b/debug/wcscat_chk.c
|
|
|
c6d234 |
index 27d9ee5f90853048..c2ac552c5fd34827 100644
|
|
|
c6d234 |
--- a/debug/wcscat_chk.c
|
|
|
c6d234 |
+++ b/debug/wcscat_chk.c
|
|
|
c6d234 |
@@ -23,8 +23,8 @@
|
|
|
c6d234 |
wchar_t *
|
|
|
c6d234 |
__wcscat_chk (wchar_t *dest, const wchar_t *src, size_t destlen)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register wchar_t *s1 = dest;
|
|
|
c6d234 |
- register const wchar_t *s2 = src;
|
|
|
c6d234 |
+ wchar_t *s1 = dest;
|
|
|
c6d234 |
+ const wchar_t *s2 = src;
|
|
|
c6d234 |
wchar_t c;
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Find the end of the string. */
|
|
|
c6d234 |
diff --git a/gmon/gmon.c b/gmon/gmon.c
|
|
|
c6d234 |
index 0d2ed0594e4baf1e..9774d57ccced2079 100644
|
|
|
c6d234 |
--- a/gmon/gmon.c
|
|
|
c6d234 |
+++ b/gmon/gmon.c
|
|
|
c6d234 |
@@ -102,7 +102,7 @@ __monstartup (lowpc, highpc)
|
|
|
c6d234 |
u_long lowpc;
|
|
|
c6d234 |
u_long highpc;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register int o;
|
|
|
c6d234 |
+ int o;
|
|
|
c6d234 |
char *cp;
|
|
|
c6d234 |
struct gmonparam *p = &_gmonparam;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/gmon/mcount.c b/gmon/mcount.c
|
|
|
c6d234 |
index 5a4a2499d461acc7..0c2acd2890dd7ed9 100644
|
|
|
c6d234 |
--- a/gmon/mcount.c
|
|
|
c6d234 |
+++ b/gmon/mcount.c
|
|
|
c6d234 |
@@ -58,10 +58,10 @@ static char sccsid[] = "@(#)mcount.c 8.1 (Berkeley) 6/4/93";
|
|
|
c6d234 |
*/
|
|
|
c6d234 |
_MCOUNT_DECL(frompc, selfpc) /* _mcount; may be static, inline, etc */
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register ARCINDEX *frompcindex;
|
|
|
c6d234 |
- register struct tostruct *top, *prevtop;
|
|
|
c6d234 |
- register struct gmonparam *p;
|
|
|
c6d234 |
- register ARCINDEX toindex;
|
|
|
c6d234 |
+ ARCINDEX *frompcindex;
|
|
|
c6d234 |
+ struct tostruct *top, *prevtop;
|
|
|
c6d234 |
+ struct gmonparam *p;
|
|
|
c6d234 |
+ ARCINDEX toindex;
|
|
|
c6d234 |
int i;
|
|
|
c6d234 |
|
|
|
c6d234 |
p = &_gmonparam;
|
|
|
c6d234 |
diff --git a/hurd/hurdmalloc.c b/hurd/hurdmalloc.c
|
|
|
c6d234 |
index 12da1f2abc50ef0a..886b40208da56866 100644
|
|
|
c6d234 |
--- a/hurd/hurdmalloc.c
|
|
|
c6d234 |
+++ b/hurd/hurdmalloc.c
|
|
|
c6d234 |
@@ -171,10 +171,10 @@ malloc_init (void)
|
|
|
c6d234 |
static void
|
|
|
c6d234 |
more_memory(int size, free_list_t fl)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register int amount;
|
|
|
c6d234 |
- register int n;
|
|
|
c6d234 |
+ int amount;
|
|
|
c6d234 |
+ int n;
|
|
|
c6d234 |
vm_address_t where;
|
|
|
c6d234 |
- register header_t h;
|
|
|
c6d234 |
+ header_t h;
|
|
|
c6d234 |
kern_return_t r;
|
|
|
c6d234 |
|
|
|
c6d234 |
if (size <= vm_page_size) {
|
|
|
c6d234 |
@@ -203,11 +203,11 @@ more_memory(int size, free_list_t fl)
|
|
|
c6d234 |
/* Declaration changed to standard one for GNU. */
|
|
|
c6d234 |
void *
|
|
|
c6d234 |
malloc(size)
|
|
|
c6d234 |
- register size_t size;
|
|
|
c6d234 |
+ size_t size;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register int i, n;
|
|
|
c6d234 |
- register free_list_t fl;
|
|
|
c6d234 |
- register header_t h;
|
|
|
c6d234 |
+ int i, n;
|
|
|
c6d234 |
+ free_list_t fl;
|
|
|
c6d234 |
+ header_t h;
|
|
|
c6d234 |
|
|
|
c6d234 |
if ((int) size < 0) /* sanity check */
|
|
|
c6d234 |
return 0;
|
|
|
c6d234 |
@@ -272,9 +272,9 @@ void
|
|
|
c6d234 |
free(base)
|
|
|
c6d234 |
void *base;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register header_t h;
|
|
|
c6d234 |
- register free_list_t fl;
|
|
|
c6d234 |
- register int i;
|
|
|
c6d234 |
+ header_t h;
|
|
|
c6d234 |
+ free_list_t fl;
|
|
|
c6d234 |
+ int i;
|
|
|
c6d234 |
|
|
|
c6d234 |
if (base == 0)
|
|
|
c6d234 |
return;
|
|
|
c6d234 |
@@ -322,9 +322,9 @@ realloc(old_base, new_size)
|
|
|
c6d234 |
void *old_base;
|
|
|
c6d234 |
size_t new_size;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register header_t h;
|
|
|
c6d234 |
- register free_list_t fl;
|
|
|
c6d234 |
- register int i;
|
|
|
c6d234 |
+ header_t h;
|
|
|
c6d234 |
+ free_list_t fl;
|
|
|
c6d234 |
+ int i;
|
|
|
c6d234 |
unsigned int old_size;
|
|
|
c6d234 |
char *new_base;
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -382,10 +382,10 @@ realloc(old_base, new_size)
|
|
|
c6d234 |
void
|
|
|
c6d234 |
print_malloc_free_list()
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register int i, size;
|
|
|
c6d234 |
- register free_list_t fl;
|
|
|
c6d234 |
- register int n;
|
|
|
c6d234 |
- register header_t h;
|
|
|
c6d234 |
+ int i, size;
|
|
|
c6d234 |
+ free_list_t fl;
|
|
|
c6d234 |
+ int n;
|
|
|
c6d234 |
+ header_t h;
|
|
|
c6d234 |
int total_used = 0;
|
|
|
c6d234 |
int total_free = 0;
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -416,7 +416,7 @@ malloc_fork_prepare(void)
|
|
|
c6d234 |
* malloc critical section.
|
|
|
c6d234 |
*/
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register int i;
|
|
|
c6d234 |
+ int i;
|
|
|
c6d234 |
|
|
|
c6d234 |
for (i = 0; i < NBUCKETS; i++) {
|
|
|
c6d234 |
spin_lock(&malloc_free_list[i].lock);
|
|
|
c6d234 |
@@ -429,7 +429,7 @@ malloc_fork_parent(void)
|
|
|
c6d234 |
* Called in the parent process after a fork() to resume normal operation.
|
|
|
c6d234 |
*/
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register int i;
|
|
|
c6d234 |
+ int i;
|
|
|
c6d234 |
|
|
|
c6d234 |
for (i = NBUCKETS-1; i >= 0; i--) {
|
|
|
c6d234 |
spin_unlock(&malloc_free_list[i].lock);
|
|
|
c6d234 |
@@ -442,7 +442,7 @@ malloc_fork_child(void)
|
|
|
c6d234 |
* Called in the child process after a fork() to resume normal operation.
|
|
|
c6d234 |
*/
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register int i;
|
|
|
c6d234 |
+ int i;
|
|
|
c6d234 |
|
|
|
c6d234 |
for (i = NBUCKETS-1; i >= 0; i--) {
|
|
|
c6d234 |
spin_unlock(&malloc_free_list[i].lock);
|
|
|
c6d234 |
diff --git a/include/rpc/auth_des.h b/include/rpc/auth_des.h
|
|
|
c6d234 |
index c14f069668810930..0e9db1a226f4df95 100644
|
|
|
c6d234 |
--- a/include/rpc/auth_des.h
|
|
|
c6d234 |
+++ b/include/rpc/auth_des.h
|
|
|
c6d234 |
@@ -7,12 +7,12 @@ libc_hidden_proto (getsecretkey)
|
|
|
c6d234 |
libc_hidden_proto (rtime)
|
|
|
c6d234 |
|
|
|
c6d234 |
extern bool_t xdr_authdes_cred (XDR *xdrs, struct authdes_cred *cred);
|
|
|
c6d234 |
-extern bool_t xdr_authdes_verf (register XDR *xdrs,
|
|
|
c6d234 |
- register struct authdes_verf *verf);
|
|
|
c6d234 |
+extern bool_t xdr_authdes_verf (XDR *xdrs,
|
|
|
c6d234 |
+ struct authdes_verf *verf);
|
|
|
c6d234 |
struct svc_req;
|
|
|
c6d234 |
struct rpc_msg;
|
|
|
c6d234 |
-extern enum auth_stat _svcauth_des (register struct svc_req *rqst,
|
|
|
c6d234 |
- register struct rpc_msg *msg);
|
|
|
c6d234 |
+extern enum auth_stat _svcauth_des (struct svc_req *rqst,
|
|
|
c6d234 |
+ struct rpc_msg *msg);
|
|
|
c6d234 |
|
|
|
c6d234 |
|
|
|
c6d234 |
#define DECLARE_NSS_PROTOTYPES(service) \
|
|
|
c6d234 |
diff --git a/inet/inet_lnaof.c b/inet/inet_lnaof.c
|
|
|
c6d234 |
index 0e115a4420920225..c993c8b8471f4215 100644
|
|
|
c6d234 |
--- a/inet/inet_lnaof.c
|
|
|
c6d234 |
+++ b/inet/inet_lnaof.c
|
|
|
c6d234 |
@@ -44,7 +44,7 @@ in_addr_t
|
|
|
c6d234 |
inet_lnaof(in)
|
|
|
c6d234 |
struct in_addr in;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register u_int32_t i = ntohl(in.s_addr);
|
|
|
c6d234 |
+ u_int32_t i = ntohl(in.s_addr);
|
|
|
c6d234 |
|
|
|
c6d234 |
if (IN_CLASSA(i))
|
|
|
c6d234 |
return ((i)&IN_CLASSA_HOST);
|
|
|
c6d234 |
diff --git a/inet/inet_net.c b/inet/inet_net.c
|
|
|
c6d234 |
index d58f1ae8e3d89bf5..68e232f3d3dc1e1d 100644
|
|
|
c6d234 |
--- a/inet/inet_net.c
|
|
|
c6d234 |
+++ b/inet/inet_net.c
|
|
|
c6d234 |
@@ -43,10 +43,10 @@ static char sccsid[] = "@(#)inet_network.c 8.1 (Berkeley) 6/4/93";
|
|
|
c6d234 |
*/
|
|
|
c6d234 |
u_int32_t
|
|
|
c6d234 |
inet_network(cp)
|
|
|
c6d234 |
- register const char *cp;
|
|
|
c6d234 |
+ const char *cp;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register u_int32_t val, base, n, i;
|
|
|
c6d234 |
- register char c;
|
|
|
c6d234 |
+ u_int32_t val, base, n, i;
|
|
|
c6d234 |
+ char c;
|
|
|
c6d234 |
u_int32_t parts[4], *pp = parts;
|
|
|
c6d234 |
int digit;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/inet/inet_netof.c b/inet/inet_netof.c
|
|
|
c6d234 |
index e49177a0f4b79bbf..9b0aed992e9ba65f 100644
|
|
|
c6d234 |
--- a/inet/inet_netof.c
|
|
|
c6d234 |
+++ b/inet/inet_netof.c
|
|
|
c6d234 |
@@ -43,7 +43,7 @@ in_addr_t
|
|
|
c6d234 |
inet_netof(in)
|
|
|
c6d234 |
struct in_addr in;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register u_int32_t i = ntohl(in.s_addr);
|
|
|
c6d234 |
+ u_int32_t i = ntohl(in.s_addr);
|
|
|
c6d234 |
|
|
|
c6d234 |
if (IN_CLASSA(i))
|
|
|
c6d234 |
return (((i)&IN_CLASSA_NET) >> IN_CLASSA_NSHIFT);
|
|
|
c6d234 |
diff --git a/inet/rcmd.c b/inet/rcmd.c
|
|
|
c6d234 |
index af4fad34c95e9af7..7da79b0730d9ad3a 100644
|
|
|
c6d234 |
--- a/inet/rcmd.c
|
|
|
c6d234 |
+++ b/inet/rcmd.c
|
|
|
c6d234 |
@@ -769,8 +769,8 @@ __validuser2_sa(hostf, ra, ralen, luser, ruser, rhost)
|
|
|
c6d234 |
size_t ralen;
|
|
|
c6d234 |
const char *luser, *ruser, *rhost;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register const char *user;
|
|
|
c6d234 |
- register char *p;
|
|
|
c6d234 |
+ const char *user;
|
|
|
c6d234 |
+ char *p;
|
|
|
c6d234 |
int hcheck, ucheck;
|
|
|
c6d234 |
char *buf = NULL;
|
|
|
c6d234 |
size_t bufsize = 0;
|
|
|
c6d234 |
diff --git a/io/fts.c b/io/fts.c
|
|
|
c6d234 |
index 5ba202b8aa8b6669..c9c054d6d36ab20f 100644
|
|
|
c6d234 |
--- a/io/fts.c
|
|
|
c6d234 |
+++ b/io/fts.c
|
|
|
c6d234 |
@@ -87,12 +87,12 @@ static int fts_safe_changedir (FTS *, FTSENT *, int, const char *)
|
|
|
c6d234 |
FTS *
|
|
|
c6d234 |
fts_open(argv, options, compar)
|
|
|
c6d234 |
char * const *argv;
|
|
|
c6d234 |
- register int options;
|
|
|
c6d234 |
+ int options;
|
|
|
c6d234 |
int (*compar) (const FTSENT **, const FTSENT **);
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register FTS *sp;
|
|
|
c6d234 |
- register FTSENT *p, *root;
|
|
|
c6d234 |
- register int nitems;
|
|
|
c6d234 |
+ FTS *sp;
|
|
|
c6d234 |
+ FTSENT *p, *root;
|
|
|
c6d234 |
+ int nitems;
|
|
|
c6d234 |
FTSENT *parent = NULL;
|
|
|
c6d234 |
FTSENT *tmp;
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -204,10 +204,10 @@ static void
|
|
|
c6d234 |
internal_function
|
|
|
c6d234 |
fts_load(sp, p)
|
|
|
c6d234 |
FTS *sp;
|
|
|
c6d234 |
- register FTSENT *p;
|
|
|
c6d234 |
+ FTSENT *p;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register int len;
|
|
|
c6d234 |
- register char *cp;
|
|
|
c6d234 |
+ int len;
|
|
|
c6d234 |
+ char *cp;
|
|
|
c6d234 |
|
|
|
c6d234 |
/*
|
|
|
c6d234 |
* Load the stream structure for the next traversal. Since we don't
|
|
|
c6d234 |
@@ -231,7 +231,7 @@ int
|
|
|
c6d234 |
fts_close(sp)
|
|
|
c6d234 |
FTS *sp;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register FTSENT *freep, *p;
|
|
|
c6d234 |
+ FTSENT *freep, *p;
|
|
|
c6d234 |
int saved_errno;
|
|
|
c6d234 |
|
|
|
c6d234 |
/*
|
|
|
c6d234 |
@@ -283,11 +283,11 @@ fts_close(sp)
|
|
|
c6d234 |
|
|
|
c6d234 |
FTSENT *
|
|
|
c6d234 |
fts_read(sp)
|
|
|
c6d234 |
- register FTS *sp;
|
|
|
c6d234 |
+ FTS *sp;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register FTSENT *p, *tmp;
|
|
|
c6d234 |
- register int instr;
|
|
|
c6d234 |
- register char *t;
|
|
|
c6d234 |
+ FTSENT *p, *tmp;
|
|
|
c6d234 |
+ int instr;
|
|
|
c6d234 |
+ char *t;
|
|
|
c6d234 |
int saved_errno;
|
|
|
c6d234 |
|
|
|
c6d234 |
/* If finished or unrecoverable error, return NULL. */
|
|
|
c6d234 |
@@ -495,10 +495,10 @@ fts_set(sp, p, instr)
|
|
|
c6d234 |
|
|
|
c6d234 |
FTSENT *
|
|
|
c6d234 |
fts_children(sp, instr)
|
|
|
c6d234 |
- register FTS *sp;
|
|
|
c6d234 |
+ FTS *sp;
|
|
|
c6d234 |
int instr;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register FTSENT *p;
|
|
|
c6d234 |
+ FTSENT *p;
|
|
|
c6d234 |
int fd;
|
|
|
c6d234 |
|
|
|
c6d234 |
if (instr != 0 && instr != FTS_NAMEONLY) {
|
|
|
c6d234 |
@@ -578,12 +578,12 @@ fts_children(sp, instr)
|
|
|
c6d234 |
static FTSENT *
|
|
|
c6d234 |
internal_function
|
|
|
c6d234 |
fts_build(sp, type)
|
|
|
c6d234 |
- register FTS *sp;
|
|
|
c6d234 |
+ FTS *sp;
|
|
|
c6d234 |
int type;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register struct dirent *dp;
|
|
|
c6d234 |
- register FTSENT *p, *head;
|
|
|
c6d234 |
- register int nitems;
|
|
|
c6d234 |
+ struct dirent *dp;
|
|
|
c6d234 |
+ FTSENT *p, *head;
|
|
|
c6d234 |
+ int nitems;
|
|
|
c6d234 |
FTSENT *cur, *tail;
|
|
|
c6d234 |
DIR *dirp;
|
|
|
c6d234 |
void *oldaddr;
|
|
|
c6d234 |
@@ -848,12 +848,12 @@ static u_short
|
|
|
c6d234 |
internal_function
|
|
|
c6d234 |
fts_stat(sp, p, follow)
|
|
|
c6d234 |
FTS *sp;
|
|
|
c6d234 |
- register FTSENT *p;
|
|
|
c6d234 |
+ FTSENT *p;
|
|
|
c6d234 |
int follow;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register FTSENT *t;
|
|
|
c6d234 |
- register dev_t dev;
|
|
|
c6d234 |
- register ino_t ino;
|
|
|
c6d234 |
+ FTSENT *t;
|
|
|
c6d234 |
+ dev_t dev;
|
|
|
c6d234 |
+ ino_t ino;
|
|
|
c6d234 |
struct stat *sbp, sb;
|
|
|
c6d234 |
int saved_errno;
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -933,9 +933,9 @@ internal_function
|
|
|
c6d234 |
fts_sort(sp, head, nitems)
|
|
|
c6d234 |
FTS *sp;
|
|
|
c6d234 |
FTSENT *head;
|
|
|
c6d234 |
- register int nitems;
|
|
|
c6d234 |
+ int nitems;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register FTSENT **ap, *p;
|
|
|
c6d234 |
+ FTSENT **ap, *p;
|
|
|
c6d234 |
|
|
|
c6d234 |
/*
|
|
|
c6d234 |
* Construct an array of pointers to the structures and call qsort(3).
|
|
|
c6d234 |
@@ -973,7 +973,7 @@ fts_alloc(sp, name, namelen)
|
|
|
c6d234 |
const char *name;
|
|
|
c6d234 |
size_t namelen;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register FTSENT *p;
|
|
|
c6d234 |
+ FTSENT *p;
|
|
|
c6d234 |
size_t len;
|
|
|
c6d234 |
|
|
|
c6d234 |
/*
|
|
|
c6d234 |
@@ -1009,9 +1009,9 @@ fts_alloc(sp, name, namelen)
|
|
|
c6d234 |
static void
|
|
|
c6d234 |
internal_function
|
|
|
c6d234 |
fts_lfree(head)
|
|
|
c6d234 |
- register FTSENT *head;
|
|
|
c6d234 |
+ FTSENT *head;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register FTSENT *p;
|
|
|
c6d234 |
+ FTSENT *p;
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Free a linked list of structures. */
|
|
|
c6d234 |
while ((p = head)) {
|
|
|
c6d234 |
diff --git a/libio/fileops.c b/libio/fileops.c
|
|
|
c6d234 |
index ff5941bd2f20b7de..ae56437168efc524 100644
|
|
|
c6d234 |
--- a/libio/fileops.c
|
|
|
c6d234 |
+++ b/libio/fileops.c
|
|
|
c6d234 |
@@ -1327,7 +1327,7 @@ _IO_new_file_xsputn (f, data, n)
|
|
|
c6d234 |
const void *data;
|
|
|
c6d234 |
_IO_size_t n;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register const char *s = (const char *) data;
|
|
|
c6d234 |
+ const char *s = (const char *) data;
|
|
|
c6d234 |
_IO_size_t to_do = n;
|
|
|
c6d234 |
int must_flush = 0;
|
|
|
c6d234 |
_IO_size_t count = 0;
|
|
|
c6d234 |
@@ -1344,7 +1344,7 @@ _IO_new_file_xsputn (f, data, n)
|
|
|
c6d234 |
count = f->_IO_buf_end - f->_IO_write_ptr;
|
|
|
c6d234 |
if (count >= n)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register const char *p;
|
|
|
c6d234 |
+ const char *p;
|
|
|
c6d234 |
for (p = s + n; p > s; )
|
|
|
c6d234 |
{
|
|
|
c6d234 |
if (*--p == '\n')
|
|
|
c6d234 |
@@ -1410,9 +1410,9 @@ _IO_file_xsgetn (fp, data, n)
|
|
|
c6d234 |
void *data;
|
|
|
c6d234 |
_IO_size_t n;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register _IO_size_t want, have;
|
|
|
c6d234 |
- register _IO_ssize_t count;
|
|
|
c6d234 |
- register char *s = data;
|
|
|
c6d234 |
+ _IO_size_t want, have;
|
|
|
c6d234 |
+ _IO_ssize_t count;
|
|
|
c6d234 |
+ char *s = data;
|
|
|
c6d234 |
|
|
|
c6d234 |
want = n;
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -1512,9 +1512,9 @@ _IO_file_xsgetn_mmap (fp, data, n)
|
|
|
c6d234 |
void *data;
|
|
|
c6d234 |
_IO_size_t n;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register _IO_size_t have;
|
|
|
c6d234 |
+ _IO_size_t have;
|
|
|
c6d234 |
char *read_ptr = fp->_IO_read_ptr;
|
|
|
c6d234 |
- register char *s = (char *) data;
|
|
|
c6d234 |
+ char *s = (char *) data;
|
|
|
c6d234 |
|
|
|
c6d234 |
have = fp->_IO_read_end - fp->_IO_read_ptr;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/libio/iofopncook.c b/libio/iofopncook.c
|
|
|
c6d234 |
index b1c0d7f6ccc4db15..8240601d4eec468b 100644
|
|
|
c6d234 |
--- a/libio/iofopncook.c
|
|
|
c6d234 |
+++ b/libio/iofopncook.c
|
|
|
c6d234 |
@@ -30,9 +30,9 @@
|
|
|
c6d234 |
#include <shlib-compat.h>
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Prototyped for local functions. */
|
|
|
c6d234 |
-static _IO_ssize_t _IO_cookie_read (register _IO_FILE* fp, void* buf,
|
|
|
c6d234 |
+static _IO_ssize_t _IO_cookie_read (_IO_FILE* fp, void* buf,
|
|
|
c6d234 |
_IO_ssize_t size);
|
|
|
c6d234 |
-static _IO_ssize_t _IO_cookie_write (register _IO_FILE* fp,
|
|
|
c6d234 |
+static _IO_ssize_t _IO_cookie_write (_IO_FILE* fp,
|
|
|
c6d234 |
const void* buf, _IO_ssize_t size);
|
|
|
c6d234 |
static _IO_off64_t _IO_cookie_seek (_IO_FILE *fp, _IO_off64_t offset, int dir);
|
|
|
c6d234 |
static _IO_off64_t _IO_cookie_seekoff (_IO_FILE *fp, _IO_off64_t offset,
|
|
|
c6d234 |
diff --git a/libio/oldfileops.c b/libio/oldfileops.c
|
|
|
c6d234 |
index 7060ea8c346d15cc..0d778fa253822171 100644
|
|
|
c6d234 |
--- a/libio/oldfileops.c
|
|
|
c6d234 |
+++ b/libio/oldfileops.c
|
|
|
c6d234 |
@@ -697,7 +697,7 @@ _IO_old_file_xsputn (f, data, n)
|
|
|
c6d234 |
const void *data;
|
|
|
c6d234 |
_IO_size_t n;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register const char *s = (char *) data;
|
|
|
c6d234 |
+ const char *s = (char *) data;
|
|
|
c6d234 |
_IO_size_t to_do = n;
|
|
|
c6d234 |
int must_flush = 0;
|
|
|
c6d234 |
_IO_size_t count = 0;
|
|
|
c6d234 |
@@ -714,7 +714,7 @@ _IO_old_file_xsputn (f, data, n)
|
|
|
c6d234 |
count = f->_IO_buf_end - f->_IO_write_ptr;
|
|
|
c6d234 |
if (count >= n)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register const char *p;
|
|
|
c6d234 |
+ const char *p;
|
|
|
c6d234 |
for (p = s + n; p > s; )
|
|
|
c6d234 |
{
|
|
|
c6d234 |
if (*--p == '\n')
|
|
|
c6d234 |
@@ -746,8 +746,8 @@ _IO_old_file_xsputn (f, data, n)
|
|
|
c6d234 |
}
|
|
|
c6d234 |
else
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register char *p = f->_IO_write_ptr;
|
|
|
c6d234 |
- register int i = (int) count;
|
|
|
c6d234 |
+ char *p = f->_IO_write_ptr;
|
|
|
c6d234 |
+ int i = (int) count;
|
|
|
c6d234 |
while (--i >= 0)
|
|
|
c6d234 |
*p++ = *s++;
|
|
|
c6d234 |
f->_IO_write_ptr = p;
|
|
|
c6d234 |
diff --git a/libio/wfileops.c b/libio/wfileops.c
|
|
|
c6d234 |
index 1fe3439d21152fce..5ed1a922ae6ccbd0 100644
|
|
|
c6d234 |
--- a/libio/wfileops.c
|
|
|
c6d234 |
+++ b/libio/wfileops.c
|
|
|
c6d234 |
@@ -966,7 +966,7 @@ _IO_wfile_xsputn (f, data, n)
|
|
|
c6d234 |
const void *data;
|
|
|
c6d234 |
_IO_size_t n;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register const wchar_t *s = (const wchar_t *) data;
|
|
|
c6d234 |
+ const wchar_t *s = (const wchar_t *) data;
|
|
|
c6d234 |
_IO_size_t to_do = n;
|
|
|
c6d234 |
int must_flush = 0;
|
|
|
c6d234 |
_IO_size_t count;
|
|
|
c6d234 |
@@ -984,7 +984,7 @@ _IO_wfile_xsputn (f, data, n)
|
|
|
c6d234 |
count = f->_wide_data->_IO_buf_end - f->_wide_data->_IO_write_ptr;
|
|
|
c6d234 |
if (count >= n)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register const wchar_t *p;
|
|
|
c6d234 |
+ const wchar_t *p;
|
|
|
c6d234 |
for (p = s + n; p > s; )
|
|
|
c6d234 |
{
|
|
|
c6d234 |
if (*--p == L'\n')
|
|
|
c6d234 |
@@ -1014,8 +1014,8 @@ _IO_wfile_xsputn (f, data, n)
|
|
|
c6d234 |
}
|
|
|
c6d234 |
else
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register wchar_t *p = f->_wide_data->_IO_write_ptr;
|
|
|
c6d234 |
- register int i = (int) count;
|
|
|
c6d234 |
+ wchar_t *p = f->_wide_data->_IO_write_ptr;
|
|
|
c6d234 |
+ int i = (int) count;
|
|
|
c6d234 |
while (--i >= 0)
|
|
|
c6d234 |
*p++ = *s++;
|
|
|
c6d234 |
f->_wide_data->_IO_write_ptr = p;
|
|
|
c6d234 |
diff --git a/mach/msgserver.c b/mach/msgserver.c
|
|
|
c6d234 |
index 915a08868a34378d..b087e7263511b554 100644
|
|
|
c6d234 |
--- a/mach/msgserver.c
|
|
|
c6d234 |
+++ b/mach/msgserver.c
|
|
|
c6d234 |
@@ -78,8 +78,8 @@ __mach_msg_server_timeout (boolean_t (*demux) (mach_msg_header_t *request,
|
|
|
c6d234 |
mach_msg_option_t option,
|
|
|
c6d234 |
mach_msg_timeout_t timeout)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register mig_reply_header_t *request, *reply;
|
|
|
c6d234 |
- register mach_msg_return_t mr;
|
|
|
c6d234 |
+ mig_reply_header_t *request, *reply;
|
|
|
c6d234 |
+ mach_msg_return_t mr;
|
|
|
c6d234 |
|
|
|
c6d234 |
if (max_size == 0)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
diff --git a/malloc/obstack.c b/malloc/obstack.c
|
|
|
c6d234 |
index 5786da0aa4af81da..e3ce53f987727eca 100644
|
|
|
c6d234 |
--- a/malloc/obstack.c
|
|
|
c6d234 |
+++ b/malloc/obstack.c
|
|
|
c6d234 |
@@ -155,7 +155,7 @@ _obstack_begin (struct obstack *h,
|
|
|
c6d234 |
void *(*chunkfun) (long),
|
|
|
c6d234 |
void (*freefun) (void *))
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register struct _obstack_chunk *chunk; /* points to new chunk */
|
|
|
c6d234 |
+ struct _obstack_chunk *chunk; /* points to new chunk */
|
|
|
c6d234 |
|
|
|
c6d234 |
if (alignment == 0)
|
|
|
c6d234 |
alignment = DEFAULT_ALIGNMENT;
|
|
|
c6d234 |
@@ -202,7 +202,7 @@ _obstack_begin_1 (struct obstack *h, int size, int alignment,
|
|
|
c6d234 |
void (*freefun) (void *, void *),
|
|
|
c6d234 |
void *arg)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register struct _obstack_chunk *chunk; /* points to new chunk */
|
|
|
c6d234 |
+ struct _obstack_chunk *chunk; /* points to new chunk */
|
|
|
c6d234 |
|
|
|
c6d234 |
if (alignment == 0)
|
|
|
c6d234 |
alignment = DEFAULT_ALIGNMENT;
|
|
|
c6d234 |
@@ -253,11 +253,11 @@ _obstack_begin_1 (struct obstack *h, int size, int alignment,
|
|
|
c6d234 |
void
|
|
|
c6d234 |
_obstack_newchunk (struct obstack *h, int length)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register struct _obstack_chunk *old_chunk = h->chunk;
|
|
|
c6d234 |
- register struct _obstack_chunk *new_chunk;
|
|
|
c6d234 |
- register long new_size;
|
|
|
c6d234 |
- register long obj_size = h->next_free - h->object_base;
|
|
|
c6d234 |
- register long i;
|
|
|
c6d234 |
+ struct _obstack_chunk *old_chunk = h->chunk;
|
|
|
c6d234 |
+ struct _obstack_chunk *new_chunk;
|
|
|
c6d234 |
+ long new_size;
|
|
|
c6d234 |
+ long obj_size = h->next_free - h->object_base;
|
|
|
c6d234 |
+ long i;
|
|
|
c6d234 |
long already;
|
|
|
c6d234 |
char *object_base;
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -330,8 +330,8 @@ int _obstack_allocated_p (struct obstack *h, void *obj);
|
|
|
c6d234 |
int
|
|
|
c6d234 |
_obstack_allocated_p (struct obstack *h, void *obj)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register struct _obstack_chunk *lp; /* below addr of any objects in this chunk */
|
|
|
c6d234 |
- register struct _obstack_chunk *plp; /* point to previous chunk if any */
|
|
|
c6d234 |
+ struct _obstack_chunk *lp; /* below addr of any objects in this chunk */
|
|
|
c6d234 |
+ struct _obstack_chunk *plp; /* point to previous chunk if any */
|
|
|
c6d234 |
|
|
|
c6d234 |
lp = (h)->chunk;
|
|
|
c6d234 |
/* We use >= rather than > since the object cannot be exactly at
|
|
|
c6d234 |
@@ -353,8 +353,8 @@ _obstack_allocated_p (struct obstack *h, void *obj)
|
|
|
c6d234 |
void
|
|
|
c6d234 |
obstack_free (struct obstack *h, void *obj)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register struct _obstack_chunk *lp; /* below addr of any objects in this chunk */
|
|
|
c6d234 |
- register struct _obstack_chunk *plp; /* point to previous chunk if any */
|
|
|
c6d234 |
+ struct _obstack_chunk *lp; /* below addr of any objects in this chunk */
|
|
|
c6d234 |
+ struct _obstack_chunk *plp; /* point to previous chunk if any */
|
|
|
c6d234 |
|
|
|
c6d234 |
lp = h->chunk;
|
|
|
c6d234 |
/* We use >= because there cannot be an object at the beginning of a chunk.
|
|
|
c6d234 |
@@ -389,8 +389,8 @@ strong_alias (obstack_free, _obstack_free)
|
|
|
c6d234 |
int
|
|
|
c6d234 |
_obstack_memory_used (struct obstack *h)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register struct _obstack_chunk* lp;
|
|
|
c6d234 |
- register int nbytes = 0;
|
|
|
c6d234 |
+ struct _obstack_chunk* lp;
|
|
|
c6d234 |
+ int nbytes = 0;
|
|
|
c6d234 |
|
|
|
c6d234 |
for (lp = h->chunk; lp != 0; lp = lp->prev)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
diff --git a/misc/getttyent.c b/misc/getttyent.c
|
|
|
c6d234 |
index b1e6376fb66dc260..18944e2b99150aea 100644
|
|
|
c6d234 |
--- a/misc/getttyent.c
|
|
|
c6d234 |
+++ b/misc/getttyent.c
|
|
|
c6d234 |
@@ -47,7 +47,7 @@ struct ttyent *
|
|
|
c6d234 |
getttynam(tty)
|
|
|
c6d234 |
const char *tty;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register struct ttyent *t;
|
|
|
c6d234 |
+ struct ttyent *t;
|
|
|
c6d234 |
|
|
|
c6d234 |
setttyent();
|
|
|
c6d234 |
while ((t = getttyent()))
|
|
|
c6d234 |
@@ -64,8 +64,8 @@ struct ttyent *
|
|
|
c6d234 |
getttyent()
|
|
|
c6d234 |
{
|
|
|
c6d234 |
static struct ttyent tty;
|
|
|
c6d234 |
- register int c;
|
|
|
c6d234 |
- register char *p;
|
|
|
c6d234 |
+ int c;
|
|
|
c6d234 |
+ char *p;
|
|
|
c6d234 |
#define MAXLINELENGTH 100
|
|
|
c6d234 |
static char line[MAXLINELENGTH];
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -142,10 +142,10 @@ libc_hidden_def (getttyent)
|
|
|
c6d234 |
static char *
|
|
|
c6d234 |
internal_function
|
|
|
c6d234 |
skip(p)
|
|
|
c6d234 |
- register char *p;
|
|
|
c6d234 |
+ char *p;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register char *t;
|
|
|
c6d234 |
- register int c, q;
|
|
|
c6d234 |
+ char *t;
|
|
|
c6d234 |
+ int c, q;
|
|
|
c6d234 |
|
|
|
c6d234 |
for (q = 0, t = p; (c = *p) != '\0'; p++) {
|
|
|
c6d234 |
if (c == '"') {
|
|
|
c6d234 |
@@ -177,7 +177,7 @@ skip(p)
|
|
|
c6d234 |
static char *
|
|
|
c6d234 |
internal_function
|
|
|
c6d234 |
value(p)
|
|
|
c6d234 |
- register char *p;
|
|
|
c6d234 |
+ char *p;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
|
|
|
c6d234 |
return ((p = index(p, '=')) ? ++p : NULL);
|
|
|
c6d234 |
diff --git a/misc/getusershell.c b/misc/getusershell.c
|
|
|
c6d234 |
index 2e8d97e65c77ec4a..677377c3f7fb9081 100644
|
|
|
c6d234 |
--- a/misc/getusershell.c
|
|
|
c6d234 |
+++ b/misc/getusershell.c
|
|
|
c6d234 |
@@ -95,8 +95,8 @@ setusershell()
|
|
|
c6d234 |
static char **
|
|
|
c6d234 |
initshells()
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register char **sp, *cp;
|
|
|
c6d234 |
- register FILE *fp;
|
|
|
c6d234 |
+ char **sp, *cp;
|
|
|
c6d234 |
+ FILE *fp;
|
|
|
c6d234 |
struct stat64 statb;
|
|
|
c6d234 |
size_t flen;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/misc/syslog.c b/misc/syslog.c
|
|
|
c6d234 |
index 748361fc8c44b81f..4976e89b6ea56364 100644
|
|
|
c6d234 |
--- a/misc/syslog.c
|
|
|
c6d234 |
+++ b/misc/syslog.c
|
|
|
c6d234 |
@@ -229,7 +229,7 @@ __vsyslog_chk(int pri, int flag, const char *fmt, va_list ap)
|
|
|
c6d234 |
/* Output to stderr if requested. */
|
|
|
c6d234 |
if (LogStat & LOG_PERROR) {
|
|
|
c6d234 |
struct iovec iov[2];
|
|
|
c6d234 |
- register struct iovec *v = iov;
|
|
|
c6d234 |
+ struct iovec *v = iov;
|
|
|
c6d234 |
|
|
|
c6d234 |
v->iov_base = buf + msgoff;
|
|
|
c6d234 |
v->iov_len = bufsize - msgoff;
|
|
|
c6d234 |
diff --git a/misc/ttyslot.c b/misc/ttyslot.c
|
|
|
c6d234 |
index 5872f23fd0b6ffcb..75ca6a2d42d2c79d 100644
|
|
|
c6d234 |
--- a/misc/ttyslot.c
|
|
|
c6d234 |
+++ b/misc/ttyslot.c
|
|
|
c6d234 |
@@ -40,9 +40,9 @@ static char sccsid[] = "@(#)ttyslot.c 8.1 (Berkeley) 6/4/93";
|
|
|
c6d234 |
int
|
|
|
c6d234 |
ttyslot()
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register struct ttyent *ttyp;
|
|
|
c6d234 |
- register int slot;
|
|
|
c6d234 |
- register char *p;
|
|
|
c6d234 |
+ struct ttyent *ttyp;
|
|
|
c6d234 |
+ int slot;
|
|
|
c6d234 |
+ char *p;
|
|
|
c6d234 |
int cnt;
|
|
|
c6d234 |
size_t buflen = __sysconf (_SC_TTY_NAME_MAX) + 1;
|
|
|
c6d234 |
char *name;
|
|
|
c6d234 |
diff --git a/nis/nis_hash.c b/nis/nis_hash.c
|
|
|
c6d234 |
index 19b744c73f7208c9..c36ed1d5cbf56457 100644
|
|
|
c6d234 |
--- a/nis/nis_hash.c
|
|
|
c6d234 |
+++ b/nis/nis_hash.c
|
|
|
c6d234 |
@@ -29,11 +29,11 @@
|
|
|
c6d234 |
* OZ's original sdbm hash
|
|
|
c6d234 |
*/
|
|
|
c6d234 |
uint32_t
|
|
|
c6d234 |
-__nis_hash (const void *keyarg, register size_t len)
|
|
|
c6d234 |
+__nis_hash (const void *keyarg, size_t len)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register const u_char *key;
|
|
|
c6d234 |
- register size_t loop;
|
|
|
c6d234 |
- register uint32_t h;
|
|
|
c6d234 |
+ const u_char *key;
|
|
|
c6d234 |
+ size_t loop;
|
|
|
c6d234 |
+ uint32_t h;
|
|
|
c6d234 |
|
|
|
c6d234 |
#define HASHC h = *key++ + 65599 * h
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/ports/sysdeps/ia64/bits/byteswap-16.h b/ports/sysdeps/ia64/bits/byteswap-16.h
|
|
|
c6d234 |
index 4a53ffaf6d7c5f92..8e71ac1a779bfca4 100644
|
|
|
c6d234 |
--- a/ports/sysdeps/ia64/bits/byteswap-16.h
|
|
|
c6d234 |
+++ b/ports/sysdeps/ia64/bits/byteswap-16.h
|
|
|
c6d234 |
@@ -23,7 +23,7 @@
|
|
|
c6d234 |
#if defined __GNUC__ && __GNUC__ >= 2
|
|
|
c6d234 |
# define __bswap_16(x) \
|
|
|
c6d234 |
(__extension__ \
|
|
|
c6d234 |
- ({ register unsigned short int __v, __x = (unsigned short int) (x); \
|
|
|
c6d234 |
+ ({ unsigned short int __v, __x = (unsigned short int) (x); \
|
|
|
c6d234 |
if (__builtin_constant_p (x)) \
|
|
|
c6d234 |
__v = __bswap_constant_16 (__x); \
|
|
|
c6d234 |
else \
|
|
|
c6d234 |
diff --git a/ports/sysdeps/ia64/bits/byteswap.h b/ports/sysdeps/ia64/bits/byteswap.h
|
|
|
c6d234 |
index d363c3e1cf7ad2df..28646f11ae941606 100644
|
|
|
c6d234 |
--- a/ports/sysdeps/ia64/bits/byteswap.h
|
|
|
c6d234 |
+++ b/ports/sysdeps/ia64/bits/byteswap.h
|
|
|
c6d234 |
@@ -38,7 +38,7 @@
|
|
|
c6d234 |
#if defined __GNUC__ && __GNUC__ >= 2
|
|
|
c6d234 |
# define __bswap_32(x) \
|
|
|
c6d234 |
(__extension__ \
|
|
|
c6d234 |
- ({ register unsigned int __v, __x = (x); \
|
|
|
c6d234 |
+ ({ unsigned int __v, __x = (x); \
|
|
|
c6d234 |
if (__builtin_constant_p (x)) \
|
|
|
c6d234 |
__v = __bswap_constant_32 (__x); \
|
|
|
c6d234 |
else \
|
|
|
c6d234 |
@@ -70,7 +70,7 @@ __bswap_32 (unsigned int __bsx)
|
|
|
c6d234 |
|
|
|
c6d234 |
# define __bswap_64(x) \
|
|
|
c6d234 |
(__extension__ \
|
|
|
c6d234 |
- ({ register unsigned long int __v, __x = (x); \
|
|
|
c6d234 |
+ ({ unsigned long int __v, __x = (x); \
|
|
|
c6d234 |
if (__builtin_constant_p (x)) \
|
|
|
c6d234 |
__v = __bswap_constant_64 (__x); \
|
|
|
c6d234 |
else \
|
|
|
c6d234 |
diff --git a/posix/fnmatch_loop.c b/posix/fnmatch_loop.c
|
|
|
c6d234 |
index 89901f15b303f6ce..7ffa3a9944630a0c 100644
|
|
|
c6d234 |
--- a/posix/fnmatch_loop.c
|
|
|
c6d234 |
+++ b/posix/fnmatch_loop.c
|
|
|
c6d234 |
@@ -46,8 +46,8 @@ FCT (pattern, string, string_end, no_leading_period, flags, ends, alloca_used)
|
|
|
c6d234 |
struct STRUCT *ends;
|
|
|
c6d234 |
size_t alloca_used;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register const CHAR *p = pattern, *n = string;
|
|
|
c6d234 |
- register UCHAR c;
|
|
|
c6d234 |
+ const CHAR *p = pattern, *n = string;
|
|
|
c6d234 |
+ UCHAR c;
|
|
|
c6d234 |
#ifdef _LIBC
|
|
|
c6d234 |
# if WIDE_CHAR_VERSION
|
|
|
c6d234 |
const char *collseq = (const char *)
|
|
|
c6d234 |
@@ -236,7 +236,7 @@ FCT (pattern, string, string_end, no_leading_period, flags, ends, alloca_used)
|
|
|
c6d234 |
/* Nonzero if the sense of the character class is inverted. */
|
|
|
c6d234 |
const CHAR *p_init = p;
|
|
|
c6d234 |
const CHAR *n_init = n;
|
|
|
c6d234 |
- register int not;
|
|
|
c6d234 |
+ int not;
|
|
|
c6d234 |
CHAR cold;
|
|
|
c6d234 |
UCHAR fn;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/posix/getconf.c b/posix/getconf.c
|
|
|
c6d234 |
index aa0dd86afbb46904..9cb8f29be28466ff 100644
|
|
|
c6d234 |
--- a/posix/getconf.c
|
|
|
c6d234 |
+++ b/posix/getconf.c
|
|
|
c6d234 |
@@ -1043,7 +1043,7 @@ usage (void)
|
|
|
c6d234 |
static void
|
|
|
c6d234 |
print_all (const char *path)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register const struct conf *c;
|
|
|
c6d234 |
+ const struct conf *c;
|
|
|
c6d234 |
size_t clen;
|
|
|
c6d234 |
long int value;
|
|
|
c6d234 |
char *cvalue;
|
|
|
c6d234 |
@@ -1087,7 +1087,7 @@ print_all (const char *path)
|
|
|
c6d234 |
int
|
|
|
c6d234 |
main (int argc, char *argv[])
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register const struct conf *c;
|
|
|
c6d234 |
+ const struct conf *c;
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Set locale. Do not set LC_ALL because the other categories must
|
|
|
c6d234 |
not be affected (according to POSIX.2). */
|
|
|
c6d234 |
diff --git a/posix/getopt.c b/posix/getopt.c
|
|
|
c6d234 |
index 537c97741fb37aef..dc2a000487c16225 100644
|
|
|
c6d234 |
--- a/posix/getopt.c
|
|
|
c6d234 |
+++ b/posix/getopt.c
|
|
|
c6d234 |
@@ -228,7 +228,7 @@ exchange (char **argv, struct _getopt_data *d)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
/* Bottom segment is the short one. */
|
|
|
c6d234 |
int len = middle - bottom;
|
|
|
c6d234 |
- register int i;
|
|
|
c6d234 |
+ int i;
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Swap it with the top part of the top segment. */
|
|
|
c6d234 |
for (i = 0; i < len; i++)
|
|
|
c6d234 |
@@ -245,7 +245,7 @@ exchange (char **argv, struct _getopt_data *d)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
/* Top segment is the short one. */
|
|
|
c6d234 |
int len = top - middle;
|
|
|
c6d234 |
- register int i;
|
|
|
c6d234 |
+ int i;
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Swap it with the bottom part of the bottom segment. */
|
|
|
c6d234 |
for (i = 0; i < len; i++)
|
|
|
c6d234 |
diff --git a/posix/glob.c b/posix/glob.c
|
|
|
c6d234 |
index e09314712d68c1b8..8c7a80085128475a 100644
|
|
|
c6d234 |
--- a/posix/glob.c
|
|
|
c6d234 |
+++ b/posix/glob.c
|
|
|
c6d234 |
@@ -1264,7 +1264,7 @@ libc_hidden_def (glob)
|
|
|
c6d234 |
/* Free storage allocated in PGLOB by a previous `glob' call. */
|
|
|
c6d234 |
void
|
|
|
c6d234 |
globfree (pglob)
|
|
|
c6d234 |
- register glob_t *pglob;
|
|
|
c6d234 |
+ glob_t *pglob;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
if (pglob->gl_pathv != NULL)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
@@ -1304,7 +1304,7 @@ collated_compare (const void *a, const void *b)
|
|
|
c6d234 |
static int
|
|
|
c6d234 |
prefix_array (const char *dirname, char **array, size_t n)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register size_t i;
|
|
|
c6d234 |
+ size_t i;
|
|
|
c6d234 |
size_t dirlen = strlen (dirname);
|
|
|
c6d234 |
#if defined __MSDOS__ || defined WINDOWS32
|
|
|
c6d234 |
int sep_char = '/';
|
|
|
c6d234 |
@@ -1363,7 +1363,7 @@ __glob_pattern_type (pattern, quote)
|
|
|
c6d234 |
const char *pattern;
|
|
|
c6d234 |
int quote;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register const char *p;
|
|
|
c6d234 |
+ const char *p;
|
|
|
c6d234 |
int ret = 0;
|
|
|
c6d234 |
|
|
|
c6d234 |
for (p = pattern; *p != '\0'; ++p)
|
|
|
c6d234 |
diff --git a/stdio-common/printf_fp.c b/stdio-common/printf_fp.c
|
|
|
c6d234 |
index 90ab807390114749..7ffc72955323a555 100644
|
|
|
c6d234 |
--- a/stdio-common/printf_fp.c
|
|
|
c6d234 |
+++ b/stdio-common/printf_fp.c
|
|
|
c6d234 |
@@ -72,7 +72,7 @@
|
|
|
c6d234 |
#define outchar(ch) \
|
|
|
c6d234 |
do \
|
|
|
c6d234 |
{ \
|
|
|
c6d234 |
- register const int outc = (ch); \
|
|
|
c6d234 |
+ const int outc = (ch); \
|
|
|
c6d234 |
if (putc (outc, fp) == EOF) \
|
|
|
c6d234 |
{ \
|
|
|
c6d234 |
if (buffer_malloced) \
|
|
|
c6d234 |
@@ -85,7 +85,7 @@
|
|
|
c6d234 |
#define PRINT(ptr, wptr, len) \
|
|
|
c6d234 |
do \
|
|
|
c6d234 |
{ \
|
|
|
c6d234 |
- register size_t outlen = (len); \
|
|
|
c6d234 |
+ size_t outlen = (len); \
|
|
|
c6d234 |
if (len > 20) \
|
|
|
c6d234 |
{ \
|
|
|
c6d234 |
if (PUT (fp, wide ? (const char *) wptr : ptr, outlen) != outlen) \
|
|
|
c6d234 |
diff --git a/stdio-common/printf_fphex.c b/stdio-common/printf_fphex.c
|
|
|
c6d234 |
index 5d31f5f6204b612b..2310e02c8344997a 100644
|
|
|
c6d234 |
--- a/stdio-common/printf_fphex.c
|
|
|
c6d234 |
+++ b/stdio-common/printf_fphex.c
|
|
|
c6d234 |
@@ -52,7 +52,7 @@
|
|
|
c6d234 |
#define outchar(ch) \
|
|
|
c6d234 |
do \
|
|
|
c6d234 |
{ \
|
|
|
c6d234 |
- register const int outc = (ch); \
|
|
|
c6d234 |
+ const int outc = (ch); \
|
|
|
c6d234 |
if (putc (outc, fp) == EOF) \
|
|
|
c6d234 |
return -1; \
|
|
|
c6d234 |
++done; \
|
|
|
c6d234 |
@@ -61,7 +61,7 @@
|
|
|
c6d234 |
#define PRINT(ptr, wptr, len) \
|
|
|
c6d234 |
do \
|
|
|
c6d234 |
{ \
|
|
|
c6d234 |
- register size_t outlen = (len); \
|
|
|
c6d234 |
+ size_t outlen = (len); \
|
|
|
c6d234 |
if (wide) \
|
|
|
c6d234 |
while (outlen-- > 0) \
|
|
|
c6d234 |
outchar (*wptr++); \
|
|
|
c6d234 |
diff --git a/stdio-common/printf_size.c b/stdio-common/printf_size.c
|
|
|
c6d234 |
index 0cdfeee7f2e4f7bb..f5acf87eda7ddb42 100644
|
|
|
c6d234 |
--- a/stdio-common/printf_size.c
|
|
|
c6d234 |
+++ b/stdio-common/printf_size.c
|
|
|
c6d234 |
@@ -42,7 +42,7 @@
|
|
|
c6d234 |
#define outchar(ch) \
|
|
|
c6d234 |
do \
|
|
|
c6d234 |
{ \
|
|
|
c6d234 |
- register const int outc = (ch); \
|
|
|
c6d234 |
+ const int outc = (ch); \
|
|
|
c6d234 |
if (putc (outc, fp) == EOF) \
|
|
|
c6d234 |
return -1; \
|
|
|
c6d234 |
++done; \
|
|
|
c6d234 |
@@ -51,7 +51,7 @@
|
|
|
c6d234 |
#define PRINT(ptr, wptr, len) \
|
|
|
c6d234 |
do \
|
|
|
c6d234 |
{ \
|
|
|
c6d234 |
- register size_t outlen = (len); \
|
|
|
c6d234 |
+ size_t outlen = (len); \
|
|
|
c6d234 |
if (len > 20) \
|
|
|
c6d234 |
{ \
|
|
|
c6d234 |
if (PUT (fp, wide ? (const char *) wptr : ptr, outlen) != outlen) \
|
|
|
c6d234 |
diff --git a/stdio-common/test_rdwr.c b/stdio-common/test_rdwr.c
|
|
|
c6d234 |
index 6fa1e1ce2e6e24c7..ce3ad5aefb8d8ea7 100644
|
|
|
c6d234 |
--- a/stdio-common/test_rdwr.c
|
|
|
c6d234 |
+++ b/stdio-common/test_rdwr.c
|
|
|
c6d234 |
@@ -78,7 +78,7 @@ main (int argc, char **argv)
|
|
|
c6d234 |
long int where = ftell (f);
|
|
|
c6d234 |
if (where == (long int) replace_from)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register size_t i;
|
|
|
c6d234 |
+ size_t i;
|
|
|
c6d234 |
for (i = replace_from; i < replace_to; ++i)
|
|
|
c6d234 |
if (putc(replace[i], f) == EOF)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
diff --git a/stdio-common/tfformat.c b/stdio-common/tfformat.c
|
|
|
c6d234 |
index 7704ddde39856221..5cb366dd48eef16a 100644
|
|
|
c6d234 |
--- a/stdio-common/tfformat.c
|
|
|
c6d234 |
+++ b/stdio-common/tfformat.c
|
|
|
c6d234 |
@@ -4050,7 +4050,7 @@ sprint_double_type sprint_doubles[] =
|
|
|
c6d234 |
int required_precision = 13;
|
|
|
c6d234 |
|
|
|
c6d234 |
static int
|
|
|
c6d234 |
-matches (register char *result, register const char *desired)
|
|
|
c6d234 |
+matches (char *result, const char *desired)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
int digits_seen = 0;
|
|
|
c6d234 |
for (;; result++, desired++) {
|
|
|
c6d234 |
diff --git a/stdio-common/vfprintf.c b/stdio-common/vfprintf.c
|
|
|
c6d234 |
index 97805989f6db70bf..a52c8f8cb17eaf58 100644
|
|
|
c6d234 |
--- a/stdio-common/vfprintf.c
|
|
|
c6d234 |
+++ b/stdio-common/vfprintf.c
|
|
|
c6d234 |
@@ -147,7 +147,7 @@
|
|
|
c6d234 |
#define outchar(Ch) \
|
|
|
c6d234 |
do \
|
|
|
c6d234 |
{ \
|
|
|
c6d234 |
- register const INT_T outc = (Ch); \
|
|
|
c6d234 |
+ const INT_T outc = (Ch); \
|
|
|
c6d234 |
if (PUTC (outc, s) == EOF || done == INT_MAX) \
|
|
|
c6d234 |
{ \
|
|
|
c6d234 |
done = -1; \
|
|
|
c6d234 |
@@ -2075,7 +2075,7 @@ printf_unknown (FILE *s, const struct printf_info *info,
|
|
|
c6d234 |
CHAR_T work_buffer[MAX (sizeof (info->width), sizeof (info->prec)) * 3];
|
|
|
c6d234 |
CHAR_T *const workend
|
|
|
c6d234 |
= &work_buffer[sizeof (work_buffer) / sizeof (CHAR_T)];
|
|
|
c6d234 |
- register CHAR_T *w;
|
|
|
c6d234 |
+ CHAR_T *w;
|
|
|
c6d234 |
|
|
|
c6d234 |
outchar (L_('%'));
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -2281,12 +2281,12 @@ static const struct _IO_jump_t _IO_helper_jumps libio_vtable =
|
|
|
c6d234 |
|
|
|
c6d234 |
static int
|
|
|
c6d234 |
internal_function
|
|
|
c6d234 |
-buffered_vfprintf (register _IO_FILE *s, const CHAR_T *format,
|
|
|
c6d234 |
+buffered_vfprintf (_IO_FILE *s, const CHAR_T *format,
|
|
|
c6d234 |
_IO_va_list args)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
CHAR_T buf[_IO_BUFSIZ];
|
|
|
c6d234 |
struct helper_file helper;
|
|
|
c6d234 |
- register _IO_FILE *hp = (_IO_FILE *) &helper._f;
|
|
|
c6d234 |
+ _IO_FILE *hp = (_IO_FILE *) &helper._f;
|
|
|
c6d234 |
int result, to_flush;
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Orient the stream. */
|
|
|
c6d234 |
diff --git a/stdio-common/vfscanf.c b/stdio-common/vfscanf.c
|
|
|
c6d234 |
index d532bb54c31cdcb1..1db8487c1a133996 100644
|
|
|
c6d234 |
--- a/stdio-common/vfscanf.c
|
|
|
c6d234 |
+++ b/stdio-common/vfscanf.c
|
|
|
c6d234 |
@@ -206,13 +206,13 @@ _IO_vfscanf_internal (_IO_FILE *s, const char *format, _IO_va_list argptr,
|
|
|
c6d234 |
#endif
|
|
|
c6d234 |
{
|
|
|
c6d234 |
va_list arg;
|
|
|
c6d234 |
- register const CHAR_T *f = format;
|
|
|
c6d234 |
- register UCHAR_T fc; /* Current character of the format. */
|
|
|
c6d234 |
- register WINT_T done = 0; /* Assignments done. */
|
|
|
c6d234 |
- register size_t read_in = 0; /* Chars read in. */
|
|
|
c6d234 |
- register WINT_T c = 0; /* Last char read. */
|
|
|
c6d234 |
- register int width; /* Maximum field width. */
|
|
|
c6d234 |
- register int flags; /* Modifiers for current format element. */
|
|
|
c6d234 |
+ const CHAR_T *f = format;
|
|
|
c6d234 |
+ UCHAR_T fc; /* Current character of the format. */
|
|
|
c6d234 |
+ WINT_T done = 0; /* Assignments done. */
|
|
|
c6d234 |
+ size_t read_in = 0; /* Chars read in. */
|
|
|
c6d234 |
+ WINT_T c = 0; /* Last char read. */
|
|
|
c6d234 |
+ int width; /* Maximum field width. */
|
|
|
c6d234 |
+ int flags; /* Modifiers for current format element. */
|
|
|
c6d234 |
int errval = 0;
|
|
|
c6d234 |
#ifndef COMPILE_WSCANF
|
|
|
c6d234 |
__locale_t loc = _NL_CURRENT_LOCALE;
|
|
|
c6d234 |
diff --git a/stdio-common/xbug.c b/stdio-common/xbug.c
|
|
|
c6d234 |
index 76a8c547268d4f26..64ba314cbefec6e6 100644
|
|
|
c6d234 |
--- a/stdio-common/xbug.c
|
|
|
c6d234 |
+++ b/stdio-common/xbug.c
|
|
|
c6d234 |
@@ -9,8 +9,8 @@ typedef struct _Buffer {
|
|
|
c6d234 |
} Buffer;
|
|
|
c6d234 |
|
|
|
c6d234 |
void InitBuffer (Buffer *b);
|
|
|
c6d234 |
-void AppendToBuffer (register Buffer *b, const char *str, register int len);
|
|
|
c6d234 |
-void ReadFile (register Buffer *buffer, FILE *input);
|
|
|
c6d234 |
+void AppendToBuffer (Buffer *b, const char *str, int len);
|
|
|
c6d234 |
+void ReadFile (Buffer *buffer, FILE *input);
|
|
|
c6d234 |
|
|
|
c6d234 |
#define INIT_BUFFER_SIZE 10000
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -23,9 +23,9 @@ void InitBuffer(b)
|
|
|
c6d234 |
}
|
|
|
c6d234 |
|
|
|
c6d234 |
void AppendToBuffer(b, str, len)
|
|
|
c6d234 |
- register Buffer *b;
|
|
|
c6d234 |
+ Buffer *b;
|
|
|
c6d234 |
const char *str;
|
|
|
c6d234 |
- register int len;
|
|
|
c6d234 |
+ int len;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
while (b->used + len > b->room) {
|
|
|
c6d234 |
b->buff = (char *)realloc(b->buff, 2*b->room*(sizeof(char)));
|
|
|
c6d234 |
@@ -36,11 +36,11 @@ void AppendToBuffer(b, str, len)
|
|
|
c6d234 |
}
|
|
|
c6d234 |
|
|
|
c6d234 |
void ReadFile(buffer, input)
|
|
|
c6d234 |
- register Buffer *buffer;
|
|
|
c6d234 |
+ Buffer *buffer;
|
|
|
c6d234 |
FILE *input;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
char buf[BUFSIZ + 1];
|
|
|
c6d234 |
- register int bytes;
|
|
|
c6d234 |
+ int bytes;
|
|
|
c6d234 |
|
|
|
c6d234 |
buffer->used = 0;
|
|
|
c6d234 |
while (!feof(input) && (bytes = fread(buf, 1, BUFSIZ, input)) > 0) {
|
|
|
c6d234 |
diff --git a/stdlib/qsort.c b/stdlib/qsort.c
|
|
|
c6d234 |
index 2fbe763bd52d2acf..8237bbb563748a5f 100644
|
|
|
c6d234 |
--- a/stdlib/qsort.c
|
|
|
c6d234 |
+++ b/stdlib/qsort.c
|
|
|
c6d234 |
@@ -29,8 +29,8 @@
|
|
|
c6d234 |
#define SWAP(a, b, size) \
|
|
|
c6d234 |
do \
|
|
|
c6d234 |
{ \
|
|
|
c6d234 |
- register size_t __size = (size); \
|
|
|
c6d234 |
- register char *__a = (a), *__b = (b); \
|
|
|
c6d234 |
+ size_t __size = (size); \
|
|
|
c6d234 |
+ char *__a = (a), *__b = (b); \
|
|
|
c6d234 |
do \
|
|
|
c6d234 |
{ \
|
|
|
c6d234 |
char __tmp = *__a; \
|
|
|
c6d234 |
@@ -89,7 +89,7 @@ void
|
|
|
c6d234 |
_quicksort (void *const pbase, size_t total_elems, size_t size,
|
|
|
c6d234 |
__compar_d_fn_t cmp, void *arg)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register char *base_ptr = (char *) pbase;
|
|
|
c6d234 |
+ char *base_ptr = (char *) pbase;
|
|
|
c6d234 |
|
|
|
c6d234 |
const size_t max_thresh = MAX_THRESH * size;
|
|
|
c6d234 |
|
|
|
c6d234 |
@@ -206,7 +206,7 @@ _quicksort (void *const pbase, size_t total_elems, size_t size,
|
|
|
c6d234 |
char *const end_ptr = &base_ptr[size * (total_elems - 1)];
|
|
|
c6d234 |
char *tmp_ptr = base_ptr;
|
|
|
c6d234 |
char *thresh = min(end_ptr, base_ptr + max_thresh);
|
|
|
c6d234 |
- register char *run_ptr;
|
|
|
c6d234 |
+ char *run_ptr;
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Find smallest element in first threshold and place it at the
|
|
|
c6d234 |
array's beginning. This is the smallest array element,
|
|
|
c6d234 |
diff --git a/stdlib/setenv.c b/stdlib/setenv.c
|
|
|
c6d234 |
index d1db356a81c0152b..6185c69243464623 100644
|
|
|
c6d234 |
--- a/stdlib/setenv.c
|
|
|
c6d234 |
+++ b/stdlib/setenv.c
|
|
|
c6d234 |
@@ -112,8 +112,8 @@ __add_to_environ (name, value, combined, replace)
|
|
|
c6d234 |
const char *combined;
|
|
|
c6d234 |
int replace;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register char **ep;
|
|
|
c6d234 |
- register size_t size;
|
|
|
c6d234 |
+ char **ep;
|
|
|
c6d234 |
+ size_t size;
|
|
|
c6d234 |
const size_t namelen = strlen (name);
|
|
|
c6d234 |
const size_t vallen = value != NULL ? strlen (value) + 1 : 0;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/stdlib/strtod_l.c b/stdlib/strtod_l.c
|
|
|
c6d234 |
index 6360833c6b222f3c..2047203a4cee1111 100644
|
|
|
c6d234 |
--- a/stdlib/strtod_l.c
|
|
|
c6d234 |
+++ b/stdlib/strtod_l.c
|
|
|
c6d234 |
@@ -1142,10 +1142,9 @@ ____STRTOF_INTERNAL (nptr, endptr, group, loc)
|
|
|
c6d234 |
really integer digits or belong to the fractional part; i.e. we normalize
|
|
|
c6d234 |
123e-2 to 1.23. */
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register intmax_t incr = (exponent < 0
|
|
|
c6d234 |
- ? MAX (-(intmax_t) int_no, exponent)
|
|
|
c6d234 |
- : MIN ((intmax_t) dig_no - (intmax_t) int_no,
|
|
|
c6d234 |
- exponent));
|
|
|
c6d234 |
+ intmax_t incr = (exponent < 0
|
|
|
c6d234 |
+ ? MAX (-(intmax_t) int_no, exponent)
|
|
|
c6d234 |
+ : MIN ((intmax_t) dig_no - (intmax_t) int_no, exponent));
|
|
|
c6d234 |
int_no += incr;
|
|
|
c6d234 |
exponent -= incr;
|
|
|
c6d234 |
}
|
|
|
c6d234 |
@@ -1466,7 +1465,7 @@ ____STRTOF_INTERNAL (nptr, endptr, group, loc)
|
|
|
c6d234 |
#define got_limb \
|
|
|
c6d234 |
if (bits == 0) \
|
|
|
c6d234 |
{ \
|
|
|
c6d234 |
- register int cnt; \
|
|
|
c6d234 |
+ int cnt; \
|
|
|
c6d234 |
if (quot == 0) \
|
|
|
c6d234 |
cnt = BITS_PER_MP_LIMB; \
|
|
|
c6d234 |
else \
|
|
|
c6d234 |
@@ -1618,7 +1617,7 @@ ____STRTOF_INTERNAL (nptr, endptr, group, loc)
|
|
|
c6d234 |
if (numsize < densize)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
mp_size_t empty = densize - numsize;
|
|
|
c6d234 |
- register int i;
|
|
|
c6d234 |
+ int i;
|
|
|
c6d234 |
|
|
|
c6d234 |
if (bits <= 0)
|
|
|
c6d234 |
exponent -= empty * BITS_PER_MP_LIMB;
|
|
|
c6d234 |
@@ -1646,7 +1645,7 @@ ____STRTOF_INTERNAL (nptr, endptr, group, loc)
|
|
|
c6d234 |
used = MANT_DIG - bits;
|
|
|
c6d234 |
if (used >= BITS_PER_MP_LIMB)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register int i;
|
|
|
c6d234 |
+ int i;
|
|
|
c6d234 |
(void) __mpn_lshift (&retval[used
|
|
|
c6d234 |
/ BITS_PER_MP_LIMB],
|
|
|
c6d234 |
retval,
|
|
|
c6d234 |
diff --git a/stdlib/strtol_l.c b/stdlib/strtol_l.c
|
|
|
c6d234 |
index 784641b2920f1948..615190821e24b41a 100644
|
|
|
c6d234 |
--- a/stdlib/strtol_l.c
|
|
|
c6d234 |
+++ b/stdlib/strtol_l.c
|
|
|
c6d234 |
@@ -231,11 +231,11 @@ INTERNAL (__strtol_l) (nptr, endptr, base, group, loc)
|
|
|
c6d234 |
__locale_t loc;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
int negative;
|
|
|
c6d234 |
- register unsigned LONG int cutoff;
|
|
|
c6d234 |
- register unsigned int cutlim;
|
|
|
c6d234 |
- register unsigned LONG int i;
|
|
|
c6d234 |
- register const STRING_TYPE *s;
|
|
|
c6d234 |
- register UCHAR_TYPE c;
|
|
|
c6d234 |
+ unsigned LONG int cutoff;
|
|
|
c6d234 |
+ unsigned int cutlim;
|
|
|
c6d234 |
+ unsigned LONG int i;
|
|
|
c6d234 |
+ const STRING_TYPE *s;
|
|
|
c6d234 |
+ UCHAR_TYPE c;
|
|
|
c6d234 |
const STRING_TYPE *save, *end;
|
|
|
c6d234 |
int overflow;
|
|
|
c6d234 |
#ifndef USE_WIDE_CHAR
|
|
|
c6d234 |
diff --git a/stdlib/tst-strtod.c b/stdlib/tst-strtod.c
|
|
|
c6d234 |
index 670beb1e4df0e0dc..1cfb1da8963d7155 100644
|
|
|
c6d234 |
--- a/stdlib/tst-strtod.c
|
|
|
c6d234 |
+++ b/stdlib/tst-strtod.c
|
|
|
c6d234 |
@@ -85,7 +85,7 @@ int
|
|
|
c6d234 |
main (int argc, char ** argv)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
char buf[100];
|
|
|
c6d234 |
- register const struct ltest *lt;
|
|
|
c6d234 |
+ const struct ltest *lt;
|
|
|
c6d234 |
char *ep;
|
|
|
c6d234 |
int status = 0;
|
|
|
c6d234 |
int save_errno;
|
|
|
c6d234 |
@@ -184,7 +184,7 @@ main (int argc, char ** argv)
|
|
|
c6d234 |
static void
|
|
|
c6d234 |
expand (dst, c)
|
|
|
c6d234 |
char *dst;
|
|
|
c6d234 |
- register int c;
|
|
|
c6d234 |
+ int c;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
if (isprint (c))
|
|
|
c6d234 |
{
|
|
|
c6d234 |
diff --git a/stdlib/tst-strtol.c b/stdlib/tst-strtol.c
|
|
|
c6d234 |
index 99cd574107cfed1c..448102a2d9652ee3 100644
|
|
|
c6d234 |
--- a/stdlib/tst-strtol.c
|
|
|
c6d234 |
+++ b/stdlib/tst-strtol.c
|
|
|
c6d234 |
@@ -537,14 +537,14 @@ static void expand (char *dst, int c);
|
|
|
c6d234 |
static int
|
|
|
c6d234 |
do_test (void)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register const struct ltest *lt;
|
|
|
c6d234 |
+ const struct ltest *lt;
|
|
|
c6d234 |
char *ep;
|
|
|
c6d234 |
int status = 0;
|
|
|
c6d234 |
int save_errno;
|
|
|
c6d234 |
|
|
|
c6d234 |
for (lt = tests; lt->str != NULL; ++lt)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register long int l;
|
|
|
c6d234 |
+ long int l;
|
|
|
c6d234 |
|
|
|
c6d234 |
errno = 0;
|
|
|
c6d234 |
l = strtol (lt->str, &ep, lt->base);
|
|
|
c6d234 |
@@ -577,7 +577,7 @@ do_test (void)
|
|
|
c6d234 |
|
|
|
c6d234 |
for (++lt; lt->str != NULL; lt++)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register unsigned long int ul;
|
|
|
c6d234 |
+ unsigned long int ul;
|
|
|
c6d234 |
|
|
|
c6d234 |
errno = 0;
|
|
|
c6d234 |
ul = strtoul (lt->str, &ep, lt->base);
|
|
|
c6d234 |
diff --git a/stdlib/tst-strtoll.c b/stdlib/tst-strtoll.c
|
|
|
c6d234 |
index b5ae230b4e0267b0..93f1a56a56956bdb 100644
|
|
|
c6d234 |
--- a/stdlib/tst-strtoll.c
|
|
|
c6d234 |
+++ b/stdlib/tst-strtoll.c
|
|
|
c6d234 |
@@ -312,14 +312,14 @@ static void expand (char *dst, int c);
|
|
|
c6d234 |
static int
|
|
|
c6d234 |
do_test (void)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register const struct ltest *lt;
|
|
|
c6d234 |
+ const struct ltest *lt;
|
|
|
c6d234 |
char *ep;
|
|
|
c6d234 |
int status = 0;
|
|
|
c6d234 |
int save_errno;
|
|
|
c6d234 |
|
|
|
c6d234 |
for (lt = tests; lt->str != NULL; ++lt)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register long long int l;
|
|
|
c6d234 |
+ long long int l;
|
|
|
c6d234 |
|
|
|
c6d234 |
errno = 0;
|
|
|
c6d234 |
l = strtoll (lt->str, &ep, lt->base);
|
|
|
c6d234 |
@@ -352,7 +352,7 @@ do_test (void)
|
|
|
c6d234 |
|
|
|
c6d234 |
for (++lt; lt->str != NULL; lt++)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register unsigned long long int ul;
|
|
|
c6d234 |
+ unsigned long long int ul;
|
|
|
c6d234 |
|
|
|
c6d234 |
errno = 0;
|
|
|
c6d234 |
ul = strtoull (lt->str, &ep, lt->base);
|
|
|
c6d234 |
diff --git a/string/bits/string2.h b/string/bits/string2.h
|
|
|
c6d234 |
index acd0679e72b10fbf..c9bf59319e1c4892 100644
|
|
|
c6d234 |
--- a/string/bits/string2.h
|
|
|
c6d234 |
+++ b/string/bits/string2.h
|
|
|
c6d234 |
@@ -839,7 +839,7 @@ __stpcpy_small (char *__dest,
|
|
|
c6d234 |
# endif
|
|
|
c6d234 |
|
|
|
c6d234 |
# define __strcmp_cc(s1, s2, l) \
|
|
|
c6d234 |
- (__extension__ ({ register int __result = \
|
|
|
c6d234 |
+ (__extension__ ({ int __result = \
|
|
|
c6d234 |
(((const unsigned char *) (const char *) (s1))[0] \
|
|
|
c6d234 |
- ((const unsigned char *) (const char *)(s2))[0]); \
|
|
|
c6d234 |
if (l > 0 && __result == 0) \
|
|
|
c6d234 |
@@ -868,7 +868,7 @@ __stpcpy_small (char *__dest,
|
|
|
c6d234 |
# define __strcmp_cg(s1, s2, l1) \
|
|
|
c6d234 |
(__extension__ ({ const unsigned char *__s2 = \
|
|
|
c6d234 |
(const unsigned char *) (const char *) (s2); \
|
|
|
c6d234 |
- register int __result = \
|
|
|
c6d234 |
+ int __result = \
|
|
|
c6d234 |
(((const unsigned char *) (const char *) (s1))[0] \
|
|
|
c6d234 |
- __s2[0]); \
|
|
|
c6d234 |
if (l1 > 0 && __result == 0) \
|
|
|
c6d234 |
@@ -969,7 +969,7 @@ __STRING_INLINE size_t __strcspn_c1 (const char *__s, int __reject);
|
|
|
c6d234 |
__STRING_INLINE size_t
|
|
|
c6d234 |
__strcspn_c1 (const char *__s, int __reject)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register size_t __result = 0;
|
|
|
c6d234 |
+ size_t __result = 0;
|
|
|
c6d234 |
while (__s[__result] != '\0' && __s[__result] != __reject)
|
|
|
c6d234 |
++__result;
|
|
|
c6d234 |
return __result;
|
|
|
c6d234 |
@@ -980,7 +980,7 @@ __STRING_INLINE size_t __strcspn_c2 (const char *__s, int __reject1,
|
|
|
c6d234 |
__STRING_INLINE size_t
|
|
|
c6d234 |
__strcspn_c2 (const char *__s, int __reject1, int __reject2)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register size_t __result = 0;
|
|
|
c6d234 |
+ size_t __result = 0;
|
|
|
c6d234 |
while (__s[__result] != '\0' && __s[__result] != __reject1
|
|
|
c6d234 |
&& __s[__result] != __reject2)
|
|
|
c6d234 |
++__result;
|
|
|
c6d234 |
@@ -993,7 +993,7 @@ __STRING_INLINE size_t
|
|
|
c6d234 |
__strcspn_c3 (const char *__s, int __reject1, int __reject2,
|
|
|
c6d234 |
int __reject3)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register size_t __result = 0;
|
|
|
c6d234 |
+ size_t __result = 0;
|
|
|
c6d234 |
while (__s[__result] != '\0' && __s[__result] != __reject1
|
|
|
c6d234 |
&& __s[__result] != __reject2 && __s[__result] != __reject3)
|
|
|
c6d234 |
++__result;
|
|
|
c6d234 |
@@ -1045,7 +1045,7 @@ __STRING_INLINE size_t __strspn_c1 (const char *__s, int __accept);
|
|
|
c6d234 |
__STRING_INLINE size_t
|
|
|
c6d234 |
__strspn_c1 (const char *__s, int __accept)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register size_t __result = 0;
|
|
|
c6d234 |
+ size_t __result = 0;
|
|
|
c6d234 |
/* Please note that __accept never can be '\0'. */
|
|
|
c6d234 |
while (__s[__result] == __accept)
|
|
|
c6d234 |
++__result;
|
|
|
c6d234 |
@@ -1057,7 +1057,7 @@ __STRING_INLINE size_t __strspn_c2 (const char *__s, int __accept1,
|
|
|
c6d234 |
__STRING_INLINE size_t
|
|
|
c6d234 |
__strspn_c2 (const char *__s, int __accept1, int __accept2)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register size_t __result = 0;
|
|
|
c6d234 |
+ size_t __result = 0;
|
|
|
c6d234 |
/* Please note that __accept1 and __accept2 never can be '\0'. */
|
|
|
c6d234 |
while (__s[__result] == __accept1 || __s[__result] == __accept2)
|
|
|
c6d234 |
++__result;
|
|
|
c6d234 |
@@ -1069,7 +1069,7 @@ __STRING_INLINE size_t __strspn_c3 (const char *__s, int __accept1,
|
|
|
c6d234 |
__STRING_INLINE size_t
|
|
|
c6d234 |
__strspn_c3 (const char *__s, int __accept1, int __accept2, int __accept3)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register size_t __result = 0;
|
|
|
c6d234 |
+ size_t __result = 0;
|
|
|
c6d234 |
/* Please note that __accept1 to __accept3 never can be '\0'. */
|
|
|
c6d234 |
while (__s[__result] == __accept1 || __s[__result] == __accept2
|
|
|
c6d234 |
|| __s[__result] == __accept3)
|
|
|
c6d234 |
@@ -1221,7 +1221,7 @@ __STRING_INLINE char *__strsep_1c (char **__s, char __reject);
|
|
|
c6d234 |
__STRING_INLINE char *
|
|
|
c6d234 |
__strsep_1c (char **__s, char __reject)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register char *__retval = *__s;
|
|
|
c6d234 |
+ char *__retval = *__s;
|
|
|
c6d234 |
if (__retval != NULL && (*__s = strchr (__retval, __reject)) != NULL)
|
|
|
c6d234 |
*(*__s)++ = '\0';
|
|
|
c6d234 |
return __retval;
|
|
|
c6d234 |
@@ -1231,10 +1231,10 @@ __STRING_INLINE char *__strsep_2c (char **__s, char __reject1, char __reject2);
|
|
|
c6d234 |
__STRING_INLINE char *
|
|
|
c6d234 |
__strsep_2c (char **__s, char __reject1, char __reject2)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register char *__retval = *__s;
|
|
|
c6d234 |
+ char *__retval = *__s;
|
|
|
c6d234 |
if (__retval != NULL)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register char *__cp = __retval;
|
|
|
c6d234 |
+ char *__cp = __retval;
|
|
|
c6d234 |
while (1)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
if (*__cp == '\0')
|
|
|
c6d234 |
@@ -1259,10 +1259,10 @@ __STRING_INLINE char *__strsep_3c (char **__s, char __reject1, char __reject2,
|
|
|
c6d234 |
__STRING_INLINE char *
|
|
|
c6d234 |
__strsep_3c (char **__s, char __reject1, char __reject2, char __reject3)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register char *__retval = *__s;
|
|
|
c6d234 |
+ char *__retval = *__s;
|
|
|
c6d234 |
if (__retval != NULL)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register char *__cp = __retval;
|
|
|
c6d234 |
+ char *__cp = __retval;
|
|
|
c6d234 |
while (1)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
if (*__cp == '\0')
|
|
|
c6d234 |
diff --git a/string/memccpy.c b/string/memccpy.c
|
|
|
c6d234 |
index 78c13b60bd1b276c..64c3c0196845f102 100644
|
|
|
c6d234 |
--- a/string/memccpy.c
|
|
|
c6d234 |
+++ b/string/memccpy.c
|
|
|
c6d234 |
@@ -34,10 +34,10 @@ __memccpy (dest, src, c, n)
|
|
|
c6d234 |
int c;
|
|
|
c6d234 |
size_t n;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register const char *s = src;
|
|
|
c6d234 |
- register char *d = dest;
|
|
|
c6d234 |
- register const char x = c;
|
|
|
c6d234 |
- register size_t i = n;
|
|
|
c6d234 |
+ const char *s = src;
|
|
|
c6d234 |
+ char *d = dest;
|
|
|
c6d234 |
+ const char x = c;
|
|
|
c6d234 |
+ size_t i = n;
|
|
|
c6d234 |
|
|
|
c6d234 |
while (i-- > 0)
|
|
|
c6d234 |
if ((*d++ = *s++) == x)
|
|
|
c6d234 |
diff --git a/string/stpcpy.c b/string/stpcpy.c
|
|
|
c6d234 |
index 69d150f0c8557087..b74f6e2b489e1f18 100644
|
|
|
c6d234 |
--- a/string/stpcpy.c
|
|
|
c6d234 |
+++ b/string/stpcpy.c
|
|
|
c6d234 |
@@ -40,8 +40,8 @@ __stpcpy (dest, src)
|
|
|
c6d234 |
char *dest;
|
|
|
c6d234 |
const char *src;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register char *d = dest;
|
|
|
c6d234 |
- register const char *s = src;
|
|
|
c6d234 |
+ char *d = dest;
|
|
|
c6d234 |
+ const char *s = src;
|
|
|
c6d234 |
|
|
|
c6d234 |
do
|
|
|
c6d234 |
*d++ = *s;
|
|
|
c6d234 |
diff --git a/string/strcmp.c b/string/strcmp.c
|
|
|
c6d234 |
index 5384db9b2031c161..47fd2827ad9d64cf 100644
|
|
|
c6d234 |
--- a/string/strcmp.c
|
|
|
c6d234 |
+++ b/string/strcmp.c
|
|
|
c6d234 |
@@ -32,8 +32,8 @@ STRCMP (p1, p2)
|
|
|
c6d234 |
const char *p1;
|
|
|
c6d234 |
const char *p2;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register const unsigned char *s1 = (const unsigned char *) p1;
|
|
|
c6d234 |
- register const unsigned char *s2 = (const unsigned char *) p2;
|
|
|
c6d234 |
+ const unsigned char *s1 = (const unsigned char *) p1;
|
|
|
c6d234 |
+ const unsigned char *s2 = (const unsigned char *) p2;
|
|
|
c6d234 |
unsigned char c1, c2;
|
|
|
c6d234 |
|
|
|
c6d234 |
do
|
|
|
c6d234 |
diff --git a/string/strrchr.c b/string/strrchr.c
|
|
|
c6d234 |
index 03f3957fe902c968..2cb833016235a1cf 100644
|
|
|
c6d234 |
--- a/string/strrchr.c
|
|
|
c6d234 |
+++ b/string/strrchr.c
|
|
|
c6d234 |
@@ -27,7 +27,7 @@
|
|
|
c6d234 |
char *
|
|
|
c6d234 |
STRRCHR (const char *s, int c)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register const char *found, *p;
|
|
|
c6d234 |
+ const char *found, *p;
|
|
|
c6d234 |
|
|
|
c6d234 |
c = (unsigned char) c;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/sysdeps/generic/sigset-cvt-mask.h b/sysdeps/generic/sigset-cvt-mask.h
|
|
|
c6d234 |
index 366a7719b30c9c01..d7084c0b539aab08 100644
|
|
|
c6d234 |
--- a/sysdeps/generic/sigset-cvt-mask.h
|
|
|
c6d234 |
+++ b/sysdeps/generic/sigset-cvt-mask.h
|
|
|
c6d234 |
@@ -29,7 +29,7 @@ sigset_set_old_mask (sigset_t *set, int mask)
|
|
|
c6d234 |
*set = (unsigned int) mask;
|
|
|
c6d234 |
else
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register unsigned int __sig;
|
|
|
c6d234 |
+ unsigned int __sig;
|
|
|
c6d234 |
|
|
|
c6d234 |
if (__sigemptyset (set) < 0)
|
|
|
c6d234 |
return -1;
|
|
|
c6d234 |
@@ -52,7 +52,7 @@ sigset_get_old_mask (const sigset_t *set)
|
|
|
c6d234 |
else
|
|
|
c6d234 |
{
|
|
|
c6d234 |
unsigned int mask = 0;
|
|
|
c6d234 |
- register unsigned int sig;
|
|
|
c6d234 |
+ unsigned int sig;
|
|
|
c6d234 |
|
|
|
c6d234 |
for (sig = 1; sig < NSIG && sig <= sizeof (mask) * 8; sig++)
|
|
|
c6d234 |
if (__sigismember (set, sig))
|
|
|
c6d234 |
diff --git a/sysdeps/mach/hurd/getcwd.c b/sysdeps/mach/hurd/getcwd.c
|
|
|
c6d234 |
index e4cea5c287d76fff..6945e4d1c5c12237 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/hurd/getcwd.c
|
|
|
c6d234 |
+++ b/sysdeps/mach/hurd/getcwd.c
|
|
|
c6d234 |
@@ -46,7 +46,7 @@ _hurd_canonicalize_directory_name_internal (file_t thisdir,
|
|
|
c6d234 |
mach_port_t rootid, thisid, rootdevid, thisdevid;
|
|
|
c6d234 |
ino64_t rootino, thisino;
|
|
|
c6d234 |
char *file_name;
|
|
|
c6d234 |
- register char *file_namep;
|
|
|
c6d234 |
+ char *file_namep;
|
|
|
c6d234 |
file_t parent;
|
|
|
c6d234 |
char *dirbuf = NULL;
|
|
|
c6d234 |
unsigned int dirbufsize = 0;
|
|
|
c6d234 |
diff --git a/sysdeps/mach/i386/sysdep.h b/sysdeps/mach/i386/sysdep.h
|
|
|
c6d234 |
index bafa4d6c8c0639e8..f87691d0264cfcdc 100644
|
|
|
c6d234 |
--- a/sysdeps/mach/i386/sysdep.h
|
|
|
c6d234 |
+++ b/sysdeps/mach/i386/sysdep.h
|
|
|
c6d234 |
@@ -29,7 +29,7 @@
|
|
|
c6d234 |
#define SNARF_ARGS(entry_sp, argc, argv, envp) \
|
|
|
c6d234 |
do \
|
|
|
c6d234 |
{ \
|
|
|
c6d234 |
- register char **p; \
|
|
|
c6d234 |
+ char **p; \
|
|
|
c6d234 |
argc = (int) *entry_sp; \
|
|
|
c6d234 |
argv = (char **) (entry_sp + 1); \
|
|
|
c6d234 |
p = argv; \
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/power6/wcschr.c b/sysdeps/powerpc/powerpc32/power6/wcschr.c
|
|
|
c6d234 |
index a981427f7298477d..3b4cca15face81da 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/power6/wcschr.c
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/power6/wcschr.c
|
|
|
c6d234 |
@@ -22,10 +22,10 @@
|
|
|
c6d234 |
/* Find the first occurrence of WC in WCS. */
|
|
|
c6d234 |
wchar_t *
|
|
|
c6d234 |
wcschr (wcs, wc)
|
|
|
c6d234 |
- register const wchar_t *wcs;
|
|
|
c6d234 |
- register const wchar_t wc;
|
|
|
c6d234 |
+ const wchar_t *wcs;
|
|
|
c6d234 |
+ const wchar_t wc;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register const wchar_t *wcs2 = wcs + 1;
|
|
|
c6d234 |
+ const wchar_t *wcs2 = wcs + 1;
|
|
|
c6d234 |
|
|
|
c6d234 |
if (*wcs == wc)
|
|
|
c6d234 |
return (wchar_t *) wcs;
|
|
|
c6d234 |
diff --git a/sysdeps/powerpc/powerpc32/power6/wcsrchr.c b/sysdeps/powerpc/powerpc32/power6/wcsrchr.c
|
|
|
c6d234 |
index f9db8f8b53fad7fc..333650190afff171 100644
|
|
|
c6d234 |
--- a/sysdeps/powerpc/powerpc32/power6/wcsrchr.c
|
|
|
c6d234 |
+++ b/sysdeps/powerpc/powerpc32/power6/wcsrchr.c
|
|
|
c6d234 |
@@ -22,10 +22,10 @@
|
|
|
c6d234 |
/* Find the last occurrence of WC in WCS. */
|
|
|
c6d234 |
wchar_t *
|
|
|
c6d234 |
wcsrchr (wcs, wc)
|
|
|
c6d234 |
- register const wchar_t *wcs;
|
|
|
c6d234 |
- register const wchar_t wc;
|
|
|
c6d234 |
+ const wchar_t *wcs;
|
|
|
c6d234 |
+ const wchar_t wc;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register const wchar_t *wcs2 = wcs + 1;
|
|
|
c6d234 |
+ const wchar_t *wcs2 = wcs + 1;
|
|
|
c6d234 |
const wchar_t *retval = NULL;
|
|
|
c6d234 |
|
|
|
c6d234 |
if (*wcs == wc)
|
|
|
c6d234 |
diff --git a/sysdeps/x86/bits/byteswap-16.h b/sysdeps/x86/bits/byteswap-16.h
|
|
|
c6d234 |
index 584eb86b74a80c33..2f619729a766ff4e 100644
|
|
|
c6d234 |
--- a/sysdeps/x86/bits/byteswap-16.h
|
|
|
c6d234 |
+++ b/sysdeps/x86/bits/byteswap-16.h
|
|
|
c6d234 |
@@ -24,7 +24,7 @@
|
|
|
c6d234 |
# if __GNUC__ >= 2
|
|
|
c6d234 |
# define __bswap_16(x) \
|
|
|
c6d234 |
(__extension__ \
|
|
|
c6d234 |
- ({ register unsigned short int __v, __x = (unsigned short int) (x); \
|
|
|
c6d234 |
+ ({ unsigned short int __v, __x = (unsigned short int) (x); \
|
|
|
c6d234 |
if (__builtin_constant_p (__x)) \
|
|
|
c6d234 |
__v = __bswap_constant_16 (__x); \
|
|
|
c6d234 |
else \
|
|
|
c6d234 |
@@ -37,7 +37,7 @@
|
|
|
c6d234 |
/* This is better than nothing. */
|
|
|
c6d234 |
# define __bswap_16(x) \
|
|
|
c6d234 |
(__extension__ \
|
|
|
c6d234 |
- ({ register unsigned short int __x = (unsigned short int) (x); \
|
|
|
c6d234 |
+ ({ unsigned short int __x = (unsigned short int) (x); \
|
|
|
c6d234 |
__bswap_constant_16 (__x); }))
|
|
|
c6d234 |
# endif
|
|
|
c6d234 |
#else
|
|
|
c6d234 |
diff --git a/sysdeps/x86/bits/byteswap.h b/sysdeps/x86/bits/byteswap.h
|
|
|
c6d234 |
index 581687c7f2631183..9bab0c7f4fcb532a 100644
|
|
|
c6d234 |
--- a/sysdeps/x86/bits/byteswap.h
|
|
|
c6d234 |
+++ b/sysdeps/x86/bits/byteswap.h
|
|
|
c6d234 |
@@ -57,7 +57,7 @@ __bswap_32 (unsigned int __bsx)
|
|
|
c6d234 |
`bswap' opcode. On i386 we have to use three instructions. */
|
|
|
c6d234 |
# define __bswap_32(x) \
|
|
|
c6d234 |
(__extension__ \
|
|
|
c6d234 |
- ({ register unsigned int __v, __x = (x); \
|
|
|
c6d234 |
+ ({ unsigned int __v, __x = (x); \
|
|
|
c6d234 |
if (__builtin_constant_p (__x)) \
|
|
|
c6d234 |
__v = __bswap_constant_32 (__x); \
|
|
|
c6d234 |
else \
|
|
|
c6d234 |
@@ -66,7 +66,7 @@ __bswap_32 (unsigned int __bsx)
|
|
|
c6d234 |
# else
|
|
|
c6d234 |
# define __bswap_32(x) \
|
|
|
c6d234 |
(__extension__ \
|
|
|
c6d234 |
- ({ register unsigned int __v, __x = (x); \
|
|
|
c6d234 |
+ ({ unsigned int __v, __x = (x); \
|
|
|
c6d234 |
if (__builtin_constant_p (__x)) \
|
|
|
c6d234 |
__v = __bswap_constant_32 (__x); \
|
|
|
c6d234 |
else \
|
|
|
c6d234 |
@@ -81,7 +81,7 @@ __bswap_32 (unsigned int __bsx)
|
|
|
c6d234 |
# else
|
|
|
c6d234 |
# define __bswap_32(x) \
|
|
|
c6d234 |
(__extension__ \
|
|
|
c6d234 |
- ({ register unsigned int __x = (x); __bswap_constant_32 (__x); }))
|
|
|
c6d234 |
+ ({ unsigned int __x = (x); __bswap_constant_32 (__x); }))
|
|
|
c6d234 |
# endif
|
|
|
c6d234 |
#else
|
|
|
c6d234 |
static __inline unsigned int
|
|
|
c6d234 |
@@ -113,7 +113,7 @@ __bswap_64 (__uint64_t __bsx)
|
|
|
c6d234 |
# elif __WORDSIZE == 64
|
|
|
c6d234 |
# define __bswap_64(x) \
|
|
|
c6d234 |
(__extension__ \
|
|
|
c6d234 |
- ({ register __uint64_t __v, __x = (x); \
|
|
|
c6d234 |
+ ({ __uint64_t __v, __x = (x); \
|
|
|
c6d234 |
if (__builtin_constant_p (__x)) \
|
|
|
c6d234 |
__v = __bswap_constant_64 (__x); \
|
|
|
c6d234 |
else \
|
|
|
c6d234 |
diff --git a/time/test_time.c b/time/test_time.c
|
|
|
c6d234 |
index b3573aa26ac34bf6..8d20ff935b9e8963 100644
|
|
|
c6d234 |
--- a/time/test_time.c
|
|
|
c6d234 |
+++ b/time/test_time.c
|
|
|
c6d234 |
@@ -24,7 +24,7 @@ int
|
|
|
c6d234 |
main (int argc, char **argv)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
time_t t;
|
|
|
c6d234 |
- register struct tm *tp;
|
|
|
c6d234 |
+ struct tm *tp;
|
|
|
c6d234 |
struct tm tbuf;
|
|
|
c6d234 |
int lose = 0;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/time/tzfile.c b/time/tzfile.c
|
|
|
c6d234 |
index 38aa15cb16300e1c..d67262916f11eaf0 100644
|
|
|
c6d234 |
--- a/time/tzfile.c
|
|
|
c6d234 |
+++ b/time/tzfile.c
|
|
|
c6d234 |
@@ -104,10 +104,10 @@ __tzfile_read (const char *file, size_t extra, char **extrap)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
static const char default_tzdir[] = TZDIR;
|
|
|
c6d234 |
size_t num_isstd, num_isgmt;
|
|
|
c6d234 |
- register FILE *f;
|
|
|
c6d234 |
+ FILE *f;
|
|
|
c6d234 |
struct tzhead tzhead;
|
|
|
c6d234 |
size_t chars;
|
|
|
c6d234 |
- register size_t i;
|
|
|
c6d234 |
+ size_t i;
|
|
|
c6d234 |
size_t total_size;
|
|
|
c6d234 |
size_t types_idx;
|
|
|
c6d234 |
size_t leaps_idx;
|
|
|
c6d234 |
@@ -632,7 +632,7 @@ __tzfile_compute (time_t timer, int use_localtime,
|
|
|
c6d234 |
long int *leap_correct, int *leap_hit,
|
|
|
c6d234 |
struct tm *tp)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register size_t i;
|
|
|
c6d234 |
+ size_t i;
|
|
|
c6d234 |
|
|
|
c6d234 |
if (use_localtime)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
diff --git a/wcsmbs/wcscat.c b/wcsmbs/wcscat.c
|
|
|
c6d234 |
index 4eb2d936e76098b6..89366e1437465988 100644
|
|
|
c6d234 |
--- a/wcsmbs/wcscat.c
|
|
|
c6d234 |
+++ b/wcsmbs/wcscat.c
|
|
|
c6d234 |
@@ -28,8 +28,8 @@ __wcscat (dest, src)
|
|
|
c6d234 |
wchar_t *dest;
|
|
|
c6d234 |
const wchar_t *src;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register wchar_t *s1 = dest;
|
|
|
c6d234 |
- register const wchar_t *s2 = src;
|
|
|
c6d234 |
+ wchar_t *s1 = dest;
|
|
|
c6d234 |
+ const wchar_t *s2 = src;
|
|
|
c6d234 |
wchar_t c;
|
|
|
c6d234 |
|
|
|
c6d234 |
/* Find the end of the string. */
|
|
|
c6d234 |
diff --git a/wcsmbs/wcschr.c b/wcsmbs/wcschr.c
|
|
|
c6d234 |
index cb0592bd425b6c4c..56511d88176fa1f0 100644
|
|
|
c6d234 |
--- a/wcsmbs/wcschr.c
|
|
|
c6d234 |
+++ b/wcsmbs/wcschr.c
|
|
|
c6d234 |
@@ -24,8 +24,8 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
wchar_t *
|
|
|
c6d234 |
wcschr (wcs, wc)
|
|
|
c6d234 |
- register const wchar_t *wcs;
|
|
|
c6d234 |
- register const wchar_t wc;
|
|
|
c6d234 |
+ const wchar_t *wcs;
|
|
|
c6d234 |
+ const wchar_t wc;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
do
|
|
|
c6d234 |
if (*wcs == wc)
|
|
|
c6d234 |
diff --git a/wcsmbs/wcschrnul.c b/wcsmbs/wcschrnul.c
|
|
|
c6d234 |
index 1e4c44f80f77ef63..48eaf7b011e3a690 100644
|
|
|
c6d234 |
--- a/wcsmbs/wcschrnul.c
|
|
|
c6d234 |
+++ b/wcsmbs/wcschrnul.c
|
|
|
c6d234 |
@@ -24,8 +24,8 @@
|
|
|
c6d234 |
/* Find the first occurrence of WC in WCS. */
|
|
|
c6d234 |
wchar_t *
|
|
|
c6d234 |
__wcschrnul (wcs, wc)
|
|
|
c6d234 |
- register const wchar_t *wcs;
|
|
|
c6d234 |
- register const wchar_t wc;
|
|
|
c6d234 |
+ const wchar_t *wcs;
|
|
|
c6d234 |
+ const wchar_t wc;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
while (*wcs != L'\0')
|
|
|
c6d234 |
if (*wcs == wc)
|
|
|
c6d234 |
diff --git a/wcsmbs/wcscspn.c b/wcsmbs/wcscspn.c
|
|
|
c6d234 |
index 9e84226cf5674ef8..cf4205fd5e56baee 100644
|
|
|
c6d234 |
--- a/wcsmbs/wcscspn.c
|
|
|
c6d234 |
+++ b/wcsmbs/wcscspn.c
|
|
|
c6d234 |
@@ -29,7 +29,7 @@ wcscspn (wcs, reject)
|
|
|
c6d234 |
const wchar_t *wcs;
|
|
|
c6d234 |
const wchar_t *reject;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register size_t count = 0;
|
|
|
c6d234 |
+ size_t count = 0;
|
|
|
c6d234 |
|
|
|
c6d234 |
while (*wcs != L'\0')
|
|
|
c6d234 |
if (wcschr (reject, *wcs++) == NULL)
|
|
|
c6d234 |
diff --git a/wcsmbs/wcspbrk.c b/wcsmbs/wcspbrk.c
|
|
|
c6d234 |
index b769a388d5e49301..ee880709d826fde8 100644
|
|
|
c6d234 |
--- a/wcsmbs/wcspbrk.c
|
|
|
c6d234 |
+++ b/wcsmbs/wcspbrk.c
|
|
|
c6d234 |
@@ -25,8 +25,8 @@
|
|
|
c6d234 |
/* Find the first occurrence in WCS of any wide-character in ACCEPT. */
|
|
|
c6d234 |
wchar_t *
|
|
|
c6d234 |
wcspbrk (wcs, accept)
|
|
|
c6d234 |
- register const wchar_t *wcs;
|
|
|
c6d234 |
- register const wchar_t *accept;
|
|
|
c6d234 |
+ const wchar_t *wcs;
|
|
|
c6d234 |
+ const wchar_t *accept;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
while (*wcs != L'\0')
|
|
|
c6d234 |
if (wcschr (accept, *wcs) == NULL)
|
|
|
c6d234 |
diff --git a/wcsmbs/wcsrchr.c b/wcsmbs/wcsrchr.c
|
|
|
c6d234 |
index 27c94c5bb28cf9c5..b1771a7e8a7ee8a9 100644
|
|
|
c6d234 |
--- a/wcsmbs/wcsrchr.c
|
|
|
c6d234 |
+++ b/wcsmbs/wcsrchr.c
|
|
|
c6d234 |
@@ -25,8 +25,8 @@
|
|
|
c6d234 |
/* Find the last occurrence of WC in WCS. */
|
|
|
c6d234 |
wchar_t *
|
|
|
c6d234 |
WCSRCHR (wcs, wc)
|
|
|
c6d234 |
- register const wchar_t *wcs;
|
|
|
c6d234 |
- register const wchar_t wc;
|
|
|
c6d234 |
+ const wchar_t *wcs;
|
|
|
c6d234 |
+ const wchar_t wc;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
const wchar_t *retval = NULL;
|
|
|
c6d234 |
|
|
|
c6d234 |
diff --git a/wcsmbs/wcsspn.c b/wcsmbs/wcsspn.c
|
|
|
c6d234 |
index 3e84726c6acb159c..4c2db0ffc360e906 100644
|
|
|
c6d234 |
--- a/wcsmbs/wcsspn.c
|
|
|
c6d234 |
+++ b/wcsmbs/wcsspn.c
|
|
|
c6d234 |
@@ -29,9 +29,9 @@ wcsspn (wcs, accept)
|
|
|
c6d234 |
const wchar_t *wcs;
|
|
|
c6d234 |
const wchar_t *accept;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register const wchar_t *p;
|
|
|
c6d234 |
- register const wchar_t *a;
|
|
|
c6d234 |
- register size_t count = 0;
|
|
|
c6d234 |
+ const wchar_t *p;
|
|
|
c6d234 |
+ const wchar_t *a;
|
|
|
c6d234 |
+ size_t count = 0;
|
|
|
c6d234 |
|
|
|
c6d234 |
for (p = wcs; *p != L'\0'; ++p)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
diff --git a/wcsmbs/wcsstr.c b/wcsmbs/wcsstr.c
|
|
|
c6d234 |
index 932c74fe5e144ce9..d4a42df01ce1214c 100644
|
|
|
c6d234 |
--- a/wcsmbs/wcsstr.c
|
|
|
c6d234 |
+++ b/wcsmbs/wcsstr.c
|
|
|
c6d234 |
@@ -33,7 +33,7 @@ wcsstr (haystack, needle)
|
|
|
c6d234 |
const wchar_t *haystack;
|
|
|
c6d234 |
const wchar_t *needle;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register wchar_t b, c;
|
|
|
c6d234 |
+ wchar_t b, c;
|
|
|
c6d234 |
|
|
|
c6d234 |
if ((b = *needle) != L'\0')
|
|
|
c6d234 |
{
|
|
|
c6d234 |
@@ -50,8 +50,8 @@ wcsstr (haystack, needle)
|
|
|
c6d234 |
|
|
|
c6d234 |
for (;;)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register wchar_t a;
|
|
|
c6d234 |
- register const wchar_t *rhaystack, *rneedle;
|
|
|
c6d234 |
+ wchar_t a;
|
|
|
c6d234 |
+ const wchar_t *rhaystack, *rneedle;
|
|
|
c6d234 |
|
|
|
c6d234 |
do
|
|
|
c6d234 |
{
|
|
|
c6d234 |
diff --git a/wcsmbs/wmemchr.c b/wcsmbs/wmemchr.c
|
|
|
c6d234 |
index 905a321fb24680f4..b8726838a2951d6e 100644
|
|
|
c6d234 |
--- a/wcsmbs/wmemchr.c
|
|
|
c6d234 |
+++ b/wcsmbs/wmemchr.c
|
|
|
c6d234 |
@@ -24,9 +24,9 @@
|
|
|
c6d234 |
|
|
|
c6d234 |
wchar_t *
|
|
|
c6d234 |
wmemchr (s, c, n)
|
|
|
c6d234 |
- register const wchar_t *s;
|
|
|
c6d234 |
- register wchar_t c;
|
|
|
c6d234 |
- register size_t n;
|
|
|
c6d234 |
+ const wchar_t *s;
|
|
|
c6d234 |
+ wchar_t c;
|
|
|
c6d234 |
+ size_t n;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
/* For performance reasons unfold the loop four times. */
|
|
|
c6d234 |
while (n >= 4)
|
|
|
c6d234 |
diff --git a/wcsmbs/wmemcmp.c b/wcsmbs/wmemcmp.c
|
|
|
c6d234 |
index 2680b4bd078352bb..bb0a900dc8a5ec49 100644
|
|
|
c6d234 |
--- a/wcsmbs/wmemcmp.c
|
|
|
c6d234 |
+++ b/wcsmbs/wmemcmp.c
|
|
|
c6d234 |
@@ -28,8 +28,8 @@ WMEMCMP (s1, s2, n)
|
|
|
c6d234 |
const wchar_t *s2;
|
|
|
c6d234 |
size_t n;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register wchar_t c1;
|
|
|
c6d234 |
- register wchar_t c2;
|
|
|
c6d234 |
+ wchar_t c1;
|
|
|
c6d234 |
+ wchar_t c2;
|
|
|
c6d234 |
|
|
|
c6d234 |
while (n >= 4)
|
|
|
c6d234 |
{
|
|
|
c6d234 |
diff --git a/wcsmbs/wmemset.c b/wcsmbs/wmemset.c
|
|
|
c6d234 |
index 8049bb813075f000..afc26c7c48f34f3d 100644
|
|
|
c6d234 |
--- a/wcsmbs/wmemset.c
|
|
|
c6d234 |
+++ b/wcsmbs/wmemset.c
|
|
|
c6d234 |
@@ -28,7 +28,7 @@ wmemset (s, c, n)
|
|
|
c6d234 |
wchar_t c;
|
|
|
c6d234 |
size_t n;
|
|
|
c6d234 |
{
|
|
|
c6d234 |
- register wchar_t *wp = s;
|
|
|
c6d234 |
+ wchar_t *wp = s;
|
|
|
c6d234 |
|
|
|
c6d234 |
while (n >= 4)
|
|
|
c6d234 |
{
|