]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add some spaces before '('.
authorJoseph Myers <joseph@codesourcery.com>
Wed, 27 Feb 2019 13:55:45 +0000 (13:55 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Wed, 27 Feb 2019 13:55:45 +0000 (13:55 +0000)
This patch fixes various places where a space should have been present
before '(' in accordance with the GNU Coding Standards.  Most but not
all of the fixes in this patch are for calls to sizeof (but it's not
exhaustive regarding such calls that should be fixed).

Tested for x86_64, and with build-many-glibcs.py.

* benchtests/bench-strcpy.c (do_test): Use space before '('.
* benchtests/bench-string.h (cmdline_process_function): Likewise.
* benchtests/bench-strlen.c (do_test): Likewise.
(test_main): Likewise.
* catgets/gencat.c (read_old): Likewise.
* elf/cache.c (load_aux_cache): Likewise.
* iconvdata/bug-iconv8.c (do_test): Likewise.
* math/test-tgmath-ret.c (do_test): Likewise.
* nis/nis_call.c (rec_dirsearch): Likewise.
* nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
* nptl/tst-audit-threads.c (do_test): Likewise.
* nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
* nss/nss_test1.c (init): Likewise.
* nss/test-netdb.c (test_hosts): Likewise.
* posix/execvpe.c (maybe_script_execute): Likewise.
* stdio-common/tst-fmemopen4.c (do_test): Likewise.
* stdio-common/tst-printf.c (do_test): Likewise.
* stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
* stdlib/fmtmsg.c (NKEYWORDS): Likewise.
* stdlib/qsort.c (STACK_SIZE): Likewise.
* stdlib/test-canon.c (do_test): Likewise.
* stdlib/tst-swapcontext1.c (do_test): Likewise.
* string/memcmp.c (OPSIZ): Likewise.
* string/test-strcpy.c (do_test): Likewise.
(do_random_tests): Likewise.
* string/test-strlen.c (do_test): Likewise.
(test_main): Likewise.
* string/test-strrchr.c (do_test): Likewise.
(do_random_tests): Likewise.
* string/tester.c (test_memrchr): Likewise.
(test_memchr): Likewise.
* sysdeps/generic/memcopy.h (OPSIZ): Likewise.
* sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
* sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
(read_encoded_value_with_base): Likewise.
* sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
* sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
* sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
* sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
* sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
* sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
Likewise.
* sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
Likewise.
* sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
* sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
* sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
Likewise.
* sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
Likewise.
* sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
Likewise.
* sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
Likewise.
* sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
* sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
(FP_XSTATE_MAGIC2_SIZE): Likewise.
* sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
* time/test_time.c (main): Likewise.

47 files changed:
ChangeLog
benchtests/bench-strcpy.c
benchtests/bench-string.h
benchtests/bench-strlen.c
catgets/gencat.c
elf/cache.c
iconvdata/bug-iconv8.c
math/test-tgmath-ret.c
nis/nis_call.c
nis/nis_findserv.c
nptl/tst-audit-threads.c
nptl/tst-cancel4-common.h
nss/nss_test1.c
nss/test-netdb.c
posix/execvpe.c
stdio-common/tst-fmemopen4.c
stdio-common/tst-printf.c
stdio-common/vfscanf-internal.c
stdlib/fmtmsg.c
stdlib/qsort.c
stdlib/test-canon.c
stdlib/tst-swapcontext1.c
string/memcmp.c
string/test-strcpy.c
string/test-strlen.c
string/test-strrchr.c
string/tester.c
sysdeps/generic/memcopy.h
sysdeps/generic/unwind-dw2.c
sysdeps/generic/unwind-pe.h
sysdeps/hppa/dl-machine.h
sysdeps/hppa/fpu/feupdateenv.c
sysdeps/ia64/fpu/sfp-machine.h
sysdeps/mach/hurd/spawni.c
sysdeps/posix/spawni.c
sysdeps/powerpc/fpu/tst-setcontext-fpscr.c
sysdeps/unix/sysv/linux/aarch64/bits/procfs.h
sysdeps/unix/sysv/linux/arm/bits/procfs.h
sysdeps/unix/sysv/linux/arm/ioperm.c
sysdeps/unix/sysv/linux/csky/bits/procfs.h
sysdeps/unix/sysv/linux/m68k/bits/procfs.h
sysdeps/unix/sysv/linux/nios2/bits/procfs.h
sysdeps/unix/sysv/linux/spawni.c
sysdeps/unix/sysv/linux/x86/bits/procfs.h
sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
sysdeps/x86/fpu/sfp-machine.h
time/test_time.c

index 9ab66cf7352ef4966384df19d5e28babe6e3e94c..34e4558bb5ee341b55bb35098deff8b372d05543 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,65 @@
+2019-02-27  Joseph Myers  <joseph@codesourcery.com>
+
+       * benchtests/bench-strcpy.c (do_test): Use space before '('.
+       * benchtests/bench-string.h (cmdline_process_function): Likewise.
+       * benchtests/bench-strlen.c (do_test): Likewise.
+       (test_main): Likewise.
+       * catgets/gencat.c (read_old): Likewise.
+       * elf/cache.c (load_aux_cache): Likewise.
+       * iconvdata/bug-iconv8.c (do_test): Likewise.
+       * math/test-tgmath-ret.c (do_test): Likewise.
+       * nis/nis_call.c (rec_dirsearch): Likewise.
+       * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
+       * nptl/tst-audit-threads.c (do_test): Likewise.
+       * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
+       * nss/nss_test1.c (init): Likewise.
+       * nss/test-netdb.c (test_hosts): Likewise.
+       * posix/execvpe.c (maybe_script_execute): Likewise.
+       * stdio-common/tst-fmemopen4.c (do_test): Likewise.
+       * stdio-common/tst-printf.c (do_test): Likewise.
+       * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
+       * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
+       * stdlib/qsort.c (STACK_SIZE): Likewise.
+       * stdlib/test-canon.c (do_test): Likewise.
+       * stdlib/tst-swapcontext1.c (do_test): Likewise.
+       * string/memcmp.c (OPSIZ): Likewise.
+       * string/test-strcpy.c (do_test): Likewise.
+       (do_random_tests): Likewise.
+       * string/test-strlen.c (do_test): Likewise.
+       (test_main): Likewise.
+       * string/test-strrchr.c (do_test): Likewise.
+       (do_random_tests): Likewise.
+       * string/tester.c (test_memrchr): Likewise.
+       (test_memchr): Likewise.
+       * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
+       * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
+       * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
+       (read_encoded_value_with_base): Likewise.
+       * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
+       * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
+       * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
+       * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
+       * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
+       * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
+       Likewise.
+       * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
+       Likewise.
+       * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
+       * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
+       * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
+       Likewise.
+       * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
+       Likewise.
+       * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
+       Likewise.
+       * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
+       Likewise.
+       * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
+       * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
+       (FP_XSTATE_MAGIC2_SIZE): Likewise.
+       * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
+       * time/test_time.c (main): Likewise.
+
 2019-02-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
 
        * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
index 92cad4cc65af52bf2051dfba5a54e4a1134c10ce..9fe999e5f4584b9034c19fb4a90b7cbd6deccd00 100644 (file)
@@ -102,11 +102,11 @@ do_test (size_t align1, size_t align2, size_t len, int max_char)
    but in wchar_ts, in bytes it will equal to align * (sizeof (wchar_t))
    len for wcschr here isn't in bytes but it's number of wchar_t symbols.  */
   align1 &= 7;
-  if ((align1 + len) * sizeof(CHAR) >= page_size)
+  if ((align1 + len) * sizeof (CHAR) >= page_size)
     return;
 
   align2 &= 7;
-  if ((align2 + len) * sizeof(CHAR) >= page_size)
+  if ((align2 + len) * sizeof (CHAR) >= page_size)
     return;
 
   s1 = (CHAR *) (buf1) + align1;
@@ -116,7 +116,8 @@ do_test (size_t align1, size_t align2, size_t len, int max_char)
     s1[i] = 32 + 23 * i % (max_char - 32);
   s1[len] = 0;
 
-  printf ("Length %4zd, alignments in bytes %2zd/%2zd:", len, align1 * sizeof(CHAR), align2 * sizeof(CHAR));
+  printf ("Length %4zd, alignments in bytes %2zd/%2zd:", len,
+         align1 * sizeof (CHAR), align2 * sizeof (CHAR));
 
   FOR_EACH_IMPL (impl, 0)
     do_one_test (impl, s2, s1, len);
index e1014ead77799442863e1c7b8c47baafa0ce7f82..9d3332a624c54b22884b2f90444c841a67f4baeb 100644 (file)
@@ -156,7 +156,7 @@ cmdline_process_function (int c)
       case OPT_RANDOM:
        {
          int fdr = open ("/dev/urandom", O_RDONLY);
-         if (fdr < 0 || read (fdr, &seed, sizeof(seed)) != sizeof (seed))
+         if (fdr < 0 || read (fdr, &seed, sizeof (seed)) != sizeof (seed))
            seed = time (NULL);
          if (fdr >= 0)
            close (fdr);
index f86095a5d3ce1746b7c0a37d29799a8fe4c83f87..f6a8bf5dff6ff4410ab46997e48a173249497e7f 100644 (file)
@@ -75,7 +75,7 @@ do_test (json_ctx_t *json_ctx, size_t align, size_t len)
   size_t i;
 
   align &= 63;
-  if (align + sizeof(CHAR) * len >= page_size)
+  if (align + sizeof (CHAR) * len >= page_size)
     return;
 
   json_element_object_begin (json_ctx);
@@ -127,16 +127,16 @@ test_main (void)
 
   for (i = 1; i < 8; ++i)
   {
-    do_test (&json_ctx, sizeof(CHAR) * i, i);
+    do_test (&json_ctx, sizeof (CHAR) * i, i);
     do_test (&json_ctx, 0, i);
   }
 
   for (i = 2; i <= 12; ++i)
     {
       do_test (&json_ctx, 0, 1 << i);
-      do_test (&json_ctx, sizeof(CHAR) * 7, 1 << i);
-      do_test (&json_ctx, sizeof(CHAR) * i, 1 << i);
-      do_test (&json_ctx, sizeof(CHAR) * i, (size_t)((1 << i) / 1.5));
+      do_test (&json_ctx, sizeof (CHAR) * 7, 1 << i);
+      do_test (&json_ctx, sizeof (CHAR) * i, 1 << i);
+      do_test (&json_ctx, sizeof (CHAR) * i, (size_t)((1 << i) / 1.5));
     }
 
   json_array_end (&json_ctx);
index 51fd2a724edb0d737a15dc02789de09b3277d4af..f0d47ae0575c3508d6835bb32c384b0cc9fe01ae 100644 (file)
@@ -1270,7 +1270,7 @@ read_old (struct catalog *catalog, const char *file_name)
             Insert it at the right position.  */
          struct message_list *newp;
 
-         newp = (struct message_list *) xmalloc (sizeof(*newp));
+         newp = (struct message_list *) xmalloc (sizeof (*newp));
          newp->number = old_cat_obj.name_ptr[cnt * 3 + 1];
          newp->message =
            &old_cat_obj.strings[old_cat_obj.name_ptr[cnt * 3 + 2]];
index a64d67ecbec0f8ed0623975737cc064abaa5970f..d0d5858448516d4f4ed793c8fc66041439d72073 100644 (file)
@@ -712,8 +712,8 @@ load_aux_cache (const char *aux_cache_name)
   if (aux_cache == MAP_FAILED
       || aux_cache_size < sizeof (struct aux_cache_file)
       || memcmp (aux_cache->magic, AUX_CACHEMAGIC, sizeof AUX_CACHEMAGIC - 1)
-      || aux_cache_size != (sizeof(struct aux_cache_file)
-                           + aux_cache->nlibs * sizeof(struct aux_cache_file_entry)
+      || aux_cache_size != (sizeof (struct aux_cache_file)
+                           + aux_cache->nlibs * sizeof (struct aux_cache_file_entry)
                            + aux_cache->len_strings))
     {
       close (fd);
index b91dc1d1f2fb1fde9a06de9d293e484bc47f05ef..e32d891b5ce1eb82a700432265d985dc6eea6841 100644 (file)
@@ -16,9 +16,9 @@ do_test (void)
    size_t ret;
 
    inbuf = in;
-   inbytesleft = sizeof(in) - 1;
+   inbytesleft = sizeof (in) - 1;
    outbuf = out;
-   outbytesleft = sizeof(out);
+   outbytesleft = sizeof (out);
 
    cd = iconv_open("utf-8", "cp932");
    ret = iconv(cd, &inbuf, &inbytesleft, &outbuf, &outbytesleft);
index 676edf7b70800481e8c45528c2e56435f31d3755..7c4cabbb808adbc651527ce63a8adc0e739a53d6 100644 (file)
@@ -84,7 +84,7 @@ do_test (void)
   check_return_fromfpx ();
   check_return_ufromfpx ();
 
-  printf ("%Zd\n", sizeof(carg (lx)));
+  printf ("%Zd\n", sizeof (carg (lx)));
 
   return errors != 0;
 }
index c1cfd8dcec858c0c5d1f1ae260351322fcba8381..a48ecc39a816e57ff4dbf3685d8f89ec53c92169 100644 (file)
@@ -503,7 +503,7 @@ rec_dirsearch (const_nis_name name, directory_obj *dir, nis_error *status)
            return dir;
          }
        nis_free_directory (dir);
-       obj = calloc (1, sizeof(directory_obj));
+       obj = calloc (1, sizeof (directory_obj));
        if (obj == NULL)
          {
            __free_fdresult (fd_res);
index 5a76a130ddb1450d47a11b105879377af2f856ba..d0ce3e8693e486761a1f336ce52abf1d6ae0e7c0 100644 (file)
@@ -127,7 +127,7 @@ __nis_findfastest_with_timeout (dir_binding *bind,
              }
            memcpy ((char *) &pings[pings_count].sin, (char *) &sin,
                    sizeof (sin));
-           memcpy ((char *)&saved_sin, (char *)&sin, sizeof(sin));
+           memcpy ((char *)&saved_sin, (char *)&sin, sizeof (sin));
            pings[pings_count].xid = xid_seed + pings_count;
            pings[pings_count].server_nr = i;
            pings[pings_count].server_ep = j;
index ad10fbf65249cc0592d8e10518da93704c394bd8..584624877112bdd91cb5309befe75a9ec0ea99f3 100644 (file)
@@ -77,7 +77,7 @@ do_test (void)
   /* Used to synchronize all the threads after calling each retNumN.  */
   xpthread_barrier_init (&barrier, NULL, num_threads);
 
-  threads = (pthread_t *) xcalloc (num_threads, sizeof(pthread_t));
+  threads = (pthread_t *) xcalloc (num_threads, sizeof (pthread_t));
   for (i = 0; i < num_threads; i++)
     threads[i] = xpthread_create(NULL, thread_main, NULL);
 
index 6799aa486b1a434cbb377e9e0e1037aa45bcc386..18702fbf51818f63e7a155234a59bca004555be4 100644 (file)
@@ -68,10 +68,10 @@ static void
 set_socket_buffer (int s)
 {
   int val = 1;
-  socklen_t len = sizeof(val);
+  socklen_t len = sizeof (val);
 
   TEST_VERIFY_EXIT (setsockopt (s, SOL_SOCKET, SO_SNDBUF, &val,
-                   sizeof(val)) == 0);
+                   sizeof (val)) == 0);
   TEST_VERIFY_EXIT (getsockopt (s, SOL_SOCKET, SO_SNDBUF, &val, &len) == 0);
   TEST_VERIFY_EXIT (val < WRITE_BUFFER_SIZE);
 }
index e4400d1e32e7cde3826c507119dfc2fe8a321169..d5b99641d5c4dd3363341012d0ef6405aa928cfd 100644 (file)
@@ -81,7 +81,7 @@ init(void)
     return;
   if (NAME(init_hook))
     {
-      memset (&t, 0, sizeof(t));
+      memset (&t, 0, sizeof (t));
       NAME(init_hook)(&t);
 
       if (t.pwd_table)
index 09bb8e6fd9bab8475400437cf3c7929b4b93e417..07c73b7c1bfa150874272371f7c457ab73b2b516 100644 (file)
@@ -192,7 +192,7 @@ test_hosts (void)
     }
 
   ip.s_addr = htonl (INADDR_LOOPBACK);
-  hptr1 = gethostbyaddr ((char *) &ip, sizeof(ip), AF_INET);
+  hptr1 = gethostbyaddr ((char *) &ip, sizeof (ip), AF_INET);
   if (hptr1 != NULL)
     {
       printf ("official name of 127.0.0.1: %s\n", hptr1->h_name);
index d1415c1e1efd1f387f43f8c8d32f7a7b988417ed..af78e4637dd199a884c65d8cdad5b12776281d78 100644 (file)
@@ -59,7 +59,7 @@ maybe_script_execute (const char *file, char *const argv[], char *const envp[])
   new_argv[0] = (char *) _PATH_BSHELL;
   new_argv[1] = (char *) file;
   if (argc > 1)
-    memcpy (new_argv + 2, argv + 1, argc * sizeof(char *));
+    memcpy (new_argv + 2, argv + 1, argc * sizeof (char *));
   else
     new_argv[2] = NULL;
 
index 0f0a9db638dc3de690260d45c1516a439e3f98c4..97b485c696050d59181cff9ef33be2f5629363d9 100644 (file)
@@ -40,14 +40,14 @@ do_test (void)
   size_t r = fwrite (test, sizeof (char), sizeof (test), stream);
   if (r != sizeof (test))
     {
-      printf ("error: fwrite returned %zu, expected %zu\n", r, sizeof(test));
+      printf ("error: fwrite returned %zu, expected %zu\n", r, sizeof (test));
       return 1;
     }
 
   r = ftell (stream);
   if (r != sizeof (test))
     {
-      printf ("error: ftell return %zu, expected %zu\n", r, sizeof(test));
+      printf ("error: ftell return %zu, expected %zu\n", r, sizeof (test));
       return 1;
     }
 
@@ -60,7 +60,7 @@ do_test (void)
   r = ftell (stream);
   if (r != sizeof (test))
     {
-      printf ("error: ftell return %zu, expected %zu\n", r, sizeof(test));
+      printf ("error: ftell return %zu, expected %zu\n", r, sizeof (test));
       return 1;
     }
 
index e5db10ffd2204157ad38e43155e5c0d701dd420d..f48f5e8428ca40457ec72a9d2a4449a75bb066b8 100644 (file)
@@ -173,7 +173,7 @@ I am ready for my first lesson today.";
            snprintf (buf, sizeof (buf), "%30s", "foo"), (int) sizeof (buf),
            buf);
     printf ("snprintf (\"%%.999999u\", 10) == %d\n",
-           snprintf(buf2, sizeof(buf2), "%.999999u", 10));
+           snprintf (buf2, sizeof (buf2), "%.999999u", 10));
   }
 
   printf("%.8f\n", DBL_MAX);
