OSDN Git Service

- trim any trailing whitespace
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 23 Jul 2008 11:23:36 +0000 (11:23 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 23 Jul 2008 11:23:36 +0000 (11:23 -0000)
234 files changed:
extra/config/lxdialog/menubox.c
extra/locale/gen_collate.c
extra/locale/gen_ldc.c
extra/locale/gen_locale.c
extra/locale/gen_wc8bit.c
extra/locale/gen_wctype.c
include/_lfs_64.h
include/arpa/nameser_compat.h
include/assert.h
include/math.h
include/net/if_ppp.h
include/netdb.h
include/obstack.h
include/regex.h
include/rpc/key_prot.h
include/rpc/rpc_des.h
include/scsi/scsi_ioctl.h
include/stdint.h
include/sys/personality.h
ldso/ldso/bfin/dl-inlines.h
ldso/ldso/bfin/dl-startup.h
ldso/ldso/bfin/dl-sysdep.h
ldso/ldso/bfin/elfinterp.c
ldso/ldso/frv/dl-inlines.h
ldso/ldso/frv/dl-sysdep.h
ldso/ldso/frv/elfinterp.c
ldso/ldso/m68k/dl-sysdep.h
ldso/ldso/powerpc/dl-sysdep.h
ldso/ldso/powerpc/elfinterp.c
ldso/ldso/sparc/dl-sysdep.h
ldso/ldso/xtensa/dl-startup.h
libc/inet/getaddrinfo.c
libc/inet/getproto.c
libc/inet/if_index.c
libc/inet/ntop.c
libc/inet/rpc/clnt_perror.c
libc/inet/rpc/rcmd.c
libc/misc/ctype/ctype.c
libc/misc/dirent/dirstream.h
libc/misc/dirent/scandir.c
libc/misc/dirent/scandir64.c
libc/misc/glob/glob-susv3.c
libc/misc/glob/glob64-susv3.c
libc/misc/gnu/obstack.c
libc/misc/internals/tempname.h
libc/misc/locale/locale.c
libc/misc/mntent/mntent.c
libc/misc/regex/regcomp.c
libc/misc/regex/regex_internal.c
libc/misc/regex/regex_internal.h
libc/misc/regex/regex_old.c
libc/misc/regex/regexec.c
libc/misc/search/_lsearch.c
libc/misc/search/_tsearch.c
libc/misc/ttyent/getttyent.c
libc/misc/wchar/wchar.c
libc/misc/wordexp/wordexp.c
libc/signal/allocrtsig.c
libc/signal/sigaction.c
libc/signal/sigjmp.c
libc/stdio/_fpmaxtostr.c
libc/stdio/_uintmaxtostr.c
libc/stdio/_vfprintf.c
libc/stdio/fdopen.c
libc/stdio/fmemopen.c
libc/stdio/fread.c
libc/stdio/fseeko.c
libc/stdio/old_vfprintf.c
libc/stdio/open_memstream.c
libc/stdio/remove.c
libc/stdlib/erand48_r.c
libc/stdlib/getenv.c
libc/stdlib/grantpt.c
libc/stdlib/jrand48_r.c
libc/stdlib/malloc-simple/calloc.c
libc/stdlib/malloc-simple/free.c
libc/stdlib/malloc-simple/malloc.c
libc/stdlib/malloc-simple/memalign.c
libc/stdlib/malloc-simple/realloc.c
libc/stdlib/malloc-standard/malloc.h
libc/stdlib/malloc/heap_alloc.c
libc/stdlib/malloc/heap_alloc_at.c
libc/stdlib/malloc/heap_free.c
libc/stdlib/nrand48_r.c
libc/stdlib/ptsname.c
libc/stdlib/random_r.c
libc/stdlib/stdlib.c
libc/stdlib/system.c
libc/string/__xpg_strerror_r.c
libc/string/cris/memcopy.h
libc/string/cris/memcpy.c
libc/string/cris/memmove.c
libc/string/cris/memset.c
libc/string/ffs.c
libc/string/i386/strncat.c
libc/string/ia64/softpipe.h
libc/string/memrchr.c
libc/string/powerpc/memcpy.c
libc/string/powerpc/memmove.c
libc/string/powerpc/memset.c
libc/string/strcmp.c
libc/string/strncpy.c
libc/sysdeps/linux/alpha/bits/atomic.h
libc/sysdeps/linux/alpha/bits/kernel_stat.h
libc/sysdeps/linux/alpha/bits/kernel_types.h
libc/sysdeps/linux/alpha/bits/syscalls.h
libc/sysdeps/linux/arm/bits/endian.h
libc/sysdeps/linux/arm/bits/kernel_stat.h
libc/sysdeps/linux/arm/bits/kernel_types.h
libc/sysdeps/linux/arm/bits/syscalls.h
libc/sysdeps/linux/arm/ioperm.c
libc/sysdeps/linux/arm/iopl.c
libc/sysdeps/linux/bfin/bits/elf-fdpic.h
libc/sysdeps/linux/bfin/bits/kernel_stat.h
libc/sysdeps/linux/bfin/crtreloc.c
libc/sysdeps/linux/common/bits/kernel_sigaction.h
libc/sysdeps/linux/common/bits/kernel_types.h
libc/sysdeps/linux/common/bits/stdio_lim.h
libc/sysdeps/linux/common/bits/syscalls.h
libc/sysdeps/linux/common/bits/uClibc_ctype.h
libc/sysdeps/linux/common/bits/uClibc_locale.h
libc/sysdeps/linux/common/dl-osinfo.h
libc/sysdeps/linux/common/ftruncate64.c
libc/sysdeps/linux/common/getdents.c
libc/sysdeps/linux/common/getdents64.c
libc/sysdeps/linux/common/llseek.c
libc/sysdeps/linux/common/sendfile64.c
libc/sysdeps/linux/common/sync.c
libc/sysdeps/linux/common/truncate64.c
libc/sysdeps/linux/common/xattr.c
libc/sysdeps/linux/cris/bits/syscalls.h
libc/sysdeps/linux/e1/bits/fenv.h
libc/sysdeps/linux/e1/bits/fenvinline.h
libc/sysdeps/linux/e1/bits/kernel_stat.h
libc/sysdeps/linux/e1/bits/kernel_types.h
libc/sysdeps/linux/e1/longjmp.c
libc/sysdeps/linux/e1/setjmp.c
libc/sysdeps/linux/frv/bits/elf-fdpic.h
libc/sysdeps/linux/frv/bits/kernel_stat.h
libc/sysdeps/linux/frv/bits/kernel_types.h
libc/sysdeps/linux/frv/crtreloc.c
libc/sysdeps/linux/h8300/bits/kernel_stat.h
libc/sysdeps/linux/h8300/bits/syscalls.h
libc/sysdeps/linux/hppa/bits/kernel_stat.h
libc/sysdeps/linux/hppa/bits/kernel_types.h
libc/sysdeps/linux/hppa/syscall.c
libc/sysdeps/linux/i386/bits/kernel_stat.h
libc/sysdeps/linux/i386/bits/kernel_types.h
libc/sysdeps/linux/i386/sigaction.c
libc/sysdeps/linux/ia64/bits/kernel_types.h
libc/sysdeps/linux/m68k/bits/kernel_stat.h
libc/sysdeps/linux/m68k/bits/kernel_types.h
libc/sysdeps/linux/microblaze/bits/endian.h
libc/sysdeps/linux/microblaze/bits/setjmp.h
libc/sysdeps/linux/microblaze/clinkage.h
libc/sysdeps/linux/microblaze/clone.c
libc/sysdeps/linux/microblaze/syscall.c
libc/sysdeps/linux/mips/bits/atomic.h
libc/sysdeps/linux/mips/bits/kernel_stat.h
libc/sysdeps/linux/mips/bits/kernel_types.h
libc/sysdeps/linux/mips/bits/syscalls.h
libc/sysdeps/linux/mips/sigaction.c
libc/sysdeps/linux/nios/bits/kernel_types.h
libc/sysdeps/linux/nios/crtbegin.c
libc/sysdeps/linux/nios/crtend.c
libc/sysdeps/linux/nios2/bits/kernel_stat.h
libc/sysdeps/linux/nios2/bits/kernel_types.h
libc/sysdeps/linux/nios2/bits/setjmp.h
libc/sysdeps/linux/nios2/syscall.c
libc/sysdeps/linux/powerpc/bits/kernel_stat.h
libc/sysdeps/linux/powerpc/bits/kernel_types.h
libc/sysdeps/linux/powerpc/bits/sem.h
libc/sysdeps/linux/powerpc/pread_write.c
libc/sysdeps/linux/powerpc/sys/procfs.h
libc/sysdeps/linux/powerpc/sys/ucontext.h
libc/sysdeps/linux/sh/bits/kernel_stat.h
libc/sysdeps/linux/sh/bits/kernel_types.h
libc/sysdeps/linux/sh64/bits/kernel_types.h
libc/sysdeps/linux/sh64/sys/ucontext.h
libc/sysdeps/linux/sparc/bits/kernel_stat.h
libc/sysdeps/linux/sparc/bits/kernel_types.h
libc/sysdeps/linux/sparc/bits/syscalls.h
libc/sysdeps/linux/v850/bits/endian.h
libc/sysdeps/linux/v850/bits/setjmp.h
libc/sysdeps/linux/v850/clinkage.h
libc/sysdeps/linux/v850/syscall.c
libc/sysdeps/linux/x86_64/bits/kernel_stat.h
libc/sysdeps/linux/x86_64/bits/kernel_types.h
libc/sysdeps/linux/x86_64/bits/syscalls.h
libc/sysdeps/linux/xtensa/bits/kernel_stat.h
libc/sysdeps/linux/xtensa/bits/kernel_types.h
libc/sysdeps/linux/xtensa/bits/syscalls.h
libc/sysdeps/linux/xtensa/fork.c
libc/sysdeps/linux/xtensa/sigaction.c
libc/termios/tcgetattr.c
libc/unistd/daemon.c
libc/unistd/fpathconf.c
libc/unistd/getopt-susv3.c
libc/unistd/getopt.c
libc/unistd/getopt_int.h
libc/unistd/usershell.c
libcrypt/des.c
libcrypt/md5.c
libm/powerpc/e500/fpu/fedisblxcpt.c
libm/powerpc/e500/fpu/feenablxcpt.c
libpthread/linuxthreads.old/cancel.c
libpthread/linuxthreads.old/debug.h
libpthread/linuxthreads.old/internals.h
libpthread/linuxthreads.old/join.c
libpthread/linuxthreads.old/manager.c
libpthread/linuxthreads.old/oldsemaphore.c
libpthread/linuxthreads.old/pthread.c
libpthread/linuxthreads.old/rwlock.c
libpthread/linuxthreads.old/spinlock.c
libpthread/linuxthreads.old/sysdeps/sh64/pt-machine.c
libpthread/linuxthreads/sysdeps/ia64/pspinlock.c
libpthread/linuxthreads/sysdeps/pthread/uClibc-glue.h
libpthread/linuxthreads/sysdeps/unix/sysv/linux/hppa/malloc-machine.h
libutil/login.c
test/crypt/md5c-test.c
test/inet/tst-ethers-line.c
test/inet/tst-ethers.c
test/malloc/malloc.c
test/malloc/testmalloc.c
test/malloc/time_malloc.c
test/math/libm-test.inc
test/math/rint.c
test/misc/bug-glob2.c
test/pthread/ex7.c
test/regex/testregex.c
test/setjmp/bug269-setjmp.c
test/stdlib/teststrtol.c
test/string/tester.c
test/time/time.c

index fa9d633..c689fc0 100644 (file)
@@ -26,7 +26,7 @@
  *
  *    *)  A bugfix for the Page-Down problem
  *
- *    *)  Formerly when I used Page Down and Page Up, the cursor would be set 
+ *    *)  Formerly when I used Page Down and Page Up, the cursor would be set
  *        to the first position in the menu box.  Now lxdialog is a bit
  *        smarter and works more like other menu systems (just have a look at
  *        it).
index 42b20f7..77dc5ff 100644 (file)
@@ -62,7 +62,7 @@ typedef struct {
        int base_idx;                           /*  */
 
        int undefined_idx;                      /*  */
-       
+
        int overrides_offset;           /*  */
        int multistart_offset;          /*  */
 } der_locale_t;
@@ -1094,7 +1094,7 @@ int main(int argc, char **argv)
                return EXIT_FAILURE;
        }
 
-       init_locale_list();     
+       init_locale_list();
 
        while (--argc) {
                p = (const deps_t *) bsearch(*++argv, deps, sizeof(deps)/sizeof(deps[0]), sizeof(deps[0]), dep_cmp);
@@ -1107,7 +1107,7 @@ int main(int argc, char **argv)
                                return EXIT_FAILURE;
                        }
                }
-       
+
                i = p->base_locale;
                ++der_count[i];
 
@@ -1115,7 +1115,7 @@ int main(int argc, char **argv)
                        /* same name as base, so skip after count incremented */
                        continue;
                }
-               
+
                /* add it to the list.  the main body will catch duplicates */
                lli = (ll_item_t *) xmalloc(sizeof(ll_item_t));
                lli->prev = lli->next = NULL;
@@ -1202,7 +1202,7 @@ static int old_main(int argc, char **argv)
                processfile();                  /* this does a popfile */
 
 /*             twalk(cur_col->root_colitem, print_colnode); */
-               
+
                if (next_is_base == 1) {
                        next_is_base = 0;
                }
@@ -1264,7 +1264,7 @@ static int old_main(int argc, char **argv)
     return EXIT_SUCCESS;
 }
 
-static void error_msg(const char *fmt, ...) 
+static void error_msg(const char *fmt, ...)
 {
        va_list arg;
 
@@ -1289,7 +1289,7 @@ static void pushfile(char *filename)
        if (fno >= MAX_FNO) {
                error_msg("file stack size exceeded");
        }
-                                         
+
        if (!(fstack[++fno] = fopen(fbuf, "r"))) {
                --fno;                                  /* oops */
                error_msg("cannot open file %s", fbuf);
@@ -1645,7 +1645,7 @@ static int colelement_cmp(const void *n1, const void *n2)
                        r = 0;                          /* both null */
                } else {
                        r = (((colitem_t *)n1)->element == NULL) ? -1 : 1;
-               } 
+               }
     }
     return r;
 }
@@ -1733,7 +1733,7 @@ static void add_script(const char *s)
        if (find_section_list_item(s, cur_col)) {
                error_msg("attempt to readd script %s", s);
        }
-       
+
        l = find_ll_last(cur_col->section_list);
        insque(new_ll_item(DT_SECTION, new_section(s)), l);
 }
@@ -2674,7 +2674,7 @@ static void finalize_base(void)
                                index2weight_buffer[index2weight_len] = lli->idx = i++;
                                index2weight_len += index2weight_len_inc;
                                add_final_col_index(w->symbol);
-                               
+
                        } else {
                                assert(lli->data_type & DT_REORDER);
                                r = ll_len( ((section_t *)(lli->data))->itm_list );
@@ -2975,7 +2975,7 @@ static void finalize_base(void)
                                        continue;
                                }
                                if (index2weight_len_inc) {
-                                       index2ruleidx_buffer[index2ruleidx_len++] = 
+                                       index2ruleidx_buffer[index2ruleidx_len++] =
                                                add_rule((weighted_item_t *)(lli->data));
                                }
 /*                             fprintf(stdout, "%11s: w %6d %6d %s\n", */
@@ -3001,7 +3001,7 @@ static void finalize_base(void)
                                w = (weighted_item_t *)(lli->data);
                                if (find_wi_index_reordered(w->symbol)) { /* reordered symbol so skip on first pass */
                                        if (index2weight_len_inc) {
-                                               index2ruleidx_buffer[index2ruleidx_len++] = 
+                                               index2ruleidx_buffer[index2ruleidx_len++] =
                                                        add_rule((weighted_item_t *)(lli->data));
                                        }
 /*                                     fprintf(stdout, "%11s: r %6d %6d %s\n", */
@@ -3050,7 +3050,7 @@ static void finalize_base(void)
 
                der_locale_array[der_locale_len].name = cur_base->name;
                der_locale_array[der_locale_len].base_idx = base_locale_len;
-               
+
                u16_buf[0] = 1;
                u16_buf[1] = 0;
                u16_buf_len = 2;
@@ -3511,7 +3511,7 @@ size_t newopt(tbl_item *ut, size_t usize, int shift, table_data *tbl)
        /* sort */
        nu_val = blocksize;
        qsort(ti, numblocks, sizeof(unsigned char *), nu_memcmp);
-       
+
        uniq = 1;
        uit[(ti[0]-ut)/blocksize] = 0;
        for (i=1 ; i < numblocks ; i++) {
@@ -3687,7 +3687,7 @@ static unsigned int add_rule(weighted_item_t *wi)
                        assert(r < (1 << 14));
                        rbuf[i] = r | rule2val[(int)(w->rule[i])];
                } else {                                /* item */
-                       r = final_index_val_x(w->colitem[i], wi->symbol); 
+                       r = final_index_val_x(w->colitem[i], wi->symbol);
                        rbuf[i] = r | rule2val[(int)(w->rule[i])];
                }
        }
@@ -3831,7 +3831,7 @@ static void dump_der_locale(int n)
        DUMPn(base_idx);
 
        DUMPn(undefined_idx);
-       
+
        DUMPn(overrides_offset);
        DUMPn(multistart_offset);
 
@@ -3856,7 +3856,7 @@ static void dump_u16_array(FILE *fp, uint16_t *u, int len, const char *name)
        collate_pos += len;
 }
 
-#define OUT_U16C(X,N) fprintf(fp,"\t%10d, /* %8lu %s */\n", X, collate_pos++, N); 
+#define OUT_U16C(X,N) fprintf(fp,"\t%10d, /* %8lu %s */\n", X, collate_pos++, N);
 
 static void dump_collate(FILE *fp)
 {
@@ -3901,7 +3901,7 @@ static void dump_collate(FILE *fp)
                DUMPn(wcs2colidt_offset_low);
                DUMPn(wcs2colidt_offset_hi);
        }
-#undef DUMPn           
+#undef DUMPn
 
 
        fprintf(fp, "#define COL_IDX_C     %5d\n", 0);
index 3ffc90e..2a12161 100644 (file)
@@ -238,7 +238,7 @@ int main(void)
        /* collate should be last*/
        assert(sizeof(__locale_collate_tbl)/sizeof(__locale_collate_tbl[0]) == __lc_collate_data_LEN) ;
        out_u16(lso, __locale_collate_tbl, __lc_collate_data_LEN, "collate_data");
-       
+
 
        {
                unsigned char co_buf[__LOCALE_DATA_CATEGORIES] = {
@@ -251,7 +251,7 @@ int main(void)
                };
                out_uc(lso, co_buf, __LOCALE_DATA_CATEGORIES, "lc_common_item_offsets_LEN");
        }
-       
+
        out_size_t(lso, common_tbl_offsets, __LOCALE_DATA_CATEGORIES * 4, "lc_common_tbl_offsets");
        /* offsets from start of locale_mmap_t */
        /* rows, item_offsets, item_idx, data */
index b44be31..31df415 100644 (file)
@@ -281,12 +281,12 @@ static void read_at_mappings(void)
 #if 0
        {
                p = at_strings;
-               
+
                if (!*p) {
                        printf("no @ strings\n");
                        return;
                }
-               
+
                do {
                        printf("%s\n", p+1);
                        p += 1 + (unsigned char) *p;
@@ -469,7 +469,7 @@ static void read_locale_list(void)
                        printf("ignoring UTF-8 locale %s\n", ln);
                        *line_buf = 0;
                        continue;
-               } else if ((i > 2) && !default_8bit) {  
+               } else if ((i > 2) && !default_8bit) {
                        printf("ignoring 8-bit codeset locale %s\n", ln);
                        *line_buf = 0;
                        continue;
@@ -503,7 +503,7 @@ static void read_locale_list(void)
                                printf("ignoring UTF-8 locale %s\n", ln);
                                *line_buf = 0;
                                continue;
-                       } else if ((i > 2) && !default_8bit) {  
+                       } else if ((i > 2) && !default_8bit) {
                                printf("ignoring 8-bit codeset locale %s\n", ln);
                                *line_buf = 0;
                                continue;
index 3cdcca8..c6db412 100644 (file)
@@ -182,7 +182,7 @@ int main(int argc, char **argv)
                        char *s0;
                        char *s1;
                        int n;
-                       
+
                        s0 = strrchr(*argv, '/');
                        if (!s0) {
                                s0 = *argv;
@@ -379,7 +379,7 @@ int main(int argc, char **argv)
                                if ((c != 0) || 1) {
                                        u = towupper(c);
                                        l = towlower(c);
-                                       
+
                                        if (u >= 0x80) u = csd[numsets].w2c[u];
                                        if (l >= 0x80) l = csd[numsets].w2c[l];
 
index 2e2e425..085ec51 100644 (file)
@@ -709,7 +709,7 @@ int main(int argc, char **argv)
                                printf("%#8x : towupper glibc %#4x != %#4x mine\n",
                                           c, towupper(c), upper);
                        }
-                               
+
                        if (towlower(c) != lower) {
                                printf("%#8x : towlower glibc %#4x != %#4x mine   i0 = %d\n",
                                           c, towlower(c), lower, i0);
@@ -739,7 +739,7 @@ int main(int argc, char **argv)
                                (unsigned long) RANGE);
                output_table(fp, "ctype", &cttable);
                output_table(fp, "uplow", &ultable);
-       
+
 
 #warning fix the upper bound on the upper/lower tables... save 200 bytes or so
                fprintf(fp, "#define __LOCALE_DATA_WCuplow_diffs  %7u\n", ul_count);
@@ -794,7 +794,7 @@ size_t newopt(unsigned char *ut, size_t usize, int shift, table_data *tbl)
        /* sort */
        nu_val = blocksize;
        qsort(ti, numblocks, sizeof(unsigned char *), nu_memcmp);
-       
+
        uniq = 1;
        uit[(ti[0]-ut)/blocksize] = 0;
        for (i=1 ; i < numblocks ; i++) {
index 3e56bbf..deee98a 100644 (file)
@@ -7,7 +7,7 @@
 
 #ifdef __UCLIBC_HAS_LFS__
 
-#if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS != 64 
+#if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS != 64
 #undef _FILE_OFFSET_BITS
 #define _FILE_OFFSET_BITS   64
 #endif
index 43bcd3a..e3ef864 100644 (file)
@@ -1,6 +1,6 @@
 /* Copyright (c) 1983, 1989
  *    The Regents of the University of California.  All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
@@ -12,7 +12,7 @@
  * 4. Neither the name of the University nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
index 7eaba00..9b9d1b7 100644 (file)
@@ -59,7 +59,7 @@ __END_DECLS
   (__ASSERT_VOID_CAST ((expr) ? 0 :                                          \
                       (__assert (__STRING(expr), __FILE__, __LINE__,    \
                                       __ASSERT_FUNCTION), 0)))
-  
+
 /* Version 2.4 and later of GCC define a magical variable `__PRETTY_FUNCTION__'
    which contains the name of the function currently being defined.
    This is broken in G++ before version 2.6.
index c50b2e7..34c042d 100644 (file)
@@ -101,7 +101,7 @@ __BEGIN_DECLS
      && (!defined __NO_LONG_DOUBLE_MATH || defined __LDBL_COMPAT)
 #  ifdef __LDBL_COMPAT
 
-#   ifdef __USE_ISOC99 
+#   ifdef __USE_ISOC99
 extern float __nldbl_nexttowardf (float __x, long double __y)
                                  __THROW __attribute__ ((__const__));
 #    ifdef __REDIRECT_NTH
index bf5ec83..1b1c3ea 100644 (file)
@@ -3,7 +3,7 @@
 /*
  * if_ppp.h - Point-to-Point Protocol definitions.
  *
- * Copyright (c) 1989 Carnegie Mellon University. 
+ * Copyright (c) 1989 Carnegie Mellon University.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
index bcae666..df90601 100644 (file)
@@ -55,7 +55,7 @@ __BEGIN_DECLS
 
 /* Error status for non-reentrant lookup functions.
    We use a macro to access always the thread-specific `h_errno' variable.
-   We always need the extern int here in case internal libc code undefines 
+   We always need the extern int here in case internal libc code undefines
    the macro because it needs access to the underlying storage. */
 extern int h_errno;
 #ifdef __UCLIBC_HAS_THREADS__
index 071acaf..244e580 100644 (file)
@@ -109,7 +109,7 @@ Summary:
 #ifdef __cplusplus
 extern "C" {
 #endif
-\f
+
 /* We use subtraction of (char *) 0 instead of casting to int
    because on word-addressable machines a simple cast to int
    may ignore the byte-within-word field of the pointer.  */
@@ -206,7 +206,7 @@ extern int _obstack_begin ();
 extern int _obstack_begin_1 ();
 extern int _obstack_memory_used ();
 #endif
-\f
+
 #if defined __STDC__ && __STDC__
 
 /* Do the function-declarations after the structs
@@ -264,7 +264,7 @@ extern void (*obstack_alloc_failed_handler) ();
 
 /* Exit value used when `print_and_abort' is used.  */
 extern int obstack_exit_failure;
-\f
+
 /* Pointer to beginning of object being allocated or to be allocated next.
    Note that this might not be the final address of the object
    because a new chunk might be needed to hold the final size.  */
@@ -348,7 +348,7 @@ extern int obstack_exit_failure;
 #define obstack_blank_fast(h,n) ((h)->next_free += (n))
 
 #define obstack_memory_used(h) _obstack_memory_used (h)
-\f
+
 #if defined __GNUC__ && defined __STDC__ && __STDC__
 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
    does not implement __extension__.  But that compiler doesn't define
@@ -492,7 +492,7 @@ __extension__                                                               \
    if (__obj > (void *)__o->chunk && __obj < (void *)__o->chunk_limit)  \
      __o->next_free = __o->object_base = (char *)__obj;                        \
    else (obstack_free) (__o, __obj); })
-\f
+
 #else /* not __GNUC__ or not __STDC__ */
 
 # define obstack_object_size(h) \
index 2209f2b..e8b7eb9 100644 (file)
@@ -188,7 +188,7 @@ typedef unsigned long int reg_syntax_t;
    stored in the pattern buffer, so changing this does not affect
    already-compiled regexps.  */
 extern reg_syntax_t re_syntax_options;
-\f
+
 /* Define combinations of the above bits for the standard possibilities.
    (The [[[ comments delimit what gets put into the Texinfo file, so
    don't delete them!)  */
@@ -259,7 +259,7 @@ extern reg_syntax_t re_syntax_options;
    | RE_NO_BK_PARENS        | RE_NO_BK_REFS                            \
    | RE_NO_BK_VBAR         | RE_UNMATCHED_RIGHT_PAREN_ORD)
 /* [[[end syntaxes]]] */
-\f
+
 /* Maximum number of duplicates an interval can allow.  Some systems
    (erroneously) define this in other header files, but we want our
    value, so remove any previous define.  */
@@ -338,7 +338,7 @@ typedef enum
   REG_ESIZE,           /* Compiled pattern bigger than 2^16 bytes.  */
   REG_ERPAREN          /* Unmatched ) or \); not returned from regcomp.  */
 } reg_errcode_t;
-\f
+
 /* This data structure represents a compiled pattern.  Before calling
    the pattern compiler, the fields `buffer', `allocated', `fastmap',
    `translate', and `no_sub' can be set.  After the pattern has been
@@ -414,7 +414,7 @@ struct re_pattern_buffer
 };
 
 typedef struct re_pattern_buffer regex_t;
-\f
+
 /* Type for byte offsets within the string.  POSIX mandates this.  */
 typedef int regoff_t;
 
@@ -445,7 +445,7 @@ typedef struct
   regoff_t rm_so;  /* Byte offset from string's start to substring's start.  */
   regoff_t rm_eo;  /* Byte offset from string's start to substring's end.  */
 } regmatch_t;
