Browse Source

- trim any trailing whitespace

Bernhard Reutner-Fischer 16 years ago
parent
commit
1f020b1786
100 changed files with 458 additions and 458 deletions
  1. 1 1
      extra/config/lxdialog/menubox.c
  2. 18 18
      extra/locale/gen_collate.c
  3. 2 2
      extra/locale/gen_ldc.c
  4. 4 4
      extra/locale/gen_locale.c
  5. 2 2
      extra/locale/gen_wc8bit.c
  6. 3 3
      extra/locale/gen_wctype.c
  7. 1 1
      include/_lfs_64.h
  8. 2 2
      include/arpa/nameser_compat.h
  9. 1 1
      include/assert.h
  10. 1 1
      include/math.h
  11. 1 1
      include/net/if_ppp.h
  12. 1 1
      include/netdb.h
  13. 5 5
      include/obstack.h
  14. 5 5
      include/regex.h
  15. 45 45
      include/rpc/key_prot.h
  16. 5 5
      include/rpc/rpc_des.h
  17. 1 1
      include/scsi/scsi_ioctl.h
  18. 1 1
      include/stdint.h
  19. 1 1
      include/sys/personality.h
  20. 8 8
      ldso/ldso/bfin/dl-inlines.h
  21. 1 1
      ldso/ldso/bfin/dl-startup.h
  22. 1 1
      ldso/ldso/bfin/dl-sysdep.h
  23. 6 6
      ldso/ldso/bfin/elfinterp.c
  24. 7 7
      ldso/ldso/frv/dl-inlines.h
  25. 2 2
      ldso/ldso/frv/dl-sysdep.h
  26. 6 6
      ldso/ldso/frv/elfinterp.c
  27. 1 1
      ldso/ldso/m68k/dl-sysdep.h
  28. 1 1
      ldso/ldso/powerpc/dl-sysdep.h
  29. 2 2
      ldso/ldso/powerpc/elfinterp.c
  30. 4 4
      ldso/ldso/sparc/dl-sysdep.h
  31. 1 1
      ldso/ldso/xtensa/dl-startup.h
  32. 3 3
      libc/inet/getaddrinfo.c
  33. 1 1
      libc/inet/getproto.c
  34. 1 1
      libc/inet/if_index.c
  35. 1 1
      libc/inet/ntop.c
  36. 1 1
      libc/inet/rpc/clnt_perror.c
  37. 11 11
      libc/inet/rpc/rcmd.c
  38. 3 3
      libc/misc/ctype/ctype.c
  39. 1 1
      libc/misc/dirent/dirstream.h
  40. 1 1
      libc/misc/dirent/scandir.c
  41. 2 2
      libc/misc/dirent/scandir64.c
  42. 3 3
      libc/misc/glob/glob-susv3.c
  43. 1 1
      libc/misc/glob/glob64-susv3.c
  44. 5 5
      libc/misc/gnu/obstack.c
  45. 2 2
      libc/misc/internals/tempname.h
  46. 57 57
      libc/misc/locale/locale.c
  47. 3 3
      libc/misc/mntent/mntent.c
  48. 11 11
      libc/misc/regex/regcomp.c
  49. 3 3
      libc/misc/regex/regex_internal.c
  50. 1 1
      libc/misc/regex/regex_internal.h
  51. 22 22
      libc/misc/regex/regex_old.c
  52. 5 5
      libc/misc/regex/regexec.c
  53. 2 2
      libc/misc/search/_lsearch.c
  54. 1 1
      libc/misc/search/_tsearch.c
  55. 1 1
      libc/misc/ttyent/getttyent.c
  56. 103 103
      libc/misc/wchar/wchar.c
  57. 2 2
      libc/misc/wordexp/wordexp.c
  58. 1 1
      libc/signal/allocrtsig.c
  59. 1 1
      libc/signal/sigaction.c
  60. 1 1
      libc/signal/sigjmp.c
  61. 4 4
      libc/stdio/_fpmaxtostr.c
  62. 1 1
      libc/stdio/_uintmaxtostr.c
  63. 13 13
      libc/stdio/_vfprintf.c
  64. 1 1
      libc/stdio/fdopen.c
  65. 1 1
      libc/stdio/fmemopen.c
  66. 1 1
      libc/stdio/fread.c
  67. 1 1
      libc/stdio/fseeko.c
  68. 6 6
      libc/stdio/old_vfprintf.c
  69. 1 1
      libc/stdio/open_memstream.c
  70. 1 1
      libc/stdio/remove.c
  71. 1 1
      libc/stdlib/erand48_r.c
  72. 1 1
      libc/stdlib/getenv.c
  73. 1 1
      libc/stdlib/grantpt.c
  74. 1 1
      libc/stdlib/jrand48_r.c
  75. 1 1
      libc/stdlib/malloc-simple/calloc.c
  76. 1 1
      libc/stdlib/malloc-simple/free.c
  77. 1 1
      libc/stdlib/malloc-simple/malloc.c
  78. 1 1
      libc/stdlib/malloc-simple/memalign.c
  79. 1 1
      libc/stdlib/malloc-simple/realloc.c
  80. 1 1
      libc/stdlib/malloc-standard/malloc.h
  81. 1 1
      libc/stdlib/malloc/heap_alloc.c
  82. 1 1
      libc/stdlib/malloc/heap_alloc_at.c
  83. 1 1
      libc/stdlib/malloc/heap_free.c
  84. 1 1
      libc/stdlib/nrand48_r.c
  85. 1 1
      libc/stdlib/ptsname.c
  86. 1 1
      libc/stdlib/random_r.c
  87. 2 2
      libc/stdlib/stdlib.c
  88. 1 1
      libc/stdlib/system.c
  89. 1 1
      libc/string/__xpg_strerror_r.c
  90. 1 1
      libc/string/cris/memcopy.h
  91. 4 4
      libc/string/cris/memcpy.c
  92. 1 1
      libc/string/cris/memmove.c
  93. 4 4
      libc/string/cris/memset.c
  94. 1 1
      libc/string/ffs.c
  95. 1 1
      libc/string/i386/strncat.c
  96. 1 1
      libc/string/ia64/softpipe.h
  97. 1 1
      libc/string/memrchr.c
  98. 1 1
      libc/string/powerpc/memcpy.c
  99. 1 1
      libc/string/powerpc/memmove.c
  100. 2 2
      libc/string/powerpc/memset.c