index 78fe04cc9c32dade4bfee5566adfd23d7e1f813b..888b2b1d96cbb4734ae2f3b53987b9d7bf14497b 100644 (file)
@@ -1360,7 +1360,7 @@ __vfscanf_internal (FILE *s, const char *format, va_list argptr,
                    wchar_t *cp = (wchar_t *) realloc (*strptr,
                                                       ((wstr
                                                         - (wchar_t *) *strptr)
-                                                       * sizeof(wchar_t)));
+                                                       * sizeof (wchar_t)));
                    if (cp != NULL)
                      *strptr = (char *) cp;
                  }
@@ -2756,7 +2756,7 @@ __vfscanf_internal (FILE *s, const char *format, va_list argptr,
                    {
                      wchar_t *cp = (wchar_t *)
                        realloc (*strptr, ((wstr - (wchar_t *) *strptr)
-                                          * sizeof(wchar_t)));
+                                          * sizeof (wchar_t)));
                      if (cp != NULL)
                        *strptr = (char *) cp;
                    }
index e31c7477254859647744d9257bf81fd9719d5cfe..cd1e48fdbd361b7848db16fb18cb4abb9a7d0875 100644 (file)
@@ -53,7 +53,7 @@ static const struct
     { 6, "action"},
     { 3, "tag" }
   };