-\f
+
 /* Declarations for routines.  */
 
 /* To avoid duplicating every routine declaration -- once with a
index 3e2eb72..629e249 100644 (file)
@@ -41,7 +41,7 @@
 #endif
 /* Copyright (c)  1990, 1991 Sun Microsystems, Inc. */
 
-/* 
+/*
  * Compiled from key_prot.x using rpcgen.
  * DO NOT EDIT THIS FILE!
  * This is NOT source code!
@@ -60,33 +60,33 @@ enum keystatus {
        KEY_SYSTEMERR = 3,
 };
 typedef enum keystatus keystatus;
-#ifdef __cplusplus 
+#ifdef __cplusplus
 extern "C" bool_t xdr_keystatus(XDR *, keystatus*);
-#elif __STDC__ 
+#elif __STDC__
 extern  bool_t xdr_keystatus(XDR *, keystatus*);
-#else /* Old Style C */ 
+#else /* Old Style C */
 bool_t xdr_keystatus();
-#endif /* Old Style C */ 
+#endif /* Old Style C */
 
 
 typedef char keybuf[HEXKEYBYTES];
-#ifdef __cplusplus 
+#ifdef __cplusplus
 extern "C" bool_t xdr_keybuf(XDR *, keybuf);
-#elif __STDC__ 
+#elif __STDC__
 extern  bool_t xdr_keybuf(XDR *, keybuf);
-#else /* Old Style C */ 
+#else /* Old Style C */
 bool_t xdr_keybuf();
-#endif /* Old Style C */ 
+#endif /* Old Style C */
 
 
 typedef char *netnamestr;
-#ifdef __cplusplus 
+#ifdef __cplusplus
 extern "C" bool_t xdr_netnamestr(XDR *, netnamestr*);
-#elif __STDC__ 
+#elif __STDC__
 extern  bool_t xdr_netnamestr(XDR *, netnamestr*);
-#else /* Old Style C */ 
+#else /* Old Style C */
 bool_t xdr_netnamestr();
-#endif /* Old Style C */ 
+#endif /* Old Style C */
 
 
 struct cryptkeyarg {
@@ -94,13 +94,13 @@ struct cryptkeyarg {
        des_block deskey;
 };
 typedef struct cryptkeyarg cryptkeyarg;
-#ifdef __cplusplus 
+#ifdef __cplusplus
 extern "C" bool_t xdr_cryptkeyarg(XDR *, cryptkeyarg*);
-#elif __STDC__ 
+#elif __STDC__
 extern  bool_t xdr_cryptkeyarg(XDR *, cryptkeyarg*);
-#else /* Old Style C */ 
+#else /* Old Style C */
 bool_t xdr_cryptkeyarg();
-#endif /* Old Style C */ 
+#endif /* Old Style C */
 
 
 struct cryptkeyarg2 {
@@ -109,13 +109,13 @@ struct cryptkeyarg2 {
        des_block deskey;
 };
 typedef struct cryptkeyarg2 cryptkeyarg2;
-#ifdef __cplusplus 
+#ifdef __cplusplus
 extern "C" bool_t xdr_cryptkeyarg2(XDR *, cryptkeyarg2*);
-#elif __STDC__ 
+#elif __STDC__
 extern  bool_t xdr_cryptkeyarg2(XDR *, cryptkeyarg2*);
-#else /* Old Style C */ 
+#else /* Old Style C */
 bool_t xdr_cryptkeyarg2();
-#endif /* Old Style C */ 
+#endif /* Old Style C */
 
 
 struct cryptkeyres {
@@ -125,13 +125,13 @@ struct cryptkeyres {
        } cryptkeyres_u;
 };
 typedef struct cryptkeyres cryptkeyres;
-#ifdef __cplusplus 
+#ifdef __cplusplus
 extern "C" bool_t xdr_cryptkeyres(XDR *, cryptkeyres*);
-#elif __STDC__ 
+#elif __STDC__
 extern  bool_t xdr_cryptkeyres(XDR *, cryptkeyres*);
-#else /* Old Style C */ 
+#else /* Old Style C */
 bool_t xdr_cryptkeyres();
-#endif /* Old Style C */ 
+#endif /* Old Style C */
 
 #define MAXGIDS 16
 
@@ -144,13 +144,13 @@ struct unixcred {
        } gids;
 };
 typedef struct unixcred unixcred;
-#ifdef __cplusplus 
+#ifdef __cplusplus
 extern "C" bool_t xdr_unixcred(XDR *, unixcred*);
-#elif __STDC__ 
+#elif __STDC__
 extern  bool_t xdr_unixcred(XDR *, unixcred*);
-#else /* Old Style C */ 
+#else /* Old Style C */
 bool_t xdr_unixcred();
-#endif /* Old Style C */ 
+#endif /* Old Style C */
 
 
 struct getcredres {
@@ -160,13 +160,13 @@ struct getcredres {
        } getcredres_u;
 };
 typedef struct getcredres getcredres;
-#ifdef __cplusplus 
+#ifdef __cplusplus
 extern "C" bool_t xdr_getcredres(XDR *, getcredres*);
-#elif __STDC__ 
+#elif __STDC__
 extern  bool_t xdr_getcredres(XDR *, getcredres*);
-#else /* Old Style C */ 
+#else /* Old Style C */
 bool_t xdr_getcredres();
-#endif /* Old Style C */ 
+#endif /* Old Style C */
 
 
 struct key_netstarg {
@@ -175,13 +175,13 @@ struct key_netstarg {
        netnamestr st_netname;
 };
 typedef struct key_netstarg key_netstarg;
-#ifdef __cplusplus 
+#ifdef __cplusplus
 extern "C" bool_t xdr_key_netstarg(XDR *, key_netstarg*);
-#elif __STDC__ 
+#elif __STDC__
 extern  bool_t xdr_key_netstarg(XDR *, key_netstarg*);
-#else /* Old Style C */ 
+#else /* Old Style C */
 bool_t xdr_key_netstarg();
-#endif /* Old Style C */ 
+#endif /* Old Style C */
 
 
 struct key_netstres {
@@ -191,13 +191,13 @@ struct key_netstres {
        } key_netstres_u;
 };
 typedef struct key_netstres key_netstres;
-#ifdef __cplusplus 
+#ifdef __cplusplus
 extern "C" bool_t xdr_key_netstres(XDR *, key_netstres*);
-#elif __STDC__ 
+#elif __STDC__
 extern  bool_t xdr_key_netstres(XDR *, key_netstres*);
-#else /* Old Style C */ 
+#else /* Old Style C */
 bool_t xdr_key_netstres();
-#endif /* Old Style C */ 
+#endif /* Old Style C */
 
 
 #ifndef opaque
@@ -242,7 +242,7 @@ extern  des_block * key_gen_1_svc(void *, struct svc_req *);
 extern  getcredres * key_getcred_1(netnamestr *, CLIENT *);
 extern  getcredres * key_getcred_1_svc(netnamestr *, struct svc_req *);
 
-#else /* Old Style C */ 
+#else /* Old Style C */
 #define KEY_SET ((u_long)1)
 extern  keystatus * key_set_1();
 extern  keystatus * key_set_1_svc();
@@ -258,7 +258,7 @@ extern  des_block * key_gen_1_svc();
 #define KEY_GETCRED ((u_long)5)
 extern  getcredres * key_getcred_1();
 extern  getcredres * key_getcred_1_svc();
-#endif /* Old Style C */ 
+#endif /* Old Style C */
 #define KEY_VERS2 ((u_long)2)
 
 #ifdef __cplusplus
@@ -315,7 +315,7 @@ extern  key_netstres * key_net_get_2_svc(void *, struct svc_req *);
 extern  cryptkeyres * key_get_conv_2(opaque *, CLIENT *);
 extern  cryptkeyres * key_get_conv_2_svc(opaque *, struct svc_req *);
 
-#else /* Old Style C */ 
+#else /* Old Style C */
 extern  keystatus * key_set_2();
 extern  keystatus * key_set_2_svc();
 extern  cryptkeyres * key_encrypt_2();
@@ -341,6 +341,6 @@ extern  key_netstres * key_net_get_2_svc();
 #define KEY_GET_CONV ((u_long)10)
 extern  cryptkeyres * key_get_conv_2();
 extern  cryptkeyres * key_get_conv_2_svc();
-#endif /* Old Style C */ 
+#endif /* Old Style C */
 
 #endif /* !_KEY_PROT_H_RPCGEN */
index 0f36d16..96e5369 100644 (file)
@@ -5,23 +5,23 @@
  * may copy or modify Sun RPC without charge, but are not authorized
  * to license or distribute it to anyone else except as part of a product or
  * program developed by the user.
- * 
+ *
  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
- * 
+ *
  * Sun RPC is provided with no support and without any obligation on the
  * part of Sun Microsystems, Inc. to assist in its use, correction,
  * modification or enhancement.
- * 
+ *
  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  * OR ANY PART THEREOF.
- * 
+ *
  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  * or profits or other special, indirect and consequential damages, even if
  * Sun has been advised of the possibility of such damages.
- * 
+ *
  * Sun Microsystems, Inc.
  * 2550 Garcia Avenue
  * Mountain View, California  94043
index 11f0161..ba8c84f 100644 (file)
@@ -17,7 +17,7 @@
    02111-1307 USA.  */
 
 #ifndef _SCSI_IOCTL_H
-#define _SCSI_IOCTL_H 
+#define _SCSI_IOCTL_H
 
 /* IOCTLs for SCSI.  */
 #define SCSI_IOCTL_SEND_COMMAND                1       /* Send a command to the SCSI host.  */
index 2f4020e..6d1ecbe 100644 (file)
@@ -238,7 +238,7 @@ typedef unsigned long long int      uintmax_t;
 #  define UINTPTR_MAX          (4294967295U)
 # endif
 
-#if !defined(__H8300H__) && !defined(__H8300S__) 
+#if !defined(__H8300H__) && !defined(__H8300S__)
 /* Minimum for largest signed integral type.  */
 # define INTMAX_MIN            (-__INT64_C(9223372036854775807)-1)
 /* Maximum for largest signed integral type.  */
index 5d14a9b..154b113 100644 (file)
@@ -38,7 +38,7 @@ enum
 
    These go in the low byte.  Avoid using the top bit, it will
    conflict with error returns.  */
-enum 
+enum
   {
     PER_LINUX = 0x0000,
     PER_LINUX_32BIT = 0x0000 | ADDR_LIMIT_32BIT,
index 76ce32d..f8b8f85 100644 (file)
@@ -200,7 +200,7 @@ struct funcdesc_ht
 
   /* Current number of elements.  */
   size_t n_elements;
-};  
+};
 
 inline static int
 hash_pointer (const void *p)
@@ -219,11 +219,11 @@ htab_create (void)
   ht->entries = _dl_malloc (sizeof (struct funcdesc_ht_value *) * ht->size);
   if (! ht->entries)
     return NULL;
-  
+
   ht->n_elements = 0;
 
   _dl_memset (ht->entries, 0, sizeof (struct funcdesc_ht_value *) * ht->size);
-  
+
   return ht;
 }
 
@@ -361,14 +361,14 @@ htab_find_slot (struct funcdesc_ht *htab, void *ptr, int insert)
     goto empty_entry;
   else if ((*entry)->entry_point == ptr)
     return entry;
-      
+
   hash2 = 1 + hash % (size - 2);
   for (;;)
     {
       index += hash2;
       if (index >= size)
        index -= size;
-      
+
       entry = &htab->entries[index];
       if (!*entry)
        goto empty_entry;
@@ -427,7 +427,7 @@ _dl_lookup_address (void const *address)
   if ((Elf32_Addr)address & 7)
     /* It's not a function descriptor.  */
     return address;
-  
+
   fd = (struct funcdesc_value const *)address;
 
   for (rpnt = _dl_loaded_modules; rpnt; rpnt = rpnt->next)
@@ -448,7 +448,7 @@ _dl_lookup_address (void const *address)
       else
        address = fd;
     }
-  
+
   return address;
 }
 
@@ -531,7 +531,7 @@ __dl_map_segment (Elf32_Ehdr *epnt,
       (tryaddr = 0,
        size = (ppnt->p_vaddr & ADDR_ALIGN) + ppnt->p_filesz,
        LXFLAGS(ppnt->p_flags),
-       flags | MAP_EXECUTABLE | MAP_DENYWRITE, 
+       flags | MAP_EXECUTABLE | MAP_DENYWRITE,
        infile, ppnt->p_offset & OFFS_ALIGN);
     if (_dl_mmap_check_error(status)
        || (tryaddr && tryaddr != status))
index 5b596fd..a1e150e 100644 (file)
@@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public
 License along with uClibc; see the file COPYING.LIB.  If not, write to
 the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
 USA.  */
-       
+
 /* Any assembly language/system dependent hacks needed to setup
  * boot1.c so it will work as expected and cope with whatever platform
  * specific wierdness is needed for this architecture.
index 7351835..52df4c9 100644 (file)
@@ -171,7 +171,7 @@ do \
     } \
 \
 } \
-while (0)  
+while (0)
 
 /* We want want to apply all relocations in the interpreter during
    bootstrap.  Because of this, we have to skip the interpreter
index d003e2e..ac24337 100644 (file)
@@ -63,7 +63,7 @@ _dl_linux_resolver (struct elf_resolve *tpnt, int reloc_entry)
        symname= strtab + symtab[symtab_index].st_name;
 
        if (reloc_type != R_BFIN_FUNCDESC_VALUE) {
-               _dl_dprintf(2, "%s: Incorrect relocation type in jump relocations\n", 
+               _dl_dprintf(2, "%s: Incorrect relocation type in jump relocations\n",
                            _dl_progname);
                _dl_exit(1);
        }
@@ -89,7 +89,7 @@ _dl_linux_resolver (struct elf_resolve *tpnt, int reloc_entry)
        if (_dl_debug_bindings) {
                _dl_dprintf(_dl_debug_file, "\nresolve function: %s", symname);
                if (_dl_debug_detail)
-                       _dl_dprintf(_dl_debug_file, 
+                       _dl_dprintf(_dl_debug_file,
                                    "\n\tpatched (%x,%x) ==> (%x,%x) @ %x\n",
                                    got_entry->entry_point, got_entry->got_value,
                                    funcval.entry_point, funcval.got_value,
@@ -126,7 +126,7 @@ _dl_parse(struct elf_resolve *tpnt, struct dyn_elf *scope,
 
        for (i = 0; i < rel_size; i++, rpnt++) {
                int res;
-           
+
                symtab_index = ELF_R_SYM(rpnt->r_info);
                debug_sym(symtab,strtab,symtab_index);
                debug_reloc(symtab,strtab,rpnt);
@@ -136,17 +136,17 @@ _dl_parse(struct elf_resolve *tpnt, struct dyn_elf *scope,
                if (res==0) continue;
 
                _dl_dprintf(2, "\n%s: ",_dl_progname);
-               
+
                if (symtab_index)
                        _dl_dprintf(2, "symbol '%s': ", strtab + symtab[symtab_index].st_name);
-                 
+
                if (res <0) {
                        int reloc_type = ELF_R_TYPE(rpnt->r_info);
 #if defined (__SUPPORT_LD_DEBUG__)
                        _dl_dprintf(2, "can't handle reloc type %s\n ", _dl_reltypes(reloc_type));
 #else
                        _dl_dprintf(2, "can't handle reloc type %x\n", reloc_type);
-#endif                 
+#endif
                        _dl_exit(-res);
                } else if (res >0) {
                        _dl_dprintf(2, "can't resolve symbol\n");
index 00ff263..0d469dd 100644 (file)
@@ -184,7 +184,7 @@ struct funcdesc_ht
 
   /* Current number of elements.  */
   size_t n_elements;
-};  
+};
 
 inline static int
 hash_pointer (const void *p)
@@ -203,11 +203,11 @@ htab_create (void)
   ht->entries = _dl_malloc (sizeof (struct funcdesc_ht_value *) * ht->size);
   if (! ht->entries)
     return NULL;
-  
+
   ht->n_elements = 0;
 
   _dl_memset (ht->entries, 0, sizeof (struct funcdesc_ht_value *) * ht->size);
-  
+
   return ht;
 }
 
@@ -345,14 +345,14 @@ htab_find_slot (struct funcdesc_ht *htab, void *ptr, int insert)
     goto empty_entry;
   else if ((*entry)->entry_point == ptr)
     return entry;
-      
+
   hash2 = 1 + hash % (size - 2);
   for (;;)
     {
       index += hash2;
       if (index >= size)
        index -= size;
-      
+
       entry = &htab->entries[index];
       if (!*entry)
        goto empty_entry;
@@ -411,7 +411,7 @@ _dl_lookup_address (void const *address)
   if ((Elf32_Addr)address & 7)
     /* It's not a function descriptor.  */
     return address;
-  
+
   fd = (struct funcdesc_value const *)address;
 
   for (rpnt = _dl_loaded_modules; rpnt; rpnt = rpnt->next)
@@ -432,7 +432,7 @@ _dl_lookup_address (void const *address)
       else
        address = fd;
     }
-  
+
   return address;
 }
 
index f72d54a..32d86ed 100644 (file)
@@ -152,7 +152,7 @@ do \
       _dl_close(infile); \
     } \
 } \
-while (0)  
+while (0)
 
 /* We want want to apply all relocations in the interpreter during
    bootstrap.  Because of this, we have to skip the interpreter
@@ -179,7 +179,7 @@ while (0)
 #define DL_GET_READY_TO_RUN_EXTRA_ARGS \
   , dl_boot_progmap
 
-         
+
 
 
 #ifdef __USE_GNU
index d8714c5..df41f97 100644 (file)
@@ -52,7 +52,7 @@ _dl_linux_resolver (struct elf_resolve *tpnt, int reloc_entry)
        symname= strtab + symtab[symtab_index].st_name;
 
        if (reloc_type != R_FRV_FUNCDESC_VALUE) {
-               _dl_dprintf(2, "%s: Incorrect relocation type in jump relocations\n", 
+               _dl_dprintf(2, "%s: Incorrect relocation type in jump relocations\n",
                                _dl_progname);
                _dl_exit(1);
        }
@@ -82,7 +82,7 @@ _dl_linux_resolver (struct elf_resolve *tpnt, int reloc_entry)
                {
                        _dl_dprintf(_dl_debug_file, "\nresolve function: %s", symname);
                        if (_dl_debug_detail)
-                               _dl_dprintf(_dl_debug_file, 
+                               _dl_dprintf(_dl_debug_file,
                                            "\n\tpatched (%x,%x) ==> (%x,%x) @ %x\n",
                                            got_entry->entry_point, got_entry->got_value,
                                            funcval.entry_point, funcval.got_value,
@@ -120,7 +120,7 @@ _dl_parse(struct elf_resolve *tpnt, struct dyn_elf *scope,
 
          for (i = 0; i < rel_size; i++, rpnt++) {
                int res;
-           
+
                symtab_index = ELF32_R_SYM(rpnt->r_info);
                debug_sym(symtab,strtab,symtab_index);
                debug_reloc(symtab,strtab,rpnt);
@@ -130,10 +130,10 @@ _dl_parse(struct elf_resolve *tpnt, struct dyn_elf *scope,
                if (res==0) continue;
 
                _dl_dprintf(2, "\n%s: ",_dl_progname);
-               
+
                if (symtab_index)
                  _dl_dprintf(2, "symbol '%s': ", strtab + symtab[symtab_index].st_name);
-                 
+
                if (res <0)
                {
                        int reloc_type = ELF32_R_TYPE(rpnt->r_info);
@@ -141,7 +141,7 @@ _dl_parse(struct elf_resolve *tpnt, struct dyn_elf *scope,
                        _dl_dprintf(2, "can't handle reloc type %s\n ", _dl_reltypes(reloc_type));
 #else
                        _dl_dprintf(2, "can't handle reloc type %x\n", reloc_type);
-#endif                 
+#endif
                        _dl_exit(-res);
                }
                else if (res >0)
index bb36dcc..13e9e60 100644 (file)
@@ -1,7 +1,7 @@
 /* vi: set sw=4 ts=4: */
 /*
  * Various assmbly language/system dependent hacks that are required
- * so that we can minimize the amount of platform specific code. 
+ * so that we can minimize the amount of platform specific code.
  * Copyright (C) 2005 by Erik Andersen <andersen@codepoet.org>
  */
 