+ 1 - 1
extra/config/lxdialog/menubox.c

@@ -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).

+ 18 - 18
extra/locale/gen_collate.c

@@ -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);

+ 2 - 2
extra/locale/gen_ldc.c

@@ -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 */

+ 4 - 4
extra/locale/gen_locale.c

@@ -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;

+ 2 - 2
extra/locale/gen_wc8bit.c

@@ -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];
 

+ 3 - 3
extra/locale/gen_wctype.c

@@ -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++) {

+ 1 - 1
include/_lfs_64.h

@@ -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

+ 2 - 2
include/arpa/nameser_compat.h

@@ -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

+ 1 - 1
include/assert.h

@@ -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.

+ 1 - 1
include/math.h

@@ -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

+ 1 - 1
include/net/if_ppp.h

@@ -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

+ 1 - 1
include/netdb.h

@@ -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__

+ 5 - 5
include/obstack.h

@@ -109,7 +109,7 @@ Summary:
 #ifdef __cplusplus
 extern "C" {
 #endif
-
+
 /* 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
-
+
 #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;
-
+
 /* 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)
-
+
 #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); })
-
+
 #else /* not __GNUC__ or not __STDC__ */
 
 # define obstack_object_size(h) \

+ 5 - 5
include/regex.h

@@ -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;
-
+
 /* 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]]] */
-
+
 /* 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;
-
+
 /* 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;
-
+
 /* 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;
-
+
 /* Declarations for routines.  */
 
 /* To avoid duplicating every routine declaration -- once with a

+ 45 - 45
include/rpc/key_prot.h

@@ -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 */

+ 5 - 5
include/rpc/rpc_des.h

@@ -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

+ 1 - 1
include/scsi/scsi_ioctl.h

@@ -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.  */

+ 1 - 1
include/stdint.h

@@ -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.  */

+ 1 - 1
include/sys/personality.h

@@ -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,

+ 8 - 8
ldso/ldso/bfin/dl-inlines.h

@@ -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))

+ 1 - 1
ldso/ldso/bfin/dl-startup.h

@@ -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.

+ 1 - 1
ldso/ldso/bfin/dl-sysdep.h

@@ -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

+ 6 - 6
ldso/ldso/bfin/elfinterp.c

@@ -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");

+ 7 - 7
ldso/ldso/frv/dl-inlines.h

@@ -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;
 }
 

+ 2 - 2
ldso/ldso/frv/dl-sysdep.h

@@ -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

+ 6 - 6
ldso/ldso/frv/elfinterp.c

@@ -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)

+ 1 - 1
ldso/ldso/m68k/dl-sysdep.h

@@ -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>
  */
 

+ 1 - 1
ldso/ldso/powerpc/dl-sysdep.h

@@ -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;

+ 2 - 2
ldso/ldso/powerpc/elfinterp.c

@@ -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;
 

+ 4 - 4
ldso/ldso/sparc/dl-sysdep.h