-#define NKEYWORDS (sizeofkeywords) / sizeof (keywords[0]))
+#define NKEYWORDS (sizeof (keywords) / sizeof (keywords[0]))
 
 
 struct severity_info
index 6c7e094716693ac7b6ae094abaa4114714d505c7..17c42b3112710cc928cc232667586baee2cd7577 100644 (file)
@@ -55,7 +55,7 @@ typedef struct
    log(MAX_THRESH)).  Since total_elements has type size_t, we get as
    upper bound for log (total_elements):
    bits per byte (CHAR_BIT) * sizeof(size_t).  */
-#define STACK_SIZE     (CHAR_BIT * sizeof(size_t))
+#define STACK_SIZE     (CHAR_BIT * sizeof (size_t))
 #define PUSH(low, high)        ((void) ((top->lo = (low)), (top->hi = (high)), ++top))
 #define        POP(low, high)  ((void) (--top, (low = top->lo), (high = top->hi)))
 #define        STACK_NOT_EMPTY (stack < top)
index 060629732e2fbba2a20291cff8dafc379f05d77a..63e574cdb1676c5ce14931e3ff1abc041b6c0672 100644 (file)
@@ -124,7 +124,7 @@ do_test (int argc, char ** argv)
   int i, errors = 0;
   char buf[PATH_MAX];
 