index 48a8bfb..d528248 100644 (file)
@@ -170,7 +170,7 @@ elf_machine_relative (Elf32_Addr load_off, const Elf32_Addr rel_addr,
 {
         Elf32_Rela * rpnt = (void *)rel_addr;
        --rpnt;
-       do {     /* PowerPC handles pre increment/decrement better */ 
+       do {     /* PowerPC handles pre increment/decrement better */
                Elf32_Addr *const reloc_addr = (void *) (load_off + (++rpnt)->r_offset);
 
                *reloc_addr = load_off + rpnt->r_addend;
index 7fa626f..eeb3250 100644 (file)
@@ -202,7 +202,7 @@ _dl_do_reloc (struct elf_resolve *tpnt,struct dyn_elf *scope,
 #endif
        reloc_addr   = (Elf32_Addr *)(intptr_t) (tpnt->loadaddr + (unsigned long) rpnt->r_offset);
        reloc_type   = ELF32_R_TYPE(rpnt->r_info);
-       symbol_addr  = tpnt->loadaddr; /* For R_PPC_RELATIVE */ 
+       symbol_addr  = tpnt->loadaddr; /* For R_PPC_RELATIVE */
        symtab_index = ELF32_R_SYM(rpnt->r_info);
        symname      = strtab + symtab[symtab_index].st_name;
        if (symtab_index) {
@@ -386,7 +386,7 @@ _dl_parse(struct elf_resolve *tpnt, struct dyn_elf *scope,
 
        symtab = (Elf32_Sym *)(intptr_t)tpnt->dynamic_info[DT_SYMTAB];
        strtab = (char *)tpnt->dynamic_info[DT_STRTAB];
-       
+
          for (i = 0; i < rel_size; i++, rpnt++) {
                int res;
 
index 7707cfc..4c5013c 100644 (file)
@@ -131,9 +131,9 @@ static __inline__ Elf32_Addr
 elf_machine_dynamic (void)
 {
        register Elf32_Addr *got __asm__ ("%l7");
-       
+
        LOAD_PIC_REG (got);
-       
+
        return *got;
 }
 
@@ -142,14 +142,14 @@ static __inline__ Elf32_Addr
 elf_machine_load_address (void)
 {
        register Elf32_Addr *pc __asm__ ("%o7"), *got __asm ("%l7");
-       
+
        __asm__ ("sethi %%hi(_GLOBAL_OFFSET_TABLE_-4), %1\n\t"
               "call 1f\n\t"
               " add %1, %%lo(_GLOBAL_OFFSET_TABLE_+4), %1\n\t"
               "call _DYNAMIC\n\t"
               "call _GLOBAL_OFFSET_TABLE_\n"
               "1:\tadd %1, %0, %1\n\t" : "=r" (pc), "=r" (got));
-       
+
        /* got is now l_addr + _GLOBAL_OFFSET_TABLE_
         *got is _DYNAMIC
         pc[2]*4 is l_addr + _DYNAMIC - (long)pc - 8
index 2fd0128..8ae9624 100644 (file)
@@ -5,7 +5,7 @@
  * Copyright (C) 2007 Tensilica Inc.
  *
  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
- * Parts taken from glibc/sysdeps/xtensa/dl-machine.h. 
+ * Parts taken from glibc/sysdeps/xtensa/dl-machine.h.
  */
 
 __asm__ (
index 8baa681..d35d33f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 1996 by Craig Metz 
+ * Copyright 1996 by Craig Metz
  * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  * Portions from the GNU C library,
  * Copyright (C) 2003, 2006 Free Software Foundation, Inc.
@@ -535,7 +535,7 @@ gaih_inet (const char *name, const struct gaih_service *service,
     }
     else
     {
-       /* 
+       /*
         * Neither socket type nor protocol is set.  Return all socket types
         * we know about.
         */
@@ -810,7 +810,7 @@ gaih_inet (const char *name, const struct gaih_service *service,
                        sin6p->sin6_addr.s6_addr32[0] = 0;
                        sin6p->sin6_addr.s6_addr32[1] = 0;
                        sin6p->sin6_addr.s6_addr32[2] = htonl(0x0000ffff);
-                       memcpy(&sin6p->sin6_addr.s6_addr32[3], 
+                       memcpy(&sin6p->sin6_addr.s6_addr32[3],
                               at2->addr, sizeof (sin6p->sin6_addr.s6_addr32[3]));
                    }
                    sin6p->sin6_port = st2->port;
index 1e3e843..a079f64 100644 (file)
@@ -12,7 +12,7 @@
 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 ** Library General Public License for more details.
-** 
+**
 ** You should have received a copy of the GNU Library General Public
 ** License along with the NYS Library; see the file COPYING.LIB.  If
 ** not, write to the Free Software Foundation, Inc., 675 Mass Ave,
index 005d9d0..36c6be4 100644 (file)
@@ -47,7 +47,7 @@ extern int __opensock(void) attribute_hidden;
 
 libc_hidden_proto(if_nametoindex)
 unsigned int
-if_nametoindex(const char* ifname) 
+if_nametoindex(const char* ifname)
 {
 #ifndef SIOCGIFINDEX
   __set_errno (ENOSYS);
index c1f3fc8..f19556d 100644 (file)
@@ -254,7 +254,7 @@ inet_pton4(const char *src, u_char *dst)
 #ifdef __UCLIBC_HAS_IPV6__
 
 /* We cannot use the macro version of tolower() or very bad
- * things happen when '*src++' gets evaluated multiple times.  
+ * things happen when '*src++' gets evaluated multiple times.
  * So undef it here so we get the function version of tolower
  * instead.
  */
index 89a31a2..7e6c907 100644 (file)
@@ -258,7 +258,7 @@ clnt_sperror (CLIENT * rpch, const char *msg)
     case RPC_CANTSEND:
     case RPC_CANTRECV:
       __glibc_strerror_r (e.re_errno, chrbuf, sizeof chrbuf);
-      len = sprintf (str, "; errno = %s", chrbuf); 
+      len = sprintf (str, "; errno = %s", chrbuf);
       str += len;
       break;
 
index fe00d6a..cd8d620 100644 (file)
@@ -53,7 +53,7 @@
  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
- */ 
+ */
 
 #if 0
 static char sccsid[] = "@(#)rcmd.c     8.3 (Berkeley) 3/26/94";
@@ -144,7 +144,7 @@ libc_hidden_proto(rresvport)
 /* some forward declarations */
 static int __ivaliduser2(FILE *hostf, u_int32_t raddr,
                         const char *luser, const char *ruser, const char *rhost);
-static int iruserok2 (u_int32_t raddr, int superuser, const char *ruser, 
+static int iruserok2 (u_int32_t raddr, int superuser, const char *ruser,
                      const char *luser, const char *rhost);
 
 
@@ -178,7 +178,7 @@ int rcmd(ahost, rport, locuser, remuser, cmd, fd2p)
        tmphstbuf = malloc (hstbuflen);
 #endif
 
-       while (gethostbyname_r (*ahost, &hostbuf, tmphstbuf, 
+       while (gethostbyname_r (*ahost, &hostbuf, tmphstbuf,
                    hstbuflen, &hp, &herr) != 0 || hp == NULL)
        {
            if (herr != NETDB_INTERNAL || errno != ERANGE)
@@ -212,7 +212,7 @@ int rcmd(ahost, rport, locuser, remuser, cmd, fd2p)
 #endif
        pfd[0].events = POLLIN;
        pfd[1].events = POLLIN;
-       
+
         *ahost = hp->h_name;
         oldmask = sigblock(sigmask(SIGURG)); /* __sigblock */
        for (timo = 1, lport = IPPORT_RESERVED - 1;;) {
@@ -361,7 +361,7 @@ int rresvport(int *alport)
            return -1;
        }
     }
-    
+
     return -1;
 }
 libc_hidden_def(rresvport)
@@ -394,8 +394,8 @@ int ruserok(rhost, superuser, ruser, luser)
        buffer = malloc (buflen);
 #endif
 
-       while (gethostbyname_r (rhost, &hostbuf, buffer, 
-                   buflen, &hp, &herr) != 0 || hp == NULL) 
+       while (gethostbyname_r (rhost, &hostbuf, buffer,
+                   buflen, &hp, &herr) != 0 || hp == NULL)
        {
            if (herr != NETDB_INTERNAL || errno != ERANGE) {
 #ifndef __ARCH_USE_MMU__
@@ -493,7 +493,7 @@ iruserok2 (raddr, superuser, ruser, luser, rhost)
 
        if (!superuser)
                hostf = iruserfopen (_PATH_HEQUIV, 0);
-       
+
        if (hostf) {
                isbad = __ivaliduser2 (hostf, raddr, luser, ruser, rhost);
                fclose (hostf);
@@ -517,7 +517,7 @@ iruserok2 (raddr, superuser, ruser, luser, rhost)
                char *buffer = malloc (buflen);
 #endif
 
-               if (getpwnam_r (luser, &pwdbuf, buffer, 
+               if (getpwnam_r (luser, &pwdbuf, buffer,
                            buflen, &pwd) != 0 || pwd == NULL)
                {
 #ifndef __ARCH_USE_MMU__
@@ -545,12 +545,12 @@ iruserok2 (raddr, superuser, ruser, luser, rhost)
                seteuid (pwd->pw_uid);
                hostf = iruserfopen (pbuf, pwd->pw_uid);
                free(pbuf);
-               
+
                if (hostf != NULL) {
                        isbad = __ivaliduser2 (hostf, raddr, luser, ruser, rhost);
                        fclose (hostf);
                }
-               
+
                seteuid (uid);
                return isbad;
        }
index 7c25a39..abb76eb 100644 (file)
@@ -599,7 +599,7 @@ const __ctype_mask_t __C_ctype_b_data[] = {
        /*   -4  M-|  */ 0,
        /*   -3  M-}  */ 0,
        /*   -2  M-~  */ 0,
-#endif /* __UCLIBC_HAS_CTYPE_SIGNED__*/ 
+#endif /* __UCLIBC_HAS_CTYPE_SIGNED__*/
        /*   -1  M-^? */ 0,
        /*    0  ^@   */ _IScntrl,
        /*    1  ^A   */ _IScntrl,
@@ -911,7 +911,7 @@ const __ctype_touplow_t __C_ctype_tolower_data[] = {
         -12,          -11,          -10,           -9,
          -8,           -7,           -6,           -5,
          -4,           -3,           -2,           -1,
-#endif /* __UCLIBC_HAS_CTYPE_SIGNED__*/ 
+#endif /* __UCLIBC_HAS_CTYPE_SIGNED__*/
           0,            1,            2,            3,
           4,            5,            6,            7,
           8,            9,           10,           11,
@@ -1033,7 +1033,7 @@ const __ctype_touplow_t __C_ctype_toupper_data[] = {
         -12,          -11,          -10,           -9,
          -8,           -7,           -6,           -5,
          -4,           -3,           -2,           -1,
-#endif /* __UCLIBC_HAS_CTYPE_SIGNED__*/ 
+#endif /* __UCLIBC_HAS_CTYPE_SIGNED__*/
           0,            1,            2,            3,
           4,            5,            6,            7,
           8,            9,           10,           11,
index 761111b..370886a 100644 (file)
@@ -60,7 +60,7 @@ struct __dirstream {
 
   /* total size of buffer */
   size_t dd_max;
+
   /* lock */
   __UCLIBC_MUTEX(dd_lock);
 };                             /* stream data from opendir() */
index 0e823ad..aba63f2 100644 (file)
@@ -18,7 +18,7 @@ libc_hidden_proto(opendir)
 libc_hidden_proto(closedir)
 libc_hidden_proto(qsort)
 
-int scandir(const char *dir, struct dirent ***namelist, 
+int scandir(const char *dir, struct dirent ***namelist,
        int (*selector) (const struct dirent *),
        int (*compar) (const void *, const void *))
 {
index 98433f4..083d2de 100644 (file)
@@ -14,7 +14,7 @@
    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, write to the Free
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.  
+   02111-1307 USA.
    */
 
 /* Modified for uClibc by Erik Andersen
@@ -36,7 +36,7 @@ libc_hidden_proto(closedir)
 libc_hidden_proto(qsort)
 libc_hidden_proto(readdir64)
 
-int scandir64(const char *dir, struct dirent64 ***namelist, 
+int scandir64(const char *dir, struct dirent64 ***namelist,
        int (*selector) (const struct dirent64 *),
        int (*compar) (const void *, const void *))
 {
index 8f441ac..00963c3 100644 (file)
@@ -235,7 +235,7 @@ int glob(const char *pat, int flags, int (*errfunc)(const char *path, int err),
        size_t cnt, i;
        size_t offs = (flags & GLOB_DOOFFS) ? g->gl_offs : 0;
        int error = 0;
-       
+
        if (*p == '/') {
                for (; *p == '/'; p++);
                d = "/";
@@ -256,7 +256,7 @@ int glob(const char *pat, int flags, int (*errfunc)(const char *path, int err),
                __glob_freelist(&head);
                return error;
        }
-       
+
        for (cnt=0, tail=head.next; tail; tail=tail->next, cnt++);
        if (!cnt) {
                if (flags & GLOB_NOCHECK) {
@@ -292,7 +292,7 @@ int glob(const char *pat, int flags, int (*errfunc)(const char *path, int err),
 
        if (!(flags & GLOB_NOSORT))
                qsort(g->gl_pathv+offs, cnt, sizeof(char *), __glob_sort);
-       
+
        return error;
 }
 #ifdef __GLOB64
index cc633cd..f73e2c3 100644 (file)
@@ -16,5 +16,5 @@
 #define globfree(pglob) globfree64 (pglob)
 
 #define __GLOB64    1
-    
+
 #include "glob-susv3.c"
index a2e0de6..246d164 100644 (file)
@@ -154,7 +154,7 @@ struct obstack *_obstack;
   } while (0)
 # endif
 
-\f
+
 /* Initialize an obstack H for use.  Specify chunk size SIZE (0 means default).
    Objects start on multiples of ALIGNMENT (0 means use default).
    CHUNKFUN is the function to use to allocate chunks,
@@ -383,7 +383,7 @@ _obstack_allocated_p (
     }
   return lp != 0;
 }
-\f
+
 /* Free objects in obstack H, including OBJ and everything allocate
    more recently than OBJ.  If OBJ is zero, free everything in H.  */
 
@@ -457,7 +457,7 @@ obstack_free (
     /* obj is not in any of the chunks! */
     abort ();
 }
-\f
+
 int
 _obstack_memory_used (
      struct obstack *h)
@@ -471,7 +471,7 @@ _obstack_memory_used (
     }
   return nbytes;
 }
-\f
+
 /* Define the error handler.  */
 # ifndef _
 /* #  if (HAVE_LIBINTL_H && ENABLE_NLS) || defined _LIBC */
@@ -506,7 +506,7 @@ print_and_abort (void)
     fprintf (stderr, "%s\n", _("memory exhausted"));
   exit (obstack_exit_failure);
 }
-\f
+
 # if 0
 /* These are now turned off because the applications do not use it
    and it uses bcopy via obstack_grow, which causes trouble on sysV.  */
index 80a6cf7..ac40bef 100644 (file)
@@ -1,11 +1,11 @@
-#ifndef __TEMPNAME_H__ 
+#ifndef __TEMPNAME_H__
 #define __TEMPNAME_H__
 
 #define        __need_size_t
 #include <stddef.h>
 
 /* Disable support for $TMPDIR */
-extern int ___path_search (char *tmpl, size_t tmpl_len, const char *dir, 
+extern int ___path_search (char *tmpl, size_t tmpl_len, const char *dir,
                const char *pfx /*, int try_tmpdir */) attribute_hidden;
 #define __path_search(tmpl, tmpl_len, dir, pfx, try_tmpdir) ___path_search(tmpl, tmpl_len, dir, pfx)
 
index 9825798..858a02c 100644 (file)
@@ -188,7 +188,7 @@ static const char utf8[] = "UTF-8";
 #ifdef __UCLIBC_MJN3_ONLY__
 #warning TODO: Fix dimensions of hr_locale.
 #endif
-/* Individual category strings start at hr_locale + category * MAX_LOCALE_CATEGORY. 
+/* Individual category strings start at hr_locale + category * MAX_LOCALE_CATEGORY.
  * This holds for LC_ALL as well.
  */
 static char hr_locale[(MAX_LOCALE_CATEGORY_STR * LC_ALL) + MAX_LOCALE_STR];
@@ -638,7 +638,7 @@ int attribute_hidden _locale_set_l(const unsigned char *p, __locale_t base)
 
                                x = (const char **)(((char *) base)
                                     + base->category_offsets[i]);
+
                                stp = __locale_mmap->lc_common_tbl_offsets + 4*i;
                                r = (const unsigned char *)( ((char *)__locale_mmap) + *stp );
                                io = (const uint16_t *)( ((char *)__locale_mmap) + *++stp );
@@ -750,7 +750,7 @@ int attribute_hidden _locale_set_l(const unsigned char *p, __locale_t base)
                                                                        [ ((int)(c8b->idx8uplow
                                                                                         [u >> __LOCALE_DATA_Cuplow_IDX_SHIFT])
                                                                           << __LOCALE_DATA_Cuplow_IDX_SHIFT)
-                                                                         + ((128 + u) 
+                                                                         + ((128 + u)
                                                                                 & ((1 << __LOCALE_DATA_Cuplow_IDX_SHIFT)
                                                                                        - 1)) ];
                                                                if (m & _ISlower) {
@@ -835,7 +835,7 @@ int attribute_hidden _locale_set_l(const unsigned char *p, __locale_t base)
                                        assert(base->thousands_sep_len > 0);
                                        assert(base->thousands_sep[base->thousands_sep_len] == 0);
 #endif
-                               }                                       
+                               }
 
 /*                     } else if (i == LC_COLLATE) { */
 /*                             init_cur_collate(__locale_mmap->locales[ __LOCALE_DATA_WIDTH_LOCALES */
@@ -967,63 +967,63 @@ void _locale_init(void)
 
 static const unsigned char nl_data[C_LC_ALL + 1 + 90 + 320] = {
 /* static const char cat_start[LC_ALL + 1] = { */
-        '\x00', '\x0b', '\x0e', '\x24', '\x56', '\x56', '\x5a', 
+        '\x00', '\x0b', '\x0e', '\x24', '\x56', '\x56', '\x5a',
 /* }; */
 /* static const char item_offset[90] = { */
-       '\x00', '\x02', '\x04', '\x06', '\x08', '\x0a', '\x0c', '\x0e', 
-       '\x10', '\x12', '\x14', '\x1a', '\x1b', '\x1b', '\x1b', '\x1b', 
-       '\x1b', '\x1b', '\x1b', '\x1b', '\x1b', '\x1c', '\x1c', '\x1c', 
-       '\x1c', '\x1c', '\x1c', '\x1c', '\x1c', '\x1c', '\x1c', '\x1c', 
-       '\x1c', '\x1c', '\x1c', '\x1e', '\x20', '\x24', '\x28', '\x2c', 
-       '\x30', '\x34', '\x38', '\x3c', '\x43', '\x4a', '\x52', '\x5c', 
-       '\x65', '\x6c', '\x75', '\x79', '\x7d', '\x81', '\x85', '\x89', 
-       '\x8d', '\x91', '\x95', '\x99', '\x9d', '\xa1', '\xa5', '\xad', 
-       '\x36', '\x3c', '\x42', '\x46', '\x4b', '\x50', '\x57', '\x61', 
-       '\x69', '\x72', '\x7b', '\x7e', '\x81', '\x96', '\x9f', '\xa8', 
-       '\xb3', '\xb3', '\xb3', '\xb3', '\xb3', '\xb3', '\xb4', '\xba', 
-       '\xbf', '\xbf', 
+       '\x00', '\x02', '\x04', '\x06', '\x08', '\x0a', '\x0c', '\x0e',
+       '\x10', '\x12', '\x14', '\x1a', '\x1b', '\x1b', '\x1b', '\x1b',
+       '\x1b', '\x1b', '\x1b', '\x1b', '\x1b', '\x1c', '\x1c', '\x1c',
+       '\x1c', '\x1c', '\x1c', '\x1c', '\x1c', '\x1c', '\x1c', '\x1c',
+       '\x1c', '\x1c', '\x1c', '\x1e', '\x20', '\x24', '\x28', '\x2c',
+       '\x30', '\x34', '\x38', '\x3c', '\x43', '\x4a', '\x52', '\x5c',
+       '\x65', '\x6c', '\x75', '\x79', '\x7d', '\x81', '\x85', '\x89',
+       '\x8d', '\x91', '\x95', '\x99', '\x9d', '\xa1', '\xa5', '\xad',
+       '\x36', '\x3c', '\x42', '\x46', '\x4b', '\x50', '\x57', '\x61',
+       '\x69', '\x72', '\x7b', '\x7e', '\x81', '\x96', '\x9f', '\xa8',
+       '\xb3', '\xb3', '\xb3', '\xb3', '\xb3', '\xb3', '\xb4', '\xba',
+       '\xbf', '\xbf',
 /* }; */
 /* static const char C_locale_data[320] = { */
-          '0', '\x00',    '1', '\x00',    '2', '\x00',    '3', '\x00', 
-          '4', '\x00',    '5', '\x00',    '6', '\x00',    '7', '\x00', 
-          '8', '\x00',    '9', '\x00',    'A',    'S',    'C',    'I', 
-          'I', '\x00',    '.', '\x00', '\x7f', '\x00',    '-', '\x00', 
-          'S',    'u',    'n', '\x00',    'M',    'o',    'n', '\x00', 
-          'T',    'u',    'e', '\x00',    'W',    'e',    'd', '\x00', 
-          'T',    'h',    'u', '\x00',    'F',    'r',    'i', '\x00', 
-          'S',    'a',    't', '\x00',    'S',    'u',    'n',    'd', 
-          'a',    'y', '\x00',    'M',    'o',    'n',    'd',    'a', 
-          'y', '\x00',    'T',    'u',    'e',    's',    'd',    'a', 
-          'y', '\x00',    'W',    'e',    'd',    'n',    'e',    's', 
-          'd',    'a',    'y', '\x00',    'T',    'h',    'u',    'r', 
-          's',    'd',    'a',    'y', '\x00',    'F',    'r',    'i', 
-          'd',    'a',    'y', '\x00',    'S',    'a',    't',    'u', 
-          'r',    'd',    'a',    'y', '\x00',    'J',    'a',    'n', 
-       '\x00',    'F',    'e',    'b', '\x00',    'M',    'a',    'r', 
-       '\x00',    'A',    'p',    'r', '\x00',    'M',    'a',    'y', 
-       '\x00',    'J',    'u',    'n', '\x00',    'J',    'u',    'l', 
-       '\x00',    'A',    'u',    'g', '\x00',    'S',    'e',    'p', 
-       '\x00',    'O',    'c',    't', '\x00',    'N',    'o',    'v', 
-       '\x00',    'D',    'e',    'c', '\x00',    'J',    'a',    'n', 
-          'u',    'a',    'r',    'y', '\x00',    'F',    'e',    'b', 
-          'r',    'u',    'a',    'r',    'y', '\x00',    'M',    'a', 
-          'r',    'c',    'h', '\x00',    'A',    'p',    'r',    'i', 
-          'l', '\x00',    'M',    'a',    'y', '\x00',    'J',    'u', 
-          'n',    'e', '\x00',    'J',    'u',    'l',    'y', '\x00', 
-          'A',    'u',    'g',    'u',    's',    't', '\x00',    'S', 
-          'e',    'p',    't',    'e',    'm',    'b',    'e',    'r', 
-       '\x00',    'O',    'c',    't',    'o',    'b',    'e',    'r', 
-       '\x00',    'N',    'o',    'v',    'e',    'm',    'b',    'e', 
-          'r', '\x00',    'D',    'e',    'c',    'e',    'm',    'b', 
-          'e',    'r', '\x00',    'A',    'M', '\x00',    'P',    'M', 
-       '\x00',    '%',    'a',    ' ',    '%',    'b',    ' ',    '%', 
-          'e',    ' ',    '%',    'H',    ':',    '%',    'M',    ':', 
-          '%',    'S',    ' ',    '%',    'Y', '\x00',    '%',    'm', 
-          '/',    '%',    'd',    '/',    '%',    'y', '\x00',    '%', 
-          'H',    ':',    '%',    'M',    ':',    '%',    'S', '\x00', 
-          '%',    'I',    ':',    '%',    'M',    ':',    '%',    'S', 
-          ' ',    '%',    'p', '\x00',    '^',    '[',    'y',    'Y', 
-          ']', '\x00',    '^',    '[',    'n',    'N',    ']', '\x00', 
+          '0', '\x00',    '1', '\x00',    '2', '\x00',    '3', '\x00',
+          '4', '\x00',    '5', '\x00',    '6', '\x00',    '7', '\x00',
+          '8', '\x00',    '9', '\x00',    'A',    'S',    'C',    'I',
+          'I', '\x00',    '.', '\x00', '\x7f', '\x00',    '-', '\x00',
+          'S',    'u',    'n', '\x00',    'M',    'o',    'n', '\x00',
+          'T',    'u',    'e', '\x00',    'W',    'e',    'd', '\x00',
+          'T',    'h',    'u', '\x00',    'F',    'r',    'i', '\x00',
+          'S',    'a',    't', '\x00',    'S',    'u',    'n',    'd',
+          'a',    'y', '\x00',    'M',    'o',    'n',    'd',    'a',
+          'y', '\x00',    'T',    'u',    'e',    's',    'd',    'a',
+          'y', '\x00',    'W',    'e',    'd',    'n',    'e',    's',
+          'd',    'a',    'y', '\x00',    'T',    'h',    'u',    'r',
+          's',    'd',    'a',    'y', '\x00',    'F',    'r',    'i',
+          'd',    'a',    'y', '\x00',    'S',    'a',    't',    'u',
+          'r',    'd',    'a',    'y', '\x00',    'J',    'a',    'n',
+       '\x00',    'F',    'e',    'b', '\x00',    'M',    'a',    'r',
+       '\x00',    'A',    'p',    'r', '\x00',    'M',    'a',    'y',
+       '\x00',    'J',    'u',    'n', '\x00',    'J',    'u',    'l',
+       '\x00',    'A',    'u',    'g', '\x00',    'S',    'e',    'p',
+       '\x00',    'O',    'c',    't', '\x00',    'N',    'o',    'v',
+       '\x00',    'D',    'e',    'c', '\x00',    'J',    'a',    'n',
+          'u',    'a',    'r',    'y', '\x00',    'F',    'e',    'b',
+          'r',    'u',    'a',    'r',    'y', '\x00',    'M',    'a',
+          'r',    'c',    'h', '\x00',    'A',    'p',    'r',    'i',
+          'l', '\x00',    'M',    'a',    'y', '\x00',    'J',    'u',
+          'n',    'e', '\x00',    'J',    'u',    'l',    'y', '\x00',
+          'A',    'u',    'g',    'u',    's',    't', '\x00',    'S',
+          'e',    'p',    't',    'e',    'm',    'b',    'e',    'r',
+       '\x00',    'O',    'c',    't',    'o',    'b',    'e',    'r',
+       '\x00',    'N',    'o',    'v',    'e',    'm',    'b',    'e',
+          'r', '\x00',    'D',    'e',    'c',    'e',    'm',    'b',
+          'e',    'r', '\x00',    'A',    'M', '\x00',    'P',    'M',
+       '\x00',    '%',    'a',    ' ',    '%',    'b',    ' ',    '%',
+          'e',    ' ',    '%',    'H',    ':',    '%',    'M',    ':',
+          '%',    'S',    ' ',    '%',    'Y', '\x00',    '%',    'm',
+          '/',    '%',    'd',    '/',    '%',    'y', '\x00',    '%',
+          'H',    ':',    '%',    'M',    ':',    '%',    'S', '\x00',
+          '%',    'I',    ':',    '%',    'M',    ':',    '%',    'S',
+          ' ',    '%',    'p', '\x00',    '^',    '[',    'y',    'Y',
+          ']', '\x00',    '^',    '[',    'n',    'N',    ']', '\x00',
 };
 
 libc_hidden_proto(nl_langinfo)
index c336795..f422078 100644 (file)
@@ -27,7 +27,7 @@ libc_hidden_proto(abort)
 libc_hidden_proto(fprintf)
 
 /* Reentrant version of getmntent.  */
-struct mntent *getmntent_r (FILE *filep, 
+struct mntent *getmntent_r (FILE *filep,
        struct mntent *mnt, char *buff, int bufsize)
 {
        char *cp, *ptrptr;
@@ -82,13 +82,13 @@ struct mntent *getmntent(FILE * filep)
     static char *buff = NULL;
     static struct mntent mnt;
     __UCLIBC_MUTEX_LOCK(mylock);
-    
+
     if (!buff) {
             buff = malloc(BUFSIZ);
                if (!buff)
                    abort();
     }
-    
+
     tmp = getmntent_r(filep, &mnt, buff, BUFSIZ);
     __UCLIBC_MUTEX_UNLOCK(mylock);
     return(tmp);
index ab6bdd8..210ae05 100644 (file)
@@ -120,7 +120,7 @@ static bin_tree_t *duplicate_tree (const bin_tree_t *src, re_dfa_t *dfa);
 static void free_token (re_token_t *node);
 static reg_errcode_t free_tree (void *extra, bin_tree_t *node);
 static reg_errcode_t mark_opt_subexp (void *extra, bin_tree_t *node);
-\f
+
 /* This table gives an error message for each of the error codes listed
    in regex.h.  Obviously the order here has to be same as there.
    POSIX doesn't require that we do anything for REG_NOERROR,
@@ -200,7 +200,7 @@ const size_t __re_error_msgid_idx[] attribute_hidden =
     REG_ESIZE_IDX,
     REG_ERPAREN_IDX
   };
-\f
+
 /* Entry points for GNU code.  */
 
 /* re_compile_pattern is the GNU regular expression compiler: it
@@ -406,7 +406,7 @@ re_compile_fastmap_iter (regex_t *bufp, const re_dfastate_t *init_state,
        }
     }
 }
-\f
+
 /* Entry point for POSIX code.  */
 /* regcomp takes a regular expression as a string and compiles it.
 
@@ -632,7 +632,7 @@ regfree (preg)
 #if defined _LIBC || defined __UCLIBC__
 strong_alias(__regfree, regfree)
 #endif
-\f
+
 /* Entry points compatible with 4.2 BSD regex library.  We don't define
    them unless specifically requested.  */
 
@@ -701,7 +701,7 @@ libc_freeres_fn (free_mem)
 #endif
 
 #endif /* _REGEX_RE_COMP */
-\f
+
 /* Internal entry point.
    Compile the regular expression PATTERN, whose length is LENGTH.
    SYNTAX indicate regular expression's syntax.  */
@@ -1019,7 +1019,7 @@ create_initial_state (re_dfa_t *dfa)
   re_node_set_free (&init_nodes);
   return REG_NOERROR;
 }
-\f
+
 #ifdef RE_ENABLE_I18N
 /* If it is possible to do searching in single byte encoding instead of UTF-8
    to speed things up, set dfa->mb_cur_max to 1, clear is_utf8 and change
@@ -1089,7 +1089,7 @@ optimize_utf8 (re_dfa_t *dfa)
   dfa->has_mb_node = dfa->nbackref > 0 || has_period;
 }
 #endif
-\f
+
 /* Analyze the structure tree, and calculate "first", "next", "edest",
    "eclosure", and "inveclosure".  */
 
@@ -1700,7 +1700,7 @@ calc_eclosure_iter (re_node_set *new_set, re_dfa_t *dfa, int node, int root)
   *new_set = eclosure;
   return REG_NOERROR;
 }
-\f
+
 /* Functions for token which are used in the parser.  */
 
 /* Fetch a token from INPUT.
@@ -2037,7 +2037,7 @@ peek_token_bracket (re_token_t *token, re_string_t *input, reg_syntax_t syntax)
     }
   return 1;
 }
-\f
+
 /* Functions for parser.  */
 
 /* Entry point of the parser.
@@ -3660,7 +3660,7 @@ fetch_number (re_string_t *input, re_token_t *token, reg_syntax_t syntax)
     }
   return num;
 }
-\f
+
 #ifdef RE_ENABLE_I18N
 static void
 free_charset (re_charset_t *cset)
@@ -3676,7 +3676,7 @@ free_charset (re_charset_t *cset)
   re_free (cset);
 }
 #endif /* RE_ENABLE_I18N */
-\f
+
 /* Functions for binary tree operation.  */
 
 /* Create a tree node.  */
index 7bf59ef..11b1be7 100644 (file)
@@ -29,7 +29,7 @@ static re_dfastate_t *create_cd_newstate (const re_dfa_t *dfa,
                                          const re_node_set *nodes,
                                          unsigned int context,
                                          unsigned int hash) internal_function;
-\f
+
 /* Functions for string operation.  */
 
 /* This function allocate the buffers.  It is necessary to call
@@ -873,7 +873,7 @@ re_string_context_at (const re_string_t *input, int idx, int eflags)
       return IS_NEWLINE (c) && input->newline_anchor ? CONTEXT_NEWLINE : 0;
     }
 }
-\f
+
 /* Functions for set operation.  */
 
 static reg_errcode_t
@@ -1314,7 +1314,7 @@ re_node_set_remove_at (re_node_set *set, int idx)
   for (; idx < set->nelem; idx++)
     set->elems[idx] = set->elems[idx + 1];
 }
-\f
+
 
 /* Add the token TOKEN to dfa->nodes, and return the index of the token.
    Or return -1, if an error will be occured.  */
index 17fdb9b..725e33a 100644 (file)
@@ -656,7 +656,7 @@ struct re_dfa_t
   (re_node_set_remove_at (set, re_node_set_contains (set, id) - 1))
 #define re_node_set_empty(p) ((p)->nelem = 0)
 #define re_node_set_free(set) re_free ((set)->elems)
-\f
+
 
 typedef enum
 {
index dc57819..f56c56b 100644 (file)
@@ -223,7 +223,7 @@ char *realloc ();
 # ifndef MB_LEN_MAX
 #  define MB_LEN_MAX 1
 # endif
-\f
+
 /* Get the interface, including the syntax bits.  */
 # ifdef __UCLIBC__
 #  include "_regex.h"
@@ -296,7 +296,7 @@ char *realloc ();
 /* As in Harbison and Steele.  */
 #  define SIGN_EXTEND_CHAR(c) ((((unsigned char) (c)) ^ 128) - 128)
 # endif
-\f
+
 # ifndef emacs
 /* How many characters in the character set.  */
 #  define CHAR_SET_SIZE 256
@@ -335,7 +335,7 @@ init_syntax_once ()
 #  define SYNTAX(c) re_syntax_table[(unsigned char) (c)]
 
 # endif /* emacs */
-\f
+
 /* Integer type for pointers.  */
 # if !defined _LIBC && !defined __intptr_t_defined
 typedef unsigned long int uintptr_t;
@@ -482,7 +482,7 @@ static int wcs_re_search_2 PARAMS ((struct re_pattern_buffer *bufp,
                                    struct re_registers *regs, int stop));
 static int wcs_re_compile_fastmap PARAMS ((struct re_pattern_buffer *bufp));
 #endif
-\f
+
 /* These are the command codes that appear in compiled regular
    expressions.  Some opcodes are followed by argument bytes.  A
    command code can specify any interpretation whatsoever for its
@@ -641,7 +641,7 @@ typedef enum
 # endif /* emacs */
 } re_opcode_t;
 #endif /* not INSIDE_RECURSION */
-\f
+
 
 #ifdef BYTE
 # define CHAR_T char
@@ -777,7 +777,7 @@ PREFIX(extract_number_and_incr) (destination, source)
 
 # endif /* DEBUG */
 
-\f
+
 
 /* If DEBUG is defined, Regex prints many voluminous messages about what
    it is doing (if the variable `debug' is nonzero).  If linked with the
@@ -1277,7 +1277,7 @@ printchar (c)
 
 # endif /* not DEBUG */
 
-\f
+
 
 # ifdef WCHAR
 /* This  convert a multibyte string to a wide character string.
@@ -1394,7 +1394,7 @@ re_set_syntax (syntax)
 # if defined _LIBC || defined __UCLIBC__
 strong_alias(__re_set_syntax, re_set_syntax)
 # endif
-\f
+
 /* This table gives an error message for each of the error codes listed
    in regex.h.  Obviously the order here has to be same as there.
    POSIX doesn't require that we do anything for REG_NOERROR,
@@ -1474,7 +1474,7 @@ static const size_t re_error_msgid_idx[] =
     REG_ESIZE_IDX,
     REG_ERPAREN_IDX
   };
-\f
+
 #endif /* INSIDE_RECURSION */
 
 #ifndef DEFINED_ONCE
@@ -1515,7 +1515,7 @@ static const size_t re_error_msgid_idx[] =
 #  undef MATCH_MAY_ALLOCATE
 # endif
 #endif /* not DEFINED_ONCE */
-\f
+
 #ifdef INSIDE_RECURSION
 /* Failure stack declarations and macros; both re_compile_fastmap and
    re_match_2 use a failure stack.  These have to be macros because of
@@ -1887,7 +1887,7 @@ typedef struct
   set_regs_matched_done = 0;                                           \
   DEBUG_STATEMENT (nfailure_points_popped++);                          \
 } /* POP_FAILURE_POINT */
-\f
+
 /* Structure for per-register (a.k.a. per-group) information.
    Other register information, such as the
    starting and ending positions (which are addresses), and the list of
@@ -2306,7 +2306,7 @@ typedef struct
     || STREQ (string, "cntrl") || STREQ (string, "blank"))
 #  endif
 # endif /* DEFINED_ONCE */
-\f
+
 # ifndef MATCH_MAY_ALLOCATE
 
 /* If we cannot allocate large objects within re_match_2_internal,
@@ -2357,7 +2357,7 @@ PREFIX(regex_grow_registers) (num_regs)
 }
 
 # endif /* not MATCH_MAY_ALLOCATE */
-\f
+
 # ifndef DEFINED_ONCE
 static boolean group_in_compile_stack _RE_ARGS ((compile_stack_type
                                                 compile_stack,
@@ -4648,7 +4648,7 @@ byte_compile_range (range_start_char, p_ptr, pend, translate, syntax, b)
   return ret;
 }
 #endif /* WCHAR */
-\f
+
 /* re_compile_fastmap computes a ``fastmap'' for the compiled pattern in
    BUFP.  A fastmap records which of the (1 << BYTEWIDTH) possible
    characters can start a string that matches the pattern.  This fastmap
@@ -5018,7 +5018,7 @@ re_compile_fastmap (bufp)
 #if defined _LIBC || defined __UCLIBC__
 strong_alias(__re_compile_fastmap, re_compile_fastmap)
 #endif
-\f
+
 
 /* Set REGS to hold NUM_REGS registers, storing them in STARTS and
    ENDS.  Subsequent matches using PATTERN_BUFFER and REGS will use
@@ -5057,7 +5057,7 @@ re_set_registers (bufp, regs, num_regs, starts, ends)
 #if defined _LIBC || defined __UCLIBC__
 strong_alias(__re_set_registers, re_set_registers)
 #endif
-\f
+
 /* Searching routines.  */
 
 /* Like re_search_2, below, but only one string is specified, and
@@ -5546,7 +5546,7 @@ PREFIX(re_search_2) (bufp, string1, size1, string2, size2, startpos, range,
    to actually save any registers when none are active.  */
 #define NO_HIGHEST_ACTIVE_REG (1 << BYTEWIDTH)
 #define NO_LOWEST_ACTIVE_REG (NO_HIGHEST_ACTIVE_REG + 1)
-\f
+
 #else /* not INSIDE_RECURSION */
 /* Matching routines.  */
 
@@ -7659,7 +7659,7 @@ byte_re_match_2_internal (bufp, string1, size1,string2, size2, pos,
 
   return -1;                           /* Failure to match.  */
 } /* re_match_2 */
-\f
+
 /* Subroutine definitions for re_match_2.  */
 
 
@@ -7931,7 +7931,7 @@ PREFIX(bcmp_translate) (s1, s2, len, translate)
     }
   return 0;
 }
-\f
+
 
 #else /* not INSIDE_RECURSION */
 
@@ -7980,7 +7980,7 @@ re_compile_pattern (pattern, length, bufp)
 #if defined _LIBC || defined __UCLIBC__
 strong_alias(__re_compile_pattern, re_compile_pattern)
 #endif
-\f
+
 /* Entry points compatible with 4.2 BSD regex library.  We don't define
    them unless specifically requested.  */
 
@@ -8056,7 +8056,7 @@ re_exec (s)
 }
 
 #endif /* _REGEX_RE_COMP */
-\f
+
 /* POSIX.2 functions.  Don't define these for Emacs.  */
 
 #ifndef emacs
@@ -8331,7 +8331,7 @@ strong_alias(__regfree, regfree)
 
 #endif /* not INSIDE_RECURSION */
 
-\f
+
 #undef STORE_NUMBER
 #undef STORE_NUMBER_AND_INCR
 #undef EXTRACT_NUMBER
index 5ab7ab7..587e6af 100644 (file)
@@ -200,7 +200,7 @@ static int check_node_accept (const re_match_context_t *mctx,
      internal_function;
 static reg_errcode_t extend_buffers (re_match_context_t *mctx)
      internal_function;
-\f
+
 /* Entry point for POSIX code.  */
 
 /* regexec searches for a given pattern, specified by PREG, in the
@@ -595,7 +595,7 @@ re_set_registers (bufp, regs, num_regs, starts, ends)
 #if defined _LIBC || defined __UCLIBC__
 strong_alias(__re_set_registers, re_set_registers)
 #endif
-\f
+
 /* Entry points compatible with 4.2 BSD regex library.  We don't define
    them unless specifically requested.  */
 
@@ -610,7 +610,7 @@ re_exec (s)
   return 0 == regexec (&re_comp_buf, s, 0, NULL, 0);
 }
 #endif /* _REGEX_RE_COMP */
-\f
+
 /* Internal entry point.  */
 
 /* Searches for a compiled pattern PREG in the string STRING, whose
@@ -2236,7 +2236,7 @@ sift_states_iter_mb (const re_match_context_t *mctx, re_sift_context_t *sctx,
 }
 #endif /* RE_ENABLE_I18N */
 
-\f
+
 /* Functions for state transition.  */
 
 /* Return the next state to which the current state STATE will transit by
@@ -4117,7 +4117,7 @@ extend_buffers (re_match_context_t *mctx)
   return REG_NOERROR;
 }
 
-\f
+
 /* Functions for matching context.  */
 
 /* Initialize MCTX.  */
index 6c3afcb..e91ea94 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file lifted in toto from 'Dlibs' on the atari ST  (RdeBath)
  *
- * 
+ *
  *    Dale Schumacher                         399 Beacon Ave.
  *    (alias: Dalnefre')                      St. Paul, MN  55104
  *    dal@syntel.UUCP                         United States of America
@@ -36,7 +36,7 @@ libc_hidden_def(lfind)
 
 /* Experimentally off - libc_hidden_proto(memcpy) */
 
-void *lsearch(const void *key, void *base, size_t *nmemb, 
+void *lsearch(const void *key, void *base, size_t *nmemb,
        size_t size, int (*compar)(const void *, const void *))
 {
        register char *p;
index 989710e..3d43aa5 100644 (file)
@@ -177,7 +177,7 @@ static void trecurse(__const void *vroot, __action_fn_t action, int level)
     }
 }
 
-/* void twalk(root, action)            Walk the nodes of a tree 
+/* void twalk(root, action)            Walk the nodes of a tree
 node   *root;                  Root of the tree to be walked
 void   (*action)();            Function to be called at each node
 PTR
index b43422d..b55cdb2 100644 (file)
@@ -60,7 +60,7 @@ static FILE *tf;
 static struct ttyent tty;
 
 
-/* Skip over the current field, removing quotes, and return 
+/* Skip over the current field, removing quotes, and return
  * a pointer to the next field.
  */
 #define        QUOTED  1
index bfe41af..48f0721 100644 (file)
@@ -234,7 +234,7 @@ int wctob(wint_t c)
 
        /* If we don't have 8-bit locale support, then this is trivial since
         * anything outside of 0-0x7f is illegal in C/POSIX and UTF-8 locales. */
-       
+
        /* TODO: need unsigned version of wint_t... */
 /*     return (((unsigned int)c) < 0x80) ? c : WEOF; */
        return ((c >= 0) && (c < 0x80)) ? c : EOF;
@@ -928,109 +928,109 @@ libc_hidden_proto(wcswidth)
 ( defined(__CTYPE_HAS_8_BIT_LOCALES) || defined(__CTYPE_HAS_UTF_8_LOCALES) )
 
 static const unsigned char new_idx[] = {
-       0,    5,    5,    6,   10,   15,   28,   39, 
-       48,   48,   71,   94,  113,  128,  139,  154, 
-       175,  186,  188,  188,  188,  188,  188,  188, 
-       203,  208,  208,  208,  208,  208,  208,  208, 
-       208,  219,  219,  219,  222,  222,  222,  222, 
-       222,  222,  222,  222,  222,  222,  222,  224, 
-       224,  231,  231,  231,  231,  231,  231,  231, 
-       231,  231,  231,  231,  231,  231,  231,  231, 
-       231,  231,  231,  231,  231,  231,  231,  231, 
-       231,  231,  231,  231,  231,  231,  231,  231, 
-       231,  231,  231,  231,  231,  231,  231,  231, 
-       231,  231,  231,  231,  231,  231,  231,  231, 
-       231,  231,  231,  231,  231,  231,  231,  231, 
-       231,  231,  231,  231,  231,  231,  231,  231, 
-       231,  231,  231,  231,  231,  231,  231,  231, 
-       231,  231,  231,  231,  231,  231,  231,  231, 
-       231,  231,  231,  231,  231,  231,  231,  231, 
-       231,  231,  231,  231,  231,  231,  231,  231, 
-       231,  231,  231,  231,  231,  231,  231,  231, 
-       231,  231,  231,  231,  231,  231,  231,  231, 
-       231,  231,  231,  231,  231,  233,  233,  233, 
-       233,  233,  233,  233,  234,  234,  234,  234, 
-       234,  234,  234,  234,  234,  234,  234,  234, 
-       234,  234,  234,  234,  234,  234,  234,  234, 
-       234,  234,  234,  234,  234,  234,  234,  234, 
-       234,  234,  234,  234,  234,  234,  234,  234, 
-       234,  234,  234,  234,  234,  234,  234,  234, 
-       236,  236,  236,  236,  236,  236,  236,  236, 
-       236,  236,  236,  236,  236,  236,  236,  236, 
-       236,  236,  236,  236,  236,  236,  236,  236, 
-       236,  236,  236,  236,  236,  236,  236,  236, 
-       236,  237,  237,  238,  241,  241,  242,  249, 
-       255, 
+       0,    5,    5,    6,   10,   15,   28,   39,
+       48,   48,   71,   94,  113,  128,  139,  154,
+       175,  186,  188,  188,  188,  188,  188,  188,
+       203,  208,  208,  208,  208,  208,  208,  208,
+       208,  219,  219,  219,  222,  222,  222,  222,
+       222,  222,  222,  222,  222,  222,  222,  224,
+       224,  231,  231,  231,  231,  231,  231,  231,
+       231,  231,  231,  231,  231,  231,  231,  231,
+       231,  231,  231,  231,  231,  231,  231,  231,
+       231,  231,  231,  231,  231,  231,  231,  231,
+       231,  231,  231,  231,  231,  231,  231,  231,
+       231,  231,  231,  231,  231,  231,  231,  231,
+       231,  231,  231,  231,  231,  231,  231,  231,
+       231,  231,  231,  231,  231,  231,  231,  231,
+       231,  231,  231,  231,  231,  231,  231,  231,
+       231,  231,  231,  231,  231,  231,  231,  231,
+       231,  231,  231,  231,  231,  231,  231,  231,
+       231,  231,  231,  231,  231,  231,  231,  231,
+       231,  231,  231,  231,  231,  231,  231,  231,
+       231,  231,  231,  231,  231,  231,  231,  231,
+       231,  231,  231,  231,  231,  233,  233,  233,
+       233,  233,  233,  233,  234,  234,  234,  234,
+       234,  234,  234,  234,  234,  234,  234,  234,
+       234,  234,  234,  234,  234,  234,  234,  234,
+       234,  234,  234,  234,  234,  234,  234,  234,
+       234,  234,  234,  234,  234,  234,  234,  234,
+       234,  234,  234,  234,  234,  234,  234,  234,
+       236,  236,  236,  236,  236,  236,  236,  236,
+       236,  236,  236,  236,  236,  236,  236,  236,
+       236,  236,  236,  236,  236,  236,  236,  236,
+       236,  236,  236,  236,  236,  236,  236,  236,
+       236,  237,  237,  238,  241,  241,  242,  249,
+       255,
 };
 
 static const unsigned char new_tbl[] = {
-       0x00, 0x01, 0x20, 0x7f, 0xa0, 0x00, 0x00, 0x50, 
-       0x60, 0x70, 0x00, 0x83, 0x87, 0x88, 0x8a, 0x00, 
-       0x91, 0xa2, 0xa3, 0xba, 0xbb, 0xbe, 0xbf, 0xc0, 
-       0xc1, 0xc3, 0xc4, 0xc5, 0x00, 0x4b, 0x56, 0x70, 
-       0x71, 0xd6, 0xe5, 0xe7, 0xe9, 0xea, 0xee, 0x00, 
-       0x0f, 0x10, 0x11, 0x12, 0x30, 0x4b, 0xa6, 0xb1, 
-       0x00, 0x01, 0x03, 0x3c, 0x3d, 0x41, 0x49, 0x4d, 
-       0x4e, 0x51, 0x55, 0x62, 0x64, 0x81, 0x82, 0xbc, 
-       0xbd, 0xc1, 0xc5, 0xcd, 0xce, 0xe2, 0xe4, 0x00, 
-       0x02, 0x03, 0x3c, 0x3d, 0x41, 0x43, 0x47, 0x49, 
-       0x4b, 0x4e, 0x70, 0x72, 0x81, 0x83, 0xbc, 0xbd, 
-       0xc1, 0xc6, 0xc7, 0xc9, 0xcd, 0xce, 0x00, 0x01, 
-       0x02, 0x3c, 0x3d, 0x3f, 0x40, 0x41, 0x44, 0x4d, 
-       0x4e, 0x56, 0x57, 0x82, 0x83, 0xc0, 0xc1, 0xcd, 
-       0xce, 0x00, 0x3e, 0x41, 0x46, 0x49, 0x4a, 0x4e, 
-       0x55, 0x57, 0xbf, 0xc0, 0xc6, 0xc7, 0xcc, 0xce, 
-       0x00, 0x41, 0x44, 0x4d, 0x4e, 0xca, 0xcb, 0xd2, 
-       0xd5, 0xd6, 0xd7, 0x00, 0x31, 0x32, 0x34, 0x3b, 
-       0x47, 0x4f, 0xb1, 0xb2, 0xb4, 0xba, 0xbb, 0xbd, 
-       0xc8, 0xce, 0x00, 0x18, 0x1a, 0x35, 0x36, 0x37, 
-       0x38, 0x39, 0x3a, 0x71, 0x7f, 0x80, 0x85, 0x86, 
-       0x88, 0x90, 0x98, 0x99, 0xbd, 0xc6, 0xc7, 0x00, 
-       0x2d, 0x31, 0x32, 0x33, 0x36, 0x38, 0x39, 0x3a, 
-       0x58, 0x5a, 0x00, 0x60, 0x00, 0x12, 0x15, 0x32, 
-       0x35, 0x52, 0x54, 0x72, 0x74, 0xb7, 0xbe, 0xc6, 
-       0xc7, 0xc9, 0xd4, 0x00, 0x0b, 0x0f, 0xa9, 0xaa, 
-       0x00, 0x0b, 0x10, 0x2a, 0x2f, 0x60, 0x64, 0x6a, 
-       0x70, 0xd0, 0xeb, 0x00, 0x29, 0x2b, 0x00, 0x80, 
-       0x00, 0x2a, 0x30, 0x3f, 0x40, 0x99, 0x9b, 0x00, 
-       0xd0, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x00, 0x1e, 
-       0x1f, 0x00, 0x00, 0x10, 0x20, 0x24, 0x30, 0x70, 
-       0xff, 0x00, 0x61, 0xe0, 0xe7, 0xf9, 0xfc, 
+       0x00, 0x01, 0x20, 0x7f, 0xa0, 0x00, 0x00, 0x50,
+       0x60, 0x70, 0x00, 0x83, 0x87, 0x88, 0x8a, 0x00,
+       0x91, 0xa2, 0xa3, 0xba, 0xbb, 0xbe, 0xbf, 0xc0,
+       0xc1, 0xc3, 0xc4, 0xc5, 0x00, 0x4b, 0x56, 0x70,
+       0x71, 0xd6, 0xe5, 0xe7, 0xe9, 0xea, 0xee, 0x00,
+       0x0f, 0x10, 0x11, 0x12, 0x30, 0x4b, 0xa6, 0xb1,
+       0x00, 0x01, 0x03, 0x3c, 0x3d, 0x41, 0x49, 0x4d,
+       0x4e, 0x51, 0x55, 0x62, 0x64, 0x81, 0x82, 0xbc,
+       0xbd, 0xc1, 0xc5, 0xcd, 0xce, 0xe2, 0xe4, 0x00,
+       0x02, 0x03, 0x3c, 0x3d, 0x41, 0x43, 0x47, 0x49,
+       0x4b, 0x4e, 0x70, 0x72, 0x81, 0x83, 0xbc, 0xbd,
+       0xc1, 0xc6, 0xc7, 0xc9, 0xcd, 0xce, 0x00, 0x01,
+       0x02, 0x3c, 0x3d, 0x3f, 0x40, 0x41, 0x44, 0x4d,
+       0x4e, 0x56, 0x57, 0x82, 0x83, 0xc0, 0xc1, 0xcd,
+       0xce, 0x00, 0x3e, 0x41, 0x46, 0x49, 0x4a, 0x4e,
+       0x55, 0x57, 0xbf, 0xc0, 0xc6, 0xc7, 0xcc, 0xce,
+       0x00, 0x41, 0x44, 0x4d, 0x4e, 0xca, 0xcb, 0xd2,
+       0xd5, 0xd6, 0xd7, 0x00, 0x31, 0x32, 0x34, 0x3b,
+       0x47, 0x4f, 0xb1, 0xb2, 0xb4, 0xba, 0xbb, 0xbd,
+       0xc8, 0xce, 0x00, 0x18, 0x1a, 0x35, 0x36, 0x37,
+       0x38, 0x39, 0x3a, 0x71, 0x7f, 0x80, 0x85, 0x86,
+       0x88, 0x90, 0x98, 0x99, 0xbd, 0xc6, 0xc7, 0x00,
+       0x2d, 0x31, 0x32, 0x33, 0x36, 0x38, 0x39, 0x3a,
+       0x58, 0x5a, 0x00, 0x60, 0x00, 0x12, 0x15, 0x32,
+       0x35, 0x52, 0x54, 0x72, 0x74, 0xb7, 0xbe, 0xc6,
+       0xc7, 0xc9, 0xd4, 0x00, 0x0b, 0x0f, 0xa9, 0xaa,
+       0x00, 0x0b, 0x10, 0x2a, 0x2f, 0x60, 0x64, 0x6a,
+       0x70, 0xd0, 0xeb, 0x00, 0x29, 0x2b, 0x00, 0x80,
+       0x00, 0x2a, 0x30, 0x3f, 0x40, 0x99, 0x9b, 0x00,
+       0xd0, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x00, 0x1e,
+       0x1f, 0x00, 0x00, 0x10, 0x20, 0x24, 0x30, 0x70,
+       0xff, 0x00, 0x61, 0xe0, 0xe7, 0xf9, 0xfc,
 };
 
 static const signed char new_wtbl[] = {
-       0,   -1,    1,   -1,    1,    1,    0,    1, 
-       0,    1,    1,    0,    1,    0,    1,    1, 
-       0,    1,    0,    1,    0,    1,    0,    1, 
-       0,    1,    0,    1,    1,    0,    1,    0, 
-       1,    0,    1,    0,    1,    0,    1,    1, 
-       0,    1,    0,    1,    0,    1,    0,    1, 
-       1,    0,    1,    0,    1,    0,    1,    0, 
-       1,    0,    1,    0,    1,    0,    1,    0, 
-       1,    0,    1,    0,    1,    0,    1,    1, 
-       0,    1,    0,    1,    0,    1,    0,    1, 
-       0,    1,    0,    1,    0,    1,    0,    1, 
-       0,    1,    0,    1,    0,    1,    1,    0, 
-       1,    0,    1,    0,    1,    0,    1,    0, 
-       1,    0,    1,    0,    1,    0,    1,    0, 
-       1,    1,    0,    1,    0,    1,    0,    1, 
-       0,    1,    0,    1,    0,    1,    0,    1, 
-       1,    0,    1,    0,    1,    0,    1,    0, 
-       1,    0,    1,    1,    0,    1,    0,    1, 
-       0,    1,    0,    1,    0,    1,    0,    1, 
-       0,    1,    1,    0,    1,    0,    1,    0, 
-       1,    0,    1,    0,    1,    0,    1,    0, 
-       1,    0,    1,    0,    1,    0,    1,    1, 
-       0,    1,    0,    1,    0,    1,    0,    1, 
-       0,    1,    2,    0,    1,    0,    1,    0, 
-       1,    0,    1,    0,    1,    0,    1,    0, 
-       1,    0,    1,    1,    0,    1,    0,    1, 
-       1,    0,    1,    0,    1,    0,    1,    0, 
-       1,    0,    1,    1,    2,    1,    1,    2, 
-       2,    0,    2,    1,    2,    0,    2,    2, 
-       1,    1,    2,    1,    1,    2,    1,    0, 
-       1,    1,    0,    1,    0,    1,    2,    1, 
-       0,    2,    1,    2,    1,    0,    1, 
+       0,   -1,    1,   -1,    1,    1,    0,    1,
+       0,    1,    1,    0,    1,    0,    1,    1,
+       0,    1,    0,    1,    0,    1,    0,    1,
+       0,    1,    0,    1,    1,    0,    1,    0,
+       1,    0,    1,    0,    1,    0,    1,    1,
+       0,    1,    0,    1,    0,    1,    0,    1,
+       1,    0,    1,    0,    1,    0,    1,    0,
+       1,    0,    1,    0,    1,    0,    1,    0,
+       1,    0,    1,    0,    1,    0,    1,    1,
+       0,    1,    0,    1,    0,    1,    0,    1,
+       0,    1,    0,    1,    0,    1,    0,    1,
+       0,    1,    0,    1,    0,    1,    1,    0,
+       1,    0,    1,    0,    1,    0,    1,    0,
+       1,    0,    1,    0,    1,    0,    1,    0,
+       1,    1,    0,    1,    0,    1,    0,    1,
+       0,    1,    0,    1,    0,    1,    0,    1,
+       1,    0,    1,    0,    1,    0,    1,    0,
+       1,    0,    1,    1,    0,    1,    0,    1,
+       0,    1,    0,    1,    0,    1,    0,    1,
+       0,    1,    1,    0,    1,    0,    1,    0,
+       1,    0,    1,    0,    1,    0,    1,    0,
+       1,    0,    1,    0,    1,    0,    1,    1,
+       0,    1,    0,    1,    0,    1,    0,    1,
+       0,    1,    2,    0,    1,    0,    1,    0,
+       1,    0,    1,    0,    1,    0,    1,    0,
+       1,    0,    1,    1,    0,    1,    0,    1,
+       1,    0,    1,    0,    1,    0,    1,    0,
+       1,    0,    1,    1,    2,    1,    1,    2,
+       2,    0,    2,    1,    2,    0,    2,    2,
+       1,    1,    2,    1,    1,    2,    1,    0,
+       1,    1,    0,    1,    0,    1,    2,    1,
+       0,    2,    1,    2,    1,    0,    1,
 };
 
 libc_hidden_proto(wcsnrtombs)
@@ -1043,7 +1043,7 @@ int wcswidth(const wchar_t *pwcs, size_t n)
 
        if (ENCODING == __ctype_encoding_7_bit) {
                size_t i;
-               
+
                for (i = 0 ; (i < n) && pwcs[i] ; i++) {
                        if (pwcs[i] != ((unsigned char)(pwcs[i]))) {
                                return -1;
@@ -1064,7 +1064,7 @@ int wcswidth(const wchar_t *pwcs, size_t n)
        /* For stricter handling of allowed unicode values... see comments above. */
        else if (ENCODING == __ctype_encoding_utf8) {
                size_t i;
-               
+
                for (i = 0 ; (i < n) && pwcs[i] ; i++) {
                        if ( (((__uwchar_t)((pwcs[i]) - 0xfffeU)) < 2)
                                 || (((__uwchar_t)((pwcs[i]) - 0xd800U)) < (0xe000U - 0xd800U))
@@ -1501,7 +1501,7 @@ size_t weak_function iconv(iconv_t cd, char **__restrict inbuf,
                                        }
                                        wc += (wc2 << 16);
                                } else if (px->tocodeset & 1) wc = bswap_16(wc);
-                       }                               
+                       }
                        (*outbuf)[0] = (char)((unsigned char)(wc));
                        (*outbuf)[1] = (char)((unsigned char)(wc >> 8));
                        if (inco == 4) {
@@ -1580,10 +1580,10 @@ extern const unsigned char __iconv_codesets[];
 char *progname;
 int hide_errors;
 
-static void error_msg(const char *fmt, ...) 
+static void error_msg(const char *fmt, ...)
         __attribute__ ((noreturn, format (printf, 1, 2)));
 
-static void error_msg(const char *fmt, ...) 
+static void error_msg(const char *fmt, ...)
 {
        va_list arg;
 
index 34c86ae..145c24c 100644 (file)
@@ -325,8 +325,8 @@ parse_tilde(char **word, size_t * word_length, size_t * max_length,
                        uid = getuid();
                        buffer = alloca(buflen);
 
-                       while ((result = getpwuid_r(uid, &pwd, buffer, buflen, &tpwd)) 
-                                       != 0 && errno == ERANGE) 
+                       while ((result = getpwuid_r(uid, &pwd, buffer, buflen, &tpwd))
+                                       != 0 && errno == ERANGE)
                        {
                                buflen += 1000;
                                buffer = alloca(buflen);
index 87fd9a6..3c7d621 100644 (file)
@@ -22,7 +22,7 @@
 #include <signal.h>
 #include <sys/types.h>
 #include <sys/syscall.h>
+
 /* Only enable rt signals when it is supported at compile time */
 #ifndef __NR_rt_sigaction
 /* In these variables we keep track of the used variables.  If the
index 50ab640..88fb6b7 100644 (file)
@@ -52,7 +52,7 @@ __libc_sigaction (int sig, const struct sigaction *act, struct sigaction *oact)
                kact.sa_restorer = act->sa_restorer;
 # endif
        }
-       
+
        /* XXX The size argument hopefully will have to be changed to the
           real size of the user-level sigset_t.  */
        result = __syscall_rt_sigaction(sig,
index 38892e0..d143e93 100644 (file)
@@ -30,7 +30,7 @@ libc_hidden_proto(sigprocmask)
 int __sigjmp_save (sigjmp_buf env, int savemask) attribute_hidden;
 int __sigjmp_save (sigjmp_buf env, int savemask)
 {
-    env[0].__mask_was_saved = (savemask && 
+    env[0].__mask_was_saved = (savemask &&
            sigprocmask (SIG_BLOCK, (sigset_t *) NULL, &env[0].__saved_mask) == 0);
 
     return 0;
index 2a63fda..b8d93a0 100644 (file)
@@ -19,7 +19,7 @@ typedef size_t (__fp_outfunc_t)(FILE *fp, intptr_t type, intptr_t len,
 
 /* Copyright (C) 2000, 2001, 2003      Manuel Novoa III
  *
- * Function: 
+ * Function:
  *
  *     ssize_t _fpmaxtostr(FILE * fp, __fpmax_t x, struct printf_info *info,
  *                         __fp_outfunc_t fp_outfunc);
@@ -185,7 +185,7 @@ static const __fpmax_t exp16_table[] = {
 #if FPMAX_MAX_EXP >= 16384
        0x1.0p16384L
 #endif
-#if FPMAX_MAX_EXP >= 32768 
+#if FPMAX_MAX_EXP >= 32768
 #error unsupported FPMAX_MAX_EXP.  please increase table
 #endif
 };
@@ -410,7 +410,7 @@ ssize_t _fpmaxtostr(FILE * fp, __fpmax_t x, struct printf_info *info,
        if (mode < 'a') {
                *exp_buf -= ('a' - 'A'); /* e->E and p->P */
                mode += ('a' - 'A');
-       } 
+       }
 
        o_mode = mode;
        if ((mode == 'g') && (preci > 0)){
@@ -450,7 +450,7 @@ ssize_t _fpmaxtostr(FILE * fp, __fpmax_t x, struct printf_info *info,
 #ifdef __UCLIBC_HAS_HEXADECIMAL_FLOATS__
        if ((mode|0x20) == 'a') {
                char *q;
-                       
+
                for (q = e ; *q ; --q) {
                        if (*q > '9') {
                                *q += (*exp_buf - ('p' - 'a') - '9' - 1);
index 7a80371..0d25a0a 100644 (file)
@@ -129,7 +129,7 @@ char attribute_hidden *_uintmaxtostr(register char * __restrict bufend, uintmax_
                        digit = low % base;
                        low /= base;
                }
-               
+
 #ifndef __LOCALE_C_ONLY
                if (unlikely(outdigit)) {
                        bufend -= __UCLIBC_CURLOCALE_DATA.outdigit_length[digit];
index 947b5b0..2b642fc 100644 (file)
@@ -35,7 +35,7 @@
 /* April 1, 2002
  * Initialize thread locks for fake files in vsnprintf and vdprintf.
  *    reported by Erik Andersen (andersen@codepoet.com)
- * Fix an arg promotion handling bug in _do_one_spec for %c. 
+ * Fix an arg promotion handling bug in _do_one_spec for %c.
  *    reported by Ilguiz Latypov <ilatypov@superbt.com>
  *
  * May 10, 2002
@@ -241,7 +241,7 @@ enum {
        FLAG_THOUSANDS  =       0x20,
        FLAG_I18N               =       0x40,   /* only works for d, i, u */
        FLAG_WIDESTREAM =   0x80
-};       
+};
 
 /**********************************************************************/
 
@@ -544,7 +544,7 @@ int attribute_hidden _ppfs_init(register ppfs_t *ppfs, const char *fmt0)
 #if 1
                /* TODO - use memset here since already "paid for"? */
                register int *p = ppfs->argtype;
-               
+
                r = MAX_ARGS;
                do {
                        *p++ = __PA_NOARG;
@@ -637,7 +637,7 @@ void attribute_hidden _ppfs_setargs(register ppfs_t *ppfs)
                                *(int *)
 #endif
                                GET_VA_ARG(p,u,unsigned int,ppfs->arg);
-               } 
+               }
                if (ppfs->info.prec == INT_MIN) {
                        ppfs->info.prec =
 #ifdef __va_arg_ptr
@@ -690,7 +690,7 @@ void attribute_hidden _ppfs_setargs(register ppfs_t *ppfs)
                                case PA_STRING:
                                case PA_WSTRING:
                                        GET_VA_ARG(p,p,void *,ppfs->arg);
-                                       break;                          
+                                       break;
                                case __PA_NOARG:
                                        continue;
                        }
@@ -701,7 +701,7 @@ void attribute_hidden _ppfs_setargs(register ppfs_t *ppfs)
                if (ppfs->info.width == INT_MIN) {
                        ppfs->info.width
                                = (int) GET_ARG_VALUE(p + ppfs->argnumber[0] - 1,u,unsigned int);
-               } 
+               }
                if (ppfs->info.prec == INT_MIN) {
                        ppfs->info.prec
                                = (int) GET_ARG_VALUE(p + ppfs->argnumber[1] - 1,u,unsigned int);
@@ -750,7 +750,7 @@ libc_hidden_proto(__ctype_b)
 
 /* TODO -- rethink this -- perhaps we should set to largest type??? */
 
-#ifdef _OVERLAPPING_DIFFERENT_ARGS 
+#ifdef _OVERLAPPING_DIFFERENT_ARGS
 
 #define PROMOTED_SIZE_OF(X)            ((sizeof(X) + sizeof(int) - 1) / sizeof(X))
 
@@ -974,7 +974,7 @@ int attribute_hidden _ppfs_parsespec(ppfs_t *ppfs)
        restart_flags:          /* Process flags. */
                i = 1;
                p = spec_flags;
-       
+
                do {
                        if (*fmt == *p++) {
                                ++fmt;
@@ -1100,7 +1100,7 @@ int attribute_hidden _ppfs_parsespec(ppfs_t *ppfs)
                /* Otherwise error. */
                return -1;
        }
-               
+
 #if defined(__UCLIBC_HAS_GLIBC_CUSTOM_PRINTF__) || defined(__UCLIBC_HAS_PRINTF_M_SPEC__)
  DONE:
 #endif
@@ -1260,7 +1260,7 @@ static size_t _outnstr(FILE *stream, const char *s, size_t wclen)
 
        mbstate.__mask = 0;
        todo = wclen;
-       
+
        while (todo) {
                r = mbsrtowcs(wbuf, &s,
                                          ((todo <= sizeof(wbuf)/sizeof(wbuf[0]))
@@ -1364,7 +1364,7 @@ static int _ppwfs_init(register ppfs_t *ppfs, const wchar_t *fmt0)
 #if 1
                /* TODO - use memset here since already "paid for"? */
                register int *p = ppfs->argtype;
-               
+
                r = MAX_ARGS;
                do {
                        *p++ = __PA_NOARG;
@@ -1900,7 +1900,7 @@ int VFPRINTF_internal (FILE * __restrict stream,
                        if (!*format) {                 /* we're done */
                                break;
                        }
-               
+
                        if (format[1] != '%') { /* if we get here, *format == '%' */
                                /* TODO: _do_one_spec needs to know what the output funcs are!!! */
                                ppfs.fmtpos = (const char *)(++format);
@@ -1960,7 +1960,7 @@ int VFPRINTF (FILE * __restrict stream,
 
        __STDIO_AUTO_THREADLOCK(stream);
 
-       if 
+       if
 #ifdef L_vfprintf
        (!__STDIO_STREAM_IS_NARROW_WRITING(stream)
         && __STDIO_STREAM_TRANS_TO_WRITE(stream, __FLAG_NARROW))
index acf6231..635ab80 100644 (file)
@@ -15,7 +15,7 @@ FILE *fdopen(int filedes, const char *mode)
        intptr_t cur_mode;
 
        return (((cur_mode = fcntl(filedes, F_GETFL))) != -1)
-               ? _stdio_fopen(cur_mode, mode, NULL, filedes) 
+               ? _stdio_fopen(cur_mode, mode, NULL, filedes)
                : NULL;
 }
 libc_hidden_def(fdopen)
index eb4fa73..ba194d7 100644 (file)
@@ -142,7 +142,7 @@ FILE *fmemopen(void *s, size_t len, const char *modes)
                        cookie->dynbuf = 1;
                        *cookie->buf = 0;       /* If we're appending, treat as empty file. */
                }
-               
+
 #ifndef __BCC__
                fp = fopencookie(cookie, modes, _fmo_io_funcs);
 #else
index d8b04f7..4f9c984 100644 (file)
@@ -56,7 +56,7 @@ size_t fread_unlocked(void * __restrict ptr, size_t size, size_t nmemb,
                                        goto DONE;
                                }
                        }
+
                        /* We need to read from the host environment, so we must
                         * flush all line buffered streams if the stream is not
                         * fully buffered. */
index f63ebad..2510402 100644 (file)
@@ -42,7 +42,7 @@ int FSEEK(register FILE *stream, OFFSET_TYPE offset, int whence)
 
                if ((!__STDIO_STREAM_IS_WRITING(stream)
                          || !__STDIO_COMMIT_WRITE_BUFFER(stream))
-                       && ((whence != SEEK_CUR) 
+                       && ((whence != SEEK_CUR)
                                 || (__stdio_adjust_position(stream, &pos) >= 0))
                        && (__SEEK(stream, &pos, whence) >= 0)
                        ) {
index 85a0967..a7ec28d 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This file based on printf.c from 'Dlibs' on the atari ST  (RdeBath)
  *
- * 
+ *
  *    Dale Schumacher                         399 Beacon Ave.
  *    (alias: Dalnefre')                      St. Paul, MN  55104
  *    dal@syntel.UUCP                         United States of America
@@ -72,7 +72,7 @@
  * Fixed precision bug -- when negative set to default.
  * Added function fnprintf to support __dtostr.
  * Added floating point support for doubles.  Yeah!
- * 
+ *
  *
  * May 2001     Fixes from Johan Adolfsson (johan.adolfsson@axis.com)
  *    1) printf("%c",0) returned 0 instead of 1.
@@ -401,7 +401,7 @@ int vfprintf(FILE * __restrict op, register const char * __restrict fmt,
                                        p++;
                                }
                        }
-                       
+
                        if (!flag[FLAG_PLUS]) {
                                flag[FLAG_PLUS] = flag[FLAG_SPACE];
                        }
@@ -584,14 +584,14 @@ int vfprintf(FILE * __restrict op, register const char * __restrict fmt,
                                                PRINT_INFO_SET_FLAG(&info,left);
                                        }
 #if 1
-                                       cnt += _fpmaxtostr(op, 
+                                       cnt += _fpmaxtostr(op,
                                                                           (__fpmax_t)
                                                                           ((dataargtype == (8 << 8))
                                                                                ? va_arg(ap, long double)
                                                                                : (long double) va_arg(ap, double)),
                                                                           &info, _fp_out_narrow);
 #else
-                                       cnt += _fpmaxtostr(op, 
+                                       cnt += _fpmaxtostr(op,
                                                                           (__fpmax_t)
                                                                           ((lval > 1)
                                                                                ? va_arg(ap, long double)
@@ -658,7 +658,7 @@ int vfprintf(FILE * __restrict op, register const char * __restrict fmt,
                                                preci = 0;
                                                if (!flag[FLAG_MINUS_LJUSTIFY]
                                                        /* && flag[FLAG_PLUS] */
-                                                       && (flag[FLAG_0_PAD] == '0')) { 
+                                                       && (flag[FLAG_0_PAD] == '0')) {
                                                        preci = width;
                                                        width = 0;
                                                }
index a932760..e7b1cf4 100644 (file)
@@ -144,7 +144,7 @@ FILE *open_memstream(char **__restrict bufloc, size_t *__restrict sizeloc)
                *cookie->buf = 0;               /* Set nul terminator for buffer. */
                *(cookie->bufloc = bufloc) = cookie->buf;
                *(cookie->sizeloc = sizeloc) = cookie->eof = cookie->pos = 0;
-               
+
 #ifndef __BCC__
                fp = fopencookie(cookie, "w", _oms_io_funcs);
 #else
index 04ab12e..f322411 100644 (file)
@@ -16,7 +16,7 @@ libc_hidden_proto(unlink)
 /* SUSv3 states:
  *   If path does not name a directory, remove(path) shall be equivalent
  *   to unlink(path).  If path names a directory, remove(path) shall be
- *   equivalent to rmdir(path). 
+ *   equivalent to rmdir(path).
  */
 
 libc_hidden_proto(remove)
index 3dd0dfd..42db6f7 100644 (file)
@@ -21,7 +21,7 @@
 #include <stdlib.h>
 #include <limits.h>
 
-extern int __drand48_iterate(unsigned short xsubi[3], 
+extern int __drand48_iterate(unsigned short xsubi[3],
        struct drand48_data *buffer) attribute_hidden;
 
 libc_hidden_proto(erand48_r)
index 230ec00..7b3df7e 100644 (file)
@@ -12,7 +12,7 @@ libc_hidden_proto(getenv)
 /* Experimentally off - libc_hidden_proto(memcmp) */
 /* Experimentally off - libc_hidden_proto(strlen) */
 
-/* IEEE Std 1003.1-2001 says getenv need not be thread safe, so 
+/* IEEE Std 1003.1-2001 says getenv need not be thread safe, so
  * don't bother locking access to __environ */
 char *getenv(const char *var)
 {
index 2c59cd6..b60ffe7 100644 (file)
@@ -58,7 +58,7 @@ grantpt (attribute_unused int fd)
 
   if (pts_name (fd, &buf, sizeof (_buf)))
     return -1;
-  
+
   if (statfs (buf, &fsbuf) < 0)
     return -1;
 
index 912f70c..fe77c3c 100644 (file)
@@ -19,7 +19,7 @@
 
 #include <stdlib.h>
 
-extern int __drand48_iterate(unsigned short xsubi[3], 
+extern int __drand48_iterate(unsigned short xsubi[3],
        struct drand48_data *buffer) attribute_hidden;
 
 libc_hidden_proto(jrand48_r)
index 75edff8..b404896 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  *
  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
index 553a6bf..3fc7a96 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  *
  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
index 61f33d8..1ad8ca2 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  *
  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
index 24b7ab9..d7ee352 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  *
  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
index de9675d..b116ab1 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  *
  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
index 389f1f7..e0f3658 100644 (file)
@@ -628,7 +628,7 @@ nextchunk-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     as a malloc_chunk. This avoids special-casing for headers.
     But to conserve space and improve locality, we allocate
     only the fd/bk pointers of bins, and then use repositioning tricks
-    to treat these as the fields of a malloc_chunk*.  
+    to treat these as the fields of a malloc_chunk*.
 */
 
 typedef struct malloc_chunk* mbinptr;
index f8d5965..9f5fd6c 100644 (file)
@@ -27,7 +27,7 @@ __heap_alloc (struct heap *heap, size_t *size)
   void *mem = 0;
 
   _size = HEAP_ADJUST_SIZE (_size);
-  
+
   if (_size < sizeof (struct heap_free_area))
     /* Because we sometimes must use a freed block to hold a free-area node,
        we must make sure that every allocated block can hold one.  */
index 296c6e5..a65140f 100644 (file)
@@ -32,7 +32,7 @@ __heap_alloc_at (struct heap *heap, void *mem, size_t size)
   for (fa = heap->free_areas; fa; fa = fa->next)
     {
       void *fa_mem = HEAP_FREE_AREA_START (fa);
-      if (fa_mem <= mem) 
+      if (fa_mem <= mem)
        {
          if (fa_mem == mem && fa->size >= size)
            /* FA has the right addr, and is big enough! */
index 8bc740d..1c4634c 100644 (file)
@@ -72,7 +72,7 @@ __heap_free (struct heap *heap, void *mem, size_t size)
              /* The new descriptor is at the end of the extended block,
                 SIZE bytes later than the old descriptor.  */
              fa = (struct heap_free_area *)((char *)fa + size);
-             /* Update links with the neighbors in the list.  */ 
+             /* Update links with the neighbors in the list.  */
              __heap_link_free_area (heap, fa, prev_fa, next_fa);
            }
        }
index f45cb11..63b0ac8 100644 (file)
@@ -19,7 +19,7 @@
 
 #include <stdlib.h>
 
-extern int __drand48_iterate(unsigned short xsubi[3], 
+extern int __drand48_iterate(unsigned short xsubi[3],
        struct drand48_data *buffer) attribute_hidden;
 
 libc_hidden_proto(nrand48_r)
index 1fd5162..bd9c3ca 100644 (file)
@@ -55,7 +55,7 @@ libc_hidden_proto(stat)
    terminal devices.  As of Linux 2.1.115 these are no longer
    supported.  They have been replaced by major numbers 2 (masters)
    and 3 (slaves).  */
-     
+
 /* The are declared in getpt.c.  */
 extern const char __libc_ptyname1[] attribute_hidden;
 extern const char __libc_ptyname2[] attribute_hidden;
index e956535..ca80a78 100644 (file)
@@ -121,7 +121,7 @@ static const struct random_poly_info random_poly_info =
 
 
 
-\f
+
 /* If we are using the trivial TYPE_0 R.N.G., just do the old linear
    congruential bit.  Otherwise, we do our fancy trinomial stuff, which is the
    same in all the other cases due to all the global variables that have been
index 5b0d41b..15292ce 100644 (file)
@@ -35,7 +35,7 @@
 #define _ISOC99_SOURCE                 /* for ULLONG primarily... */
 #include <limits.h>
 #include <stdint.h>
-/* Work around gcc's refusal to create aliases. 
+/* Work around gcc's refusal to create aliases.
  * TODO: Add in a define to disable the aliases? */
 
 #if UINT_MAX == ULONG_MAX
@@ -267,7 +267,7 @@ strong_alias(llabs,imaxabs)
 /**********************************************************************/
 #ifdef L_atoi
 
-#if INT_MAX < LONG_MAX 
+#if INT_MAX < LONG_MAX
 
 libc_hidden_proto(strtol)
 
index 5f85a08..4d75a40 100644 (file)
@@ -20,7 +20,7 @@ libc_hidden_proto(vfork)
 /* uClinux-2.0 has vfork, but Linux 2.0 doesn't */
 #include <sys/syscall.h>
 #ifndef __NR_vfork
-# define vfork fork    
+# define vfork fork
 libc_hidden_proto(fork)
 #endif
 
index 0011152..ff41192 100644 (file)
@@ -149,7 +149,7 @@ static const unsigned char estridx[] = {
        EISNAM,
        EREMOTEIO,
 #if EDQUOT > 200                       /* mips has an outrageous value for this... */
-       0,                                                      
+       0,
 #else
        EDQUOT,
 #endif
index 0eae998..449c756 100644 (file)
@@ -23,7 +23,7 @@
 
 /* We override the word-copying macros, partly because misalignment in one
    pointer isn't cause for a special function, partly because we want to
-   get rid of all the static functions in generic/memcopy.c; these macros 
+   get rid of all the static functions in generic/memcopy.c; these macros
    are only used in memmove.c since we have arch-specific mempcpy, memcpy and
    memset.  */
 
index 0cce37a..cc14188 100644 (file)
@@ -88,8 +88,8 @@ void *memcpy(void *pdst,
   register char *dst __asm__ ("r13") = pdst;
   register char *src __asm__ ("r11") = (char *) psrc;
   register int n __asm__ ("r12") = pn;
-  
+
+
   /* When src is aligned but not dst, this makes a few extra needless
      cycles.  I believe it would take as many to check that the
      re-alignment was unnecessary.  */
@@ -162,12 +162,12 @@ void *memcpy(void *pdst,
        ;; Restore registers from stack                                 \n\
         movem [sp+],r10"
 
-     /* Outputs */ : "=r" (dst), "=r" (src), "=r" (n) 
+     /* Outputs */ : "=r" (dst), "=r" (src), "=r" (n)
      /* Inputs */ : "0" (dst), "1" (src), "2" (n));
   }
 
   /* Either we directly starts copying, using dword copying
-     in a loop, or we copy as much as possible with 'movem' 
+     in a loop, or we copy as much as possible with 'movem'
      and then the last block (<44 bytes) is copied here.
      This will work since 'movem' will have updated src,dst,n. */
 
index b6620af..fa495eb 100644 (file)
@@ -1,4 +1,4 @@
-/* Taken from generic/memmove.c; trivially modified to work with 
+/* Taken from generic/memmove.c; trivially modified to work with
    arch-specific memcopy.h for Cris.
 
    Copy memory to memory until the specified number of bytes
index 9cc959a..b578aac 100644 (file)
@@ -87,7 +87,7 @@ void *memset(void *pdst,
 
   {
     register char *dst __asm__ ("r13") = pdst;
+
   if (((unsigned long) pdst & 3) != 0
      /* Oops! n=0 must be a legal call, regardless of alignment. */
       && n >= 3)
@@ -165,15 +165,15 @@ void *memset(void *pdst,
         addq   12*4,r12  ;; compensate for last loop underflowing n            \n\
                                                                                \n\
        ;; Restore registers from stack                                         \n\
-        movem [sp+],r10" 
+        movem [sp+],r10"
 
      /* Outputs */ : "=r" (dst), "=r" (n)
      /* Inputs */ : "0" (dst), "1" (n), "r" (lc));
-    
+
   }
 
     /* Either we directly starts copying, using dword copying
-       in a loop, or we copy as much as possible with 'movem' 
+       in a loop, or we copy as much as possible with 'movem'
        and then the last block (<44 bytes) is copied here.
        This will work since 'movem' will have updated src,dst,n. */
 
index f7d94eb..241b745 100644 (file)
@@ -48,7 +48,7 @@ int ffs(int i)
        for (n = 0 ; i ; ++n) {
                i >>= 1;
        }
-       
+
        return n;
 #endif
 }
index 5849db3..3872679 100644 (file)
@@ -33,7 +33,7 @@
 #include <string.h>
 
 /* Experimentally off - libc_hidden_proto(strncat) */
-char *strncat(char * dest, 
+char *strncat(char * dest,
        const char * src, size_t count)
 {
     int d0, d1, d2, d3;
index cf0eb53..d71af73 100644 (file)
@@ -18,7 +18,7 @@
 
 /* The latency of a memory load assumed by the assembly implementation
    of the mem and str functions.  Since we don't have any clue about
-   where the data might be, let's assume it's in the L2 cache.  
+   where the data might be, let's assume it's in the L2 cache.
    Assuming L3 would be too pessimistic :-)
 
    Some functions define MEMLAT as 2, because they expect their data
index b2f9001..48ec50a 100644 (file)
@@ -20,7 +20,7 @@ void *memrchr(const void *s, int c, size_t n)
 #else
 #define np n
 #endif
-       
+
        r = ((unsigned char *)s) + ((size_t) np);
 
        while (np) {
index bcbb806..dd39e6f 100644 (file)
@@ -62,7 +62,7 @@ void *memcpy(void *to, const void *from, size_t n)
        do {
                *++tmp_to = *++tmp_from;
        } while (--n);
-       
+
        return to;
  align:
        rem = 4 - rem;
index 7a4a7e5..d307e74 100644 (file)
@@ -62,7 +62,7 @@ void *memmove(void *to, const void *from, size_t n)
        do {
                *--tmp_to = *--tmp_from;
        } while (--n);
-       
+
        return to;
  align:
        rem = 4 - rem;
index 93e025f..59bec87 100644 (file)
@@ -24,7 +24,7 @@
 /* Experimentally off - libc_hidden_proto(memset) */
 
 static __inline__ int expand_byte_word(int c){
-       /* this does: 
+       /* this does:
           c = c << 8 | c;
           c = c << 16 | c ;
        */
@@ -66,7 +66,7 @@ void *memset(void *to, int c, size_t n)
        do {
                *++tmp_to = c;
        } while (--n);
-       
+
        return to;
  align:
        rem = 4 - rem;
index 4a95ab8..5477adf 100644 (file)
@@ -33,7 +33,7 @@ int Wstrcmp(register const Wchar *s1, register const Wchar *s2)
 
        while (((r = ((int)(*((Wuchar *)s1))) - *((Wuchar *)s2++))
                        == 0) && *s1++);
-       
+
        return r;
 #endif
 }
index ea5e494..d935612 100644 (file)
@@ -31,7 +31,7 @@ Wchar *Wstrncpy(Wchar * __restrict s1, register const Wchar * __restrict s2,
                --n;
        }
 #endif
-       
+
        return s1;
 }
 #ifndef WANT_WIDE
index bbfd201..5ef091d 100644 (file)
@@ -348,7 +348,7 @@ typedef uintmax_t uatomic_max_t;
        : "memory");                                                    \
   __ret; })
 
-/* ??? Barrier semantics for atomic_exchange_and_add appear to be 
+/* ??? Barrier semantics for atomic_exchange_and_add appear to be
    undefined.  Use full barrier for now, as that's safe.  */
 #define atomic_exchange_and_add(mem, value) \
   __atomic_val_bysize (__arch_exchange_and_add, int, mem, value, __MB, __MB)
index 9fcbc03..649257b 100644 (file)
@@ -5,8 +5,8 @@
 #error bits/kernel_stat.h is for internal uClibc use only!
 #endif
 
-/* This file provides whatever this particular arch's kernel thinks 
- * struct kernel_stat should look like...  It turns out each arch has a 
+/* This file provides whatever this particular arch's kernel thinks
+ * struct kernel_stat should look like...  It turns out each arch has a
  * different opinion on the subject... */
 struct kernel_stat {
        unsigned int    st_dev;
index 01d2a8b..d5574c9 100644 (file)
@@ -1,6 +1,6 @@
 /* Note that we use the exact same include guard #define names
- * as asm/posix_types.h.  This will avoid gratuitous conflicts 
- * with the posix_types.h kernel header, and will ensure that 
+ * as asm/posix_types.h.  This will avoid gratuitous conflicts
+ * with the posix_types.h kernel header, and will ensure that
  * our private content, and not the kernel header, will win.
  *  -Erik
  */
index 02b73c5..b5e0c16 100644 (file)
@@ -126,7 +126,7 @@ type name (type1 arg1, type2 arg2, type3 arg3, type4 arg4)           \
                _sc_ret = _sc_0, _sc_err = _sc_19;                      \
        }                                                               \
        _syscall_return(type);                                          \
-} 
+}
 
 #define _syscall5(type,name,type1,arg1,type2,arg2,type3,arg3,type4,arg4, \
          type5,arg5)                                                    \
index 27946cd..6e9967d 100644 (file)
@@ -13,7 +13,7 @@
    CPU endianness.  VFP floating point units use the same endianness
    as the rest of the system.  */
 #if defined __VFP_FP__ || defined __MAVERICK__
-# define __FLOAT_WORD_ORDER __BYTE_ORDER 
+# define __FLOAT_WORD_ORDER __BYTE_ORDER
 #else
 # define __FLOAT_WORD_ORDER __BIG_ENDIAN
 #endif
index b686c47..ebac6f5 100644 (file)
@@ -5,8 +5,8 @@
 #error bits/kernel_stat.h is for internal uClibc use only!
 #endif
 
-/* This file provides whatever this particular arch's kernel thinks 
- * struct kernel_stat should look like...  It turns out each arch has a 
+/* This file provides whatever this particular arch's kernel thinks
+ * struct kernel_stat should look like...  It turns out each arch has a
  * different opinion on the subject... */
 
 #define STAT_HAVE_NSEC 1
index d7a1b15..766a306 100644 (file)
@@ -1,6 +1,6 @@
 /* Note that we use the exact same include guard #define names
- * as asm/posix_types.h.  This will avoid gratuitous conflicts 
- * with the posix_types.h kernel header, and will ensure that 
+ * as asm/posix_types.h.  This will avoid gratuitous conflicts
+ * with the posix_types.h kernel header, and will ensure that
  * our private content, and not the kernel header, will win.
  *  -Erik
  */
index 45180b6..2d2e0f0 100644 (file)
@@ -5,7 +5,7 @@
 #endif
 
 /*
-   Some of the sneaky macros in the code were taken from 
+   Some of the sneaky macros in the code were taken from
    glibc-2.3.2/sysdeps/unix/sysv/linux/arm/sysdep.h
 */
 
@@ -65,7 +65,7 @@ return (type) (INLINE_SYSCALL(name, 3, arg1, arg2, arg3)); \
 type name (type1 arg1, type2 arg2, type3 arg3, type4 arg4) \
 { \
 return (type) (INLINE_SYSCALL(name, 4, arg1, arg2, arg3, arg4)); \
-} 
+}
 
 #undef _syscall5
 #define _syscall5(type,name,type1,arg1,type2,arg2,type3,arg3,type4,arg4, \
index 0229f87..708e8ec 100644 (file)
@@ -117,7 +117,7 @@ init_iosys (void)
 {
     char systype[256];
     int i, n;
-    
+
 #if LINUX_VERSION_CODE < 132119
     static int iobase_name[] = { CTL_BUS, BUS_ISA, BUS_ISA_PORT_BASE };
     static int ioshift_name[] = { CTL_BUS, BUS_ISA, BUS_ISA_PORT_SHIFT };
index 552ba6c..654a415 100644 (file)
@@ -25,7 +25,7 @@ libc_hidden_proto(ioperm)
 
 #define MAX_PORT       0x10000
 
-int iopl(int level) 
+int iopl(int level)
 {
        if (level > 3) {
                __set_errno(EINVAL);
index 0dbb54b..9056480 100644 (file)
@@ -103,7 +103,7 @@ __reloc_pointer (void *p,
          || (offset == map->segs[c].p_memsz && c + 1 == map->nsegs))
        return (char*)map->segs[c].addr + offset;
     }
-            
+
   /* We might want to crash instead.  */
   return (void*)-1;
 }
index 2a59d8e..8c7ba05 100644 (file)
@@ -5,8 +5,8 @@
 #error bits/kernel_stat.h is for internal uClibc use only!
 #endif
 
-/* This file provides whatever this particular arch's kernel thinks 
- * struct kernel_stat should look like...  It turns out each arch has a 
+/* This file provides whatever this particular arch's kernel thinks
+ * struct kernel_stat should look like...  It turns out each arch has a
  * different opinion on the subject... */
 
 struct kernel_stat {
index 4c09f90..5e03825 100644 (file)
@@ -93,7 +93,7 @@ __self_reloc (const struct elf32_fdpic_loadmap *map,
 
   if (p >= e)
     return (void*)-1;
-  
+
   return __reloc_pointer (*p, map);
 }
 
index 2fdfc89..99148e6 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef _BITS_SIGACTION_STRUCT_H
 #define _BITS_SIGACTION_STRUCT_H
 
-/* This file provides whatever this particular arch's kernel thinks 
+/* This file provides whatever this particular arch's kernel thinks
  * the sigaction struct should look like... */
 
 #undef NO_OLD_SIGACTION
index 4567827..1c23ebf 100644 (file)
@@ -6,7 +6,7 @@
  * arches have broken headers that introduce tons of gratuitous
  * conflicts with uClibc's namespace.   See bits/kernel_types.h
  * for i386, arm, etc for examples... */
-#warning You really should include a proper bits/kernel_types.h for your architecture 
+#warning You really should include a proper bits/kernel_types.h for your architecture
 
 #ifndef __GLIBC__
 #define __GLIBC__ 2
index ea6d693..c35ee60 100644 (file)
@@ -23,7 +23,7 @@
 #ifdef _STDIO_H
 # define L_tmpnam 20
 # define TMP_MAX 238328
-# define FILENAME_MAX 4095 
+# define FILENAME_MAX 4095
 
 # ifdef __USE_POSIX
 #  define L_ctermid 9
@@ -37,5 +37,5 @@
 #endif
 
 #if defined __need_IOV_MAX && !defined IOV_MAX
-# define IOV_MAX 1024 
+# define IOV_MAX 1024
 #endif
index 4895c4f..ceba568 100644 (file)
@@ -2,7 +2,7 @@
  * this file must be able to cope with PIC and non-PIC code.  For some arches
  * there is no difference.  For x86 (which has far too few registers) there is
  * a difference.   Regardless, including asm/unistd.h is hereby officially
- * forbidden.  Don't do it.  It is bad for you. 
- */ 
+ * forbidden.  Don't do it.  It is bad for you.
+ */
 
 #error You have not provided architecture specific _syscall[0-6] macros
index dd723c7..0b02c5d 100644 (file)
@@ -78,7 +78,7 @@ enum {
 #define __CTYPE_ispunct(D)             (D == __CTYPE_punct)
 #define __CTYPE_isspace(D)             (((unsigned int)(D - __CTYPE_print_space_nonblank)) <= 5)
 #define __CTYPE_isupper(D)             (((unsigned int)(D - __CTYPE_alpha_upper_lower)) <= 1)
-/*  #define __CTYPE_isxdigit(D) -- isxdigit is untestable this way. 
+/*  #define __CTYPE_isxdigit(D) -- isxdigit is untestable this way.
  *  But that's ok as isxdigit() (and isdigit() too) are locale-invariant. */
 
 #else  /* __UCLIBC_GEN_LOCALE *****************************************/
index 1de735a..a6b381c 100644 (file)
@@ -39,7 +39,7 @@
 
 #else  /* __UCLIBC_HAS_LOCALE__ */
 
-#define __LOCALE_C_ONLY 
+#define __LOCALE_C_ONLY
 
 #define __XL_NPP(N) N
 #define __LOCALE_PARAM
index cd79130..5155322 100644 (file)
@@ -54,7 +54,7 @@ static __always_inline uintptr_t _dl_setup_stack_chk_guard(void)
        /* Start with the "terminator canary". */
        ret = 0xFF0A0D00UL;
 
-       /* Everything failed? Or we are using a weakened model of the 
+       /* Everything failed? Or we are using a weakened model of the
         * terminator canary */
        {
                struct timeval tv;
index 06d93e2..04cdc0a 100644 (file)
@@ -5,7 +5,7 @@
  *
  * ftruncate64 syscall.  Copes with 64 bit and 32 bit machines
  * and on 32 bit machines this sends things into the kernel as
- * two 32-bit arguments (high and low 32 bits of length) that 
+ * two 32-bit arguments (high and low 32 bits of length) that
  * are ordered based on endianess.  It turns out endian.h has
  * just the macro we need to order things, __LONG_LONG_PAIR.
  */
index 45953f8..d858eab 100644 (file)
@@ -57,8 +57,8 @@ ssize_t __getdents (int fd, char *buf, size_t nbytes)
     const size_t size_diff = (offsetof (struct dirent, d_name)
            - offsetof (struct kernel_dirent, d_name));
 
-    red_nbytes = MIN (nbytes - ((nbytes / 
-                   (offsetof (struct dirent, d_name) + 14)) * size_diff), 
+    red_nbytes = MIN (nbytes - ((nbytes /
+                   (offsetof (struct dirent, d_name) + 14)) * size_diff),
            nbytes - size_diff);
 
     dp = (struct dirent *) buf;
index f7fbe18..e695b96 100644 (file)
@@ -27,7 +27,7 @@ libc_hidden_proto(lseek64)
 #  define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
 # endif
 
-struct kernel_dirent64 
+struct kernel_dirent64
 {
     uint64_t           d_ino;
     int64_t            d_off;
@@ -51,8 +51,8 @@ ssize_t __getdents64 (int fd, char *buf, size_t nbytes)
     const size_t size_diff = (offsetof (struct dirent64, d_name)
            - offsetof (struct kernel_dirent64, d_name));
 
-    red_nbytes = MIN (nbytes - ((nbytes / 
-                   (offsetof (struct dirent64, d_name) + 14)) * size_diff), 
+    red_nbytes = MIN (nbytes - ((nbytes /
+                   (offsetof (struct dirent64, d_name) + 14)) * size_diff),
            nbytes - size_diff);
 
     dp = (struct dirent64 *) buf;
index 2e7fb97..35365d8 100644 (file)
@@ -25,7 +25,7 @@ static __inline__ _syscall5(int, __syscall_llseek, int, fd, off_t, offset_hi,
 loff_t __libc_lseek64(int fd, loff_t offset, int whence)
 {
        loff_t result;
-       return(loff_t)(INLINE_SYSCALL (_llseek, 5, fd, (off_t) (offset >> 32), 
+       return(loff_t)(INLINE_SYSCALL (_llseek, 5, fd, (off_t) (offset >> 32),
                                (off_t) (offset & 0xffffffff), &result, whence) ?: result);
 }
 #else
index ccaa8d2..29cff5e 100644 (file)
@@ -5,7 +5,7 @@
  */
 /* sendfile64 syscall.  Copes with 64 bit and 32 bit machines
  * and on 32 bit machines this sends things into the kernel as
- * two 32-bit arguments (high and low 32 bits of length) that 
+ * two 32-bit arguments (high and low 32 bits of length) that
  * are ordered based on endianess.  It turns out endian.h has
  * just the macro we need to order things, __LONG_LONG_PAIR.
  */
index 2c8287c..d2f8122 100644 (file)
@@ -14,7 +14,7 @@
 
 #ifndef INLINE_SYSCALL
 #define INLINE_SYSCALL(name, nr, args...) __syscall_sync (args)
-#define __NR___syscall_sync __NR_sync 
+#define __NR___syscall_sync __NR_sync
 static __inline__ _syscall0(void, __syscall_sync);
 #endif
 
index caca708..d4a1798 100644 (file)
@@ -5,7 +5,7 @@
  */
 /* truncate64 syscall.  Copes with 64 bit and 32 bit machines
  * and on 32 bit machines this sends things into the kernel as
- * two 32-bit arguments (high and low 32 bits of length) that 
+ * two 32-bit arguments (high and low 32 bits of length) that
  * are ordered based on endianess.  It turns out endian.h has
  * just the macro we need to order things, __LONG_LONG_PAIR.
  */
index 0ba17cd..5b4c2f5 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
  * Copyright (C) 2004 <solar@gentoo.org>
  * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  *
index d44e79c..93e7cf2 100644 (file)
@@ -44,7 +44,7 @@ return (type) (INLINE_SYSCALL(name, 3, arg1, arg2, arg3)); \
 type name (type1 arg1, type2 arg2, type3 arg3, type4 arg4) \
 { \
 return (type) (INLINE_SYSCALL(name, 4, arg1, arg2, arg3, arg4)); \
-} 
+}
 
 #undef _syscall5
 #define _syscall5(type,name,type1,arg1,type2,arg2,type3,arg3,type4,arg4, \
index dde6ace..beeea3d 100644 (file)
@@ -36,7 +36,7 @@ enum
 #define FE_OVERFLOW    FE_OVERFLOW
     FE_DIVBYZERO = (1 << 11),
 #define FE_DIVBYZERO   FE_DIVBYZERO
-    FE_INVALID = (1 << 12) 
+    FE_INVALID = (1 << 12)
 #define FE_INVALID     FE_INVALID
   };
 
index 2723a35..a16fc0f 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
    Inline floating-point environment handling functions for Hyperstone e1-32X.
    Copyright (C) 2002-2003,    George Thanos <george.thanos@gdt.gr>
                                Yannis Mitsos <yannis.mitsos@gdt.gr>
@@ -22,9 +22,9 @@
 
 #if defined __GNUC__ && !defined _SOFT_FLOAT && !defined __NO_MATH_INLINES
 
-/********************************************************** 
+/**********************************************************
  *  --- A small description of the E1-16/32X FP unit. ---
- * FP exceptions can be enabled and disabled through 
+ * FP exceptions can be enabled and disabled through
  * <feenableexcept>, <fedisableexcept>.
  *
  * - When an enabled exception takes place a SIGFPE signal
@@ -37,7 +37,7 @@
  * a trap. The user can check if any exception took place after
  * an FP instruction by issuing an <fetestexcept> command.
  * User should first clear the G2 register by issuing an
- * <feclearexcept> function. 
+ * <feclearexcept> function.
  * The following program is a typical example of how the user
  * should check for exceptions that did not generate a SIGFPE
  * signal :
@@ -49,7 +49,7 @@
  *   raised = fetestexcept (FE_OVERFLOW | FE_INVALID);
  *   if (raised & FE_OVERFLOW) {  ...  }
  *   if (raised & FE_INVALID) {  ...  }
- *    ... 
+ *    ...
  * }
  ***********************************************************/
 
@@ -102,7 +102,7 @@ static __inline__ feclearexcept(int __excepts)
 
        __asm__ __volatile__("mov %0, SR"
                     :"=l"(enabled_excepts)
-                    :/*no input*/ ); 
+                    :/*no input*/ );
 
        enabled_excepts  &= 0x1F00;
        disabled_excepts = ~enabled_excepts;
@@ -123,9 +123,9 @@ static __inline__ feclearexcept(int __excepts)
 /* fetestexcepts tests both for actual and accrued
  * excepts. You can test for an exception either after
  * an FP instruction or within a SIGFPE handler
- */ 
+ */
 inline int fetestexcept(int __excepts)
-{      
+{
        unsigned int G2, G2en, G2dis;
        unsigned int enabled_excepts, disabled_excepts;
 
@@ -135,7 +135,7 @@ inline int fetestexcept(int __excepts)
 
        __asm__ __volatile__("mov %0, SR"
                     :"=l"(enabled_excepts)
-                    :/*no input*/ ); 
+                    :/*no input*/ );
 
        enabled_excepts &= 0x1F00;
        disabled_excepts = ~enabled_excepts;
@@ -273,7 +273,7 @@ static __inline__ int fegetenv(fenv_t *envp)
                     :"l"( envp->actual_except ) ); \
        (0); /* return 0 */                         \
 })
-                    
+
 #define feupdateenv(envp)                           \
 ({                                                  \
        /* Clear FRM & FTE field of SR */           \
@@ -292,7 +292,7 @@ static __inline__ int fegetenv(fenv_t *envp)
                     :"l"( envp->actual_except ) ); \
        (0); /* return 0 */                         \
 })
-                    
+
 
 #endif /* __GNUC__ && !_SOFT_FLOAT */
 
index 908a153..9be9d11 100644 (file)
@@ -5,8 +5,8 @@
 #error bits/kernel_stat.h is for internal uClibc use only!
 #endif
 
-/* This file provides whatever this particular arch's kernel thinks 
- * struct kernel_stat should look like...  It turns out each arch has a 
+/* This file provides whatever this particular arch's kernel thinks
+ * struct kernel_stat should look like...  It turns out each arch has a
  * different opinion on the subject... */
 
 struct kernel_stat {
index 513009d..8017d85 100644 (file)
@@ -1,6 +1,6 @@
 /* Note that we use the exact same include guard #define names
- * as asm/posix_types.h.  This will avoid gratuitous conflicts 
- * with the posix_types.h kernel header, and will ensure that 
+ * as asm/posix_types.h.  This will avoid gratuitous conflicts
+ * with the posix_types.h kernel header, and will ensure that
  * our private content, and not the kernel header, will win.
  *  -Erik
  */
index e60c28c..9f04e7b 100644 (file)
@@ -23,7 +23,7 @@ void longjmp(jmp_buf state, int value )
        else
                state->__jmpbuf->ReturnValue = value;
 
-       jmpbuf_ptr = (unsigned long)state; 
+       jmpbuf_ptr = (unsigned long)state;
        e1newSP(state->__jmpbuf->SavedSP);
 
 #define _state_ ((struct __jmp_buf_tag*)jmpbuf_ptr)
@@ -55,9 +55,9 @@ void siglongjmp(sigjmp_buf state, int value )
        else
                state->__jmpbuf->ReturnValue = value;
 
-       jmpbuf_ptr = (unsigned long)state; 
+       jmpbuf_ptr = (unsigned long)state;
        e1newSP(state->__jmpbuf->SavedSP);
-       
+
 
 #define _state_ ((struct __jmp_buf_tag*)jmpbuf_ptr)
        __asm__ __volatile__("mov L0, %0\n\t"
index 3a3f3b7..bda18b1 100644 (file)
@@ -11,11 +11,11 @@ libc_hidden_proto(sigprocmask)
 
 int setjmp( jmp_buf state)
 {
-       __asm__ __volatile__(   "mov %0, G3\n\t"           
-                       "mov %1, G4\n\t" 
-                       :"=l"(state->__jmpbuf->G3), 
-                        "=l"(state->__jmpbuf->G4) 
-                       :/*no input*/ 
+       __asm__ __volatile__(   "mov %0, G3\n\t"
+                       "mov %1, G4\n\t"
+                       :"=l"(state->__jmpbuf->G3),
+                        "=l"(state->__jmpbuf->G4)
+                       :/*no input*/
                        :"%G3", "%G4" );
 
        __asm__ __volatile__(   "setadr  %0\n\t"
@@ -38,11 +38,11 @@ int sigsetjmp( sigjmp_buf state , int savesigs)
        } else
                state->__mask_was_saved = 0;
 
-       __asm__ __volatile__(   "mov %0, G3\n\t"           
-                       "mov %1, G4\n\t" 
-                       :"=l"(state->__jmpbuf->G3), 
-                        "=l"(state->__jmpbuf->G4) 
-                       :/*no input*/ 
+       __asm__ __volatile__(   "mov %0, G3\n\t"
+                       "mov %1, G4\n\t"
+                       :"=l"(state->__jmpbuf->G3),
+                        "=l"(state->__jmpbuf->G4)
+                       :/*no input*/
                        :"%G3", "%G4" );
 
        __asm__ __volatile__(   "setadr  %0\n\t"
index 0dbb54b..9056480 100644 (file)
@@ -103,7 +103,7 @@ __reloc_pointer (void *p,
          || (offset == map->segs[c].p_memsz && c + 1 == map->nsegs))
        return (char*)map->segs[c].addr + offset;
     }
-            
+
   /* We might want to crash instead.  */
   return (void*)-1;
 }
index 51cb57e..8b80a26 100644 (file)
@@ -5,8 +5,8 @@
 #error bits/kernel_stat.h is for internal uClibc use only!
 #endif
 
-/* This file provides whatever this particular arch's kernel thinks 
- * struct kernel_stat should look like...  It turns out each arch has a 
+/* This file provides whatever this particular arch's kernel thinks
+ * struct kernel_stat should look like...  It turns out each arch has a
  * different opinion on the subject... */
 
 struct kernel_stat {
index 3d3f630..8403fd3 100644 (file)
@@ -1,6 +1,6 @@
 /* Note that we use the exact same include guard #define names
- * as asm/posix_types.h.  This will avoid gratuitous conflicts 
- * with the posix_types.h kernel header, and will ensure that 
+ * as asm/posix_types.h.  This will avoid gratuitous conflicts
+ * with the posix_types.h kernel header, and will ensure that
  * our private content, and not the kernel header, will win.
  *  -Erik
  */
index 1a86728..e025b61 100644 (file)
@@ -70,7 +70,7 @@ __self_reloc (const struct elf32_fdpic_loadmap *map,
 
   if (p >= e)
     return (void*)-1;
-  
+
   return __reloc_pointer (*p, map);
 }
 
index f589b1f..9468292 100644 (file)
@@ -5,8 +5,8 @@
 #error bits/kernel_stat.h is for internal uClibc use only!
 #endif
 
-/* This file provides whatever this particular arch's kernel thinks 
- * struct kernel_stat should look like...  It turns out each arch has a 
+/* This file provides whatever this particular arch's kernel thinks
+ * struct kernel_stat should look like...  It turns out each arch has a
  * different opinion on the subject... */
 
 struct kernel_stat {
index 8ef399f..5867ed6 100644 (file)
@@ -2,8 +2,8 @@
  * this file must be able to cope with PIC and non-PIC code.  For some arches
  * there is no difference.  For x86 (which has far too few registers) there is
  * a difference.   Regardless, including asm/unistd.h is hereby officially
- * forbidden.  Don't do it.  It is bad for you. 
- */ 
+ * forbidden.  Don't do it.  It is bad for you.
+ */
 #ifndef _SYSCALL_H
 # error "Never use <bits/syscalls.h> directly; include <sys/syscall.h> instead."
 #endif
index 51b5b07..e4d784e 100644 (file)
@@ -1,4 +1,4 @@
-/* Ripped from linux/include/asm-parisc/stat.h 
+/* Ripped from linux/include/asm-parisc/stat.h
  * and renamed 'struct stat' to 'struct kernel_stat' */
 
 #ifndef _PARISC_STAT_H
index cf219dc..4441f9b 100644 (file)
@@ -1,6 +1,6 @@
 /* Note that we use the exact same include guard #define names
- * as asm/posix_types.h.  This will avoid gratuitous conflicts 
- * with the posix_types.h kernel header, and will ensure that 
+ * as asm/posix_types.h.  This will avoid gratuitous conflicts
+ * with the posix_types.h kernel header, and will ensure that
  * our private content, and not the kernel header, will win.
  *  -Erik
  */
index 04e80b2..cd11e08 100644 (file)
@@ -26,8 +26,8 @@
    INTERNAL_SYSCALL, and all the generated pure assembly syscall wrappers.
    How often the function is used is unknown. */
 
-long int 
-syscall (long int __sysno, ...) 
+long int
+syscall (long int __sysno, ...)
 {
   /* FIXME: Keep this matching INLINE_SYSCALL for hppa */
   va_list args;
@@ -43,7 +43,7 @@ syscall (long int __sysno, ...)
   arg4 = va_arg (args, long int);
   arg5 = va_arg (args, long int);
   va_end (args);
-  
+
   {
     register unsigned long int __res __asm__("r28");
     K_LOAD_ARGS_6 (arg0, arg1, arg2, arg3, arg4, arg5)
index 9f659a4..20eb6d2 100644 (file)
@@ -5,8 +5,8 @@
 #error bits/kernel_stat.h is for internal uClibc use only!
 #endif
 
-/* This file provides whatever this particular arch's kernel thinks 
- * struct stat should look like...  It turns out each arch has a 
+/* This file provides whatever this particular arch's kernel thinks
+ * struct stat should look like...  It turns out each arch has a
  * different opinion on the subject... */
 
 struct kernel_stat {
index deb615f..6609dd3 100644 (file)
@@ -1,6 +1,6 @@
 /* Note that we use the exact same include guard #define names
- * as asm/posix_types.h.  This will avoid gratuitous conflicts 
- * with the posix_types.h kernel header, and will ensure that 
+ * as asm/posix_types.h.  This will avoid gratuitous conflicts
+ * with the posix_types.h kernel header, and will ensure that
  * our private content, and not the kernel header, will win.
  *  -Erik
  */
index fbd5014..e872964 100644 (file)
@@ -14,7 +14,7 @@
    You should have received a copy of the GNU Library General Public
    License along with the GNU C Library; see the file COPYING.LIB.  If not,
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-   Boston, MA 02111-1307, USA.  
+   Boston, MA 02111-1307, USA.
 
    Totally hacked up for uClibc by Erik Andersen <andersen@codepoet.org>
    */
index 6449b5e..c8ef86d 100644 (file)
@@ -1,6 +1,6 @@
 /* Note that we use the exact same include guard #define names
- * as asm/posix_types.h.  This will avoid gratuitous conflicts 
- * with the posix_types.h kernel header, and will ensure that 
+ * as asm/posix_types.h.  This will avoid gratuitous conflicts
+ * with the posix_types.h kernel header, and will ensure that
  * our private content, and not the kernel header, will win.
  *  -Erik
  */
index 5f05148..e60362b 100644 (file)
@@ -5,8 +5,8 @@
 #error bits/kernel_stat.h is for internal uClibc use only!
 #endif
 
-/* This file provides whatever this particular arch's kernel thinks 
- * struct kernel_stat should look like...  It turns out each arch has a 
+/* This file provides whatever this particular arch's kernel thinks
+ * struct kernel_stat should look like...  It turns out each arch has a
  * different opinion on the subject... */
 
 struct kernel_stat {
index 166b33f..0a77a8f 100644 (file)
@@ -1,6 +1,6 @@
 /* Note that we use the exact same include guard #define names
- * as asm/posix_types.h.  This will avoid gratuitous conflicts 
- * with the posix_types.h kernel header, and will ensure that 
+ * as asm/posix_types.h.  This will avoid gratuitous conflicts
+ * with the posix_types.h kernel header, and will ensure that
  * our private content, and not the kernel header, will win.
  *  -Erik
  */
index a1012a3..8a4f6ef 100644 (file)
@@ -8,7 +8,7 @@
  * This file is subject to the terms and conditions of the GNU Lesser
  * General Public License.  See the file COPYING.LIB in the main
  * directory of this archive for more details.
- * 
+ *
  * Written by Miles Bader <miles@gnu.org>
  * Microblaze port by John Williams
  */
index c3e2189..d966efd 100644 (file)
@@ -8,7 +8,7 @@
  * This file is subject to the terms and conditions of the GNU Lesser
  * General Public License.  See the file COPYING.LIB in the main
  * directory of this archive for more details.
- * 
+ *
  * Written by Miles Bader <miles@gnu.org>
  */
 
index cf5c34b..a9beffc 100644 (file)
@@ -8,7 +8,7 @@
  * This file is subject to the terms and conditions of the GNU Lesser
  * General Public License.  See the file COPYING.LIB in the main
  * directory of this archive for more details.
- * 
+ *
  * Written by Miles Bader <miles@gnu.org>
  */
 
index 887e2c8..a47ee8c 100644 (file)
@@ -31,7 +31,7 @@ clone (int (*fn)(void *arg), void *child_stack, int flags, void *arg)
       arg0 = flags;
       arg1 = (unsigned long)child_stack;
       syscall = __NR_clone;
-      __asm__ __volatile__ ("bralid r17, trap;nop;" 
+      __asm__ __volatile__ ("bralid r17, trap;nop;"
                    : "=r" (rval), "=r" (syscall)
                    : "1" (syscall), "r" (arg0), "r" (arg1)
                    : SYSCALL_CLOBBERS);
@@ -41,7 +41,7 @@ clone (int (*fn)(void *arg), void *child_stack, int flags, void *arg)
        {
          arg0 = (*fn) (arg);
          syscall = __NR_exit;
-         __asm__ __volatile__ ("bralid r17, trap;nop;" 
+         __asm__ __volatile__ ("bralid r17, trap;nop;"
                        : "=r" (rval), "=r" (syscall)
                        : "1" (syscall), "r" (arg0)
                        : SYSCALL_CLOBBERS);
index a7fd3ae..0e07e45 100644 (file)
@@ -8,7 +8,7 @@
  * This file is subject to the terms and conditions of the GNU Lesser
  * General Public License.  See the file COPYING.LIB in the main
  * directory of this archive for more details.
- * 
+ *
  * Written by Miles Bader <miles@gnu.org>
  */
 
@@ -37,11 +37,11 @@ syscall (long num, arg_t a1, arg_t a2, arg_t a3, arg_t a4, arg_t a5, arg_t a6)
        unsigned long ret_sav;
 
   *((unsigned long *)0xFFFF4004) = (unsigned int)('+');
-  __asm__ ("brlid r17, 08x; nop;" 
+  __asm__ ("brlid r17, 08x; nop;"
        : "=r" (ret)
        : "r" (syscall), "r" (a), "r" (b), "r" (c), "r" (d), "r" (e), "r" (f)
        : SYSCALL_CLOBBERS);
-       
+
   ret_sav=ret;
   *((unsigned long *)0xFFFF4004) = (unsigned int)('-');
 
index 167d9a5..ca53d38 100644 (file)
@@ -285,7 +285,7 @@ typedef uintmax_t uatomic_max_t;
   __prev; })
 #endif
 
-/* ??? Barrier semantics for atomic_exchange_and_add appear to be 
+/* ??? Barrier semantics for atomic_exchange_and_add appear to be
    undefined.  Use full barrier for now, as that's safe.  */
 #define atomic_exchange_and_add(mem, value) \
   __atomic_val_bysize (__arch_exchange_and_add, int, mem, value,             \
index 13c23d3..3161562 100644 (file)
@@ -5,8 +5,8 @@
 #error bits/kernel_stat.h is for internal uClibc use only!
 #endif
 
-/* This file provides whatever this particular arch's kernel thinks 
- * struct kernel_stat should look like...  It turns out each arch has a 
+/* This file provides whatever this particular arch's kernel thinks
+ * struct kernel_stat should look like...  It turns out each arch has a
  * different opinion on the subject... */
 
 #include <sgidefs.h>
index b7e61bd..9fc3b96 100644 (file)
@@ -1,6 +1,6 @@
 /* Note that we use the exact same include guard #define names
- * as asm/posix_types.h.  This will avoid gratuitous conflicts 
- * with the posix_types.h kernel header, and will ensure that 
+ * as asm/posix_types.h.  This will avoid gratuitous conflicts
+ * with the posix_types.h kernel header, and will ensure that
  * our private content, and not the kernel header, will win.
  *  -Erik
  */
index 324d75d..fa8b876 100644 (file)
@@ -45,7 +45,7 @@ return (type) (INLINE_SYSCALL(name, 3, arg1, arg2, arg3)); \
 type name (type1 arg1, type2 arg2, type3 arg3, type4 arg4) \
 { \
 return (type) (INLINE_SYSCALL(name, 4, arg1, arg2, arg3, arg4)); \
-} 
+}
 
 #undef _syscall5
 #define _syscall5(type,name,type1,arg1,type2,arg2,type3,arg3,type4,arg4, \
index 0135481..d03371f 100644 (file)
@@ -14,7 +14,7 @@
    You should have received a copy of the GNU Library General Public
    License along with the GNU C Library; see the file COPYING.LIB.  If not,
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-   Boston, MA 02111-1307, USA.  
+   Boston, MA 02111-1307, USA.
 
    Totally hacked up for uClibc by Erik Andersen <andersen@codepoet.org>
    */
index acbb0c5..e66f42d 100644 (file)
@@ -1,6 +1,6 @@
 /* Note that we use the exact same include guard #define names
- * as asm/posix_types.h.  This will avoid gratuitous conflicts 
- * with the posix_types.h kernel header, and will ensure that 
+ * as asm/posix_types.h.  This will avoid gratuitous conflicts
+ * with the posix_types.h kernel header, and will ensure that
  * our private content, and not the kernel header, will win.
  *  -Erik
  */
index c529990..ac3f23f 100644 (file)
@@ -33,5 +33,5 @@ dummy_fini(void)
        __asm__ __volatile__ (".section .fini");
        (*call__dtors)();
        __asm__ __volatile__ (".section .trash");
-       
+
 }
index 29af728..775eb0f 100644 (file)
@@ -34,7 +34,7 @@ dummy_init(void)
         */
        /* prevent function pointer constant propagation */
        __asm__ __volatile__ (".section .init");
-       
+
        if (!initialized) {
                initialized = 1;
                (*call__ctors)();
index 908a153..9be9d11 100644 (file)
@@ -5,8 +5,8 @@
 #error bits/kernel_stat.h is for internal uClibc use only!
 #endif
 
-/* This file provides whatever this particular arch's kernel thinks 
- * struct kernel_stat should look like...  It turns out each arch has a 
+/* This file provides whatever this particular arch's kernel thinks
+ * struct kernel_stat should look like...  It turns out each arch has a
  * different opinion on the subject... */
 
 struct kernel_stat {
index 1fd1c4a..3fcd1af 100644 (file)
@@ -1,6 +1,6 @@
 /* Note that we use the exact same include guard #define names
- * as asm/posix_types.h.  This will avoid gratuitous conflicts 
- * with the posix_types.h kernel header, and will ensure that 
+ * as asm/posix_types.h.  This will avoid gratuitous conflicts
+ * with the posix_types.h kernel header, and will ensure that
  * our private content, and not the kernel header, will win.
  *  -Erik
  */
index 5d33caa..fcff031 100644 (file)
@@ -45,7 +45,7 @@ typedef struct
        /* floating point regs, if any */
 #if defined __HAVE_FPU__
     unsigned long __fpregs[64];
-#endif 
+#endif
 } __jmp_buf[1];
 
 #endif
index df925fd..c3eb002 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
  * libc/sysdeps/linux/nios2/syscall.c -- generic syscall function for linux/nios2
  *
  * Copyright (C) 2004 Microtronix Datacom Ltd.
@@ -28,7 +28,7 @@ long syscall(long sysnum, long a, long b, long c, long d, long e, long f)
 {
     register long _r2 __asm__("r2")=(long)TRAP_ID_SYSCALL;
     register long _r3 __asm__("r3")=(long)sysnum;
-   
+
     register long _r4 __asm__("r4")=(long)(a);
     register long _r5 __asm__("r5")=(long)(b);
     register long _r6 __asm__("r6")=(long)(c);
index d3c3f91..bfa6722 100644 (file)
@@ -5,8 +5,8 @@
 #error bits/kernel_stat.h is for internal uClibc use only!
 #endif
 
-/* This file provides whatever this particular arch's kernel thinks 
- * struct kernel_stat should look like...  It turns out each arch has a 
+/* This file provides whatever this particular arch's kernel thinks
+ * struct kernel_stat should look like...  It turns out each arch has a
  * different opinion on the subject... */
 #if __WORDSIZE == 64
 #define kernel_stat kernel_stat64
index 2230375..3f3b933 100644 (file)
@@ -1,6 +1,6 @@
 /* Note that we use the exact same include guard #define names
- * as asm/posix_types.h.  This will avoid gratuitous conflicts 
- * with the posix_types.h kernel header, and will ensure that 
+ * as asm/posix_types.h.  This will avoid gratuitous conflicts
+ * with the posix_types.h kernel header, and will ensure that
  * our private content, and not the kernel header, will win.
  *  -Erik
  */
index 1c648cd..92a7a90 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 1996, 1997, 1998, 2000, 2002 
+/* Copyright (C) 1995, 1996, 1997, 1998, 2000, 2002
    Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
index 18940d1..cdbadfd 100644 (file)
@@ -6,7 +6,7 @@
  */
 /* Based in part on the files
  *             ./sysdeps/unix/sysv/linux/pwrite.c,
- *             ./sysdeps/unix/sysv/linux/pread.c, 
+ *             ./sysdeps/unix/sysv/linux/pread.c,
  *             sysdeps/posix/pread.c
  *             sysdeps/posix/pwrite.c
  * from GNU libc 2.2.5, but reworked considerably...
@@ -15,7 +15,7 @@
 #include <sys/syscall.h>
 #include <unistd.h>
 
-#ifndef __UCLIBC_HAS_LFS__ 
+#ifndef __UCLIBC_HAS_LFS__
 # define off64_t off_t
 #endif
 
@@ -26,15 +26,15 @@ static __inline__ _syscall4(ssize_t, __syscall_pread, int, fd,
                void *, buf, size_t, count, off64_t, offset);
 
 ssize_t __libc_pread(int fd, void *buf, size_t count, off_t offset)
-{ 
+{
        return(__syscall_pread(fd, buf, count, (off64_t)offset));
 }
 weak_alias(__libc_pread,pread)
 
-# ifdef __UCLIBC_HAS_LFS__ 
+# ifdef __UCLIBC_HAS_LFS__
 extern __typeof(pread64) __libc_pread64;
 ssize_t __libc_pread64(int fd, void *buf, size_t count, off64_t offset)
-{ 
+{
        return(__syscall_pread(fd, buf, count, offset));
 }
 weak_alias(__libc_pread64,pread64)
@@ -49,15 +49,15 @@ static __inline__ _syscall4(ssize_t, __syscall_pwrite, int, fd,
                const void *, buf, size_t, count, off64_t, offset);
 
 ssize_t __libc_pwrite(int fd, const void *buf, size_t count, off_t offset)
-{ 
+{
        return(__syscall_pwrite(fd, buf, count, (off64_t)offset));
 }
 weak_alias(__libc_pwrite,pwrite)
 
-# ifdef __UCLIBC_HAS_LFS__ 
+# ifdef __UCLIBC_HAS_LFS__
 extern __typeof(pwrite64) __libc_pwrite64;
 ssize_t __libc_pwrite64(int fd, const void *buf, size_t count, off64_t offset)
-{ 
+{
        return(__syscall_pwrite(fd, buf, count, offset));
 }
 weak_alias(__libc_pwrite64,pwrite64)
@@ -71,14 +71,14 @@ libc_hidden_proto(read)
 libc_hidden_proto(write)
 libc_hidden_proto(lseek)
 
-static ssize_t __fake_pread_write(int fd, void *buf, 
+static ssize_t __fake_pread_write(int fd, void *buf,
                size_t count, off_t offset, int do_pwrite)
 {
        int save_errno;
        ssize_t result;
        off_t old_offset;
 
-       /* Since we must not change the file pointer preserve the 
+       /* Since we must not change the file pointer preserve the
         * value so that we can restore it later.  */
        if ((old_offset=lseek(fd, 0, SEEK_CUR)) == (off_t) -1)
                return -1;
@@ -95,7 +95,7 @@ static ssize_t __fake_pread_write(int fd, void *buf,
                result = read(fd, buf, count);
        }
 
-       /* Now we have to restore the position.  If this fails we 
+       /* Now we have to restore the position.  If this fails we
         * have to return this as an error.  */
        save_errno = errno;
        if (lseek(fd, old_offset, SEEK_SET) == (off_t) -1)
@@ -108,24 +108,24 @@ static ssize_t __fake_pread_write(int fd, void *buf,
        return(result);
 }
 
-# ifdef __UCLIBC_HAS_LFS__ 
+# ifdef __UCLIBC_HAS_LFS__
 libc_hidden_proto(lseek64)
 
-static ssize_t __fake_pread_write64(int fd, void *buf, 
+static ssize_t __fake_pread_write64(int fd, void *buf,
                size_t count, off64_t offset, int do_pwrite)
 {
        int save_errno;
        ssize_t result;
        off64_t old_offset;
 
-       /* Since we must not change the file pointer preserve the 
+       /* Since we must not change the file pointer preserve the
         * value so that we can restore it later.  */
        if ((old_offset=lseek64(fd, 0, SEEK_CUR)) == (off64_t) -1)
                return -1;
 
        /* Set to wanted position.  */
-       if (lseek64(fd, offset, SEEK_SET) == (off64_t) -1) 
-               return -1;                               
+       if (lseek64(fd, offset, SEEK_SET) == (off64_t) -1)
+               return -1;
 
        if (do_pwrite==1) {
                /* Write the data.  */
@@ -155,9 +155,9 @@ ssize_t __libc_pread(int fd, void *buf, size_t count, off_t offset)
 }
 weak_alias(__libc_pread,pread)
 
-# ifdef __UCLIBC_HAS_LFS__ 
+# ifdef __UCLIBC_HAS_LFS__
 ssize_t __libc_pread64(int fd, void *buf, size_t count, off64_t offset)
-{ 
+{
        return(__fake_pread_write64(fd, buf, count, offset, 0));
 }
 weak_alias(__libc_pread64,pread64)
@@ -172,9 +172,9 @@ ssize_t __libc_pwrite(int fd, const void *buf, size_t count, off_t offset)
 }
 weak_alias(__libc_pwrite,pwrite)
 
-# ifdef __UCLIBC_HAS_LFS__ 
+# ifdef __UCLIBC_HAS_LFS__
 ssize_t __libc_pwrite64(int fd, const void *buf, size_t count, off64_t offset)
-{ 
+{
        return(__fake_pread_write64(fd, (void*)buf, count, offset, 1));
 }
 weak_alias(__libc_pwrite64,pwrite64)
index d2d5972..1184636 100644 (file)
@@ -32,9 +32,9 @@
 
 __BEGIN_DECLS
 
-/* These definitions are normally provided by ucontext.h via 
-   asm/sigcontext.h, asm/ptrace.h, and asm/elf.h.  Otherwise we define 
-   them here.  */ 
+/* These definitions are normally provided by ucontext.h via
+   asm/sigcontext.h, asm/ptrace.h, and asm/elf.h.  Otherwise we define
+   them here.  */
 #ifndef __PPC64_ELF_H
 #define ELF_NGREG       48      /* includes nip, msr, lr, etc. */
 #define ELF_NFPREG      33      /* includes fpscr */
index 9eb50aa..737512a 100644 (file)
@@ -62,14 +62,14 @@ typedef struct
 
 #else
 
-/* For 64-bit kernels with Altivec support, a machine context is exactly 
- * a sigcontext.  For older kernel (without Altivec) the sigcontext matches 
- * the mcontext upto but not including the v_regs field.  For kernels that 
- * don't AT_HWCAP or return AT_HWCAP without PPC_FEATURE_HAS_ALTIVEC the 
+/* For 64-bit kernels with Altivec support, a machine context is exactly
+ * a sigcontext.  For older kernel (without Altivec) the sigcontext matches
+ * the mcontext upto but not including the v_regs field.  For kernels that
+ * don't AT_HWCAP or return AT_HWCAP without PPC_FEATURE_HAS_ALTIVEC the
  * v_regs field may not exit and should not be referenced.  The v_regd field
  * can be refernced safely only after verifying that PPC_FEATURE_HAS_ALTIVEC
  * is set in AT_HWCAP.  */
-    
+
 /* Number of general registers.  */
 # define NGREG 48      /* includes r0-r31, nip, msr, lr, etc.   */
 # define NFPREG        33      /* includes fp0-fp31 &fpscr.  */
@@ -79,7 +79,7 @@ typedef unsigned long gregset_t[NGREG];
 typedef double fpregset_t[NFPREG];
 
 /* Container for Altivec/VMX Vector Status and Control Register.  Only 32-bits
-   but can only be copied to/from a 128-bit vector register.  So we allocated 
+   but can only be copied to/from a 128-bit vector register.  So we allocated
    a whole quadword speedup save/restore.  */
 typedef struct _libc_vscr
 {
@@ -107,22 +107,22 @@ typedef struct {
        gregset_t       gp_regs;
        fpregset_t      fp_regs;
 /*
- * To maintain compatibility with current implementations the sigcontext is 
- * extended by appending a pointer (v_regs) to a quadword type (elf_vrreg_t) 
- * followed by an unstructured (vmx_reserve) field of 69 doublewords.  This 
- * allows the array of vector registers to be quadword aligned independent of 
- * the alignment of the containing sigcontext or ucontext. It is the 
- * responsibility of the code setting the sigcontext to set this pointer to 
- * either NULL (if this processor does not support the VMX feature) or the 
+ * To maintain compatibility with current implementations the sigcontext is
+ * extended by appending a pointer (v_regs) to a quadword type (elf_vrreg_t)
+ * followed by an unstructured (vmx_reserve) field of 69 doublewords.  This
+ * allows the array of vector registers to be quadword aligned independent of
+ * the alignment of the containing sigcontext or ucontext. It is the
+ * responsibility of the code setting the sigcontext to set this pointer to
+ * either NULL (if this processor does not support the VMX feature) or the
  * address of the first quadword within the allocated (vmx_reserve) area.
  *
- * The pointer (v_regs) of vector type (elf_vrreg_t) is essentually  
- * an array of 34 quadword entries.  The entries with 
- * indexes 0-31 contain the corresponding vector registers.  The entry with 
- * index 32 contains the vscr as the last word (offset 12) within the 
- * quadword.  This allows the vscr to be stored as either a quadword (since 
- * it must be copied via a vector register to/from storage) or as a word.  
- * The entry with index 33 contains the vrsave as the first word (offset 0) 
+ * The pointer (v_regs) of vector type (elf_vrreg_t) is essentually
+ * an array of 34 quadword entries.  The entries with
+ * indexes 0-31 contain the corresponding vector registers.  The entry with
+ * index 32 contains the vscr as the last word (offset 12) within the
+ * quadword.  This allows the vscr to be stored as either a quadword (since
+ * it must be copied via a vector register to/from storage) or as a word.
+ * The entry with index 33 contains the vrsave as the first word (offset 0)
  * within the quadword.
  */
        vrregset_t      *v_regs;
index 8a29b3f..2e88dad 100644 (file)
@@ -5,8 +5,8 @@
 #error bits/kernel_stat.h is for internal uClibc use only!
 #endif
 
-/* This file provides whatever this particular arch's kernel thinks 
- * struct kernel_stat should look like...  It turns out each arch has a 
+/* This file provides whatever this particular arch's kernel thinks
+ * struct kernel_stat should look like...  It turns out each arch has a
  * different opinion on the subject... */
 #include <endian.h>
 
index baccd30..7d55cf5 100644 (file)
@@ -1,6 +1,6 @@
 /* Note that we use the exact same include guard #define names
- * as asm/posix_types.h.  This will avoid gratuitous conflicts 
- * with the posix_types.h kernel header, and will ensure that 
+ * as asm/posix_types.h.  This will avoid gratuitous conflicts
+ * with the posix_types.h kernel header, and will ensure that
  * our private content, and not the kernel header, will win.
  *  -Erik
  */
index 2e160fc..671cc83 100644 (file)
@@ -9,10 +9,10 @@
  * directory of this archive for more details.
  */
 
-/* 
+/*
  * Note that we use the exact same include guard #define names
- * as asm/posix_types.h.  This will avoid gratuitous conflicts 
- * with the posix_types.h kernel header, and will ensure that 
+ * as asm/posix_types.h.  This will avoid gratuitous conflicts
+ * with the posix_types.h kernel header, and will ensure that
  * our private content, and not the kernel header, will win.
  *  -Erik
  */
index 16feb49..7440784 100644 (file)
@@ -189,7 +189,7 @@ typedef struct
     unsigned long long sc_pc;
     unsigned long long sc_sr;
     unsigned long long sc_fpscr;
-    
+
   } mcontext_t;
 
 /* Userlevel context.  */
index ac167fa..ab85be2 100644 (file)
@@ -5,8 +5,8 @@
 #error bits/kernel_stat.h is for internal uClibc use only!
 #endif
 
-/* This file provides whatever this particular arch's kernel thinks 
- * struct kernel_stat should look like...  It turns out each arch has a 
+/* This file provides whatever this particular arch's kernel thinks
+ * struct kernel_stat should look like...  It turns out each arch has a
  * different opinion on the subject... */
 #if __WORDSIZE == 64
 #define kernel_stat kernel_stat64
index 3db603f..1b24524 100644 (file)
@@ -1,6 +1,6 @@
 /* Note that we use the exact same include guard #define names
- * as asm/posix_types.h.  This will avoid gratuitous conflicts 
- * with the posix_types.h kernel header, and will ensure that 
+ * as asm/posix_types.h.  This will avoid gratuitous conflicts
+ * with the posix_types.h kernel header, and will ensure that
  * our private content, and not the kernel header, will win.
  *  -Erik
  */
index 9065b00..fdaa4de 100644 (file)
@@ -110,7 +110,7 @@ __asm__ __volatile__ (__SYSCALL_STRING \
                      : "1" (__o0), "r" (__o1), "r" (__o2), "r" (__o3), "r" (__g1) \
                      : "cc"); \
 __SYSCALL_RETURN(type) \
-} 
+}
 
 #undef _syscall5
 #define _syscall5(type,name,type1,arg1,type2,arg2,type3,arg3,type4,arg4, \
index 8fdd955..ae78da3 100644 (file)
@@ -7,7 +7,7 @@
  * This file is subject to the terms and conditions of the GNU Lesser
  * General Public License.  See the file COPYING.LIB in the main
  * directory of this archive for more details.
- * 
+ *
  * Written by Miles Bader <miles@gnu.org>
  */
 
index 93395ad..c943737 100644 (file)
@@ -7,7 +7,7 @@
  * This file is subject to the terms and conditions of the GNU Lesser
  * General Public License.  See the file COPYING.LIB in the main
  * directory of this archive for more details.
- * 
+ *
  * Written by Miles Bader <miles@gnu.org>
  */
 
index 7aef235..e85d39f 100644 (file)
@@ -7,7 +7,7 @@
  * This file is subject to the terms and conditions of the GNU Lesser
  * General Public License.  See the file COPYING.LIB in the main
  * directory of this archive for more details.
- * 
+ *
  * Written by Miles Bader <miles@gnu.org>
  */
 
index 614d874..dbcc87c 100644 (file)
@@ -7,7 +7,7 @@
  * This file is subject to the terms and conditions of the GNU Lesser
  * General Public License.  See the file COPYING.LIB in the main
  * directory of this archive for more details.
- * 
+ *
  * Written by Miles Bader <miles@gnu.org>
  */
 
index a2af2cd..7dca5ff 100644 (file)
@@ -1,4 +1,4 @@
-/* Ripped from linux/include/asm-x86_64/stat.h 
+/* Ripped from linux/include/asm-x86_64/stat.h
  * and renamed 'struct stat' to 'struct kernel_stat' */
 
 #ifndef _ASM_X86_64_STAT_H
index 060660c..73f6ffb 100644 (file)
@@ -1,6 +1,6 @@
 /* Note that we use the exact same include guard #define names
- * as asm/posix_types.h.  This will avoid gratuitous conflicts 
- * with the posix_types.h kernel header, and will ensure that 
+ * as asm/posix_types.h.  This will avoid gratuitous conflicts
+ * with the posix_types.h kernel header, and will ensure that
  * our private content, and not the kernel header, will win.
  *  -Erik
  */
index 7431d6d..80f4259 100644 (file)
@@ -5,7 +5,7 @@
 #endif
 
 /*
-   Some of the sneaky macros in the code were taken from 
+   Some of the sneaky macros in the code were taken from
    glibc-2.2.5/sysdeps/unix/sysv/linux/x86_64/sysdep.h
 */
 
@@ -48,7 +48,7 @@ return (type) (INLINE_SYSCALL(name, 3, arg1, arg2, arg3)); \
 type name (type1 arg1, type2 arg2, type3 arg3, type4 arg4) \
 { \
 return (type) (INLINE_SYSCALL(name, 4, arg1, arg2, arg3, arg4)); \
-} 
+}
 
 #undef _syscall5
 #define _syscall5(type,name,type1,arg1,type2,arg2,type3,arg3,type4,arg4, \
index 6afb3a6..26da928 100644 (file)
@@ -5,8 +5,8 @@
 #error bits/kernel_stat.h is for internal uClibc use only!
 #endif
 
-/* This file provides whatever this particular arch's kernel thinks 
- * struct kernel_stat should look like...  It turns out each arch has a 
+/* This file provides whatever this particular arch's kernel thinks
+ * struct kernel_stat should look like...  It turns out each arch has a
  * different opinion on the subject... */
 
 #define STAT_HAVE_NSEC 1
index f392ba7..44f1075 100644 (file)
@@ -1,6 +1,6 @@
 /* Note that we use the exact same include guard #define names
- * as asm/posix_types.h.  This will avoid gratuitous conflicts 
- * with the posix_types.h kernel header, and will ensure that 
+ * as asm/posix_types.h.  This will avoid gratuitous conflicts
+ * with the posix_types.h kernel header, and will ensure that
  * our private content, and not the kernel header, will win.
  *  -Erik
  */
index e0506e4..a59a805 100644 (file)
@@ -5,7 +5,7 @@
 #endif
 
 /*
-   Some of the sneaky macros in the code were taken from 
+   Some of the sneaky macros in the code were taken from
    glibc .../sysdeps/unix/sysv/linux/xtensa/sysdep.h
 */
 
 #define C_DECL_ARGS_5(t, v, args...)   t v, C_DECL_ARGS_4(args)
 #define C_DECL_ARGS_6(t, v, args...)   t v, C_DECL_ARGS_5(args)
 
-#define C_ARGS_0()     
+#define C_ARGS_0()
 #define C_ARGS_1(t, v)                 v
 #define C_ARGS_2(t, v, args...)                v, C_ARGS_1 (args)
 #define C_ARGS_3(t, v, args...)                v, C_ARGS_2 (args)
index 0348441..b06d934 100644 (file)
@@ -5,7 +5,7 @@
  * Copyright (C) 2007 Tensilica Inc.
  *
  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
- */ 
+ */
 
 #include <unistd.h>
 #include <sys/syscall.h>
index 60d915c..790a8f2 100644 (file)
@@ -5,7 +5,7 @@
  * Copyright (C) 2007, 2008 Tensilica Inc.
  *
  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
- */ 
+ */
 
 #include <errno.h>
 #include <signal.h>
 #include <string.h>
 #include <bits/kernel_sigaction.h>
 
-#define SA_RESTORER    0x04000000      
+#define SA_RESTORER    0x04000000
 
 extern void __default_sa_restorer (void);
 
 /* Experimentally off - libc_hidden_proto(memcpy) */
 
-int __libc_sigaction (int signum, const struct sigaction *act, 
+int __libc_sigaction (int signum, const struct sigaction *act,
                                          struct sigaction *oldact)
 {
        struct kernel_sigaction kact, koldact;
index a5a5df6..26554b6 100644 (file)
@@ -61,9 +61,9 @@ int tcgetattr (int fd, struct termios *termios_p)
        memset (mempcpy (&termios_p->c_cc[0], &k_termios.c_cc[0],
                    __KERNEL_NCCS * sizeof (cc_t)),
                _POSIX_VDISABLE, (NCCS - __KERNEL_NCCS) * sizeof (cc_t));
-#if 0  
+#if 0
        memset ( (memcpy (&termios_p->c_cc[0], &k_termios.c_cc[0],
-                       __KERNEL_NCCS * sizeof (cc_t)) + (__KERNEL_NCCS * sizeof (cc_t))) , 
+                       __KERNEL_NCCS * sizeof (cc_t)) + (__KERNEL_NCCS * sizeof (cc_t))) ,
                _POSIX_VDISABLE, (NCCS - __KERNEL_NCCS) * sizeof (cc_t));
 #endif
     } else {
index 8a24397..d565ed4 100644 (file)
@@ -13,8 +13,8 @@
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
  *
- * 3. <BSD Advertising Clause omitted per the July 22, 1999 licensing change 
- *             ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change> 
+ * 3. <BSD Advertising Clause omitted per the July 22, 1999 licensing change
+ *             ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change>
  *
  * 4. Neither the name of the University nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
index 96bc621..d737863 100644 (file)
@@ -54,12 +54,12 @@ libc_hidden_proto(__libc_fstatfs)
 
 /* Get file-specific information about descriptor FD.  */
 long int fpathconf(int fd, int name)
-{     
+{
     if (fd < 0)
     {
        __set_errno (EBADF);
        return -1;
-    }   
+    }
 
     if (name == _PC_LINK_MAX)
     {
@@ -211,7 +211,7 @@ long int fpathconf(int fd, int name)
 #endif
 
        case _PC_ASYNC_IO:
-#if defined _POSIX_ASYNC_IO && defined __UCLIBC_HAS_LFS__ 
+#if defined _POSIX_ASYNC_IO && defined __UCLIBC_HAS_LFS__
            {
                /* AIO is only allowed on regular files and block devices.  */
                struct stat st;
index 73d7a7e..c22dd9f 100644 (file)
@@ -84,7 +84,7 @@ int getopt(int argc, char * const argv[], const char *optstring)
                retval = '?';
                goto BAD;
        }
-       
+
        if (s[1] == ':') {                      /* Option takes an arg? */
                if (o[1]) {                                     /* No space between option and arg? */
                        optarg = (char *)(o + 1);
index 754e86f..ac005e4 100644 (file)
@@ -25,7 +25,7 @@
  * Modified for uClibc by Manuel Novoa III on 1/5/01.
  * Modified once again for uClibc by Erik Andersen 8/7/02
  */
-\f
+
 /* This tells Alpha OSF/1 not to define a getopt prototype in <stdio.h>.
    Ditto for AIX 3.2 and <stdlib.h>.  */
 #ifndef _NO_PROTO
@@ -166,7 +166,7 @@ int optopt = '?';
 
 static struct _getopt_data getopt_data;
 
-\f
+
 #ifndef __GNU_LIBRARY__
 
 /* Avoid depending on library functions or files
@@ -177,7 +177,7 @@ extern char *getenv ();
 #endif
 
 #endif /* not __GNU_LIBRARY__ */
-\f
+
 #ifdef _LIBC
 /* Stored original parameters.
    XXX This is no good solution.  We should rather copy the args so
@@ -359,7 +359,7 @@ _getopt_initialize (attribute_unused int argc, attribute_unused char *const *arg
 
   return optstring;
 }
-\f
+
 /* Scan elements of ARGV (whose length is ARGC) for option characters
    given in OPTSTRING.
 
index 5637c10..a871785 100644 (file)
@@ -26,7 +26,7 @@ extern int _getopt_internal (int ___argc, char *const *___argv,
                             const struct option *__longopts, int *__longind,
                             int __long_only) attribute_hidden;
 
-\f
+
 /* Reentrant versions which can handle parsing multiple argument
    vectors at the same time.  */
 
index 5f5b787..1bf143d 100644 (file)
@@ -27,7 +27,7 @@
  * SUCH DAMAGE.
  *
  * This version has been hevily modified for use with uClibc
- * November 2002, Erik Andersen <andersen@codepoet.org> 
+ * November 2002, Erik Andersen <andersen@codepoet.org>
  */
 
 #include <sys/param.h>
index 502dc28..eb1e13f 100644 (file)
@@ -82,8 +82,8 @@ static u_int32_t old_salt;
 static u_int32_t old_rawkey0, old_rawkey1;
 
 
-/* Static stuff that stays resident and doesn't change after 
- * being initialized, and therefore doesn't need to be made 
+/* Static stuff that stays resident and doesn't change after
+ * being initialized, and therefore doesn't need to be made
  * reentrant. */
 static u_char  init_perm[64], final_perm[64];
 static u_char  m_sbox[4][4096];
@@ -195,7 +195,7 @@ static const u_int32_t bits32[32] =
 static const u_char    bits8[8] = { 0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01 };
 
 
-static int 
+static int
 ascii_to_bin(char ch)
 {
        if (ch > 'z')
@@ -699,7 +699,7 @@ char *__des_crypt(const unsigned char *key, const unsigned char *setting)
                 */
                output[9] = '\0';
                p = (u_char *)output + strlen(output);
-       } else 
+       } else
 #endif
        {
                /*
index f7ddc77..ab5548c 100644 (file)
@@ -188,7 +188,7 @@ static void __md5_Init (struct MD5Context *context)
        context->state[3] = 0x10325476;
 }
 
-/* 
+/*
  * MD5 block update operation. Continues an MD5 message-digest
  * operation, processing another message block, and updating the
  * context.
index d2c5cab..aeca87b 100644 (file)
@@ -31,15 +31,15 @@ fedisableexcept (int excepts)
   INTERNAL_SYSCALL (prctl, err, 2, PR_GET_FPEXC, &pflags);
 
   /* Save old enable bits.  */
-  if (pflags & PR_FP_EXC_OVF) 
+  if (pflags & PR_FP_EXC_OVF)
     result |= FE_OVERFLOW;
-  if (pflags & PR_FP_EXC_UND) 
+  if (pflags & PR_FP_EXC_UND)
     result |= FE_UNDERFLOW;
-  if (pflags & PR_FP_EXC_INV) 
+  if (pflags & PR_FP_EXC_INV)
     result |= FE_INVALID;
-  if (pflags & PR_FP_EXC_DIV) 
+  if (pflags & PR_FP_EXC_DIV)
     result |= FE_DIVBYZERO;
-  if (pflags & PR_FP_EXC_RES) 
+  if (pflags & PR_FP_EXC_RES)
     result |= FE_INEXACT;
 
   if (excepts & FE_INEXACT)
index 4f00a91..999fdd7 100644 (file)
@@ -31,15 +31,15 @@ feenableexcept (int excepts)
   INTERNAL_SYSCALL (prctl, err, 2, PR_GET_FPEXC, &pflags);
 
   /* Save old enable bits.  */
-  if (pflags & PR_FP_EXC_OVF) 
+  if (pflags & PR_FP_EXC_OVF)
     result |= FE_OVERFLOW;
-  if (pflags & PR_FP_EXC_UND) 
+  if (pflags & PR_FP_EXC_UND)
     result |= FE_UNDERFLOW;
-  if (pflags & PR_FP_EXC_INV) 
+  if (pflags & PR_FP_EXC_INV)
     result |= FE_INVALID;
-  if (pflags & PR_FP_EXC_DIV) 
+  if (pflags & PR_FP_EXC_DIV)
     result |= FE_DIVBYZERO;
-  if (pflags & PR_FP_EXC_RES) 
+  if (pflags & PR_FP_EXC_RES)
     result |= FE_INEXACT;
 
   if (excepts & FE_INEXACT)
index 7940967..239b821 100644 (file)
@@ -101,7 +101,7 @@ int pthread_cancel(pthread_t thread)
   /* If the thread has registered an extrication interface, then
      invoke the interface. If it returns 1, then we succeeded in
      dequeuing the thread from whatever waiting object it was enqueued
-     with. In that case, it is our responsibility to wake it up. 
+     with. In that case, it is our responsibility to wake it up.
      And also to set the p_woken_by_cancel flag so the woken thread
      can tell that it was woken by cancellation. */
 
@@ -122,7 +122,7 @@ int pthread_cancel(pthread_t thread)
 
   if (dorestart)
     restart(th);
-  else 
+  else
     kill(pid, __pthread_sig_cancel);
 
   return 0;
index 94b7c08..76779da 100644 (file)
@@ -8,15 +8,15 @@
 ** debugging on, add -DDEBUG_PT to CFLAGS. It was added to the original
 ** distribution of linuxthreads.
 **
-** This program is free software; you can redistribute it and/or        
-** modify it under the terms of the GNU Library General Public License  
-** as published by the Free Software Foundation; either version 2       
-** of the License, or (at your option) any later version.               
-**                                                                      
-** This program is distributed in the hope that it will be useful,      
-** but WITHOUT ANY WARRANTY; without even the implied warranty of       
-** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        
-** GNU Library General Public License for more details.                 
+** This program is free software; you can redistribute it and/or
+** modify it under the terms of the GNU Library General Public License
+** as published by the Free Software Foundation; either version 2
+** of the License, or (at your option) any later version.
+**
+** This program is distributed in the hope that it will be useful,
+** but WITHOUT ANY WARRANTY; without even the implied warranty of
+** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+** GNU Library General Public License for more details.
 **
 ****************************************************************************/
 
index 96edbf9..38290a5 100644 (file)
@@ -34,7 +34,7 @@
 #include <bits/uClibc_locale.h>
 #endif /* __UCLIBC_HAS_XLOCALE__ */
 
-/* Use a funky version in a probably vein attempt at preventing gdb 
+/* Use a funky version in a probably vein attempt at preventing gdb
  * from dlopen()'ing glibc's libthread_db library... */
 #define STRINGIFY(s) STRINGIFY2 (s)
 #define STRINGIFY2(s) #s
index 250b471..a46d0b6 100644 (file)
@@ -151,7 +151,7 @@ int pthread_join(pthread_t thread_id, void ** thread_return)
   /* If not terminated yet, suspend ourselves. */
   if (! th->p_terminated) {
     /* Register extrication interface */
-    __pthread_set_own_extricate_if(self, &extr); 
+    __pthread_set_own_extricate_if(self, &extr);
     if (!(THREAD_GETMEM(self, p_canceled)
        && THREAD_GETMEM(self, p_cancelstate) == PTHREAD_CANCEL_ENABLE))
       th->p_joining = self;
@@ -160,7 +160,7 @@ int pthread_join(pthread_t thread_id, void ** thread_return)
     __pthread_unlock(&handle->h_lock);
 
     if (already_canceled) {
-      __pthread_set_own_extricate_if(self, 0); 
+      __pthread_set_own_extricate_if(self, 0);
       __pthread_do_exit(PTHREAD_CANCELED, CURRENT_STACK_FRAME);
     }
 
@@ -168,7 +168,7 @@ int pthread_join(pthread_t thread_id, void ** thread_return)
     suspend(self);
   PDEBUG("after suspend\n");
     /* Deregister extrication interface */
-    __pthread_set_own_extricate_if(self, 0); 
+    __pthread_set_own_extricate_if(self, 0);
 
     /* This is a cancellation point */
     if (THREAD_GETMEM(self, p_woken_by_cancel)
index 2af743b..69fdd1c 100644 (file)
@@ -206,7 +206,7 @@ int attribute_noreturn __pthread_manager(void *arg)
         pthread_handle_free(request.req_args.free.thread_id);
         break;
       case REQ_PROCESS_EXIT:
-        PDEBUG("got REQ_PROCESS_EXIT from %d, exit code = %d\n", 
+        PDEBUG("got REQ_PROCESS_EXIT from %d, exit code = %d\n",
         request.req_thread, request.req_args.exit.code);
         pthread_handle_exit(request.req_thread,
                             request.req_args.exit.code);
@@ -414,7 +414,7 @@ static int pthread_allocate_stack(const pthread_attr_t *attr,
        {
          stacksize = attr->__stacksize;
        }
-      
+
       /* malloc a stack - memory from the bottom up */
       if ((new_thread_bottom = malloc(stacksize)) == NULL)
        {
@@ -430,7 +430,7 @@ static int pthread_allocate_stack(const pthread_attr_t *attr,
        *
        *               ^ +------------------------+
        *               | |  pthread_descr struct  |
-       *               | +------------------------+  <- new_thread 
+       *               | +------------------------+  <- new_thread
        * malloc block  | |                        |
        *               | |  thread stack          |
        *               | |                        |
@@ -443,18 +443,18 @@ static int pthread_allocate_stack(const pthread_attr_t *attr,
       new_thread = ((pthread_descr) ((int)(new_thread_bottom + stacksize) & -sizeof(void*))) - 1;
       guardaddr = NULL;
       guardsize = 0;
-      
+
       PDEBUG("thread stack: bos=%p, tos=%p\n", new_thread_bottom, new_thread);
-      
+
       /* check the initial thread stack boundaries so they don't overlap */
       NOMMU_INITIAL_THREAD_BOUNDS((char *) new_thread, (char *) new_thread_bottom);
-      
-      PDEBUG("initial stack: bos=%p, tos=%p\n", __pthread_initial_thread_bos, 
+
+      PDEBUG("initial stack: bos=%p, tos=%p\n", __pthread_initial_thread_bos,
             __pthread_initial_thread_tos);
-      
+
       /* on non-MMU systems we always have non-standard stack frames */
       __pthread_nonstandard_stacks = 1;
-      
+
 #endif /* __ARCH_USE_MMU__ */
     }
 
@@ -567,7 +567,7 @@ static int pthread_handle_create(pthread_t *thread, const pthread_attr_t *attr,
   /* ******************************************************** */
   /*  This code was moved from below to cope with running threads
    *  on uClinux systems.  See comment below...
-   * Insert new thread in doubly linked list of active threads */ 
+   * Insert new thread in doubly linked list of active threads */
   new_thread->p_prevlive = __pthread_main_thread;
   new_thread->p_nextlive = __pthread_main_thread->p_nextlive;
   __pthread_main_thread->p_nextlive->p_prevlive = new_thread;
@@ -640,9 +640,9 @@ static int pthread_handle_create(pthread_t *thread, const pthread_attr_t *attr,
     }
   /* Check if cloning succeeded */
   if (pid == -1) {
-    /******************************************************** 
+    /********************************************************
      * Code inserted to remove the thread from our list of active
-     * threads in case of failure (needed to cope with uClinux), 
+     * threads in case of failure (needed to cope with uClinux),
      * See comment below. */
     new_thread->p_nextlive->p_prevlive = new_thread->p_prevlive;
     new_thread->p_prevlive->p_nextlive = new_thread->p_nextlive;
index bb393ef..2a7b40a 100644 (file)
@@ -92,7 +92,7 @@ int __old_sem_wait(old_sem_t * sem)
 
     while (1) {
        /* Register extrication interface */
-       __pthread_set_own_extricate_if(self, &extr); 
+       __pthread_set_own_extricate_if(self, &extr);
        do {
             oldstatus = sem->sem_status;
             if ((oldstatus & 1) && (oldstatus != 1))
@@ -105,12 +105,12 @@ int __old_sem_wait(old_sem_t * sem)
        while (! sem_compare_and_swap(sem, oldstatus, newstatus));
        if (newstatus & 1) {
            /* We got the semaphore. */
-         __pthread_set_own_extricate_if(self, 0); 
+         __pthread_set_own_extricate_if(self, 0);
            return 0;
        }
        /* Wait for sem_post or cancellation */
        suspend(self);
-       __pthread_set_own_extricate_if(self, 0); 
+       __pthread_set_own_extricate_if(self, 0);
 
        /* This is a cancellation point */
        if (self->p_canceled && self->p_cancelstate == PTHREAD_CANCEL_ENABLE) {
index 53b5314..35de4b7 100644 (file)
@@ -386,7 +386,7 @@ static int *__libc_multiple_threads_ptr;
     startup of the C library.  */
 void __pthread_initialize_minimal(void)
 {
-    /* If we have special thread_self processing, initialize 
+    /* If we have special thread_self processing, initialize
      * that for the main thread now.  */
 #ifdef INIT_THREAD_SELF
     INIT_THREAD_SELF(&__pthread_initial_thread, 0);
@@ -434,7 +434,7 @@ static void pthread_initialize(void)
 
  {                        /* uClibc-specific stdio initialization for threads. */
         FILE *fp;
-        
+
         _stdio_user_locking = 0;       /* 2 if threading not initialized */
         for (fp = _stdio_openlist; fp != NULL; fp = fp->__nextopen) {
                 if (fp->__user_locking != 1) {
@@ -458,7 +458,7 @@ static void pthread_initialize(void)
   }
 #else
   /* For non-MMU assume __pthread_initial_thread_tos at upper page boundary, and
-   * __pthread_initial_thread_bos at address 0. These bounds are refined as we 
+   * __pthread_initial_thread_bos at address 0. These bounds are refined as we
    * malloc other stack frames such that they don't overlap. -StS
    */
   __pthread_initial_thread_tos =
@@ -674,7 +674,7 @@ pthread_t pthread_self(void)
   return THREAD_GETMEM(self, p_tid);
 }
 libpthread_hidden_def (pthread_self)
-    
+
 int pthread_equal(pthread_t thread1, pthread_t thread2)
 {
   return thread1 == thread2;
@@ -820,7 +820,7 @@ static void pthread_handle_sigcancel(int sig)
 {
   pthread_descr self = thread_self();
   sigjmp_buf * jmpbuf;
-  
+
 
   if (self == &__pthread_manager_thread)
     {
index e25ab3e..eaf71e7 100644 (file)
@@ -60,7 +60,7 @@ rwlock_add_to_list(pthread_descr self, pthread_rwlock_t *rwlock)
 {
   pthread_readlock_info *info = self->p_readlock_free;
 
-  if (info != NULL) 
+  if (info != NULL)
     self->p_readlock_free = info->pr_next;
   else
     info = malloc(sizeof *info);
@@ -100,7 +100,7 @@ rwlock_remove_from_list(pthread_descr self, pthread_rwlock_t *rwlock)
          return info;
        }
     }
-  
+
   return NULL;
 }
 
@@ -137,7 +137,7 @@ rwlock_can_rdlock(pthread_rwlock_t *rwlock, int have_lock_already)
  * This function helps support brain-damaged recursive read locking
  * semantics required by Unix 98, while maintaining write priority.
  * This basically determines whether this thread already holds a read lock
- * already. It returns 1 if so, otherwise it returns 0.  
+ * already. It returns 1 if so, otherwise it returns 0.
  *
  * If the thread has any ``untracked read locks'' then it just assumes
  * that this lock is among them, just to be safe, and returns 1.
@@ -259,7 +259,7 @@ pthread_rwlock_rdlock (pthread_rwlock_t *rwlock)
       else
        self->p_untracked_readlock_count++;
     }
-  
+
   return 0;
 }
 
@@ -277,7 +277,7 @@ pthread_rwlock_tryrdlock (pthread_rwlock_t *rwlock)
   __pthread_lock (&rwlock->__rw_lock, self);
 
   /* 0 is passed to here instead of have_lock_already.
-     This is to meet Single Unix Spec requirements: 
+     This is to meet Single Unix Spec requirements:
      if writers are waiting, pthread_rwlock_tryrdlock
      does not acquire a read lock, even if the caller has
      one or more read locks already. */
@@ -300,7 +300,7 @@ pthread_rwlock_tryrdlock (pthread_rwlock_t *rwlock)
            self->p_untracked_readlock_count++;
        }
     }
-  
+
   return retval;
 }
 
index cf49bc7..24c81d4 100644 (file)
@@ -115,7 +115,7 @@ void internal_function __pthread_lock(struct _pthread_fastlock * lock,
 
     lock->__spinlock += (spin_count - lock->__spinlock) / 8;
   }
-#endif 
+#endif
 
 again:
 
index ea48813..bd2c401 100644 (file)
@@ -26,7 +26,7 @@
 
 /* Spinlock implementation; required.  */
 
-/* The SH5 does not have a suitable test-and-set instruction (SWAP only 
+/* The SH5 does not have a suitable test-and-set instruction (SWAP only
    operates on an aligned quad word). So we use the SH4 version instead.
    This must be seperately compiled in SHcompact mode, so it cannot be
    inline. */
index 8bbaf6f..fa10c7b 100644 (file)
@@ -30,7 +30,7 @@ int
 __pthread_spin_lock (pthread_spinlock_t *lock)
 {
   int *p = (int *) lock;
-  
+
   while (__builtin_expect (__sync_val_compare_and_swap (p, 0, 1), 0))
     {
       /* Spin without using the atomic instruction.  */
index f81c229..92619e5 100644 (file)
@@ -40,7 +40,7 @@ extern int __cxa_atexit (void (*func) (void *), void *arg, void *d);
 # define __uselocale(x) ((void)0)
 #endif
 
-/* Use a funky version in a probably vein attempt at preventing gdb 
+/* Use a funky version in a probably vein attempt at preventing gdb
  * from dlopen()'ing glibc's libthread_db library... */
 #define STRINGIFY(s) STRINGIFY2 (s)
 #define STRINGIFY2(s) #s
index 817cf59..6a53da2 100644 (file)
@@ -1,9 +1,9 @@
-/* HP-PARISC macro definitions for mutexes, thread-specific data 
+/* HP-PARISC macro definitions for mutexes, thread-specific data
    and parameters for malloc.
    Copyright (C) 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Carlos O'Donell <carlos@baldric.uwo.ca>, 2003.
-   
+
    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
@@ -43,7 +43,7 @@ __libc_lock_define (typedef, mutex_t)
 #  define mutex_unlock(m)      \
        __libc_maybe_call (__pthread_mutex_unlock, (m), \
                        (((m)->__m_lock.__spinlock = __LT_SPINLOCK_INIT), (*(int *)(m))) )
-       
+
 /* This is defined by newer gcc version unique for each module.  */
 extern void *__dso_handle __attribute__ ((__weak__));
 
index 2e9a5cb..bd1dd29 100644 (file)
@@ -12,9 +12,9 @@ void login (const struct utmp *entry)
 
     utmpname(_PATH_UTMP);
     setutent();
-#if _HAVE_UT_TYPE - 0 
+#if _HAVE_UT_TYPE - 0
     copy.ut_type = USER_PROCESS;
-#endif  
+#endif
 #if _HAVE_UT_PID - 0
     copy.ut_pid = getpid();
 #endif
index e2896b5..3c61540 100644 (file)
@@ -10,7 +10,7 @@ main (int argc, char *argv[])
   char *cp;
 
   cp = crypt ("Hello world!", salt);
-  if (strcmp ("$1$saltstri$YMyguxXMBpd2TEZ.vS/3q1", cp)) { 
+  if (strcmp ("$1$saltstri$YMyguxXMBpd2TEZ.vS/3q1", cp)) {
       fprintf(stderr, "Failed md5 crypt test!\n");
       return EXIT_FAILURE;
   }
index 3b33874..19cf2fb 100644 (file)
@@ -24,7 +24,7 @@ int main(void)
        int fd, i;
        const char *ethers;
        struct stat statb;
-       
+
        if ((fd = open(ETHER_FILE_NAME, O_RDONLY)) == -1) {
                perror ("Cannot open file");
                exit(1);
@@ -35,14 +35,14 @@ int main(void)
                exit(1);
        }
        ethers = mmap(NULL, statb.st_size, PROT_READ, MAP_SHARED, fd, 0);
-       
+
        if (ethers == MAP_FAILED) {
                perror("File mapping failed");
                exit(1);
-       }               
+       }
 
        ether_line(ethers, &addr, hostname);
-       
+
        for (i = 0; i < 6; i++) {
                printf("%02x", addr.ether_addr_octet[i]);
                if (i < 5)
index 14b5a43..6b6e10c 100644 (file)
@@ -14,7 +14,7 @@ int main(void)
        char host[ETHER_LINE_LEN];
        int i;
        int res = ether_hostton("teeth", &addr);
-       
+
        if (res)
                return 1;
 
index d638568..ca7c5f9 100644 (file)
@@ -67,7 +67,7 @@ int test2(void)
        } else {
                free(ptr);
        }
-       
+
        ptr = malloc(100);
        ptr = realloc(ptr, 0);
        if (ptr) {
index caf08a9..42707d2 100644 (file)
@@ -27,7 +27,7 @@ int main(void)
        free(y);
        printf("about to free(0)\n");
        free(0);
-       
+
        x=malloc(13);
        printf("x = %p\n", x);
        memcpy(x, "Small string", 13);
@@ -37,8 +37,8 @@ int main(void)
        memcpy(y, "********** Larger string **********", 36);
        printf("0x%p test string2: %s\n", y, (char *)y);
        free(y);
-       
-       
+
+
        printf("Allocate 100 nodes 500 bytes each\n");
        save = 0;
        for (i=0; i<100; i++) {
@@ -50,14 +50,14 @@ int main(void)
                lp->next = save;
                save = lp;
        }
-       
+
        printf("freeing 100 nodes\n");
        while (save) {
                lp = save;
                save = save->next;
                free(lp);
        }
-       
+
        printf("try realloc 100 times \n");
        lp = 0;
        for (i=1; i<=100; i++) {
@@ -71,7 +71,7 @@ int main(void)
        void *unused_ret = realloc(lp, 0);
        (void) unused_ret;
        }
-       
+
        printf("Allocate another 100 nodes 600 bytes each\n");
        save = 0;
        for (i=0; i<100; i++) {
@@ -83,14 +83,14 @@ int main(void)
                lp->next = save;
                save = lp;
        }
-       
+
        printf("freeing 100 nodes\n");
        while (save) {
                lp = save;
                save = save->next;
                free(lp);
        }
-       
+
 
        printf("alloc test PASSED\n");
        exit(0);
index 6419510..0b62665 100644 (file)
@@ -1,6 +1,6 @@
 #include <stdlib.h>
 #define REPS (100000)
-int sizes[] = { 
+int sizes[] = {
     100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
     100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
     100000, 1024, 42000, 350, 100, 80, 3 ,3,3,3,3,3,3,3,3,3,3,3,3,50,
index be63129..c9c2c8b 100644 (file)
@@ -4182,14 +4182,14 @@ round_test (void)
   /* The result can only be represented in long double.  */
   TEST_f_f (round, 4503599627370495.5L, 4503599627370496.0L);
   TEST_f_f (round, 4503599627370496.25L, 4503599627370496.0L);
-  TEST_f_f (round, 4503599627370496.5L, 4503599627370497.0L); 
+  TEST_f_f (round, 4503599627370496.5L, 4503599627370497.0L);
   TEST_f_f (round, 4503599627370496.75L, 4503599627370497.0L);
-  TEST_f_f (round, 4503599627370497.5L, 4503599627370498.0L);  
+  TEST_f_f (round, 4503599627370497.5L, 4503599627370498.0L);
 
-  TEST_f_f (round, -4503599627370495.5L, -4503599627370496.0L); 
-  TEST_f_f (round, -4503599627370496.25L, -4503599627370496.0L); 
+  TEST_f_f (round, -4503599627370495.5L, -4503599627370496.0L);
+  TEST_f_f (round, -4503599627370496.25L, -4503599627370496.0L);
   TEST_f_f (round, -4503599627370496.5L, -4503599627370497.0L);
-  TEST_f_f (round, -4503599627370496.75L, -4503599627370497.0L); 
+  TEST_f_f (round, -4503599627370496.75L, -4503599627370497.0L);
   TEST_f_f (round, -4503599627370497.5L, -4503599627370498.0L);
 
   TEST_f_f (round, 9007199254740991.5L, 9007199254740992.0L);
@@ -4640,7 +4640,7 @@ trunc_test (void)
   TEST_f_f (trunc, 10141204801825835211973625643008.25L, 10141204801825835211973625643008.0L);
   TEST_f_f (trunc, 10141204801825835211973625643008.5L, 10141204801825835211973625643008.0L);
   TEST_f_f (trunc, 10141204801825835211973625643008.75L, 10141204801825835211973625643008.0L);
-  TEST_f_f (trunc, 10141204801825835211973625643009.5L, 10141204801825835211973625643009.0L); 
+  TEST_f_f (trunc, 10141204801825835211973625643009.5L, 10141204801825835211973625643009.0L);
 #endif
 
   END (trunc);
index 399fb90..04c1953 100644 (file)
@@ -6,6 +6,6 @@ int main(void) {
     double d1, d2;
     d1 = 0.6;  d2 = rint(d1);
     printf("d1 = %f, d2 = %f\n", d1, d2);
-    return 0;                            
+    return 0;
 }
 
index 9e8be98..f8b030e 100644 (file)
@@ -275,7 +275,7 @@ do_test (void)
       != GLOB_ABORTED)
     {
       puts ("glob did not fail with GLOB_ABORTED");
-      exit (EXIT_FAILURE); 
+      exit (EXIT_FAILURE);
     }
 
   globfree (&gl);
@@ -287,7 +287,7 @@ do_test (void)
   if (glob ("dir2/*", GLOB_DOOFFS, NULL, &gl) != GLOB_NOMATCH)
     {
       puts ("glob did not fail with GLOB_NOMATCH");
-      exit (EXIT_FAILURE); 
+      exit (EXIT_FAILURE);
     }
 
   globfree (&gl);
index 9cf30aa..49af18d 100644 (file)
@@ -48,13 +48,13 @@ test_thread (void *ms_param)
        status = pthread_cond_timedwait(&foo.cond, &foo.mutex, &timeout);
     }
     pthread_mutex_unlock(&foo.mutex);
-    
+
     /* post the main event */
     pthread_mutex_lock(&main_event.mutex);
     main_event.flag = 1;
     pthread_cond_signal(&main_event.cond);
     pthread_mutex_unlock(&main_event.mutex);
-    
+
     /* that's it, bye */
     return (void*) status;
 }
@@ -95,7 +95,7 @@ main (void)
 
          printf ("count = %lu\n", count);
       }
-      
+
       usleep (10);
   }
 
index 3be8680..3992c26 100644 (file)
@@ -1950,7 +1950,7 @@ main(int argc, char** argv)
                        else
 #endif
                                fun = "regexec";
-                       
+
                        for (i = 0; i < elementsof(match); i++)
                                match[i] = state.NOMATCH;
 
index 33431fa..b11ac7b 100644 (file)
@@ -30,7 +30,7 @@ int n_x = 6;
 static int g_counter = 0;
 
 static int
-f (void) 
+f (void)
 {
   static int counter = 0;
   static int way_point1 = 3;
index e959b49..5b43a9b 100644 (file)
@@ -10,7 +10,7 @@ const char *strings[]={
        "10000000", "100000000", "1000000000",
 
        /* negative */
-       "-0", "-1", "-10", 
+       "-0", "-1", "-10",
        "-100", "-1000", "-10000", "-100000", "-1000000",
        "-10000000", "-100000000", "-1000000000",
 
index 647b8c1..ac1b901 100644 (file)
@@ -1089,7 +1089,7 @@ test_memcmp (void)
 {
   int i, cnt = 1;
   char one[21], two[21];
-  
+
   it = "memcmp";
   check(memcmp("a", "a", 1) == 0, cnt++);      /* Identity. */
   check(memcmp("abc", "abc", 3) == 0, cnt++);  /* Multicharacter. */
index c97c4f5..a4d68d5 100644 (file)
@@ -4,7 +4,7 @@
 
 /* We use this instead of memcmp because some broken C libraries
  * add additional nonstandard fields to struct tm... */
+
 int tm_cmp(struct tm tm1, struct tm tm2)
 {
        return  tm1.tm_sec  != tm2.tm_sec  ||