@@ -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

+ 1 - 1
ldso/ldso/xtensa/dl-startup.h

@@ -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__ (

+ 3 - 3
libc/inet/getaddrinfo.c

@@ -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;

+ 1 - 1
libc/inet/getproto.c

@@ -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,

+ 1 - 1
libc/inet/if_index.c

@@ -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);

+ 1 - 1
libc/inet/ntop.c

@@ -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.
  */

+ 1 - 1
libc/inet/rpc/clnt_perror.c

@@ -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;
 

+ 11 - 11
libc/inet/rpc/rcmd.c

@@ -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;
 	}

+ 3 - 3
libc/misc/ctype/ctype.c

@@ -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,

+ 1 - 1
libc/misc/dirent/dirstream.h

@@ -60,7 +60,7 @@ struct __dirstream {
 
   /* total size of buffer */
   size_t dd_max;
- 
+
   /* lock */
   __UCLIBC_MUTEX(dd_lock);
 };				/* stream data from opendir() */

+ 1 - 1
libc/misc/dirent/scandir.c

@@ -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 *))
 {

+ 2 - 2
libc/misc/dirent/scandir64.c

@@ -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 *))
 {

+ 3 - 3
libc/misc/glob/glob-susv3.c

@@ -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

+ 1 - 1
libc/misc/glob/glob64-susv3.c

@@ -16,5 +16,5 @@
 #define globfree(pglob) globfree64 (pglob)
 
 #define __GLOB64    1
-    
+
 #include "glob-susv3.c"

+ 5 - 5
libc/misc/gnu/obstack.c

@@ -154,7 +154,7 @@ struct obstack *_obstack;
   } while (0)
 # endif
 
-
+
 /* 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;
 }
-
+
 /* 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 ();
 }
-
+
 int
 _obstack_memory_used (
      struct obstack *h)
@@ -471,7 +471,7 @@ _obstack_memory_used (
     }
   return nbytes;
 }
-
+
 /* 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);
 }
-
+
 # 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.  */

+ 2 - 2
libc/misc/internals/tempname.h

@@ -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)
 

+ 57 - 57
libc/misc/locale/locale.c

@@ -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)

+ 3 - 3
libc/misc/mntent/mntent.c

@@ -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);

+ 11 - 11
libc/misc/regex/regcomp.c

@@ -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);
-
+
 /* 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
   };
-
+
 /* 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,
 	}
     }
 }
-
+
 /* 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
-
+
 /* 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 */
-
+
 /* 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;
 }
-
+
 #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
-
+
 /* 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;
 }
-
+
 /* 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;
 }
-
+
 /* 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;
 }
-
+
 #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 */
-
+
 /* Functions for binary tree operation.  */
 
 /* Create a tree node.  */

+ 3 - 3
libc/misc/regex/regex_internal.c

@@ -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;
-
+
 /* 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;
     }
 }
-
+
 /* 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];
 }
-
+
 
 /* Add the token TOKEN to dfa->nodes, and return the index of the token.
    Or return -1, if an error will be occured.  */

+ 1 - 1
libc/misc/regex/regex_internal.h

@@ -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)
-
+
 
 typedef enum
 {

+ 22 - 22
libc/misc/regex/regex_old.c

@@ -223,7 +223,7 @@ char *realloc ();
 # ifndef MB_LEN_MAX
 #  define MB_LEN_MAX 1
 # endif
-
+
 /* 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
-
+
 # 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 */
-
+
 /* 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
-
+
 /* 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 */
-
+
 
 #ifdef BYTE
 # define CHAR_T char
@@ -777,7 +777,7 @@ PREFIX(extract_number_and_incr) (destination, source)
 
 # endif /* DEBUG */
 
-
+
 
 /* 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 */
 
-
+
 
 # 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
-
+
 /* 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
   };
-
+
 #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 */
-
+
 #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 */
-
+
 /* 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 */
-
+
 # 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 */
-
+
 # 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 */
-
+
 /* 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
-
+
 
 /* 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
-
+
 /* 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)
-
+
 #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 */
-
+
 /* Subroutine definitions for re_match_2.  */
 
 
@@ -7931,7 +7931,7 @@ PREFIX(bcmp_translate) (s1, s2, len, translate)
     }
   return 0;
 }
-
+
 
 #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
-
+
 /* 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 */
-
+
 /* POSIX.2 functions.  Don't define these for Emacs.  */
 
 #ifndef emacs
@@ -8331,7 +8331,7 @@ strong_alias(__regfree, regfree)
 
 #endif /* not INSIDE_RECURSION */
 
-
+
 #undef STORE_NUMBER
 #undef STORE_NUMBER_AND_INCR
 #undef EXTRACT_NUMBER