-  getcwd (cwd, sizeof(buf));
+  getcwd (cwd, sizeof (buf));
   cwd_len = strlen (cwd);
 
   errno = 0;
@@ -204,7 +204,7 @@ do_test (int argc, char ** argv)
       free (result2);
     }
 
-  getcwd (buf, sizeof(buf));
+  getcwd (buf, sizeof (buf));
   if (strcmp (buf, cwd))
     {
       printf ("%s: current working directory changed from %s to %s\n",
index f56eb542c206dce8bbbc2333594d910a14410d84..59b0e9eff3b863fba9c4fcfda0a6d976511e4492 100644 (file)
@@ -80,14 +80,14 @@ do_test (void)
   if (getcontext(&uctx_func1) == -1)
     handle_error("getcontext");
   uctx_func1.uc_stack.ss_sp = func1_stack;
-  uctx_func1.uc_stack.ss_size = sizeof(func1_stack);
+  uctx_func1.uc_stack.ss_size = sizeof (func1_stack);
   uctx_func1.uc_link = &uctx_main;
   makecontext(&uctx_func1, func1, 0);
 
   if (getcontext(&uctx_func2) == -1)
     handle_error("getcontext");
   uctx_func2.uc_stack.ss_sp = func2_stack;
-  uctx_func2.uc_stack.ss_size = sizeof(func2_stack);
+  uctx_func2.uc_stack.ss_size = sizeof (func2_stack);
   uctx_func2.uc_link = &uctx_func1;
   makecontext(&uctx_func2, func2, 0);
 
index 0fbc96ccfa83ad189db49fc6d49d4a7ed6218f16..30da4e8bdcb4da3f2412eee38dc0ade57b6df0b4 100644 (file)
@@ -47,7 +47,7 @@
    This should normally be the biggest type supported by a single load
    and store.  Must be an unsigned type.  */
 # define op_t  unsigned long int
-# define OPSIZ (sizeof(op_t))
+# define OPSIZ (sizeof (op_t))
 
 /* Threshold value for when to enter the unrolled loops.  */
 # define OP_T_THRES    16
index 2cb5ac94ef9843fbc3d7a91a5f18845be968a565..75220dc13114d355bc78cef9a2a0f08b351a19e2 100644 (file)
@@ -103,11 +103,11 @@ do_test (size_t align1, size_t align2, size_t len, int max_char)
    but in wchar_ts, in bytes it will equal to align * (sizeof (wchar_t))
    len for wcschr here isn't in bytes but it's number of wchar_t symbols.  */
   align1 &= 7;
-  if ((align1 + len) * sizeof(CHAR) >= page_size)
+  if ((align1 + len) * sizeof (CHAR) >= page_size)
     return;
 
   align2 &= 7;
-  if ((align2 + len) * sizeof(CHAR) >= page_size)
+  if ((align2 + len) * sizeof (CHAR) >= page_size)
     return;
 
   s1 = (CHAR *) (buf1) + align1;
@@ -137,9 +137,9 @@ do_random_tests (void)
         0 to 63 since some assembly implementations have separate
         prolog for alignments more 48. */
 
-      align1 = random () & (63 / sizeof(CHAR));
+      align1 = random () & (63 / sizeof (CHAR));
       if (random () & 1)
-       align2 = random () & (63 / sizeof(CHAR));
+       align2 = random () & (63 / sizeof (CHAR));
       else
        align2 = align1 + (random () & 24);
       len = random () & 511;
index a474c1086f37d7fe092f1eafd032e2e796116f4e..2cd2f66205da03f17ae576842d016d10f3810003 100644 (file)
@@ -80,7 +80,7 @@ do_test (size_t align, size_t len)
   size_t i;
 
   align &= 63;
-  if (align + sizeof(CHAR) * len >= page_size)
+  if (align + sizeof (CHAR) * len >= page_size)
     return;
 
   CHAR *buf = (CHAR *) (buf1);
@@ -97,7 +97,7 @@ static void
 do_random_tests (void)
 {
   size_t i, j, n, align, len;
-  CHAR *p = (CHAR *) (buf1 + page_size - 512 * sizeof(CHAR));
+  CHAR *p = (CHAR *) (buf1 + page_size - 512 * sizeof (CHAR));
 
   for (n = 0; n < ITERATIONS; n++)
     {
@@ -148,16 +148,16 @@ test_main (void)
 
   for (i = 1; i < 8; ++i)
   {
-    do_test (sizeof(CHAR) * i, i);
+    do_test (sizeof (CHAR) * i, i);
     do_test (0, i);
   }
 
   for (i = 2; i <= 12; ++i)
     {
       do_test (0, 1 << i);
-      do_test (sizeof(CHAR) * 7, 1 << i);
-      do_test (sizeof(CHAR) * i, 1 << i);
-      do_test (sizeof(CHAR) * i, (size_t)((1 << i) / 1.5));
+      do_test (sizeof (CHAR) * 7, 1 << i);
+      do_test (sizeof (CHAR) * i, 1 << i);
+      do_test (sizeof (CHAR) * i, (size_t)((1 << i) / 1.5));
     }
 
   do_random_tests ();
index bdf70b11e8c7944e4eb40a6a7ec5c5c5e0e97556..b0286d49ae9347bec5ceb06b04294c4c452b5670 100644 (file)
@@ -86,7 +86,7 @@ do_test (size_t align, size_t pos, size_t len, int seek_char, int max_char)
   CHAR *buf = (CHAR *) buf1;
 
   align &= 7;
-  if ( (align + len) * sizeof(CHAR) >= page_size)
+  if ( (align + len) * sizeof (CHAR) >= page_size)
     return;
 
   for (i = 0; i < len; ++i)
@@ -125,7 +125,7 @@ do_random_tests (void)
 
   for (n = 0; n < ITERATIONS; n++)
     {
-      align = random () & (63 / sizeof(CHAR));
+      align = random () & (63 / sizeof (CHAR));
       /* For wcsrchr: align here means align not in bytes, but in wchar_ts,
         in bytes it will equal to align * (sizeof (wchar_t)).
         For strrchr we need to check all alignments from 0 to 63 since
index d2a85d572a30159b4596e8792892fbb56d622ba5..bfc9ad0c01875e793e8c7cfc19397a7f1cab164d 100644 (file)
@@ -811,11 +811,11 @@ test_memrchr (void)
      bugs due to unrolled loops (assuming unrolling is limited to no
      more than 128 byte chunks: */
   {
-    char buf[128 + sizeof(long)];
+    char buf[128 + sizeof (long)];
     long align, len, i, pos, n = 9;
 
-    for (align = 0; align < (long) sizeof(long); ++align) {
-      for (len = 0; len < (long) (sizeof(buf) - align); ++len) {
+    for (align = 0; align < (long) sizeof (long); ++align) {
+      for (len = 0; len < (long) (sizeof (buf) - align); ++len) {
        for (i = 0; i < len; ++i)
          buf[align + i] = 'x';         /* don't depend on memset... */
 
@@ -1230,11 +1230,11 @@ test_memchr (void)
      bugs due to unrolled loops (assuming unrolling is limited to no
      more than 128 byte chunks: */
   {
-    char buf[128 + sizeof(long)];
+    char buf[128 + sizeof (long)];
     long align, len, i, pos;
 
-    for (align = 0; align < (long) sizeof(long); ++align) {
-      for (len = 0; len < (long) (sizeof(buf) - align); ++len) {
+    for (align = 0; align < (long) sizeof (long); ++align) {
+      for (len = 0; len < (long) (sizeof (buf) - align); ++len) {
        for (i = 0; i < len; ++i) {
          buf[align + i] = 'x';         /* don't depend on memset... */
        }
index 7b179d5c3d26b57d658759842a19d02a9a22f456..e10d01ea08382f1fd346f791ec1872006073f99e 100644 (file)
@@ -60,7 +60,7 @@
    This should normally be the biggest type supported by a single load
    and store.  */
 #define        op_t    unsigned long int
-#define OPSIZ  (sizeof(op_t))
+#define OPSIZ  (sizeof (op_t))
 
 /* Type to use for unaligned operations.  */
 typedef unsigned char byte;
index ba69c37d33169a08aa7f9b79bc18add06ed04e21..481e83df2a96dcfa45539a06a7fde1796c4ad951 100644 (file)
@@ -710,7 +710,7 @@ execute_stack_op (const unsigned char *op_ptr, const unsigned char *op_end,
        }
 
       /* Most things push a result value.  */
-      if ((size_t) stack_elt >= sizeof(stack)/sizeof(*stack))
+      if ((size_t) stack_elt >= sizeof (stack) / sizeof (*stack))
        abort ();
       stack[stack_elt++] = result;
     no_push:;
index c7f63fec5588949f99ef018679d997d2490ff3d3..ef37e9c7fa9c88309555a004e7a31bc8d10ff484 100644 (file)
@@ -183,7 +183,7 @@ read_sleb128 (const unsigned char *p, _Unwind_Sword *val)
   while (byte & 0x80);
 
   /* Sign-extend a negative value.  */
-  if (shift < 8 * sizeof(result) && (byte & 0x40) != 0)
+  if (shift < 8 * sizeof (result) && (byte & 0x40) != 0)
     result |= -(1L << shift);
 
   *val = (_Unwind_Sword) result;
@@ -215,7 +215,7 @@ read_encoded_value_with_base (unsigned char encoding, _Unwind_Ptr base,
   if (encoding == DW_EH_PE_aligned)
     {
       _Unwind_Internal_Ptr a = (_Unwind_Internal_Ptr) p;
-      a = (a + sizeof (void *) - 1) & - sizeof(void *);
+      a = (a + sizeof (void *) - 1) & - sizeof (void *);
       result = *(_Unwind_Internal_Ptr *) a;
       p = (const unsigned char *) (a + sizeof (void *));
     }
index 387c554256a93e4a05165d08e356c9a68f52c667..509c5411238c13245c0ba7932a01af245cebbdad 100644 (file)
@@ -166,7 +166,7 @@ elf_machine_runtime_setup (struct link_map *l, int lazy, int profile)
       /* FIXME: Search for the got, but backwards through the relocs, technically we should
         find it on the first try. However, assuming the relocs got out of order the
         routine is made a bit more robust by searching them all in case of failure. */
-      for (iplt = (end_jmprel - sizeof(Elf32_Rela)); iplt >= jmprel; iplt -= sizeof (Elf32_Rela))
+      for (iplt = (end_jmprel - sizeof (Elf32_Rela)); iplt >= jmprel; iplt -= sizeof (Elf32_Rela))
        {
 
          reloc = (const Elf32_Rela *) iplt;
index 456df42bd6befbe31b7a85aac9b0938139f2b87b..7ad349a55edd625dc2f9f21bd70efb5e778116ad 100644 (file)
@@ -33,7 +33,7 @@ __feupdateenv (const fenv_t *envp)
   /* Given environment with exception flags not cleared.  */
   if ((envp != FE_DFL_ENV) && (envp != FE_NOMASK_ENV))
     {
-      memcpy(&temp, envp, sizeof(fenv_t));
+      memcpy(&temp, envp, sizeof (fenv_t));
       temp.__status_word |= s.sw[0] & (FE_ALL_EXCEPT << 27);
     }
 
index ec79e67b3bfc3b263637d6bec75c5152e7ba191d..edba1e1d6050fb2e5d5c806dff162dfe65789715 100644 (file)
@@ -6,7 +6,7 @@
 typedef int TItype __attribute__ ((mode (TI)));
 typedef unsigned int UTItype __attribute__ ((mode (TI)));
 
-#define TI_BITS (__CHAR_BIT__ * (int)sizeof(TItype))
+#define TI_BITS (__CHAR_BIT__ * (int) sizeof (TItype))
 
 /* The type of the result of a floating point comparison.  This must
    match `__libgcc_cmp_return__' in GCC for the target.  */
index af0b9930f61428bd8db9a69395d955e1674dd085..e8024a2679b2cf72ac8fd2c1a1b5eecabda27c50 100644 (file)
@@ -515,7 +515,7 @@ __spawni (pid_t *pid, const char *file,
     if (dtable_cells[i] != NULL)                                             \
       _hurd_port_move (dtable_cells[i], &new_##x[i], &x[i]);                 \
     else                                                                     \
-      memset(&new_##x[i], 0, sizeof(new_##x[i]));                            \
+      memset (&new_##x[i], 0, sizeof (new_##x[i]));                          \
   memset (&new_##x[dtablesize], 0, (newfd + 1 - dtablesize) * sizeof (x[0])); \
   x = new_##x; } while (0)
 
index 631a1798f6c520b636ea531a1091e4c93eb41e11..a5913feb140e21942b025a3099a3428122f909bf 100644 (file)
@@ -72,7 +72,7 @@ maybe_script_execute (struct posix_spawn_args *args)
       new_argv[0] = (char *) _PATH_BSHELL;
       new_argv[1] = (char *) args->file;
       if (argc > 1)
-       memcpy (new_argv + 2, argv + 1, argc * sizeof(char *));
+       memcpy (new_argv + 2, argv + 1, argc * sizeof (char *));
       else
        new_argv[2] = NULL;
 
index 00983182b04227015ee4a9deec481433cb4a3aab..958afffc0b4cf1ec4d3486d6f2dbbb7333cec352 100644 (file)
@@ -63,7 +63,7 @@ ElfW(Addr) query_auxv(int type)
 
       do
        {
-         fread(&auxv_struct, sizeof(ElfW(auxv_t)), 1, auxv_f);
+         fread (&auxv_struct, sizeof (ElfW(auxv_t)), 1, auxv_f);
          auxv[i] = auxv_struct;
          i++;
        } while(auxv_struct.a_type != AT_NULL);
index ac4a186731f25610a905c1b1ada0df91398f7cfd..ea91de06bde995a58bd8b15019221dbcc70788ca 100644 (file)
@@ -28,7 +28,7 @@ typedef __uint64_t elf_greg_t;
    pt_regs' directly in the typedef, but tradition says that
    the register set is an array, which does have some peculiar
    semantics, so leave it that way.  */
-#define ELF_NGREG (sizeof (struct user_regs_struct) / sizeof(elf_greg_t))
+#define ELF_NGREG (sizeof (struct user_regs_struct) / sizeof (elf_greg_t))
 typedef elf_greg_t elf_gregset_t[ELF_NGREG];
 
 /* Register set for the floating-point registers.  */
index 29afbbe0e1a82b1488bcceb158a8e319301b5dee..f168b3af20029ed7dafd0655f76dc2e7f32b4340 100644 (file)
@@ -27,7 +27,7 @@ typedef unsigned long elf_greg_t;
    user_regs' directly in the typedef, but tradition says that
    the register set is an array, which does have some peculiar
    semantics, so leave it that way.  */
-#define ELF_NGREG (sizeof (struct user_regs) / sizeof(elf_greg_t))
+#define ELF_NGREG (sizeof (struct user_regs) / sizeof (elf_greg_t))
 typedef elf_greg_t elf_gregset_t[ELF_NGREG];
 
 /* Register set for the floating-point registers.  */
index cb7666d991ef3ea2ec9aaeca27f194073fdffd5a..0e338c4504b1d6385b20c1ebe9bd4ab8cbc626a8 100644 (file)
@@ -65,7 +65,7 @@ init_iosys (void)
 {
   static int iobase_name[] = { CTL_BUS, CTL_BUS_ISA, BUS_ISA_PORT_BASE };
   static int ioshift_name[] = { CTL_BUS, CTL_BUS_ISA, BUS_ISA_PORT_SHIFT };
-  size_t len = sizeof(io.base);
+  size_t len = sizeof (io.base);
 
   if (! __sysctl (iobase_name, 3, &io.io_base, &len, NULL, 0)
       && ! __sysctl (ioshift_name, 3, &io.shift, &len, NULL, 0))
index 046b994846e98d7315fea0aba69c8c2a9886b21c..e3edf15c85c5b9b3fac3c02cd133d444dfd33947 100644 (file)
@@ -27,7 +27,7 @@ typedef unsigned long elf_greg_t;
    user_regs' directly in the typedef, but tradition says that
    the register set is an array, which does have some peculiar
    semantics, so leave it that way.  */
-#define ELF_NGREG (sizeof (struct user_regs) / sizeof(elf_greg_t))
+#define ELF_NGREG (sizeof (struct user_regs) / sizeof (elf_greg_t))
 typedef elf_greg_t elf_gregset_t[ELF_NGREG];
 
 /* Register set for the floating-point registers.  */
index 546813557b1459af150bca130a4c6a66dd92e690..4a9d4aa3ccf82054a777825201a170db06a0c04d 100644 (file)
@@ -27,7 +27,7 @@ typedef unsigned long elf_greg_t;
    user_regs_struct' directly in the typedef, but tradition says that
    the register set is an array, which does have some peculiar
    semantics, so leave it that way.  */
-#define ELF_NGREG (sizeof (struct user_regs_struct) / sizeof(elf_greg_t))
+#define ELF_NGREG (sizeof (struct user_regs_struct) / sizeof (elf_greg_t))
 typedef elf_greg_t elf_gregset_t[ELF_NGREG];
 
 /* Register set for the floating-point registers.  */
index 89da0137274c7eba0e05d249f15f73a52f9ac2e6..a8431229ff328ddf87e6a0a5bab4055077415cd8 100644 (file)
@@ -27,7 +27,7 @@ typedef unsigned long elf_greg_t;
    user_regs' directly in the typedef, but tradition says that
    the register set is an array, which does have some peculiar
    semantics, so leave it that way.  */
-#define ELF_NGREG (sizeof (struct user_regs) / sizeof(elf_greg_t))
+#define ELF_NGREG (sizeof (struct user_regs) / sizeof (elf_greg_t))
 typedef elf_greg_t elf_gregset_t[ELF_NGREG];
 
 /* Register set for the floating-point registers.  */
index 353bcf5b333457d191320e358d35775a2e9b319b..c1abf3f9608642fc530baa514b1703a9e7a1a0f2 100644 (file)
@@ -105,7 +105,7 @@ maybe_script_execute (struct posix_spawn_args *args)
       new_argv[0] = (char *) _PATH_BSHELL;
       new_argv[1] = (char *) args->file;
       if (argc > 1)
-       memcpy (new_argv + 2, argv + 1, argc * sizeof(char *));
+       memcpy (new_argv + 2, argv + 1, argc * sizeof (char *));
       else
        new_argv[2] = NULL;
 
index b57bf8fd2587a55d9741ef9d8781e62a19c0245d..55ea4c9f487107ded4847b40b170d5aa2dbe969f 100644 (file)
@@ -31,7 +31,7 @@ typedef unsigned long elf_greg_t;
    user_regs_struct' directly in the typedef, but tradition says that
    the register set is an array, which does have some peculiar
    semantics, so leave it that way.  */
-#define ELF_NGREG (sizeof (struct user_regs_struct) / sizeof(elf_greg_t))
+#define ELF_NGREG (sizeof (struct user_regs_struct) / sizeof (elf_greg_t))
 typedef elf_greg_t elf_gregset_t[ELF_NGREG];
 
 #ifndef __x86_64__
index f31c8a1e378006b83f3f9efc08d0311d69b1f34d..75cded924313ae2f62a39b69b897ceeecc5cb077 100644 (file)
@@ -26,7 +26,7 @@
 
 #define FP_XSTATE_MAGIC1       0x46505853U
 #define FP_XSTATE_MAGIC2       0x46505845U
-#define FP_XSTATE_MAGIC2_SIZE  sizeof(FP_XSTATE_MAGIC2)
+#define FP_XSTATE_MAGIC2_SIZE  sizeof (FP_XSTATE_MAGIC2)
 
 struct _fpx_sw_bytes
 {
index df8906acb479e8e90945947fa50191e12089afbc..5892f4f5fe58d1a01b45232c1bc234db45af7ba4 100644 (file)
@@ -15,7 +15,7 @@ typedef int __gcc_CMPtype __attribute__ ((mode (__libgcc_cmp_return__)));
 typedef int TItype __attribute__ ((mode (TI)));
 typedef unsigned int UTItype __attribute__ ((mode (TI)));
 
-# define TI_BITS (__CHAR_BIT__ * (int)sizeof(TItype))
+# define TI_BITS (__CHAR_BIT__ * (int) sizeof (TItype))
 
 # define _FP_MUL_MEAT_Q(R,X,Y)                         \
   _FP_MUL_MEAT_2_wide(_FP_WFRACBITS_Q,R,X,Y,umul_ppmm)
index 9a24300fec587876fac2ba1452198b22f910f088..aac43852f278f1a12c6558b022a6a4a6dd56c072 100644 (file)
@@ -67,7 +67,7 @@ main (int argc, char **argv)
          puts("localtime() failed.");
          lose = 1;
        }
-      else if (strftime(buf, sizeof(buf), "%a %b %d %X %Z %Y", tp) == 0)
+      else if (strftime (buf, sizeof (buf), "%a %b %d %X %Z %Y", tp) == 0)
        {
          puts("strftime() failed.");
          lose = 1;