+ 5 - 5
libc/misc/regex/regexec.c

@@ -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;
-
+
 /* 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
-
+
 /* 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 */
-
+
 /* 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 */
 
-
+
 /* 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;
 }
 
-
+
 /* Functions for matching context.  */
 
 /* Initialize MCTX.  */

+ 2 - 2
libc/misc/search/_lsearch.c

@@ -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;

+ 1 - 1
libc/misc/search/_tsearch.c

@@ -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

+ 1 - 1
libc/misc/ttyent/getttyent.c

@@ -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

+ 103 - 103
libc/misc/wchar/wchar.c

@@ -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;
 

+ 2 - 2
libc/misc/wordexp/wordexp.c

@@ -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);

+ 1 - 1
libc/signal/allocrtsig.c

@@ -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

+ 1 - 1
libc/signal/sigaction.c

@@ -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,

+ 1 - 1
libc/signal/sigjmp.c

@@ -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;

+ 4 - 4
libc/stdio/_fpmaxtostr.c

@@ -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);

+ 1 - 1
libc/stdio/_uintmaxtostr.c

@@ -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];

+ 13 - 13
libc/stdio/_vfprintf.c

@@ -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))

+ 1 - 1
libc/stdio/fdopen.c

@@ -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)

+ 1 - 1
libc/stdio/fmemopen.c

@@ -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

+ 1 - 1
libc/stdio/fread.c

@@ -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. */

+ 1 - 1
libc/stdio/fseeko.c

@@ -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)
 			) {

+ 6 - 6
libc/stdio/old_vfprintf.c

@@ -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;
 						}

+ 1 - 1
libc/stdio/open_memstream.c

@@ -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

+ 1 - 1
libc/stdio/remove.c

@@ -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)

+ 1 - 1
libc/stdlib/erand48_r.c

@@ -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)

+ 1 - 1
libc/stdlib/getenv.c

@@ -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)
 {

+ 1 - 1
libc/stdlib/grantpt.c

@@ -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;
 

+ 1 - 1
libc/stdlib/jrand48_r.c

@@ -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)

+ 1 - 1
libc/stdlib/malloc-simple/calloc.c

@@ -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.

+ 1 - 1
libc/stdlib/malloc-simple/free.c

@@ -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.

+ 1 - 1
libc/stdlib/malloc-simple/malloc.c

@@ -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.

+ 1 - 1
libc/stdlib/malloc-simple/memalign.c

@@ -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.

+ 1 - 1
libc/stdlib/malloc-simple/realloc.c

@@ -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.

+ 1 - 1
libc/stdlib/malloc-standard/malloc.h

@@ -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;

+ 1 - 1
libc/stdlib/malloc/heap_alloc.c

@@ -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.  */

+ 1 - 1
libc/stdlib/malloc/heap_alloc_at.c

@@ -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! */

+ 1 - 1
libc/stdlib/malloc/heap_free.c

@@ -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);
 	    }
 	}

+ 1 - 1
libc/stdlib/nrand48_r.c

@@ -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)

+ 1 - 1
libc/stdlib/ptsname.c

@@ -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;

+ 1 - 1
libc/stdlib/random_r.c

@@ -121,7 +121,7 @@ static const struct random_poly_info random_poly_info =
 
 
 
-
+
 /* 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

+ 2 - 2
libc/stdlib/stdlib.c

@@ -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)
 

+ 1 - 1
libc/stdlib/system.c

@@ -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
 

+ 1 - 1
libc/string/__xpg_strerror_r.c

@@ -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

+ 1 - 1
libc/string/cris/memcopy.h

@@ -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.  */
 

+ 4 - 4
libc/string/cris/memcpy.c

@@ -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. */
 

+ 1 - 1
libc/string/cris/memmove.c

@@ -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

+ 4 - 4
libc/string/cris/memset.c

@@ -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. */
 

+ 1 - 1
libc/string/ffs.c

@@ -48,7 +48,7 @@ int ffs(int i)
 	for (n = 0 ; i ; ++n) {
 		i >>= 1;
 	}
-	
+
 	return n;
 #endif
 }

+ 1 - 1
libc/string/i386/strncat.c

@@ -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;

+ 1 - 1
libc/string/ia64/softpipe.h

@@ -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

+ 1 - 1
libc/string/memrchr.c

@@ -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) {

+ 1 - 1
libc/string/powerpc/memcpy.c

@@ -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;

+ 1 - 1
libc/string/powerpc/memmove.c

@@ -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;

+ 2 - 2
libc/string/powerpc/memset.c

@@ -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;

Some files were not shown because too many files changed in this diff