Browse Source

- trim any trailing whitespace

Bernhard Reutner-Fischer 17 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
  *    *)  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
  *        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
  *        smarter and works more like other menu systems (just have a look at
  *        it).
  *        it).

+ 18 - 18
extra/locale/gen_collate.c

@@ -62,7 +62,7 @@ typedef struct {
 	int base_idx;				/*  */
 	int base_idx;				/*  */
 
 
 	int undefined_idx;			/*  */
 	int undefined_idx;			/*  */
-	
+
 	int overrides_offset;		/*  */
 	int overrides_offset;		/*  */
 	int multistart_offset;		/*  */
 	int multistart_offset;		/*  */
 } der_locale_t;
 } der_locale_t;
@@ -1094,7 +1094,7 @@ int main(int argc, char **argv)
 		return EXIT_FAILURE;
 		return EXIT_FAILURE;
 	}
 	}
 
 
-	init_locale_list();	
+	init_locale_list();
 
 
 	while (--argc) {
 	while (--argc) {
 		p = (const deps_t *) bsearch(*++argv, deps, sizeof(deps)/sizeof(deps[0]), sizeof(deps[0]), dep_cmp);
 		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;
 				return EXIT_FAILURE;
 			}
 			}
 		}
 		}
-	
+
 		i = p->base_locale;
 		i = p->base_locale;
 		++der_count[i];
 		++der_count[i];
 
 
@@ -1115,7 +1115,7 @@ int main(int argc, char **argv)
 			/* same name as base, so skip after count incremented */
 			/* same name as base, so skip after count incremented */
 			continue;
 			continue;
 		}
 		}
-		
+
 		/* add it to the list.  the main body will catch duplicates */
 		/* add it to the list.  the main body will catch duplicates */
 		lli = (ll_item_t *) xmalloc(sizeof(ll_item_t));
 		lli = (ll_item_t *) xmalloc(sizeof(ll_item_t));
 		lli->prev = lli->next = NULL;
 		lli->prev = lli->next = NULL;
@@ -1202,7 +1202,7 @@ static int old_main(int argc, char **argv)
 		processfile();			/* this does a popfile */
 		processfile();			/* this does a popfile */
 
 
 /* 		twalk(cur_col->root_colitem, print_colnode); */
 /* 		twalk(cur_col->root_colitem, print_colnode); */
-		
+
 		if (next_is_base == 1) {
 		if (next_is_base == 1) {
 			next_is_base = 0;
 			next_is_base = 0;
 		}
 		}
@@ -1264,7 +1264,7 @@ static int old_main(int argc, char **argv)
     return EXIT_SUCCESS;
     return EXIT_SUCCESS;
 }
 }
 
 
-static void error_msg(const char *fmt, ...) 
+static void error_msg(const char *fmt, ...)
 {
 {
 	va_list arg;
 	va_list arg;
 
 
@@ -1289,7 +1289,7 @@ static void pushfile(char *filename)
 	if (fno >= MAX_FNO) {
 	if (fno >= MAX_FNO) {
 		error_msg("file stack size exceeded");
 		error_msg("file stack size exceeded");
 	}
 	}
-					  
+
 	if (!(fstack[++fno] = fopen(fbuf, "r"))) {
 	if (!(fstack[++fno] = fopen(fbuf, "r"))) {
 		--fno;					/* oops */
 		--fno;					/* oops */
 		error_msg("cannot open file %s", fbuf);
 		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 */
 			r = 0;				/* both null */
 		} else {
 		} else {
 			r = (((colitem_t *)n1)->element == NULL) ? -1 : 1;
 			r = (((colitem_t *)n1)->element == NULL) ? -1 : 1;
-		} 
+		}
     }
     }
     return r;
     return r;
 }
 }
@@ -1733,7 +1733,7 @@ static void add_script(const char *s)
 	if (find_section_list_item(s, cur_col)) {
 	if (find_section_list_item(s, cur_col)) {
 		error_msg("attempt to readd script %s", s);
 		error_msg("attempt to readd script %s", s);
 	}
 	}
-	
+
 	l = find_ll_last(cur_col->section_list);
 	l = find_ll_last(cur_col->section_list);
 	insque(new_ll_item(DT_SECTION, new_section(s)), l);
 	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_buffer[index2weight_len] = lli->idx = i++;
 				index2weight_len += index2weight_len_inc;
 				index2weight_len += index2weight_len_inc;
 				add_final_col_index(w->symbol);
 				add_final_col_index(w->symbol);
-				
+
 			} else {
 			} else {
 				assert(lli->data_type & DT_REORDER);
 				assert(lli->data_type & DT_REORDER);
 				r = ll_len( ((section_t *)(lli->data))->itm_list );
 				r = ll_len( ((section_t *)(lli->data))->itm_list );
@@ -2975,7 +2975,7 @@ static void finalize_base(void)
 					continue;
 					continue;
 				}
 				}
 				if (index2weight_len_inc) {
 				if (index2weight_len_inc) {
-					index2ruleidx_buffer[index2ruleidx_len++] = 
+					index2ruleidx_buffer[index2ruleidx_len++] =
 						add_rule((weighted_item_t *)(lli->data));
 						add_rule((weighted_item_t *)(lli->data));
 				}
 				}
 /* 				fprintf(stdout, "%11s: w %6d %6d %s\n", */
 /* 				fprintf(stdout, "%11s: w %6d %6d %s\n", */
@@ -3001,7 +3001,7 @@ static void finalize_base(void)
 				w = (weighted_item_t *)(lli->data);
 				w = (weighted_item_t *)(lli->data);
 				if (find_wi_index_reordered(w->symbol)) { /* reordered symbol so skip on first pass */
 				if (find_wi_index_reordered(w->symbol)) { /* reordered symbol so skip on first pass */
 					if (index2weight_len_inc) {
 					if (index2weight_len_inc) {
-						index2ruleidx_buffer[index2ruleidx_len++] = 
+						index2ruleidx_buffer[index2ruleidx_len++] =
 							add_rule((weighted_item_t *)(lli->data));
 							add_rule((weighted_item_t *)(lli->data));
 					}
 					}
 /* 					fprintf(stdout, "%11s: r %6d %6d %s\n", */
 /* 					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].name = cur_base->name;
 		der_locale_array[der_locale_len].base_idx = base_locale_len;
 		der_locale_array[der_locale_len].base_idx = base_locale_len;
-		
+
 		u16_buf[0] = 1;
 		u16_buf[0] = 1;
 		u16_buf[1] = 0;
 		u16_buf[1] = 0;
 		u16_buf_len = 2;
 		u16_buf_len = 2;
@@ -3511,7 +3511,7 @@ size_t newopt(tbl_item *ut, size_t usize, int shift, table_data *tbl)
 	/* sort */
 	/* sort */
 	nu_val = blocksize;
 	nu_val = blocksize;
 	qsort(ti, numblocks, sizeof(unsigned char *), nu_memcmp);
 	qsort(ti, numblocks, sizeof(unsigned char *), nu_memcmp);
-	
+
 	uniq = 1;
 	uniq = 1;
 	uit[(ti[0]-ut)/blocksize] = 0;
 	uit[(ti[0]-ut)/blocksize] = 0;
 	for (i=1 ; i < numblocks ; i++) {
 	for (i=1 ; i < numblocks ; i++) {
@@ -3687,7 +3687,7 @@ static unsigned int add_rule(weighted_item_t *wi)
 			assert(r < (1 << 14));
 			assert(r < (1 << 14));
 			rbuf[i] = r | rule2val[(int)(w->rule[i])];
 			rbuf[i] = r | rule2val[(int)(w->rule[i])];
 		} else {				/* item */
 		} 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])];
 			rbuf[i] = r | rule2val[(int)(w->rule[i])];
 		}
 		}
 	}
 	}
@@ -3831,7 +3831,7 @@ static void dump_der_locale(int n)
 	DUMPn(base_idx);
 	DUMPn(base_idx);
 
 
 	DUMPn(undefined_idx);
 	DUMPn(undefined_idx);
-	
+
 	DUMPn(overrides_offset);
 	DUMPn(overrides_offset);
 	DUMPn(multistart_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;
 	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)
 static void dump_collate(FILE *fp)
 {
 {
@@ -3901,7 +3901,7 @@ static void dump_collate(FILE *fp)
 		DUMPn(wcs2colidt_offset_low);
 		DUMPn(wcs2colidt_offset_low);
 		DUMPn(wcs2colidt_offset_hi);
 		DUMPn(wcs2colidt_offset_hi);
 	}
 	}
-#undef DUMPn		
+#undef DUMPn
 
 
 
 
 	fprintf(fp, "#define COL_IDX_C     %5d\n", 0);
 	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*/
 	/* collate should be last*/
 	assert(sizeof(__locale_collate_tbl)/sizeof(__locale_collate_tbl[0]) == __lc_collate_data_LEN) ;
 	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");
 	out_u16(lso, __locale_collate_tbl, __lc_collate_data_LEN, "collate_data");
-	
+
 
 
 	{
 	{
 		unsigned char co_buf[__LOCALE_DATA_CATEGORIES] = {
 		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_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");
 	out_size_t(lso, common_tbl_offsets, __LOCALE_DATA_CATEGORIES * 4, "lc_common_tbl_offsets");
 	/* offsets from start of locale_mmap_t */
 	/* offsets from start of locale_mmap_t */
 	/* rows, item_offsets, item_idx, data */
 	/* 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
 #if 0
 	{
 	{
 		p = at_strings;
 		p = at_strings;
-		
+
 		if (!*p) {
 		if (!*p) {
 			printf("no @ strings\n");
 			printf("no @ strings\n");
 			return;
 			return;
 		}
 		}
-		
+
 		do {
 		do {
 			printf("%s\n", p+1);
 			printf("%s\n", p+1);
 			p += 1 + (unsigned char) *p;
 			p += 1 + (unsigned char) *p;
@@ -469,7 +469,7 @@ static void read_locale_list(void)
 			printf("ignoring UTF-8 locale %s\n", ln);
 			printf("ignoring UTF-8 locale %s\n", ln);
 			*line_buf = 0;
 			*line_buf = 0;
 			continue;
 			continue;
-		} else if ((i > 2) && !default_8bit) {	
+		} else if ((i > 2) && !default_8bit) {
 			printf("ignoring 8-bit codeset locale %s\n", ln);
 			printf("ignoring 8-bit codeset locale %s\n", ln);
 			*line_buf = 0;
 			*line_buf = 0;
 			continue;
 			continue;
@@ -503,7 +503,7 @@ static void read_locale_list(void)
 				printf("ignoring UTF-8 locale %s\n", ln);
 				printf("ignoring UTF-8 locale %s\n", ln);
 				*line_buf = 0;
 				*line_buf = 0;
 				continue;
 				continue;
-			} else if ((i > 2) && !default_8bit) {	
+			} else if ((i > 2) && !default_8bit) {
 				printf("ignoring 8-bit codeset locale %s\n", ln);
 				printf("ignoring 8-bit codeset locale %s\n", ln);
 				*line_buf = 0;
 				*line_buf = 0;
 				continue;
 				continue;

+ 2 - 2
extra/locale/gen_wc8bit.c

@@ -182,7 +182,7 @@ int main(int argc, char **argv)
 			char *s0;
 			char *s0;
 			char *s1;
 			char *s1;
 			int n;
 			int n;
-			
+
 			s0 = strrchr(*argv, '/');
 			s0 = strrchr(*argv, '/');
 			if (!s0) {
 			if (!s0) {
 				s0 = *argv;
 				s0 = *argv;
@@ -379,7 +379,7 @@ int main(int argc, char **argv)
 				if ((c != 0) || 1) {
 				if ((c != 0) || 1) {
 					u = towupper(c);
 					u = towupper(c);
 					l = towlower(c);
 					l = towlower(c);
-					
+
 					if (u >= 0x80) u = csd[numsets].w2c[u];
 					if (u >= 0x80) u = csd[numsets].w2c[u];
 					if (l >= 0x80) l = csd[numsets].w2c[l];
 					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",
 				printf("%#8x : towupper glibc %#4x != %#4x mine\n",
 					   c, towupper(c), upper);
 					   c, towupper(c), upper);
 			}
 			}
-				
+
 			if (towlower(c) != lower) {
 			if (towlower(c) != lower) {
 				printf("%#8x : towlower glibc %#4x != %#4x mine   i0 = %d\n",
 				printf("%#8x : towlower glibc %#4x != %#4x mine   i0 = %d\n",
 					   c, towlower(c), lower, i0);
 					   c, towlower(c), lower, i0);
@@ -739,7 +739,7 @@ int main(int argc, char **argv)
 				(unsigned long) RANGE);
 				(unsigned long) RANGE);
 		output_table(fp, "ctype", &cttable);
 		output_table(fp, "ctype", &cttable);
 		output_table(fp, "uplow", &ultable);
 		output_table(fp, "uplow", &ultable);
-	
+
 
 
 #warning fix the upper bound on the upper/lower tables... save 200 bytes or so
 #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);
 		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 */
 	/* sort */
 	nu_val = blocksize;
 	nu_val = blocksize;
 	qsort(ti, numblocks, sizeof(unsigned char *), nu_memcmp);
 	qsort(ti, numblocks, sizeof(unsigned char *), nu_memcmp);
-	
+
 	uniq = 1;
 	uniq = 1;
 	uit[(ti[0]-ut)/blocksize] = 0;
 	uit[(ti[0]-ut)/blocksize] = 0;
 	for (i=1 ; i < numblocks ; i++) {
 	for (i=1 ; i < numblocks ; i++) {

+ 1 - 1
include/_lfs_64.h

@@ -7,7 +7,7 @@
 
 
 #ifdef __UCLIBC_HAS_LFS__
 #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
 #undef _FILE_OFFSET_BITS
 #define _FILE_OFFSET_BITS   64
 #define _FILE_OFFSET_BITS   64
 #endif
 #endif

+ 2 - 2
include/arpa/nameser_compat.h

@@ -1,6 +1,6 @@
 /* Copyright (c) 1983, 1989
 /* Copyright (c) 1983, 1989
  *    The Regents of the University of California.  All rights reserved.
  *    The Regents of the University of California.  All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * modification, are permitted provided that the following conditions
  * are met:
  * are met:
@@ -12,7 +12,7 @@
  * 4. Neither the name of the University nor the names of its contributors
  * 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
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  * 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_VOID_CAST ((expr) ? 0 :					      \
 		       (__assert (__STRING(expr), __FILE__, __LINE__,    \
 		       (__assert (__STRING(expr), __FILE__, __LINE__,    \
 				       __ASSERT_FUNCTION), 0)))
 				       __ASSERT_FUNCTION), 0)))
-  
+
 /* Version 2.4 and later of GCC define a magical variable `__PRETTY_FUNCTION__'
 /* Version 2.4 and later of GCC define a magical variable `__PRETTY_FUNCTION__'
    which contains the name of the function currently being defined.
    which contains the name of the function currently being defined.
    This is broken in G++ before version 2.6.
    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)
      && (!defined __NO_LONG_DOUBLE_MATH || defined __LDBL_COMPAT)
 #  ifdef __LDBL_COMPAT
 #  ifdef __LDBL_COMPAT
 
 
-#   ifdef __USE_ISOC99 
+#   ifdef __USE_ISOC99
 extern float __nldbl_nexttowardf (float __x, long double __y)
 extern float __nldbl_nexttowardf (float __x, long double __y)
 				  __THROW __attribute__ ((__const__));
 				  __THROW __attribute__ ((__const__));
 #    ifdef __REDIRECT_NTH
 #    ifdef __REDIRECT_NTH

+ 1 - 1
include/net/if_ppp.h

@@ -3,7 +3,7 @@
 /*
 /*
  * if_ppp.h - Point-to-Point Protocol definitions.
  * 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
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * 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.
 /* Error status for non-reentrant lookup functions.
    We use a macro to access always the thread-specific `h_errno' variable.
    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. */
    the macro because it needs access to the underlying storage. */
 extern int h_errno;
 extern int h_errno;
 #ifdef __UCLIBC_HAS_THREADS__
 #ifdef __UCLIBC_HAS_THREADS__

+ 5 - 5
include/obstack.h

@@ -109,7 +109,7 @@ Summary:
 #ifdef __cplusplus
 #ifdef __cplusplus
 extern "C" {
 extern "C" {
 #endif
 #endif
-
+
 /* We use subtraction of (char *) 0 instead of casting to int
 /* We use subtraction of (char *) 0 instead of casting to int
    because on word-addressable machines a simple cast to int
    because on word-addressable machines a simple cast to int
    may ignore the byte-within-word field of the pointer.  */
    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_begin_1 ();
 extern int _obstack_memory_used ();
 extern int _obstack_memory_used ();
 #endif
 #endif
-
+
 #if defined __STDC__ && __STDC__
 #if defined __STDC__ && __STDC__
 
 
 /* Do the function-declarations after the structs
 /* 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.  */
 /* Exit value used when `print_and_abort' is used.  */
 extern int obstack_exit_failure;
 extern int obstack_exit_failure;
-
+
 /* Pointer to beginning of object being allocated or to be allocated next.
 /* Pointer to beginning of object being allocated or to be allocated next.
    Note that this might not be the final address of the object
    Note that this might not be the final address of the object
    because a new chunk might be needed to hold the final size.  */
    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_blank_fast(h,n) ((h)->next_free += (n))
 
 
 #define obstack_memory_used(h) _obstack_memory_used (h)
 #define obstack_memory_used(h) _obstack_memory_used (h)
-
+
 #if defined __GNUC__ && defined __STDC__ && __STDC__
 #if defined __GNUC__ && defined __STDC__ && __STDC__
 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
 /* 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
    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)  \
    if (__obj > (void *)__o->chunk && __obj < (void *)__o->chunk_limit)  \
      __o->next_free = __o->object_base = (char *)__obj;			\
      __o->next_free = __o->object_base = (char *)__obj;			\
    else (obstack_free) (__o, __obj); })
    else (obstack_free) (__o, __obj); })
-
+
 #else /* not __GNUC__ or not __STDC__ */
 #else /* not __GNUC__ or not __STDC__ */
 
 
 # define obstack_object_size(h) \
 # 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
    stored in the pattern buffer, so changing this does not affect
    already-compiled regexps.  */
    already-compiled regexps.  */
 extern reg_syntax_t re_syntax_options;
 extern reg_syntax_t re_syntax_options;
-
+
 /* Define combinations of the above bits for the standard possibilities.
 /* Define combinations of the above bits for the standard possibilities.
    (The [[[ comments delimit what gets put into the Texinfo file, so
    (The [[[ comments delimit what gets put into the Texinfo file, so
    don't delete them!)  */
    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_PARENS        | RE_NO_BK_REFS				\
    | RE_NO_BK_VBAR	    | RE_UNMATCHED_RIGHT_PAREN_ORD)
    | RE_NO_BK_VBAR	    | RE_UNMATCHED_RIGHT_PAREN_ORD)
 /* [[[end syntaxes]]] */
 /* [[[end syntaxes]]] */
-
+
 /* Maximum number of duplicates an interval can allow.  Some systems
 /* Maximum number of duplicates an interval can allow.  Some systems
    (erroneously) define this in other header files, but we want our
    (erroneously) define this in other header files, but we want our
    value, so remove any previous define.  */
    value, so remove any previous define.  */
@@ -338,7 +338,7 @@ typedef enum
   REG_ESIZE,		/* Compiled pattern bigger than 2^16 bytes.  */
   REG_ESIZE,		/* Compiled pattern bigger than 2^16 bytes.  */
   REG_ERPAREN		/* Unmatched ) or \); not returned from regcomp.  */
   REG_ERPAREN		/* Unmatched ) or \); not returned from regcomp.  */
 } reg_errcode_t;
 } reg_errcode_t;
-
+
 /* This data structure represents a compiled pattern.  Before calling
 /* This data structure represents a compiled pattern.  Before calling
    the pattern compiler, the fields `buffer', `allocated', `fastmap',
    the pattern compiler, the fields `buffer', `allocated', `fastmap',
    `translate', and `no_sub' can be set.  After the pattern has been
    `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;
 typedef struct re_pattern_buffer regex_t;
-
+
 /* Type for byte offsets within the string.  POSIX mandates this.  */
 /* Type for byte offsets within the string.  POSIX mandates this.  */
 typedef int regoff_t;
 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_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.  */
   regoff_t rm_eo;  /* Byte offset from string's start to substring's end.  */
 } regmatch_t;
 } regmatch_t;
-
+
 /* Declarations for routines.  */
 /* Declarations for routines.  */
 
 
 /* To avoid duplicating every routine declaration -- once with a
 /* To avoid duplicating every routine declaration -- once with a

+ 45 - 45
include/rpc/key_prot.h

@@ -41,7 +41,7 @@
 #endif
 #endif
 /* Copyright (c)  1990, 1991 Sun Microsystems, Inc. */
 /* Copyright (c)  1990, 1991 Sun Microsystems, Inc. */
 
 
-/* 
+/*
  * Compiled from key_prot.x using rpcgen.
  * Compiled from key_prot.x using rpcgen.
  * DO NOT EDIT THIS FILE!
  * DO NOT EDIT THIS FILE!
  * This is NOT source code!
  * This is NOT source code!
@@ -60,33 +60,33 @@ enum keystatus {
 	KEY_SYSTEMERR = 3,
 	KEY_SYSTEMERR = 3,
 };
 };
 typedef enum keystatus keystatus;
 typedef enum keystatus keystatus;
-#ifdef __cplusplus 
+#ifdef __cplusplus
 extern "C" bool_t xdr_keystatus(XDR *, keystatus*);
 extern "C" bool_t xdr_keystatus(XDR *, keystatus*);
-#elif __STDC__ 
+#elif __STDC__
 extern  bool_t xdr_keystatus(XDR *, keystatus*);
 extern  bool_t xdr_keystatus(XDR *, keystatus*);
-#else /* Old Style C */ 
+#else /* Old Style C */
 bool_t xdr_keystatus();
 bool_t xdr_keystatus();
-#endif /* Old Style C */ 
+#endif /* Old Style C */
 
 
 
 
 typedef char keybuf[HEXKEYBYTES];
 typedef char keybuf[HEXKEYBYTES];
-#ifdef __cplusplus 
+#ifdef __cplusplus
 extern "C" bool_t xdr_keybuf(XDR *, keybuf);
 extern "C" bool_t xdr_keybuf(XDR *, keybuf);
-#elif __STDC__ 
+#elif __STDC__
 extern  bool_t xdr_keybuf(XDR *, keybuf);
 extern  bool_t xdr_keybuf(XDR *, keybuf);
-#else /* Old Style C */ 
+#else /* Old Style C */
 bool_t xdr_keybuf();
 bool_t xdr_keybuf();
-#endif /* Old Style C */ 
+#endif /* Old Style C */
 
 
 
 
 typedef char *netnamestr;
 typedef char *netnamestr;
-#ifdef __cplusplus 
+#ifdef __cplusplus
 extern "C" bool_t xdr_netnamestr(XDR *, netnamestr*);
 extern "C" bool_t xdr_netnamestr(XDR *, netnamestr*);
-#elif __STDC__ 
+#elif __STDC__
 extern  bool_t xdr_netnamestr(XDR *, netnamestr*);
 extern  bool_t xdr_netnamestr(XDR *, netnamestr*);
-#else /* Old Style C */ 
+#else /* Old Style C */
 bool_t xdr_netnamestr();
 bool_t xdr_netnamestr();
-#endif /* Old Style C */ 
+#endif /* Old Style C */
 
 
 
 
 struct cryptkeyarg {
 struct cryptkeyarg {
@@ -94,13 +94,13 @@ struct cryptkeyarg {
 	des_block deskey;
 	des_block deskey;
 };
 };
 typedef struct cryptkeyarg cryptkeyarg;
 typedef struct cryptkeyarg cryptkeyarg;
-#ifdef __cplusplus 
+#ifdef __cplusplus
 extern "C" bool_t xdr_cryptkeyarg(XDR *, cryptkeyarg*);
 extern "C" bool_t xdr_cryptkeyarg(XDR *, cryptkeyarg*);
-#elif __STDC__ 
+#elif __STDC__
 extern  bool_t xdr_cryptkeyarg(XDR *, cryptkeyarg*);
 extern  bool_t xdr_cryptkeyarg(XDR *, cryptkeyarg*);
-#else /* Old Style C */ 
+#else /* Old Style C */
 bool_t xdr_cryptkeyarg();
 bool_t xdr_cryptkeyarg();
-#endif /* Old Style C */ 
+#endif /* Old Style C */
 
 
 
 
 struct cryptkeyarg2 {
 struct cryptkeyarg2 {
@@ -109,13 +109,13 @@ struct cryptkeyarg2 {
 	des_block deskey;
 	des_block deskey;
 };
 };
 typedef struct cryptkeyarg2 cryptkeyarg2;
 typedef struct cryptkeyarg2 cryptkeyarg2;
-#ifdef __cplusplus 
+#ifdef __cplusplus
 extern "C" bool_t xdr_cryptkeyarg2(XDR *, cryptkeyarg2*);
 extern "C" bool_t xdr_cryptkeyarg2(XDR *, cryptkeyarg2*);
-#elif __STDC__ 
+#elif __STDC__
 extern  bool_t xdr_cryptkeyarg2(XDR *, cryptkeyarg2*);
 extern  bool_t xdr_cryptkeyarg2(XDR *, cryptkeyarg2*);
-#else /* Old Style C */ 
+#else /* Old Style C */
 bool_t xdr_cryptkeyarg2();
 bool_t xdr_cryptkeyarg2();
-#endif /* Old Style C */ 
+#endif /* Old Style C */
 
 
 
 
 struct cryptkeyres {
 struct cryptkeyres {
@@ -125,13 +125,13 @@ struct cryptkeyres {
 	} cryptkeyres_u;
 	} cryptkeyres_u;
 };
 };
 typedef struct cryptkeyres cryptkeyres;
 typedef struct cryptkeyres cryptkeyres;
-#ifdef __cplusplus 
+#ifdef __cplusplus
 extern "C" bool_t xdr_cryptkeyres(XDR *, cryptkeyres*);
 extern "C" bool_t xdr_cryptkeyres(XDR *, cryptkeyres*);
-#elif __STDC__ 
+#elif __STDC__
 extern  bool_t xdr_cryptkeyres(XDR *, cryptkeyres*);
 extern  bool_t xdr_cryptkeyres(XDR *, cryptkeyres*);
-#else /* Old Style C */ 
+#else /* Old Style C */
 bool_t xdr_cryptkeyres();
 bool_t xdr_cryptkeyres();
-#endif /* Old Style C */ 
+#endif /* Old Style C */
 
 
 #define MAXGIDS 16
 #define MAXGIDS 16
 
 
@@ -144,13 +144,13 @@ struct unixcred {
 	} gids;
 	} gids;
 };
 };
 typedef struct unixcred unixcred;
 typedef struct unixcred unixcred;
-#ifdef __cplusplus 
+#ifdef __cplusplus
 extern "C" bool_t xdr_unixcred(XDR *, unixcred*);
 extern "C" bool_t xdr_unixcred(XDR *, unixcred*);
-#elif __STDC__ 
+#elif __STDC__
 extern  bool_t xdr_unixcred(XDR *, unixcred*);
 extern  bool_t xdr_unixcred(XDR *, unixcred*);
-#else /* Old Style C */ 
+#else /* Old Style C */
 bool_t xdr_unixcred();
 bool_t xdr_unixcred();
-#endif /* Old Style C */ 
+#endif /* Old Style C */
 
 
 
 
 struct getcredres {
 struct getcredres {
@@ -160,13 +160,13 @@ struct getcredres {
 	} getcredres_u;
 	} getcredres_u;
 };
 };
 typedef struct getcredres getcredres;
 typedef struct getcredres getcredres;
-#ifdef __cplusplus 
+#ifdef __cplusplus
 extern "C" bool_t xdr_getcredres(XDR *, getcredres*);
 extern "C" bool_t xdr_getcredres(XDR *, getcredres*);
-#elif __STDC__ 
+#elif __STDC__
 extern  bool_t xdr_getcredres(XDR *, getcredres*);
 extern  bool_t xdr_getcredres(XDR *, getcredres*);
-#else /* Old Style C */ 
+#else /* Old Style C */
 bool_t xdr_getcredres();
 bool_t xdr_getcredres();
-#endif /* Old Style C */ 
+#endif /* Old Style C */
 
 
 
 
 struct key_netstarg {
 struct key_netstarg {
@@ -175,13 +175,13 @@ struct key_netstarg {
 	netnamestr st_netname;
 	netnamestr st_netname;
 };
 };
 typedef struct key_netstarg key_netstarg;
 typedef struct key_netstarg key_netstarg;
-#ifdef __cplusplus 
+#ifdef __cplusplus
 extern "C" bool_t xdr_key_netstarg(XDR *, key_netstarg*);
 extern "C" bool_t xdr_key_netstarg(XDR *, key_netstarg*);
-#elif __STDC__ 
+#elif __STDC__
 extern  bool_t xdr_key_netstarg(XDR *, key_netstarg*);
 extern  bool_t xdr_key_netstarg(XDR *, key_netstarg*);
-#else /* Old Style C */ 
+#else /* Old Style C */
 bool_t xdr_key_netstarg();
 bool_t xdr_key_netstarg();
-#endif /* Old Style C */ 
+#endif /* Old Style C */
 
 
 
 
 struct key_netstres {
 struct key_netstres {
@@ -191,13 +191,13 @@ struct key_netstres {
 	} key_netstres_u;
 	} key_netstres_u;
 };
 };
 typedef struct key_netstres key_netstres;
 typedef struct key_netstres key_netstres;
-#ifdef __cplusplus 
+#ifdef __cplusplus
 extern "C" bool_t xdr_key_netstres(XDR *, key_netstres*);
 extern "C" bool_t xdr_key_netstres(XDR *, key_netstres*);
-#elif __STDC__ 
+#elif __STDC__
 extern  bool_t xdr_key_netstres(XDR *, key_netstres*);
 extern  bool_t xdr_key_netstres(XDR *, key_netstres*);
-#else /* Old Style C */ 
+#else /* Old Style C */
 bool_t xdr_key_netstres();
 bool_t xdr_key_netstres();
-#endif /* Old Style C */ 
+#endif /* Old Style C */
 
 
 
 
 #ifndef opaque
 #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(netnamestr *, CLIENT *);
 extern  getcredres * key_getcred_1_svc(netnamestr *, struct svc_req *);
 extern  getcredres * key_getcred_1_svc(netnamestr *, struct svc_req *);
 
 
-#else /* Old Style C */ 
+#else /* Old Style C */
 #define KEY_SET ((u_long)1)
 #define KEY_SET ((u_long)1)
 extern  keystatus * key_set_1();
 extern  keystatus * key_set_1();
 extern  keystatus * key_set_1_svc();
 extern  keystatus * key_set_1_svc();
@@ -258,7 +258,7 @@ extern  des_block * key_gen_1_svc();
 #define KEY_GETCRED ((u_long)5)
 #define KEY_GETCRED ((u_long)5)
 extern  getcredres * key_getcred_1();
 extern  getcredres * key_getcred_1();
 extern  getcredres * key_getcred_1_svc();
 extern  getcredres * key_getcred_1_svc();
-#endif /* Old Style C */ 
+#endif /* Old Style C */
 #define KEY_VERS2 ((u_long)2)
 #define KEY_VERS2 ((u_long)2)
 
 
 #ifdef __cplusplus
 #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(opaque *, CLIENT *);
 extern  cryptkeyres * key_get_conv_2_svc(opaque *, struct svc_req *);
 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();
 extern  keystatus * key_set_2_svc();
 extern  keystatus * key_set_2_svc();
 extern  cryptkeyres * key_encrypt_2();
 extern  cryptkeyres * key_encrypt_2();
@@ -341,6 +341,6 @@ extern  key_netstres * key_net_get_2_svc();
 #define KEY_GET_CONV ((u_long)10)
 #define KEY_GET_CONV ((u_long)10)
 extern  cryptkeyres * key_get_conv_2();
 extern  cryptkeyres * key_get_conv_2();
 extern  cryptkeyres * key_get_conv_2_svc();
 extern  cryptkeyres * key_get_conv_2_svc();
-#endif /* Old Style C */ 
+#endif /* Old Style C */
 
 
 #endif /* !_KEY_PROT_H_RPCGEN */
 #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
  * 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
  * to license or distribute it to anyone else except as part of a product or
  * program developed by the user.
  * program developed by the user.
- * 
+ *
  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
  * 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
  * Sun RPC is provided with no support and without any obligation on the
  * part of Sun Microsystems, Inc. to assist in its use, correction,
  * part of Sun Microsystems, Inc. to assist in its use, correction,
  * modification or enhancement.
  * modification or enhancement.
- * 
+ *
  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  * OR ANY PART THEREOF.
  * OR ANY PART THEREOF.
- * 
+ *
  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  * or profits or other special, indirect and consequential damages, even if
  * or profits or other special, indirect and consequential damages, even if
  * Sun has been advised of the possibility of such damages.
  * Sun has been advised of the possibility of such damages.
- * 
+ *
  * Sun Microsystems, Inc.
  * Sun Microsystems, Inc.
  * 2550 Garcia Avenue
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  * Mountain View, California  94043

+ 1 - 1
include/scsi/scsi_ioctl.h

@@ -17,7 +17,7 @@
    02111-1307 USA.  */
    02111-1307 USA.  */
 
 
 #ifndef _SCSI_IOCTL_H
 #ifndef _SCSI_IOCTL_H
-#define _SCSI_IOCTL_H 
+#define _SCSI_IOCTL_H
 
 
 /* IOCTLs for SCSI.  */
 /* IOCTLs for SCSI.  */
 #define SCSI_IOCTL_SEND_COMMAND		1	/* Send a command to the SCSI host.  */
 #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)
 #  define UINTPTR_MAX		(4294967295U)
 # endif
 # endif
 
 
-#if !defined(__H8300H__) && !defined(__H8300S__) 
+#if !defined(__H8300H__) && !defined(__H8300S__)
 /* Minimum for largest signed integral type.  */
 /* Minimum for largest signed integral type.  */
 # define INTMAX_MIN		(-__INT64_C(9223372036854775807)-1)
 # define INTMAX_MIN		(-__INT64_C(9223372036854775807)-1)
 /* Maximum for largest signed integral type.  */
 /* 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
    These go in the low byte.  Avoid using the top bit, it will
    conflict with error returns.  */
    conflict with error returns.  */
-enum 
+enum
   {
   {
     PER_LINUX = 0x0000,
     PER_LINUX = 0x0000,
     PER_LINUX_32BIT = 0x0000 | ADDR_LIMIT_32BIT,
     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.  */
   /* Current number of elements.  */
   size_t n_elements;
   size_t n_elements;
-};  
+};
 
 
 inline static int
 inline static int
 hash_pointer (const void *p)
 hash_pointer (const void *p)
@@ -219,11 +219,11 @@ htab_create (void)
   ht->entries = _dl_malloc (sizeof (struct funcdesc_ht_value *) * ht->size);
   ht->entries = _dl_malloc (sizeof (struct funcdesc_ht_value *) * ht->size);
   if (! ht->entries)
   if (! ht->entries)
     return NULL;
     return NULL;
-  
+
   ht->n_elements = 0;
   ht->n_elements = 0;
 
 
   _dl_memset (ht->entries, 0, sizeof (struct funcdesc_ht_value *) * ht->size);
   _dl_memset (ht->entries, 0, sizeof (struct funcdesc_ht_value *) * ht->size);
-  
+
   return ht;
   return ht;
 }
 }
 
 
@@ -361,14 +361,14 @@ htab_find_slot (struct funcdesc_ht *htab, void *ptr, int insert)
     goto empty_entry;
     goto empty_entry;
   else if ((*entry)->entry_point == ptr)
   else if ((*entry)->entry_point == ptr)
     return entry;
     return entry;
-      
+
   hash2 = 1 + hash % (size - 2);
   hash2 = 1 + hash % (size - 2);
   for (;;)
   for (;;)
     {
     {
       index += hash2;
       index += hash2;
       if (index >= size)
       if (index >= size)
 	index -= size;
 	index -= size;
-      
+
       entry = &htab->entries[index];
       entry = &htab->entries[index];
       if (!*entry)
       if (!*entry)
 	goto empty_entry;
 	goto empty_entry;
@@ -427,7 +427,7 @@ _dl_lookup_address (void const *address)
   if ((Elf32_Addr)address & 7)
   if ((Elf32_Addr)address & 7)
     /* It's not a function descriptor.  */
     /* It's not a function descriptor.  */
     return address;
     return address;
-  
+
   fd = (struct funcdesc_value const *)address;
   fd = (struct funcdesc_value const *)address;
 
 
   for (rpnt = _dl_loaded_modules; rpnt; rpnt = rpnt->next)
   for (rpnt = _dl_loaded_modules; rpnt; rpnt = rpnt->next)
@@ -448,7 +448,7 @@ _dl_lookup_address (void const *address)
       else
       else
 	address = fd;
 	address = fd;
     }
     }
-  
+
   return address;
   return address;
 }
 }
 
 
@@ -531,7 +531,7 @@ __dl_map_segment (Elf32_Ehdr *epnt,
       (tryaddr = 0,
       (tryaddr = 0,
        size = (ppnt->p_vaddr & ADDR_ALIGN) + ppnt->p_filesz,
        size = (ppnt->p_vaddr & ADDR_ALIGN) + ppnt->p_filesz,
        LXFLAGS(ppnt->p_flags),
        LXFLAGS(ppnt->p_flags),
-       flags | MAP_EXECUTABLE | MAP_DENYWRITE, 
+       flags | MAP_EXECUTABLE | MAP_DENYWRITE,
        infile, ppnt->p_offset & OFFS_ALIGN);
        infile, ppnt->p_offset & OFFS_ALIGN);
     if (_dl_mmap_check_error(status)
     if (_dl_mmap_check_error(status)
 	|| (tryaddr && tryaddr != 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
 License along with uClibc; see the file COPYING.LIB.  If not, write to
 the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
 the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
 USA.  */
 USA.  */
-	
+
 /* Any assembly language/system dependent hacks needed to setup
 /* Any assembly language/system dependent hacks needed to setup
  * boot1.c so it will work as expected and cope with whatever platform
  * boot1.c so it will work as expected and cope with whatever platform
  * specific wierdness is needed for this architecture.
  * 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
 /* We want want to apply all relocations in the interpreter during
    bootstrap.  Because of this, we have to skip the interpreter
    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;
 	symname= strtab + symtab[symtab_index].st_name;
 
 
 	if (reloc_type != R_BFIN_FUNCDESC_VALUE) {
 	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_progname);
 		_dl_exit(1);
 		_dl_exit(1);
 	}
 	}
@@ -89,7 +89,7 @@ _dl_linux_resolver (struct elf_resolve *tpnt, int reloc_entry)
 	if (_dl_debug_bindings) {
 	if (_dl_debug_bindings) {
 		_dl_dprintf(_dl_debug_file, "\nresolve function: %s", symname);
 		_dl_dprintf(_dl_debug_file, "\nresolve function: %s", symname);
 		if (_dl_debug_detail)
 		if (_dl_debug_detail)
-			_dl_dprintf(_dl_debug_file, 
+			_dl_dprintf(_dl_debug_file,
 				    "\n\tpatched (%x,%x) ==> (%x,%x) @ %x\n",
 				    "\n\tpatched (%x,%x) ==> (%x,%x) @ %x\n",
 				    got_entry->entry_point, got_entry->got_value,
 				    got_entry->entry_point, got_entry->got_value,
 				    funcval.entry_point, funcval.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++) {
 	for (i = 0; i < rel_size; i++, rpnt++) {
 	        int res;
 	        int res;
-	    
+
 		symtab_index = ELF_R_SYM(rpnt->r_info);
 		symtab_index = ELF_R_SYM(rpnt->r_info);
 		debug_sym(symtab,strtab,symtab_index);
 		debug_sym(symtab,strtab,symtab_index);
 		debug_reloc(symtab,strtab,rpnt);
 		debug_reloc(symtab,strtab,rpnt);
@@ -136,17 +136,17 @@ _dl_parse(struct elf_resolve *tpnt, struct dyn_elf *scope,
 		if (res==0) continue;
 		if (res==0) continue;
 
 
 		_dl_dprintf(2, "\n%s: ",_dl_progname);
 		_dl_dprintf(2, "\n%s: ",_dl_progname);
-		
+
 		if (symtab_index)
 		if (symtab_index)
 			_dl_dprintf(2, "symbol '%s': ", strtab + symtab[symtab_index].st_name);
 			_dl_dprintf(2, "symbol '%s': ", strtab + symtab[symtab_index].st_name);
-		  
+
 		if (res <0) {
 		if (res <0) {
 		        int reloc_type = ELF_R_TYPE(rpnt->r_info);
 		        int reloc_type = ELF_R_TYPE(rpnt->r_info);
 #if defined (__SUPPORT_LD_DEBUG__)
 #if defined (__SUPPORT_LD_DEBUG__)
 			_dl_dprintf(2, "can't handle reloc type %s\n ", _dl_reltypes(reloc_type));
 			_dl_dprintf(2, "can't handle reloc type %s\n ", _dl_reltypes(reloc_type));
 #else
 #else
 			_dl_dprintf(2, "can't handle reloc type %x\n", reloc_type);
 			_dl_dprintf(2, "can't handle reloc type %x\n", reloc_type);
-#endif			
+#endif
 			_dl_exit(-res);
 			_dl_exit(-res);
 		} else if (res >0) {
 		} else if (res >0) {
 			_dl_dprintf(2, "can't resolve symbol\n");
 			_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.  */
   /* Current number of elements.  */
   size_t n_elements;
   size_t n_elements;
-};  
+};
 
 
 inline static int
 inline static int
 hash_pointer (const void *p)
 hash_pointer (const void *p)
@@ -203,11 +203,11 @@ htab_create (void)
   ht->entries = _dl_malloc (sizeof (struct funcdesc_ht_value *) * ht->size);
   ht->entries = _dl_malloc (sizeof (struct funcdesc_ht_value *) * ht->size);
   if (! ht->entries)
   if (! ht->entries)
     return NULL;
     return NULL;
-  
+
   ht->n_elements = 0;
   ht->n_elements = 0;
 
 
   _dl_memset (ht->entries, 0, sizeof (struct funcdesc_ht_value *) * ht->size);
   _dl_memset (ht->entries, 0, sizeof (struct funcdesc_ht_value *) * ht->size);
-  
+
   return ht;
   return ht;
 }
 }
 
 
@@ -345,14 +345,14 @@ htab_find_slot (struct funcdesc_ht *htab, void *ptr, int insert)
     goto empty_entry;
     goto empty_entry;
   else if ((*entry)->entry_point == ptr)
   else if ((*entry)->entry_point == ptr)
     return entry;
     return entry;
-      
+
   hash2 = 1 + hash % (size - 2);
   hash2 = 1 + hash % (size - 2);
   for (;;)
   for (;;)
     {
     {
       index += hash2;
       index += hash2;
       if (index >= size)
       if (index >= size)
 	index -= size;
 	index -= size;
-      
+
       entry = &htab->entries[index];
       entry = &htab->entries[index];
       if (!*entry)
       if (!*entry)
 	goto empty_entry;
 	goto empty_entry;
@@ -411,7 +411,7 @@ _dl_lookup_address (void const *address)
   if ((Elf32_Addr)address & 7)
   if ((Elf32_Addr)address & 7)
     /* It's not a function descriptor.  */
     /* It's not a function descriptor.  */
     return address;
     return address;
-  
+
   fd = (struct funcdesc_value const *)address;
   fd = (struct funcdesc_value const *)address;
 
 
   for (rpnt = _dl_loaded_modules; rpnt; rpnt = rpnt->next)
   for (rpnt = _dl_loaded_modules; rpnt; rpnt = rpnt->next)
@@ -432,7 +432,7 @@ _dl_lookup_address (void const *address)
       else
       else
 	address = fd;
 	address = fd;
     }
     }
-  
+
   return address;
   return address;
 }
 }
 
 

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

@@ -152,7 +152,7 @@ do \
       _dl_close(infile); \
       _dl_close(infile); \
     } \
     } \
 } \
 } \
-while (0)  
+while (0)
 
 
 /* We want want to apply all relocations in the interpreter during
 /* We want want to apply all relocations in the interpreter during
    bootstrap.  Because of this, we have to skip the interpreter
    bootstrap.  Because of this, we have to skip the interpreter
@@ -179,7 +179,7 @@ while (0)
 #define DL_GET_READY_TO_RUN_EXTRA_ARGS \
 #define DL_GET_READY_TO_RUN_EXTRA_ARGS \
   , dl_boot_progmap
   , dl_boot_progmap
 
 
-	  
+
 
 
 
 
 #ifdef __USE_GNU
 #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;
 	symname= strtab + symtab[symtab_index].st_name;
 
 
 	if (reloc_type != R_FRV_FUNCDESC_VALUE) {
 	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_progname);
 		_dl_exit(1);
 		_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);
 			_dl_dprintf(_dl_debug_file, "\nresolve function: %s", symname);
 			if (_dl_debug_detail)
 			if (_dl_debug_detail)
-				_dl_dprintf(_dl_debug_file, 
+				_dl_dprintf(_dl_debug_file,
 					    "\n\tpatched (%x,%x) ==> (%x,%x) @ %x\n",
 					    "\n\tpatched (%x,%x) ==> (%x,%x) @ %x\n",
 					    got_entry->entry_point, got_entry->got_value,
 					    got_entry->entry_point, got_entry->got_value,
 					    funcval.entry_point, funcval.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++) {
 	  for (i = 0; i < rel_size; i++, rpnt++) {
 	        int res;
 	        int res;
-	    
+
 		symtab_index = ELF32_R_SYM(rpnt->r_info);
 		symtab_index = ELF32_R_SYM(rpnt->r_info);
 		debug_sym(symtab,strtab,symtab_index);
 		debug_sym(symtab,strtab,symtab_index);
 		debug_reloc(symtab,strtab,rpnt);
 		debug_reloc(symtab,strtab,rpnt);
@@ -130,10 +130,10 @@ _dl_parse(struct elf_resolve *tpnt, struct dyn_elf *scope,
 		if (res==0) continue;
 		if (res==0) continue;
 
 
 		_dl_dprintf(2, "\n%s: ",_dl_progname);
 		_dl_dprintf(2, "\n%s: ",_dl_progname);
-		
+
 		if (symtab_index)
 		if (symtab_index)
 		  _dl_dprintf(2, "symbol '%s': ", strtab + symtab[symtab_index].st_name);
 		  _dl_dprintf(2, "symbol '%s': ", strtab + symtab[symtab_index].st_name);
-		  
+
 		if (res <0)
 		if (res <0)
 		{
 		{
 		        int reloc_type = ELF32_R_TYPE(rpnt->r_info);
 		        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));
 			_dl_dprintf(2, "can't handle reloc type %s\n ", _dl_reltypes(reloc_type));
 #else
 #else
 			_dl_dprintf(2, "can't handle reloc type %x\n", reloc_type);
 			_dl_dprintf(2, "can't handle reloc type %x\n", reloc_type);
-#endif			
+#endif
 			_dl_exit(-res);
 			_dl_exit(-res);
 		}
 		}
 		else if (res >0)
 		else if (res >0)

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

@@ -1,7 +1,7 @@
 /* vi: set sw=4 ts=4: */
 /* vi: set sw=4 ts=4: */
 /*
 /*
  * Various assmbly language/system dependent hacks that are required
  * 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>
  * 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;
 	 Elf32_Rela * rpnt = (void *)rel_addr;
 	--rpnt;
 	--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);
 		Elf32_Addr *const reloc_addr = (void *) (load_off + (++rpnt)->r_offset);
 
 
 		*reloc_addr = load_off + rpnt->r_addend;
 		*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
 #endif
 	reloc_addr   = (Elf32_Addr *)(intptr_t) (tpnt->loadaddr + (unsigned long) rpnt->r_offset);
 	reloc_addr   = (Elf32_Addr *)(intptr_t) (tpnt->loadaddr + (unsigned long) rpnt->r_offset);
 	reloc_type   = ELF32_R_TYPE(rpnt->r_info);
 	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);
 	symtab_index = ELF32_R_SYM(rpnt->r_info);
 	symname      = strtab + symtab[symtab_index].st_name;
 	symname      = strtab + symtab[symtab_index].st_name;
 	if (symtab_index) {
 	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];
 	symtab = (Elf32_Sym *)(intptr_t)tpnt->dynamic_info[DT_SYMTAB];
 	strtab = (char *)tpnt->dynamic_info[DT_STRTAB];
 	strtab = (char *)tpnt->dynamic_info[DT_STRTAB];
-	
+
 	  for (i = 0; i < rel_size; i++, rpnt++) {
 	  for (i = 0; i < rel_size; i++, rpnt++) {
 	        int res;
 	        int res;
 
 

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

@@ -131,9 +131,9 @@ static __inline__ Elf32_Addr
 elf_machine_dynamic (void)
 elf_machine_dynamic (void)
 {
 {
 	register Elf32_Addr *got __asm__ ("%l7");
 	register Elf32_Addr *got __asm__ ("%l7");
-	
+
 	LOAD_PIC_REG (got);
 	LOAD_PIC_REG (got);
-	
+
 	return *got;
 	return *got;
 }
 }
 
 
@@ -142,14 +142,14 @@ static __inline__ Elf32_Addr
 elf_machine_load_address (void)
 elf_machine_load_address (void)
 {
 {
 	register Elf32_Addr *pc __asm__ ("%o7"), *got __asm ("%l7");
 	register Elf32_Addr *pc __asm__ ("%o7"), *got __asm ("%l7");
-	
+
 	__asm__ ("sethi %%hi(_GLOBAL_OFFSET_TABLE_-4), %1\n\t"
 	__asm__ ("sethi %%hi(_GLOBAL_OFFSET_TABLE_-4), %1\n\t"
 	       "call 1f\n\t"
 	       "call 1f\n\t"
 	       " add %1, %%lo(_GLOBAL_OFFSET_TABLE_+4), %1\n\t"
 	       " add %1, %%lo(_GLOBAL_OFFSET_TABLE_+4), %1\n\t"
 	       "call _DYNAMIC\n\t"
 	       "call _DYNAMIC\n\t"
 	       "call _GLOBAL_OFFSET_TABLE_\n"
 	       "call _GLOBAL_OFFSET_TABLE_\n"
 	       "1:\tadd %1, %0, %1\n\t" : "=r" (pc), "=r" (got));
 	       "1:\tadd %1, %0, %1\n\t" : "=r" (pc), "=r" (got));
-	
+
 	/* got is now l_addr + _GLOBAL_OFFSET_TABLE_
 	/* got is now l_addr + _GLOBAL_OFFSET_TABLE_
 	 *got is _DYNAMIC
 	 *got is _DYNAMIC
 	 pc[2]*4 is l_addr + _DYNAMIC - (long)pc - 8
 	 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.
  * Copyright (C) 2007 Tensilica Inc.
  *
  *
  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  * 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__ (
 __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>
  * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  * Portions from the GNU C library,
  * Portions from the GNU C library,
  * Copyright (C) 2003, 2006 Free Software Foundation, Inc.
  * Copyright (C) 2003, 2006 Free Software Foundation, Inc.
@@ -535,7 +535,7 @@ gaih_inet (const char *name, const struct gaih_service *service,
     }
     }
     else
     else
     {
     {
-	/* 
+	/*
 	 * Neither socket type nor protocol is set.  Return all socket types
 	 * Neither socket type nor protocol is set.  Return all socket types
 	 * we know about.
 	 * 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[0] = 0;
 			sin6p->sin6_addr.s6_addr32[1] = 0;
 			sin6p->sin6_addr.s6_addr32[1] = 0;
 			sin6p->sin6_addr.s6_addr32[2] = htonl(0x0000ffff);
 			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]));
 			       at2->addr, sizeof (sin6p->sin6_addr.s6_addr32[3]));
 		    }
 		    }
 		    sin6p->sin6_port = st2->port;
 		    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
 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 ** Library General Public License for more details.
 ** Library General Public License for more details.
-** 
+**
 ** You should have received a copy of the GNU Library General Public
 ** You should have received a copy of the GNU Library General Public
 ** License along with the NYS Library; see the file COPYING.LIB.  If
 ** License along with the NYS Library; see the file COPYING.LIB.  If
 ** not, write to the Free Software Foundation, Inc., 675 Mass Ave,
 ** 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)
 libc_hidden_proto(if_nametoindex)
 unsigned int
 unsigned int
-if_nametoindex(const char* ifname) 
+if_nametoindex(const char* ifname)
 {
 {
 #ifndef SIOCGIFINDEX
 #ifndef SIOCGIFINDEX
   __set_errno (ENOSYS);
   __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__
 #ifdef __UCLIBC_HAS_IPV6__
 
 
 /* We cannot use the macro version of tolower() or very bad
 /* 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
  * So undef it here so we get the function version of tolower
  * instead.
  * 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_CANTSEND:
     case RPC_CANTRECV:
     case RPC_CANTRECV:
       __glibc_strerror_r (e.re_errno, chrbuf, sizeof chrbuf);
       __glibc_strerror_r (e.re_errno, chrbuf, sizeof chrbuf);
-      len = sprintf (str, "; errno = %s", chrbuf); 
+      len = sprintf (str, "; errno = %s", chrbuf);
       str += len;
       str += len;
       break;
       break;
 
 

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

@@ -53,7 +53,7 @@
  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  * 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
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  * SUCH DAMAGE.
- */ 
+ */
 
 
 #if 0
 #if 0
 static char sccsid[] = "@(#)rcmd.c	8.3 (Berkeley) 3/26/94";
 static char sccsid[] = "@(#)rcmd.c	8.3 (Berkeley) 3/26/94";
@@ -144,7 +144,7 @@ libc_hidden_proto(rresvport)
 /* some forward declarations */
 /* some forward declarations */
 static int __ivaliduser2(FILE *hostf, u_int32_t raddr,
 static int __ivaliduser2(FILE *hostf, u_int32_t raddr,
 			 const char *luser, const char *ruser, const char *rhost);
 			 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);
 		      const char *luser, const char *rhost);
 
 
 
 
@@ -178,7 +178,7 @@ int rcmd(ahost, rport, locuser, remuser, cmd, fd2p)
 	tmphstbuf = malloc (hstbuflen);
 	tmphstbuf = malloc (hstbuflen);
 #endif
 #endif
 
 
-	while (gethostbyname_r (*ahost, &hostbuf, tmphstbuf, 
+	while (gethostbyname_r (*ahost, &hostbuf, tmphstbuf,
 		    hstbuflen, &hp, &herr) != 0 || hp == NULL)
 		    hstbuflen, &hp, &herr) != 0 || hp == NULL)
 	{
 	{
 	    if (herr != NETDB_INTERNAL || errno != ERANGE)
 	    if (herr != NETDB_INTERNAL || errno != ERANGE)
@@ -212,7 +212,7 @@ int rcmd(ahost, rport, locuser, remuser, cmd, fd2p)
 #endif
 #endif
 	pfd[0].events = POLLIN;
 	pfd[0].events = POLLIN;
 	pfd[1].events = POLLIN;
 	pfd[1].events = POLLIN;
-	
+
         *ahost = hp->h_name;
         *ahost = hp->h_name;
         oldmask = sigblock(sigmask(SIGURG)); /* __sigblock */
         oldmask = sigblock(sigmask(SIGURG)); /* __sigblock */
 	for (timo = 1, lport = IPPORT_RESERVED - 1;;) {
 	for (timo = 1, lport = IPPORT_RESERVED - 1;;) {
@@ -361,7 +361,7 @@ int rresvport(int *alport)
 	    return -1;
 	    return -1;
 	}
 	}
     }
     }
-    
+
     return -1;
     return -1;
 }
 }
 libc_hidden_def(rresvport)
 libc_hidden_def(rresvport)
@@ -394,8 +394,8 @@ int ruserok(rhost, superuser, ruser, luser)
 	buffer = malloc (buflen);
 	buffer = malloc (buflen);
 #endif
 #endif
 
 
-	while (gethostbyname_r (rhost, &hostbuf, buffer, 
+	while (gethostbyname_r (rhost, &hostbuf, buffer,
-		    buflen, &hp, &herr) != 0 || hp == NULL) 
+		    buflen, &hp, &herr) != 0 || hp == NULL)
 	{
 	{
 	    if (herr != NETDB_INTERNAL || errno != ERANGE) {
 	    if (herr != NETDB_INTERNAL || errno != ERANGE) {
 #ifndef __ARCH_USE_MMU__
 #ifndef __ARCH_USE_MMU__
@@ -493,7 +493,7 @@ iruserok2 (raddr, superuser, ruser, luser, rhost)
 
 
 	if (!superuser)
 	if (!superuser)
 		hostf = iruserfopen (_PATH_HEQUIV, 0);
 		hostf = iruserfopen (_PATH_HEQUIV, 0);
-	
+
 	if (hostf) {
 	if (hostf) {
 		isbad = __ivaliduser2 (hostf, raddr, luser, ruser, rhost);
 		isbad = __ivaliduser2 (hostf, raddr, luser, ruser, rhost);
 		fclose (hostf);
 		fclose (hostf);
@@ -517,7 +517,7 @@ iruserok2 (raddr, superuser, ruser, luser, rhost)
 		char *buffer = malloc (buflen);
 		char *buffer = malloc (buflen);
 #endif
 #endif
 
 
-		if (getpwnam_r (luser, &pwdbuf, buffer, 
+		if (getpwnam_r (luser, &pwdbuf, buffer,
 			    buflen, &pwd) != 0 || pwd == NULL)
 			    buflen, &pwd) != 0 || pwd == NULL)
 		{
 		{
 #ifndef __ARCH_USE_MMU__
 #ifndef __ARCH_USE_MMU__
@@ -545,12 +545,12 @@ iruserok2 (raddr, superuser, ruser, luser, rhost)
 		seteuid (pwd->pw_uid);
 		seteuid (pwd->pw_uid);
 		hostf = iruserfopen (pbuf, pwd->pw_uid);
 		hostf = iruserfopen (pbuf, pwd->pw_uid);
 		free(pbuf);
 		free(pbuf);
-		
+
 		if (hostf != NULL) {
 		if (hostf != NULL) {
 			isbad = __ivaliduser2 (hostf, raddr, luser, ruser, rhost);
 			isbad = __ivaliduser2 (hostf, raddr, luser, ruser, rhost);
 			fclose (hostf);
 			fclose (hostf);
 		}
 		}
-		
+
 		seteuid (uid);
 		seteuid (uid);
 		return isbad;
 		return isbad;
 	}
 	}

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

@@ -599,7 +599,7 @@ const __ctype_mask_t __C_ctype_b_data[] = {
 	/*   -4  M-|  */ 0,
 	/*   -4  M-|  */ 0,
 	/*   -3  M-}  */ 0,
 	/*   -3  M-}  */ 0,
 	/*   -2  M-~  */ 0,
 	/*   -2  M-~  */ 0,
-#endif /* __UCLIBC_HAS_CTYPE_SIGNED__*/ 
+#endif /* __UCLIBC_HAS_CTYPE_SIGNED__*/
 	/*   -1  M-^? */ 0,
 	/*   -1  M-^? */ 0,
 	/*    0  ^@   */ _IScntrl,
 	/*    0  ^@   */ _IScntrl,
 	/*    1  ^A   */ _IScntrl,
 	/*    1  ^A   */ _IScntrl,
@@ -911,7 +911,7 @@ const __ctype_touplow_t __C_ctype_tolower_data[] = {
 	 -12,          -11,          -10,           -9,
 	 -12,          -11,          -10,           -9,
 	  -8,           -7,           -6,           -5,
 	  -8,           -7,           -6,           -5,
 	  -4,           -3,           -2,           -1,
 	  -4,           -3,           -2,           -1,
-#endif /* __UCLIBC_HAS_CTYPE_SIGNED__*/ 
+#endif /* __UCLIBC_HAS_CTYPE_SIGNED__*/
 	   0,            1,            2,            3,
 	   0,            1,            2,            3,
 	   4,            5,            6,            7,
 	   4,            5,            6,            7,
 	   8,            9,           10,           11,
 	   8,            9,           10,           11,
@@ -1033,7 +1033,7 @@ const __ctype_touplow_t __C_ctype_toupper_data[] = {
 	 -12,          -11,          -10,           -9,
 	 -12,          -11,          -10,           -9,
 	  -8,           -7,           -6,           -5,
 	  -8,           -7,           -6,           -5,
 	  -4,           -3,           -2,           -1,
 	  -4,           -3,           -2,           -1,
-#endif /* __UCLIBC_HAS_CTYPE_SIGNED__*/ 
+#endif /* __UCLIBC_HAS_CTYPE_SIGNED__*/
 	   0,            1,            2,            3,
 	   0,            1,            2,            3,
 	   4,            5,            6,            7,
 	   4,            5,            6,            7,
 	   8,            9,           10,           11,
 	   8,            9,           10,           11,

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

@@ -60,7 +60,7 @@ struct __dirstream {
 
 
   /* total size of buffer */
   /* total size of buffer */
   size_t dd_max;
   size_t dd_max;
- 
+
   /* lock */
   /* lock */
   __UCLIBC_MUTEX(dd_lock);
   __UCLIBC_MUTEX(dd_lock);
 };				/* stream data from opendir() */
 };				/* 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(closedir)
 libc_hidden_proto(qsort)
 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 (*selector) (const struct dirent *),
 	int (*compar) (const void *, const void *))
 	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
    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
    License along with the GNU C Library; if not, write to the Free
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.  
+   02111-1307 USA.
    */
    */
 
 
 /* Modified for uClibc by Erik Andersen
 /* Modified for uClibc by Erik Andersen
@@ -36,7 +36,7 @@ libc_hidden_proto(closedir)
 libc_hidden_proto(qsort)
 libc_hidden_proto(qsort)
 libc_hidden_proto(readdir64)
 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 (*selector) (const struct dirent64 *),
 	int (*compar) (const void *, const void *))
 	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 cnt, i;
 	size_t offs = (flags & GLOB_DOOFFS) ? g->gl_offs : 0;
 	size_t offs = (flags & GLOB_DOOFFS) ? g->gl_offs : 0;
 	int error = 0;
 	int error = 0;
-	
+
 	if (*p == '/') {
 	if (*p == '/') {
 		for (; *p == '/'; p++);
 		for (; *p == '/'; p++);
 		d = "/";
 		d = "/";
@@ -256,7 +256,7 @@ int glob(const char *pat, int flags, int (*errfunc)(const char *path, int err),
 		__glob_freelist(&head);
 		__glob_freelist(&head);
 		return error;
 		return error;
 	}
 	}
-	
+
 	for (cnt=0, tail=head.next; tail; tail=tail->next, cnt++);
 	for (cnt=0, tail=head.next; tail; tail=tail->next, cnt++);
 	if (!cnt) {
 	if (!cnt) {
 		if (flags & GLOB_NOCHECK) {
 		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))
 	if (!(flags & GLOB_NOSORT))
 		qsort(g->gl_pathv+offs, cnt, sizeof(char *), __glob_sort);
 		qsort(g->gl_pathv+offs, cnt, sizeof(char *), __glob_sort);
-	
+
 	return error;
 	return error;
 }
 }
 #ifdef __GLOB64
 #ifdef __GLOB64

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

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

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

@@ -154,7 +154,7 @@ struct obstack *_obstack;
   } while (0)
   } while (0)
 # endif
 # endif
 
 
-
+
 /* Initialize an obstack H for use.  Specify chunk size SIZE (0 means default).
 /* Initialize an obstack H for use.  Specify chunk size SIZE (0 means default).
    Objects start on multiples of ALIGNMENT (0 means use default).
    Objects start on multiples of ALIGNMENT (0 means use default).
    CHUNKFUN is the function to use to allocate chunks,
    CHUNKFUN is the function to use to allocate chunks,
@@ -383,7 +383,7 @@ _obstack_allocated_p (
     }
     }
   return lp != 0;
   return lp != 0;
 }
 }
-
+
 /* Free objects in obstack H, including OBJ and everything allocate
 /* Free objects in obstack H, including OBJ and everything allocate
    more recently than OBJ.  If OBJ is zero, free everything in H.  */
    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! */
     /* obj is not in any of the chunks! */
     abort ();
     abort ();
 }
 }
-
+
 int
 int
 _obstack_memory_used (
 _obstack_memory_used (
      struct obstack *h)
      struct obstack *h)
@@ -471,7 +471,7 @@ _obstack_memory_used (
     }
     }
   return nbytes;
   return nbytes;
 }
 }
-
+
 /* Define the error handler.  */
 /* Define the error handler.  */
 # ifndef _
 # ifndef _
 /* #  if (HAVE_LIBINTL_H && ENABLE_NLS) || defined _LIBC */
 /* #  if (HAVE_LIBINTL_H && ENABLE_NLS) || defined _LIBC */
@@ -506,7 +506,7 @@ print_and_abort (void)
     fprintf (stderr, "%s\n", _("memory exhausted"));
     fprintf (stderr, "%s\n", _("memory exhausted"));
   exit (obstack_exit_failure);
   exit (obstack_exit_failure);
 }
 }
-
+
 # if 0
 # if 0
 /* These are now turned off because the applications do not use it
 /* These are now turned off because the applications do not use it
    and it uses bcopy via obstack_grow, which causes trouble on sysV.  */
    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 __TEMPNAME_H__
 
 
 #define	__need_size_t
 #define	__need_size_t
 #include <stddef.h>
 #include <stddef.h>
 
 
 /* Disable support for $TMPDIR */
 /* 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;
 	        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)
 #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__
 #ifdef __UCLIBC_MJN3_ONLY__
 #warning TODO: Fix dimensions of hr_locale.
 #warning TODO: Fix dimensions of hr_locale.
 #endif
 #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.
  * This holds for LC_ALL as well.
  */
  */
 static char hr_locale[(MAX_LOCALE_CATEGORY_STR * LC_ALL) + MAX_LOCALE_STR];
 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)
 				x = (const char **)(((char *) base)
                                     + base->category_offsets[i]);
                                     + base->category_offsets[i]);
- 
+
 				stp = __locale_mmap->lc_common_tbl_offsets + 4*i;
 				stp = __locale_mmap->lc_common_tbl_offsets + 4*i;
 				r = (const unsigned char *)( ((char *)__locale_mmap) + *stp );
 				r = (const unsigned char *)( ((char *)__locale_mmap) + *stp );
 				io = (const uint16_t *)( ((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
 									[ ((int)(c8b->idx8uplow
 											 [u >> __LOCALE_DATA_Cuplow_IDX_SHIFT])
 											 [u >> __LOCALE_DATA_Cuplow_IDX_SHIFT])
 									   << __LOCALE_DATA_Cuplow_IDX_SHIFT)
 									   << __LOCALE_DATA_Cuplow_IDX_SHIFT)
-									  + ((128 + u) 
+									  + ((128 + u)
 										 & ((1 << __LOCALE_DATA_Cuplow_IDX_SHIFT)
 										 & ((1 << __LOCALE_DATA_Cuplow_IDX_SHIFT)
 											- 1)) ];
 											- 1)) ];
 								if (m & _ISlower) {
 								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_len > 0);
 					assert(base->thousands_sep[base->thousands_sep_len] == 0);
 					assert(base->thousands_sep[base->thousands_sep_len] == 0);
 #endif
 #endif
-				}					
+				}
 
 
 /* 			} else if (i == LC_COLLATE) { */
 /* 			} else if (i == LC_COLLATE) { */
 /* 				init_cur_collate(__locale_mmap->locales[ __LOCALE_DATA_WIDTH_LOCALES */
 /* 				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 unsigned char nl_data[C_LC_ALL + 1 + 90 + 320] = {
 /* static const char cat_start[LC_ALL + 1] = { */
 /* 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] = { */
 /* static const char item_offset[90] = { */
-	'\x00', '\x02', '\x04', '\x06', '\x08', '\x0a', '\x0c', '\x0e', 
+	'\x00', '\x02', '\x04', '\x06', '\x08', '\x0a', '\x0c', '\x0e',
-	'\x10', '\x12', '\x14', '\x1a', '\x1b', '\x1b', '\x1b', '\x1b', 
+	'\x10', '\x12', '\x14', '\x1a', '\x1b', '\x1b', '\x1b', '\x1b',
-	'\x1b', '\x1b', '\x1b', '\x1b', '\x1b', '\x1c', '\x1c', '\x1c', 
+	'\x1b', '\x1b', '\x1b', '\x1b', '\x1b', '\x1c', '\x1c', '\x1c',
-	'\x1c', '\x1c', '\x1c', '\x1c', '\x1c', '\x1c', '\x1c', '\x1c', 
+	'\x1c', '\x1c', '\x1c', '\x1c', '\x1c', '\x1c', '\x1c', '\x1c',
-	'\x1c', '\x1c', '\x1c', '\x1e', '\x20', '\x24', '\x28', '\x2c', 
+	'\x1c', '\x1c', '\x1c', '\x1e', '\x20', '\x24', '\x28', '\x2c',
-	'\x30', '\x34', '\x38', '\x3c', '\x43', '\x4a', '\x52', '\x5c', 
+	'\x30', '\x34', '\x38', '\x3c', '\x43', '\x4a', '\x52', '\x5c',
-	'\x65', '\x6c', '\x75', '\x79', '\x7d', '\x81', '\x85', '\x89', 
+	'\x65', '\x6c', '\x75', '\x79', '\x7d', '\x81', '\x85', '\x89',
-	'\x8d', '\x91', '\x95', '\x99', '\x9d', '\xa1', '\xa5', '\xad', 
+	'\x8d', '\x91', '\x95', '\x99', '\x9d', '\xa1', '\xa5', '\xad',
-	'\x36', '\x3c', '\x42', '\x46', '\x4b', '\x50', '\x57', '\x61', 
+	'\x36', '\x3c', '\x42', '\x46', '\x4b', '\x50', '\x57', '\x61',
-	'\x69', '\x72', '\x7b', '\x7e', '\x81', '\x96', '\x9f', '\xa8', 
+	'\x69', '\x72', '\x7b', '\x7e', '\x81', '\x96', '\x9f', '\xa8',
-	'\xb3', '\xb3', '\xb3', '\xb3', '\xb3', '\xb3', '\xb4', '\xba', 
+	'\xb3', '\xb3', '\xb3', '\xb3', '\xb3', '\xb3', '\xb4', '\xba',
-	'\xbf', '\xbf', 
+	'\xbf', '\xbf',
 /* }; */
 /* }; */
 /* static const char C_locale_data[320] = { */
 /* static const char C_locale_data[320] = { */
-	   '0', '\x00',    '1', '\x00',    '2', '\x00',    '3', '\x00', 
+	   '0', '\x00',    '1', '\x00',    '2', '\x00',    '3', '\x00',
-	   '4', '\x00',    '5', '\x00',    '6', '\x00',    '7', '\x00', 
+	   '4', '\x00',    '5', '\x00',    '6', '\x00',    '7', '\x00',
-	   '8', '\x00',    '9', '\x00',    'A',    'S',    'C',    'I', 
+	   '8', '\x00',    '9', '\x00',    'A',    'S',    'C',    'I',
-	   'I', '\x00',    '.', '\x00', '\x7f', '\x00',    '-', '\x00', 
+	   'I', '\x00',    '.', '\x00', '\x7f', '\x00',    '-', '\x00',
-	   'S',    'u',    'n', '\x00',    'M',    'o',    'n', '\x00', 
+	   'S',    'u',    'n', '\x00',    'M',    'o',    'n', '\x00',
-	   'T',    'u',    'e', '\x00',    'W',    'e',    'd', '\x00', 
+	   'T',    'u',    'e', '\x00',    'W',    'e',    'd', '\x00',
-	   'T',    'h',    'u', '\x00',    'F',    'r',    'i', '\x00', 
+	   'T',    'h',    'u', '\x00',    'F',    'r',    'i', '\x00',
-	   'S',    'a',    't', '\x00',    'S',    'u',    'n',    'd', 
+	   'S',    'a',    't', '\x00',    'S',    'u',    'n',    'd',
-	   'a',    'y', '\x00',    'M',    'o',    'n',    'd',    'a', 
+	   'a',    'y', '\x00',    'M',    'o',    'n',    'd',    'a',
-	   'y', '\x00',    'T',    'u',    'e',    's',    'd',    'a', 
+	   'y', '\x00',    'T',    'u',    'e',    's',    'd',    'a',
-	   'y', '\x00',    'W',    'e',    'd',    'n',    'e',    's', 
+	   'y', '\x00',    'W',    'e',    'd',    'n',    'e',    's',
-	   'd',    'a',    'y', '\x00',    'T',    'h',    'u',    'r', 
+	   'd',    'a',    'y', '\x00',    'T',    'h',    'u',    'r',
-	   's',    'd',    'a',    'y', '\x00',    'F',    'r',    'i', 
+	   's',    'd',    'a',    'y', '\x00',    'F',    'r',    'i',
-	   'd',    'a',    'y', '\x00',    'S',    'a',    't',    'u', 
+	   'd',    'a',    'y', '\x00',    'S',    'a',    't',    'u',
-	   'r',    'd',    'a',    'y', '\x00',    'J',    'a',    'n', 
+	   'r',    'd',    'a',    'y', '\x00',    'J',    'a',    'n',
-	'\x00',    'F',    'e',    'b', '\x00',    'M',    'a',    'r', 
+	'\x00',    'F',    'e',    'b', '\x00',    'M',    'a',    'r',
-	'\x00',    'A',    'p',    'r', '\x00',    'M',    'a',    'y', 
+	'\x00',    'A',    'p',    'r', '\x00',    'M',    'a',    'y',
-	'\x00',    'J',    'u',    'n', '\x00',    'J',    'u',    'l', 
+	'\x00',    'J',    'u',    'n', '\x00',    'J',    'u',    'l',
-	'\x00',    'A',    'u',    'g', '\x00',    'S',    'e',    'p', 
+	'\x00',    'A',    'u',    'g', '\x00',    'S',    'e',    'p',
-	'\x00',    'O',    'c',    't', '\x00',    'N',    'o',    'v', 
+	'\x00',    'O',    'c',    't', '\x00',    'N',    'o',    'v',
-	'\x00',    'D',    'e',    'c', '\x00',    'J',    'a',    'n', 
+	'\x00',    'D',    'e',    'c', '\x00',    'J',    'a',    'n',
-	   'u',    'a',    'r',    'y', '\x00',    'F',    'e',    'b', 
+	   'u',    'a',    'r',    'y', '\x00',    'F',    'e',    'b',
-	   'r',    'u',    'a',    'r',    'y', '\x00',    'M',    'a', 
+	   'r',    'u',    'a',    'r',    'y', '\x00',    'M',    'a',
-	   'r',    'c',    'h', '\x00',    'A',    'p',    'r',    'i', 
+	   'r',    'c',    'h', '\x00',    'A',    'p',    'r',    'i',
-	   'l', '\x00',    'M',    'a',    'y', '\x00',    'J',    'u', 
+	   'l', '\x00',    'M',    'a',    'y', '\x00',    'J',    'u',
-	   'n',    'e', '\x00',    'J',    'u',    'l',    'y', '\x00', 
+	   'n',    'e', '\x00',    'J',    'u',    'l',    'y', '\x00',
-	   'A',    'u',    'g',    'u',    's',    't', '\x00',    'S', 
+	   'A',    'u',    'g',    'u',    's',    't', '\x00',    'S',
-	   'e',    'p',    't',    'e',    'm',    'b',    'e',    'r', 
+	   'e',    'p',    't',    'e',    'm',    'b',    'e',    'r',
-	'\x00',    'O',    'c',    't',    'o',    'b',    'e',    'r', 
+	'\x00',    'O',    'c',    't',    'o',    'b',    'e',    'r',
-	'\x00',    'N',    'o',    'v',    'e',    'm',    'b',    'e', 
+	'\x00',    'N',    'o',    'v',    'e',    'm',    'b',    'e',
-	   'r', '\x00',    'D',    'e',    'c',    'e',    'm',    'b', 
+	   'r', '\x00',    'D',    'e',    'c',    'e',    'm',    'b',
-	   'e',    'r', '\x00',    'A',    'M', '\x00',    'P',    'M', 
+	   'e',    'r', '\x00',    'A',    'M', '\x00',    'P',    'M',
-	'\x00',    '%',    'a',    ' ',    '%',    'b',    ' ',    '%', 
+	'\x00',    '%',    'a',    ' ',    '%',    'b',    ' ',    '%',
-	   'e',    ' ',    '%',    'H',    ':',    '%',    'M',    ':', 
+	   'e',    ' ',    '%',    'H',    ':',    '%',    'M',    ':',
-	   '%',    'S',    ' ',    '%',    'Y', '\x00',    '%',    'm', 
+	   '%',    'S',    ' ',    '%',    'Y', '\x00',    '%',    'm',
-	   '/',    '%',    'd',    '/',    '%',    'y', '\x00',    '%', 
+	   '/',    '%',    'd',    '/',    '%',    'y', '\x00',    '%',
-	   'H',    ':',    '%',    'M',    ':',    '%',    'S', '\x00', 
+	   'H',    ':',    '%',    'M',    ':',    '%',    'S', '\x00',
-	   '%',    'I',    ':',    '%',    'M',    ':',    '%',    'S', 
+	   '%',    'I',    ':',    '%',    'M',    ':',    '%',    'S',
-	   ' ',    '%',    'p', '\x00',    '^',    '[',    'y',    'Y', 
+	   ' ',    '%',    'p', '\x00',    '^',    '[',    'y',    'Y',
-	   ']', '\x00',    '^',    '[',    'n',    'N',    ']', '\x00', 
+	   ']', '\x00',    '^',    '[',    'n',    'N',    ']', '\x00',
 };
 };
 
 
 libc_hidden_proto(nl_langinfo)
 libc_hidden_proto(nl_langinfo)

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

@@ -27,7 +27,7 @@ libc_hidden_proto(abort)
 libc_hidden_proto(fprintf)
 libc_hidden_proto(fprintf)
 
 
 /* Reentrant version of getmntent.  */
 /* Reentrant version of getmntent.  */
-struct mntent *getmntent_r (FILE *filep, 
+struct mntent *getmntent_r (FILE *filep,
 	struct mntent *mnt, char *buff, int bufsize)
 	struct mntent *mnt, char *buff, int bufsize)
 {
 {
 	char *cp, *ptrptr;
 	char *cp, *ptrptr;
@@ -82,13 +82,13 @@ struct mntent *getmntent(FILE * filep)
     static char *buff = NULL;
     static char *buff = NULL;
     static struct mntent mnt;
     static struct mntent mnt;
     __UCLIBC_MUTEX_LOCK(mylock);
     __UCLIBC_MUTEX_LOCK(mylock);
-    
+
     if (!buff) {
     if (!buff) {
             buff = malloc(BUFSIZ);
             buff = malloc(BUFSIZ);
 		if (!buff)
 		if (!buff)
 		    abort();
 		    abort();
     }
     }
-    
+
     tmp = getmntent_r(filep, &mnt, buff, BUFSIZ);
     tmp = getmntent_r(filep, &mnt, buff, BUFSIZ);
     __UCLIBC_MUTEX_UNLOCK(mylock);
     __UCLIBC_MUTEX_UNLOCK(mylock);
     return(tmp);
     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 void free_token (re_token_t *node);
 static reg_errcode_t free_tree (void *extra, bin_tree_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);
 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
 /* 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.
    in regex.h.  Obviously the order here has to be same as there.
    POSIX doesn't require that we do anything for REG_NOERROR,
    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_ESIZE_IDX,
     REG_ERPAREN_IDX
     REG_ERPAREN_IDX
   };
   };
-
+
 /* Entry points for GNU code.  */
 /* Entry points for GNU code.  */
 
 
 /* re_compile_pattern is the GNU regular expression compiler: it
 /* 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.  */
 /* Entry point for POSIX code.  */
 /* regcomp takes a regular expression as a string and compiles it.
 /* regcomp takes a regular expression as a string and compiles it.
 
 
@@ -632,7 +632,7 @@ regfree (preg)
 #if defined _LIBC || defined __UCLIBC__
 #if defined _LIBC || defined __UCLIBC__
 strong_alias(__regfree, regfree)
 strong_alias(__regfree, regfree)
 #endif
 #endif
-
+
 /* Entry points compatible with 4.2 BSD regex library.  We don't define
 /* Entry points compatible with 4.2 BSD regex library.  We don't define
    them unless specifically requested.  */
    them unless specifically requested.  */
 
 
@@ -701,7 +701,7 @@ libc_freeres_fn (free_mem)
 #endif
 #endif
 
 
 #endif /* _REGEX_RE_COMP */
 #endif /* _REGEX_RE_COMP */
-
+
 /* Internal entry point.
 /* Internal entry point.
    Compile the regular expression PATTERN, whose length is LENGTH.
    Compile the regular expression PATTERN, whose length is LENGTH.
    SYNTAX indicate regular expression's syntax.  */
    SYNTAX indicate regular expression's syntax.  */
@@ -1019,7 +1019,7 @@ create_initial_state (re_dfa_t *dfa)
   re_node_set_free (&init_nodes);
   re_node_set_free (&init_nodes);
   return REG_NOERROR;
   return REG_NOERROR;
 }
 }
-
+
 #ifdef RE_ENABLE_I18N
 #ifdef RE_ENABLE_I18N
 /* If it is possible to do searching in single byte encoding instead of UTF-8
 /* 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
    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;
   dfa->has_mb_node = dfa->nbackref > 0 || has_period;
 }
 }
 #endif
 #endif
-
+
 /* Analyze the structure tree, and calculate "first", "next", "edest",
 /* Analyze the structure tree, and calculate "first", "next", "edest",
    "eclosure", and "inveclosure".  */
    "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;
   *new_set = eclosure;
   return REG_NOERROR;
   return REG_NOERROR;
 }
 }
-
+
 /* Functions for token which are used in the parser.  */
 /* Functions for token which are used in the parser.  */
 
 
 /* Fetch a token from INPUT.
 /* 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;
   return 1;
 }
 }
-
+
 /* Functions for parser.  */
 /* Functions for parser.  */
 
 
 /* Entry point of the 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;
   return num;
 }
 }
-
+
 #ifdef RE_ENABLE_I18N
 #ifdef RE_ENABLE_I18N
 static void
 static void
 free_charset (re_charset_t *cset)
 free_charset (re_charset_t *cset)
@@ -3676,7 +3676,7 @@ free_charset (re_charset_t *cset)
   re_free (cset);
   re_free (cset);
 }
 }
 #endif /* RE_ENABLE_I18N */
 #endif /* RE_ENABLE_I18N */
-
+
 /* Functions for binary tree operation.  */
 /* Functions for binary tree operation.  */
 
 
 /* Create a tree node.  */
 /* 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,
 					  const re_node_set *nodes,
 					  unsigned int context,
 					  unsigned int context,
 					  unsigned int hash) internal_function;
 					  unsigned int hash) internal_function;
-
+
 /* Functions for string operation.  */
 /* Functions for string operation.  */
 
 
 /* This function allocate the buffers.  It is necessary to call
 /* 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;
       return IS_NEWLINE (c) && input->newline_anchor ? CONTEXT_NEWLINE : 0;
     }
     }
 }
 }
-
+
 /* Functions for set operation.  */
 /* Functions for set operation.  */
 
 
 static reg_errcode_t
 static reg_errcode_t
@@ -1314,7 +1314,7 @@ re_node_set_remove_at (re_node_set *set, int idx)
   for (; idx < set->nelem; idx++)
   for (; idx < set->nelem; idx++)
     set->elems[idx] = set->elems[idx + 1];
     set->elems[idx] = set->elems[idx + 1];
 }
 }
-
+
 
 
 /* Add the token TOKEN to dfa->nodes, and return the index of the token.
 /* Add the token TOKEN to dfa->nodes, and return the index of the token.
    Or return -1, if an error will be occured.  */
    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))
   (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_empty(p) ((p)->nelem = 0)
 #define re_node_set_free(set) re_free ((set)->elems)
 #define re_node_set_free(set) re_free ((set)->elems)
-
+
 
 
 typedef enum
 typedef enum
 {
 {

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

@@ -223,7 +223,7 @@ char *realloc ();
 # ifndef MB_LEN_MAX
 # ifndef MB_LEN_MAX
 #  define MB_LEN_MAX 1
 #  define MB_LEN_MAX 1
 # endif
 # endif
-
+
 /* Get the interface, including the syntax bits.  */
 /* Get the interface, including the syntax bits.  */
 # ifdef __UCLIBC__
 # ifdef __UCLIBC__
 #  include "_regex.h"
 #  include "_regex.h"
@@ -296,7 +296,7 @@ char *realloc ();
 /* As in Harbison and Steele.  */
 /* As in Harbison and Steele.  */
 #  define SIGN_EXTEND_CHAR(c) ((((unsigned char) (c)) ^ 128) - 128)
 #  define SIGN_EXTEND_CHAR(c) ((((unsigned char) (c)) ^ 128) - 128)
 # endif
 # endif
-
+
 # ifndef emacs
 # ifndef emacs
 /* How many characters in the character set.  */
 /* How many characters in the character set.  */
 #  define CHAR_SET_SIZE 256
 #  define CHAR_SET_SIZE 256
@@ -335,7 +335,7 @@ init_syntax_once ()
 #  define SYNTAX(c) re_syntax_table[(unsigned char) (c)]
 #  define SYNTAX(c) re_syntax_table[(unsigned char) (c)]
 
 
 # endif /* emacs */
 # endif /* emacs */
-
+
 /* Integer type for pointers.  */
 /* Integer type for pointers.  */
 # if !defined _LIBC && !defined __intptr_t_defined
 # if !defined _LIBC && !defined __intptr_t_defined
 typedef unsigned long int uintptr_t;
 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));
 				    struct re_registers *regs, int stop));
 static int wcs_re_compile_fastmap PARAMS ((struct re_pattern_buffer *bufp));
 static int wcs_re_compile_fastmap PARAMS ((struct re_pattern_buffer *bufp));
 #endif
 #endif
-
+
 /* These are the command codes that appear in compiled regular
 /* These are the command codes that appear in compiled regular
    expressions.  Some opcodes are followed by argument bytes.  A
    expressions.  Some opcodes are followed by argument bytes.  A
    command code can specify any interpretation whatsoever for its
    command code can specify any interpretation whatsoever for its
@@ -641,7 +641,7 @@ typedef enum
 # endif /* emacs */
 # endif /* emacs */
 } re_opcode_t;
 } re_opcode_t;
 #endif /* not INSIDE_RECURSION */
 #endif /* not INSIDE_RECURSION */
-
+
 
 
 #ifdef BYTE
 #ifdef BYTE
 # define CHAR_T char
 # define CHAR_T char
@@ -777,7 +777,7 @@ PREFIX(extract_number_and_incr) (destination, source)
 
 
 # endif /* DEBUG */
 # endif /* DEBUG */
 
 
-
+
 
 
 /* If DEBUG is defined, Regex prints many voluminous messages about what
 /* If DEBUG is defined, Regex prints many voluminous messages about what
    it is doing (if the variable `debug' is nonzero).  If linked with the
    it is doing (if the variable `debug' is nonzero).  If linked with the
@@ -1277,7 +1277,7 @@ printchar (c)
 
 
 # endif /* not DEBUG */
 # endif /* not DEBUG */
 
 
-
+
 
 
 # ifdef WCHAR
 # ifdef WCHAR
 /* This  convert a multibyte string to a wide character string.
 /* This  convert a multibyte string to a wide character string.
@@ -1394,7 +1394,7 @@ re_set_syntax (syntax)
 # if defined _LIBC || defined __UCLIBC__
 # if defined _LIBC || defined __UCLIBC__
 strong_alias(__re_set_syntax, re_set_syntax)
 strong_alias(__re_set_syntax, re_set_syntax)
 # endif
 # endif
-
+
 /* This table gives an error message for each of the error codes listed
 /* 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.
    in regex.h.  Obviously the order here has to be same as there.
    POSIX doesn't require that we do anything for REG_NOERROR,
    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_ESIZE_IDX,
     REG_ERPAREN_IDX
     REG_ERPAREN_IDX
   };
   };
-
+
 #endif /* INSIDE_RECURSION */
 #endif /* INSIDE_RECURSION */
 
 
 #ifndef DEFINED_ONCE
 #ifndef DEFINED_ONCE
@@ -1515,7 +1515,7 @@ static const size_t re_error_msgid_idx[] =
 #  undef MATCH_MAY_ALLOCATE
 #  undef MATCH_MAY_ALLOCATE
 # endif
 # endif
 #endif /* not DEFINED_ONCE */
 #endif /* not DEFINED_ONCE */
-
+
 #ifdef INSIDE_RECURSION
 #ifdef INSIDE_RECURSION
 /* Failure stack declarations and macros; both re_compile_fastmap and
 /* Failure stack declarations and macros; both re_compile_fastmap and
    re_match_2 use a failure stack.  These have to be macros because of
    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;						\
   set_regs_matched_done = 0;						\
   DEBUG_STATEMENT (nfailure_points_popped++);				\
   DEBUG_STATEMENT (nfailure_points_popped++);				\
 } /* POP_FAILURE_POINT */
 } /* POP_FAILURE_POINT */
-
+
 /* Structure for per-register (a.k.a. per-group) information.
 /* Structure for per-register (a.k.a. per-group) information.
    Other register information, such as the
    Other register information, such as the
    starting and ending positions (which are addresses), and the list of
    starting and ending positions (which are addresses), and the list of
@@ -2306,7 +2306,7 @@ typedef struct
     || STREQ (string, "cntrl") || STREQ (string, "blank"))
     || STREQ (string, "cntrl") || STREQ (string, "blank"))
 #  endif
 #  endif
 # endif /* DEFINED_ONCE */
 # endif /* DEFINED_ONCE */
-
+
 # ifndef MATCH_MAY_ALLOCATE
 # ifndef MATCH_MAY_ALLOCATE
 
 
 /* If we cannot allocate large objects within re_match_2_internal,
 /* 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 */
 # endif /* not MATCH_MAY_ALLOCATE */
-
+
 # ifndef DEFINED_ONCE
 # ifndef DEFINED_ONCE
 static boolean group_in_compile_stack _RE_ARGS ((compile_stack_type
 static boolean group_in_compile_stack _RE_ARGS ((compile_stack_type
 						 compile_stack,
 						 compile_stack,
@@ -4648,7 +4648,7 @@ byte_compile_range (range_start_char, p_ptr, pend, translate, syntax, b)
   return ret;
   return ret;
 }
 }
 #endif /* WCHAR */
 #endif /* WCHAR */
-
+
 /* re_compile_fastmap computes a ``fastmap'' for the compiled pattern in
 /* re_compile_fastmap computes a ``fastmap'' for the compiled pattern in
    BUFP.  A fastmap records which of the (1 << BYTEWIDTH) possible
    BUFP.  A fastmap records which of the (1 << BYTEWIDTH) possible
    characters can start a string that matches the pattern.  This fastmap
    characters can start a string that matches the pattern.  This fastmap
@@ -5018,7 +5018,7 @@ re_compile_fastmap (bufp)
 #if defined _LIBC || defined __UCLIBC__
 #if defined _LIBC || defined __UCLIBC__
 strong_alias(__re_compile_fastmap, re_compile_fastmap)
 strong_alias(__re_compile_fastmap, re_compile_fastmap)
 #endif
 #endif
-
+
 
 
 /* Set REGS to hold NUM_REGS registers, storing them in STARTS and
 /* Set REGS to hold NUM_REGS registers, storing them in STARTS and
    ENDS.  Subsequent matches using PATTERN_BUFFER and REGS will use
    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__
 #if defined _LIBC || defined __UCLIBC__
 strong_alias(__re_set_registers, re_set_registers)
 strong_alias(__re_set_registers, re_set_registers)
 #endif
 #endif
-
+
 /* Searching routines.  */
 /* Searching routines.  */
 
 
 /* Like re_search_2, below, but only one string is specified, and
 /* 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.  */
    to actually save any registers when none are active.  */
 #define NO_HIGHEST_ACTIVE_REG (1 << BYTEWIDTH)
 #define NO_HIGHEST_ACTIVE_REG (1 << BYTEWIDTH)
 #define NO_LOWEST_ACTIVE_REG (NO_HIGHEST_ACTIVE_REG + 1)
 #define NO_LOWEST_ACTIVE_REG (NO_HIGHEST_ACTIVE_REG + 1)
-
+
 #else /* not INSIDE_RECURSION */
 #else /* not INSIDE_RECURSION */
 /* Matching routines.  */
 /* Matching routines.  */
 
 
@@ -7659,7 +7659,7 @@ byte_re_match_2_internal (bufp, string1, size1,string2, size2, pos,
 
 
   return -1;         			/* Failure to match.  */
   return -1;         			/* Failure to match.  */
 } /* re_match_2 */
 } /* re_match_2 */
-
+
 /* Subroutine definitions for re_match_2.  */
 /* Subroutine definitions for re_match_2.  */
 
 
 
 
@@ -7931,7 +7931,7 @@ PREFIX(bcmp_translate) (s1, s2, len, translate)
     }
     }
   return 0;
   return 0;
 }
 }
-
+
 
 
 #else /* not INSIDE_RECURSION */
 #else /* not INSIDE_RECURSION */
 
 
@@ -7980,7 +7980,7 @@ re_compile_pattern (pattern, length, bufp)
 #if defined _LIBC || defined __UCLIBC__
 #if defined _LIBC || defined __UCLIBC__
 strong_alias(__re_compile_pattern, re_compile_pattern)
 strong_alias(__re_compile_pattern, re_compile_pattern)
 #endif
 #endif
-
+
 /* Entry points compatible with 4.2 BSD regex library.  We don't define
 /* Entry points compatible with 4.2 BSD regex library.  We don't define
    them unless specifically requested.  */
    them unless specifically requested.  */
 
 
@@ -8056,7 +8056,7 @@ re_exec (s)
 }
 }
 
 
 #endif /* _REGEX_RE_COMP */
 #endif /* _REGEX_RE_COMP */
-
+
 /* POSIX.2 functions.  Don't define these for Emacs.  */
 /* POSIX.2 functions.  Don't define these for Emacs.  */
 
 
 #ifndef emacs
 #ifndef emacs
@@ -8331,7 +8331,7 @@ strong_alias(__regfree, regfree)
 
 
 #endif /* not INSIDE_RECURSION */
 #endif /* not INSIDE_RECURSION */
 
 
-
+
 #undef STORE_NUMBER
 #undef STORE_NUMBER
 #undef STORE_NUMBER_AND_INCR
 #undef STORE_NUMBER_AND_INCR
 #undef EXTRACT_NUMBER
 #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;
      internal_function;
 static reg_errcode_t extend_buffers (re_match_context_t *mctx)
 static reg_errcode_t extend_buffers (re_match_context_t *mctx)
      internal_function;
      internal_function;
-
+
 /* Entry point for POSIX code.  */
 /* Entry point for POSIX code.  */
 
 
 /* regexec searches for a given pattern, specified by PREG, in the
 /* 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__
 #if defined _LIBC || defined __UCLIBC__
 strong_alias(__re_set_registers, re_set_registers)
 strong_alias(__re_set_registers, re_set_registers)
 #endif
 #endif
-
+
 /* Entry points compatible with 4.2 BSD regex library.  We don't define
 /* Entry points compatible with 4.2 BSD regex library.  We don't define
    them unless specifically requested.  */
    them unless specifically requested.  */
 
 
@@ -610,7 +610,7 @@ re_exec (s)
   return 0 == regexec (&re_comp_buf, s, 0, NULL, 0);
   return 0 == regexec (&re_comp_buf, s, 0, NULL, 0);
 }
 }
 #endif /* _REGEX_RE_COMP */
 #endif /* _REGEX_RE_COMP */
-
+
 /* Internal entry point.  */
 /* Internal entry point.  */
 
 
 /* Searches for a compiled pattern PREG in the string STRING, whose
 /* 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 */
 #endif /* RE_ENABLE_I18N */
 
 
-
+
 /* Functions for state transition.  */
 /* Functions for state transition.  */
 
 
 /* Return the next state to which the current state STATE will transit by
 /* 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;
   return REG_NOERROR;
 }
 }
 
 
-
+
 /* Functions for matching context.  */
 /* Functions for matching context.  */
 
 
 /* Initialize MCTX.  */
 /* 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)
  * This file lifted in toto from 'Dlibs' on the atari ST  (RdeBath)
  *
  *
- * 
+ *
  *    Dale Schumacher                         399 Beacon Ave.
  *    Dale Schumacher                         399 Beacon Ave.
  *    (alias: Dalnefre')                      St. Paul, MN  55104
  *    (alias: Dalnefre')                      St. Paul, MN  55104
  *    dal@syntel.UUCP                         United States of America
  *    dal@syntel.UUCP                         United States of America
@@ -36,7 +36,7 @@ libc_hidden_def(lfind)
 
 
 /* Experimentally off - libc_hidden_proto(memcpy) */
 /* 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 *))
 	size_t size, int (*compar)(const void *, const void *))
 {
 {
 	register char *p;
 	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
 node	*root;			Root of the tree to be walked
 void	(*action)();		Function to be called at each node
 void	(*action)();		Function to be called at each node
 PTR
 PTR

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

@@ -60,7 +60,7 @@ static FILE *tf;
 static struct ttyent tty;
 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.
  * a pointer to the next field.
  */
  */
 #define	QUOTED	1
 #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
 	/* 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. */
 	 * anything outside of 0-0x7f is illegal in C/POSIX and UTF-8 locales. */
-	
+
 	/* TODO: need unsigned version of wint_t... */
 	/* TODO: need unsigned version of wint_t... */
 /*  	return (((unsigned int)c) < 0x80) ? c : WEOF; */
 /*  	return (((unsigned int)c) < 0x80) ? c : WEOF; */
 	return ((c >= 0) && (c < 0x80)) ? c : EOF;
 	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) )
 ( defined(__CTYPE_HAS_8_BIT_LOCALES) || defined(__CTYPE_HAS_UTF_8_LOCALES) )
 
 
 static const unsigned char new_idx[] = {
 static const unsigned char new_idx[] = {
-	0,    5,    5,    6,   10,   15,   28,   39, 
+	0,    5,    5,    6,   10,   15,   28,   39,
-	48,   48,   71,   94,  113,  128,  139,  154, 
+	48,   48,   71,   94,  113,  128,  139,  154,
-	175,  186,  188,  188,  188,  188,  188,  188, 
+	175,  186,  188,  188,  188,  188,  188,  188,
-	203,  208,  208,  208,  208,  208,  208,  208, 
+	203,  208,  208,  208,  208,  208,  208,  208,
-	208,  219,  219,  219,  222,  222,  222,  222, 
+	208,  219,  219,  219,  222,  222,  222,  222,
-	222,  222,  222,  222,  222,  222,  222,  224, 
+	222,  222,  222,  222,  222,  222,  222,  224,
-	224,  231,  231,  231,  231,  231,  231,  231, 
+	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,  231,  231,  231,
-	231,  231,  231,  231,  231,  231,  231,  231, 
+	231,  231,  231,  231,  231,  231,  231,  231,
-	231,  231,  231,  231,  231,  231,  231,  231, 
+	231,  231,  231,  231,  231,  231,  231,  231,
-	231,  231,  231,  231,  231,  231,  231,  231, 
+	231,  231,  231,  231,  231,  231,  231,  231,
-	231,  231,  231,  231,  231,  231,  231,  231, 
+	231,  231,  231,  231,  231,  231,  231,  231,
-	231,  231,  231,  231,  231,  231,  231,  231, 
+	231,  231,  231,  231,  231,  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, 
+	231,  231,  231,  231,  231,  233,  233,  233,
-	233,  233,  233,  233,  234,  234,  234,  234, 
+	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, 
+	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,  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, 
+	236,  237,  237,  238,  241,  241,  242,  249,
-	255, 
+	255,
 };
 };
 
 
 static const unsigned char new_tbl[] = {
 static const unsigned char new_tbl[] = {
-	0x00, 0x01, 0x20, 0x7f, 0xa0, 0x00, 0x00, 0x50, 
+	0x00, 0x01, 0x20, 0x7f, 0xa0, 0x00, 0x00, 0x50,
-	0x60, 0x70, 0x00, 0x83, 0x87, 0x88, 0x8a, 0x00, 
+	0x60, 0x70, 0x00, 0x83, 0x87, 0x88, 0x8a, 0x00,
-	0x91, 0xa2, 0xa3, 0xba, 0xbb, 0xbe, 0xbf, 0xc0, 
+	0x91, 0xa2, 0xa3, 0xba, 0xbb, 0xbe, 0xbf, 0xc0,
-	0xc1, 0xc3, 0xc4, 0xc5, 0x00, 0x4b, 0x56, 0x70, 
+	0xc1, 0xc3, 0xc4, 0xc5, 0x00, 0x4b, 0x56, 0x70,
-	0x71, 0xd6, 0xe5, 0xe7, 0xe9, 0xea, 0xee, 0x00, 
+	0x71, 0xd6, 0xe5, 0xe7, 0xe9, 0xea, 0xee, 0x00,
-	0x0f, 0x10, 0x11, 0x12, 0x30, 0x4b, 0xa6, 0xb1, 
+	0x0f, 0x10, 0x11, 0x12, 0x30, 0x4b, 0xa6, 0xb1,
-	0x00, 0x01, 0x03, 0x3c, 0x3d, 0x41, 0x49, 0x4d, 
+	0x00, 0x01, 0x03, 0x3c, 0x3d, 0x41, 0x49, 0x4d,
-	0x4e, 0x51, 0x55, 0x62, 0x64, 0x81, 0x82, 0xbc, 
+	0x4e, 0x51, 0x55, 0x62, 0x64, 0x81, 0x82, 0xbc,
-	0xbd, 0xc1, 0xc5, 0xcd, 0xce, 0xe2, 0xe4, 0x00, 
+	0xbd, 0xc1, 0xc5, 0xcd, 0xce, 0xe2, 0xe4, 0x00,
-	0x02, 0x03, 0x3c, 0x3d, 0x41, 0x43, 0x47, 0x49, 
+	0x02, 0x03, 0x3c, 0x3d, 0x41, 0x43, 0x47, 0x49,
-	0x4b, 0x4e, 0x70, 0x72, 0x81, 0x83, 0xbc, 0xbd, 
+	0x4b, 0x4e, 0x70, 0x72, 0x81, 0x83, 0xbc, 0xbd,
-	0xc1, 0xc6, 0xc7, 0xc9, 0xcd, 0xce, 0x00, 0x01, 
+	0xc1, 0xc6, 0xc7, 0xc9, 0xcd, 0xce, 0x00, 0x01,
-	0x02, 0x3c, 0x3d, 0x3f, 0x40, 0x41, 0x44, 0x4d, 
+	0x02, 0x3c, 0x3d, 0x3f, 0x40, 0x41, 0x44, 0x4d,
-	0x4e, 0x56, 0x57, 0x82, 0x83, 0xc0, 0xc1, 0xcd, 
+	0x4e, 0x56, 0x57, 0x82, 0x83, 0xc0, 0xc1, 0xcd,
-	0xce, 0x00, 0x3e, 0x41, 0x46, 0x49, 0x4a, 0x4e, 
+	0xce, 0x00, 0x3e, 0x41, 0x46, 0x49, 0x4a, 0x4e,
-	0x55, 0x57, 0xbf, 0xc0, 0xc6, 0xc7, 0xcc, 0xce, 
+	0x55, 0x57, 0xbf, 0xc0, 0xc6, 0xc7, 0xcc, 0xce,
-	0x00, 0x41, 0x44, 0x4d, 0x4e, 0xca, 0xcb, 0xd2, 
+	0x00, 0x41, 0x44, 0x4d, 0x4e, 0xca, 0xcb, 0xd2,
-	0xd5, 0xd6, 0xd7, 0x00, 0x31, 0x32, 0x34, 0x3b, 
+	0xd5, 0xd6, 0xd7, 0x00, 0x31, 0x32, 0x34, 0x3b,
-	0x47, 0x4f, 0xb1, 0xb2, 0xb4, 0xba, 0xbb, 0xbd, 
+	0x47, 0x4f, 0xb1, 0xb2, 0xb4, 0xba, 0xbb, 0xbd,
-	0xc8, 0xce, 0x00, 0x18, 0x1a, 0x35, 0x36, 0x37, 
+	0xc8, 0xce, 0x00, 0x18, 0x1a, 0x35, 0x36, 0x37,
-	0x38, 0x39, 0x3a, 0x71, 0x7f, 0x80, 0x85, 0x86, 
+	0x38, 0x39, 0x3a, 0x71, 0x7f, 0x80, 0x85, 0x86,
-	0x88, 0x90, 0x98, 0x99, 0xbd, 0xc6, 0xc7, 0x00, 
+	0x88, 0x90, 0x98, 0x99, 0xbd, 0xc6, 0xc7, 0x00,
-	0x2d, 0x31, 0x32, 0x33, 0x36, 0x38, 0x39, 0x3a, 
+	0x2d, 0x31, 0x32, 0x33, 0x36, 0x38, 0x39, 0x3a,
-	0x58, 0x5a, 0x00, 0x60, 0x00, 0x12, 0x15, 0x32, 
+	0x58, 0x5a, 0x00, 0x60, 0x00, 0x12, 0x15, 0x32,
-	0x35, 0x52, 0x54, 0x72, 0x74, 0xb7, 0xbe, 0xc6, 
+	0x35, 0x52, 0x54, 0x72, 0x74, 0xb7, 0xbe, 0xc6,
-	0xc7, 0xc9, 0xd4, 0x00, 0x0b, 0x0f, 0xa9, 0xaa, 
+	0xc7, 0xc9, 0xd4, 0x00, 0x0b, 0x0f, 0xa9, 0xaa,
-	0x00, 0x0b, 0x10, 0x2a, 0x2f, 0x60, 0x64, 0x6a, 
+	0x00, 0x0b, 0x10, 0x2a, 0x2f, 0x60, 0x64, 0x6a,
-	0x70, 0xd0, 0xeb, 0x00, 0x29, 0x2b, 0x00, 0x80, 
+	0x70, 0xd0, 0xeb, 0x00, 0x29, 0x2b, 0x00, 0x80,
-	0x00, 0x2a, 0x30, 0x3f, 0x40, 0x99, 0x9b, 0x00, 
+	0x00, 0x2a, 0x30, 0x3f, 0x40, 0x99, 0x9b, 0x00,
-	0xd0, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x00, 0x1e, 
+	0xd0, 0x00, 0x00, 0xa4, 0x00, 0x00, 0x00, 0x1e,
-	0x1f, 0x00, 0x00, 0x10, 0x20, 0x24, 0x30, 0x70, 
+	0x1f, 0x00, 0x00, 0x10, 0x20, 0x24, 0x30, 0x70,
-	0xff, 0x00, 0x61, 0xe0, 0xe7, 0xf9, 0xfc, 
+	0xff, 0x00, 0x61, 0xe0, 0xe7, 0xf9, 0xfc,
 };
 };
 
 
 static const signed char new_wtbl[] = {
 static const signed char new_wtbl[] = {
-	0,   -1,    1,   -1,    1,    1,    0,    1, 
+	0,   -1,    1,   -1,    1,    1,    0,    1,
-	0,    1,    1,    0,    1,    0,    1,    1, 
+	0,    1,    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, 
+	0,    1,    0,    1,    1,    0,    1,    0,
-	1,    0,    1,    0,    1,    0,    1,    1, 
+	1,    0,    1,    0,    1,    0,    1,    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,    0, 
+	1,    0,    1,    0,    1,    0,    1,    0,
-	1,    0,    1,    0,    1,    0,    1,    1, 
+	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,    0,    1, 
+	0,    1,    0,    1,    0,    1,    0,    1,
-	0,    1,    0,    1,    0,    1,    1,    0, 
+	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,    0,    1,    0, 
+	1,    0,    1,    0,    1,    0,    1,    0,
-	1,    1,    0,    1,    0,    1,    0,    1, 
+	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, 
+	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, 
+	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,    0,    1,    0,    1,    0,    1,    1, 
+	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,    2,    0,    1,    0,    1,    0, 
+	0,    1,    2,    0,    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, 
+	1,    0,    1,    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,    2,    1,    1,    2, 
+	1,    0,    1,    1,    2,    1,    1,    2,
-	2,    0,    2,    1,    2,    0,    2,    2, 
+	2,    0,    2,    1,    2,    0,    2,    2,
-	1,    1,    2,    1,    1,    2,    1,    0, 
+	1,    1,    2,    1,    1,    2,    1,    0,
-	1,    1,    0,    1,    0,    1,    2,    1, 
+	1,    1,    0,    1,    0,    1,    2,    1,
-	0,    2,    1,    2,    1,    0,    1, 
+	0,    2,    1,    2,    1,    0,    1,
 };
 };
 
 
 libc_hidden_proto(wcsnrtombs)
 libc_hidden_proto(wcsnrtombs)
@@ -1043,7 +1043,7 @@ int wcswidth(const wchar_t *pwcs, size_t n)
 
 
 	if (ENCODING == __ctype_encoding_7_bit) {
 	if (ENCODING == __ctype_encoding_7_bit) {
 		size_t i;
 		size_t i;
-		
+
 		for (i = 0 ; (i < n) && pwcs[i] ; i++) {
 		for (i = 0 ; (i < n) && pwcs[i] ; i++) {
 			if (pwcs[i] != ((unsigned char)(pwcs[i]))) {
 			if (pwcs[i] != ((unsigned char)(pwcs[i]))) {
 				return -1;
 				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. */
 	/* For stricter handling of allowed unicode values... see comments above. */
 	else if (ENCODING == __ctype_encoding_utf8) {
 	else if (ENCODING == __ctype_encoding_utf8) {
 		size_t i;
 		size_t i;
-		
+
 		for (i = 0 ; (i < n) && pwcs[i] ; i++) {
 		for (i = 0 ; (i < n) && pwcs[i] ; i++) {
 			if ( (((__uwchar_t)((pwcs[i]) - 0xfffeU)) < 2)
 			if ( (((__uwchar_t)((pwcs[i]) - 0xfffeU)) < 2)
 				 || (((__uwchar_t)((pwcs[i]) - 0xd800U)) < (0xe000U - 0xd800U))
 				 || (((__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);
 					wc += (wc2 << 16);
 				} else if (px->tocodeset & 1) wc = bswap_16(wc);
 				} else if (px->tocodeset & 1) wc = bswap_16(wc);
-			}				
+			}
 			(*outbuf)[0] = (char)((unsigned char)(wc));
 			(*outbuf)[0] = (char)((unsigned char)(wc));
 			(*outbuf)[1] = (char)((unsigned char)(wc >> 8));
 			(*outbuf)[1] = (char)((unsigned char)(wc >> 8));
 			if (inco == 4) {
 			if (inco == 4) {
@@ -1580,10 +1580,10 @@ extern const unsigned char __iconv_codesets[];
 char *progname;
 char *progname;
 int hide_errors;
 int hide_errors;
 
 
-static void error_msg(const char *fmt, ...) 
+static void error_msg(const char *fmt, ...)
 	 __attribute__ ((noreturn, format (printf, 1, 2)));
 	 __attribute__ ((noreturn, format (printf, 1, 2)));
 
 
-static void error_msg(const char *fmt, ...) 
+static void error_msg(const char *fmt, ...)
 {
 {
 	va_list arg;
 	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();
 			uid = getuid();
 			buffer = alloca(buflen);
 			buffer = alloca(buflen);
 
 
-			while ((result = getpwuid_r(uid, &pwd, buffer, buflen, &tpwd)) 
+			while ((result = getpwuid_r(uid, &pwd, buffer, buflen, &tpwd))
-					!= 0 && errno == ERANGE) 
+					!= 0 && errno == ERANGE)
 			{
 			{
 				buflen += 1000;
 				buflen += 1000;
 				buffer = alloca(buflen);
 				buffer = alloca(buflen);

+ 1 - 1
libc/signal/allocrtsig.c

@@ -22,7 +22,7 @@
 #include <signal.h>
 #include <signal.h>
 #include <sys/types.h>
 #include <sys/types.h>
 #include <sys/syscall.h>
 #include <sys/syscall.h>
- 
+
 /* Only enable rt signals when it is supported at compile time */
 /* Only enable rt signals when it is supported at compile time */
 #ifndef __NR_rt_sigaction
 #ifndef __NR_rt_sigaction
 /* In these variables we keep track of the used variables.  If the
 /* 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;
 		kact.sa_restorer = act->sa_restorer;
 # endif
 # endif
 	}
 	}
-	
+
 	/* XXX The size argument hopefully will have to be changed to the
 	/* XXX The size argument hopefully will have to be changed to the
 	   real size of the user-level sigset_t.  */
 	   real size of the user-level sigset_t.  */
 	result = __syscall_rt_sigaction(sig,
 	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) attribute_hidden;
 int __sigjmp_save (sigjmp_buf env, int savemask)
 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);
 	    sigprocmask (SIG_BLOCK, (sigset_t *) NULL, &env[0].__saved_mask) == 0);
 
 
     return 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
 /* Copyright (C) 2000, 2001, 2003      Manuel Novoa III
  *
  *
- * Function: 
+ * Function:
  *
  *
  *     ssize_t _fpmaxtostr(FILE * fp, __fpmax_t x, struct printf_info *info,
  *     ssize_t _fpmaxtostr(FILE * fp, __fpmax_t x, struct printf_info *info,
  *                         __fp_outfunc_t fp_outfunc);
  *                         __fp_outfunc_t fp_outfunc);
@@ -185,7 +185,7 @@ static const __fpmax_t exp16_table[] = {
 #if FPMAX_MAX_EXP >= 16384
 #if FPMAX_MAX_EXP >= 16384
 	0x1.0p16384L
 	0x1.0p16384L
 #endif
 #endif
-#if FPMAX_MAX_EXP >= 32768 
+#if FPMAX_MAX_EXP >= 32768
 #error unsupported FPMAX_MAX_EXP.  please increase table
 #error unsupported FPMAX_MAX_EXP.  please increase table
 #endif
 #endif
 };
 };
@@ -410,7 +410,7 @@ ssize_t _fpmaxtostr(FILE * fp, __fpmax_t x, struct printf_info *info,
 	if (mode < 'a') {
 	if (mode < 'a') {
 		*exp_buf -= ('a' - 'A'); /* e->E and p->P */
 		*exp_buf -= ('a' - 'A'); /* e->E and p->P */
 		mode += ('a' - 'A');
 		mode += ('a' - 'A');
-	} 
+	}
 
 
 	o_mode = mode;
 	o_mode = mode;
 	if ((mode == 'g') && (preci > 0)){
 	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__
 #ifdef __UCLIBC_HAS_HEXADECIMAL_FLOATS__
 	if ((mode|0x20) == 'a') {
 	if ((mode|0x20) == 'a') {
 		char *q;
 		char *q;
-			
+
 		for (q = e ; *q ; --q) {
 		for (q = e ; *q ; --q) {
 			if (*q > '9') {
 			if (*q > '9') {
 				*q += (*exp_buf - ('p' - 'a') - '9' - 1);
 				*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;
 			digit = low % base;
 			low /= base;
 			low /= base;
 		}
 		}
-		
+
 #ifndef __LOCALE_C_ONLY
 #ifndef __LOCALE_C_ONLY
 		if (unlikely(outdigit)) {
 		if (unlikely(outdigit)) {
 			bufend -= __UCLIBC_CURLOCALE_DATA.outdigit_length[digit];
 			bufend -= __UCLIBC_CURLOCALE_DATA.outdigit_length[digit];

+ 13 - 13
libc/stdio/_vfprintf.c

@@ -35,7 +35,7 @@
 /* April 1, 2002
 /* April 1, 2002
  * Initialize thread locks for fake files in vsnprintf and vdprintf.
  * Initialize thread locks for fake files in vsnprintf and vdprintf.
  *    reported by Erik Andersen (andersen@codepoet.com)
  *    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>
  *    reported by Ilguiz Latypov <ilatypov@superbt.com>
  *
  *
  * May 10, 2002
  * May 10, 2002
@@ -241,7 +241,7 @@ enum {
 	FLAG_THOUSANDS	=	0x20,
 	FLAG_THOUSANDS	=	0x20,
 	FLAG_I18N		=	0x40,	/* only works for d, i, u */
 	FLAG_I18N		=	0x40,	/* only works for d, i, u */
 	FLAG_WIDESTREAM =   0x80
 	FLAG_WIDESTREAM =   0x80
-};	  
+};
 
 
 /**********************************************************************/
 /**********************************************************************/
 
 
@@ -544,7 +544,7 @@ int attribute_hidden _ppfs_init(register ppfs_t *ppfs, const char *fmt0)
 #if 1
 #if 1
 		/* TODO - use memset here since already "paid for"? */
 		/* TODO - use memset here since already "paid for"? */
 		register int *p = ppfs->argtype;
 		register int *p = ppfs->argtype;
-		
+
 		r = MAX_ARGS;
 		r = MAX_ARGS;
 		do {
 		do {
 			*p++ = __PA_NOARG;
 			*p++ = __PA_NOARG;
@@ -637,7 +637,7 @@ void attribute_hidden _ppfs_setargs(register ppfs_t *ppfs)
 				*(int *)
 				*(int *)
 #endif
 #endif
 				GET_VA_ARG(p,u,unsigned int,ppfs->arg);
 				GET_VA_ARG(p,u,unsigned int,ppfs->arg);
-		} 
+		}
 		if (ppfs->info.prec == INT_MIN) {
 		if (ppfs->info.prec == INT_MIN) {
 			ppfs->info.prec =
 			ppfs->info.prec =
 #ifdef __va_arg_ptr
 #ifdef __va_arg_ptr
@@ -690,7 +690,7 @@ void attribute_hidden _ppfs_setargs(register ppfs_t *ppfs)
 				case PA_STRING:
 				case PA_STRING:
 				case PA_WSTRING:
 				case PA_WSTRING:
 					GET_VA_ARG(p,p,void *,ppfs->arg);
 					GET_VA_ARG(p,p,void *,ppfs->arg);
-					break;				
+					break;
 				case __PA_NOARG:
 				case __PA_NOARG:
 					continue;
 					continue;
 			}
 			}
@@ -701,7 +701,7 @@ void attribute_hidden _ppfs_setargs(register ppfs_t *ppfs)
 		if (ppfs->info.width == INT_MIN) {
 		if (ppfs->info.width == INT_MIN) {
 			ppfs->info.width
 			ppfs->info.width
 				= (int) GET_ARG_VALUE(p + ppfs->argnumber[0] - 1,u,unsigned int);
 				= (int) GET_ARG_VALUE(p + ppfs->argnumber[0] - 1,u,unsigned int);
-		} 
+		}
 		if (ppfs->info.prec == INT_MIN) {
 		if (ppfs->info.prec == INT_MIN) {
 			ppfs->info.prec
 			ppfs->info.prec
 				= (int) GET_ARG_VALUE(p + ppfs->argnumber[1] - 1,u,unsigned int);
 				= (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??? */
 /* 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))
 #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. */
 	restart_flags:		/* Process flags. */
 		i = 1;
 		i = 1;
 		p = spec_flags;
 		p = spec_flags;
-	
+
 		do {
 		do {
 			if (*fmt == *p++) {
 			if (*fmt == *p++) {
 				++fmt;
 				++fmt;
@@ -1100,7 +1100,7 @@ int attribute_hidden _ppfs_parsespec(ppfs_t *ppfs)
 		/* Otherwise error. */
 		/* Otherwise error. */
 		return -1;
 		return -1;
 	}
 	}
-		
+
 #if defined(__UCLIBC_HAS_GLIBC_CUSTOM_PRINTF__) || defined(__UCLIBC_HAS_PRINTF_M_SPEC__)
 #if defined(__UCLIBC_HAS_GLIBC_CUSTOM_PRINTF__) || defined(__UCLIBC_HAS_PRINTF_M_SPEC__)
  DONE:
  DONE:
 #endif
 #endif
@@ -1260,7 +1260,7 @@ static size_t _outnstr(FILE *stream, const char *s, size_t wclen)
 
 
 	mbstate.__mask = 0;
 	mbstate.__mask = 0;
 	todo = wclen;
 	todo = wclen;
-	
+
 	while (todo) {
 	while (todo) {
 		r = mbsrtowcs(wbuf, &s,
 		r = mbsrtowcs(wbuf, &s,
 					  ((todo <= sizeof(wbuf)/sizeof(wbuf[0]))
 					  ((todo <= sizeof(wbuf)/sizeof(wbuf[0]))
@@ -1364,7 +1364,7 @@ static int _ppwfs_init(register ppfs_t *ppfs, const wchar_t *fmt0)
 #if 1
 #if 1
 		/* TODO - use memset here since already "paid for"? */
 		/* TODO - use memset here since already "paid for"? */
 		register int *p = ppfs->argtype;
 		register int *p = ppfs->argtype;
-		
+
 		r = MAX_ARGS;
 		r = MAX_ARGS;
 		do {
 		do {
 			*p++ = __PA_NOARG;
 			*p++ = __PA_NOARG;
@@ -1900,7 +1900,7 @@ int VFPRINTF_internal (FILE * __restrict stream,
 			if (!*format) {			/* we're done */
 			if (!*format) {			/* we're done */
 				break;
 				break;
 			}
 			}
-		
+
 			if (format[1] != '%') {	/* if we get here, *format == '%' */
 			if (format[1] != '%') {	/* if we get here, *format == '%' */
 				/* TODO: _do_one_spec needs to know what the output funcs are!!! */
 				/* TODO: _do_one_spec needs to know what the output funcs are!!! */
 				ppfs.fmtpos = (const char *)(++format);
 				ppfs.fmtpos = (const char *)(++format);
@@ -1960,7 +1960,7 @@ int VFPRINTF (FILE * __restrict stream,
 
 
 	__STDIO_AUTO_THREADLOCK(stream);
 	__STDIO_AUTO_THREADLOCK(stream);
 
 
-	if 
+	if
 #ifdef L_vfprintf
 #ifdef L_vfprintf
 	(!__STDIO_STREAM_IS_NARROW_WRITING(stream)
 	(!__STDIO_STREAM_IS_NARROW_WRITING(stream)
 	 && __STDIO_STREAM_TRANS_TO_WRITE(stream, __FLAG_NARROW))
 	 && __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;
 	intptr_t cur_mode;
 
 
 	return (((cur_mode = fcntl(filedes, F_GETFL))) != -1)
 	return (((cur_mode = fcntl(filedes, F_GETFL))) != -1)
-		? _stdio_fopen(cur_mode, mode, NULL, filedes) 
+		? _stdio_fopen(cur_mode, mode, NULL, filedes)
 		: NULL;
 		: NULL;
 }
 }
 libc_hidden_def(fdopen)
 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->dynbuf = 1;
 			*cookie->buf = 0;	/* If we're appending, treat as empty file. */
 			*cookie->buf = 0;	/* If we're appending, treat as empty file. */
 		}
 		}
-		
+
 #ifndef __BCC__
 #ifndef __BCC__
 		fp = fopencookie(cookie, modes, _fmo_io_funcs);
 		fp = fopencookie(cookie, modes, _fmo_io_funcs);
 #else
 #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;
 					goto DONE;
 				}
 				}
 			}
 			}
- 
+
 			/* We need to read from the host environment, so we must
 			/* We need to read from the host environment, so we must
 			 * flush all line buffered streams if the stream is not
 			 * flush all line buffered streams if the stream is not
 			 * fully buffered. */
 			 * 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)
 		if ((!__STDIO_STREAM_IS_WRITING(stream)
 			  || !__STDIO_COMMIT_WRITE_BUFFER(stream))
 			  || !__STDIO_COMMIT_WRITE_BUFFER(stream))
-			&& ((whence != SEEK_CUR) 
+			&& ((whence != SEEK_CUR)
 				 || (__stdio_adjust_position(stream, &pos) >= 0))
 				 || (__stdio_adjust_position(stream, &pos) >= 0))
 			&& (__SEEK(stream, &pos, whence) >= 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)
  * This file based on printf.c from 'Dlibs' on the atari ST  (RdeBath)
  *
  *
- * 
+ *
  *    Dale Schumacher                         399 Beacon Ave.
  *    Dale Schumacher                         399 Beacon Ave.
  *    (alias: Dalnefre')                      St. Paul, MN  55104
  *    (alias: Dalnefre')                      St. Paul, MN  55104
  *    dal@syntel.UUCP                         United States of America
  *    dal@syntel.UUCP                         United States of America
@@ -72,7 +72,7 @@
  * Fixed precision bug -- when negative set to default.
  * Fixed precision bug -- when negative set to default.
  * Added function fnprintf to support __dtostr.
  * Added function fnprintf to support __dtostr.
  * Added floating point support for doubles.  Yeah!
  * Added floating point support for doubles.  Yeah!
- * 
+ *
  *
  *
  * May 2001     Fixes from Johan Adolfsson (johan.adolfsson@axis.com)
  * May 2001     Fixes from Johan Adolfsson (johan.adolfsson@axis.com)
  *    1) printf("%c",0) returned 0 instead of 1.
  *    1) printf("%c",0) returned 0 instead of 1.
@@ -401,7 +401,7 @@ int vfprintf(FILE * __restrict op, register const char * __restrict fmt,
 					p++;
 					p++;
 				}
 				}
 			}
 			}
-			
+
 			if (!flag[FLAG_PLUS]) {
 			if (!flag[FLAG_PLUS]) {
 				flag[FLAG_PLUS] = flag[FLAG_SPACE];
 				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);
 						PRINT_INFO_SET_FLAG(&info,left);
 					}
 					}
 #if 1
 #if 1
-					cnt += _fpmaxtostr(op, 
+					cnt += _fpmaxtostr(op,
 									   (__fpmax_t)
 									   (__fpmax_t)
 									   ((dataargtype == (8 << 8))
 									   ((dataargtype == (8 << 8))
 										? va_arg(ap, long double)
 										? va_arg(ap, long double)
 										: (long double) va_arg(ap, double)),
 										: (long double) va_arg(ap, double)),
 									   &info, _fp_out_narrow);
 									   &info, _fp_out_narrow);
 #else
 #else
-					cnt += _fpmaxtostr(op, 
+					cnt += _fpmaxtostr(op,
 									   (__fpmax_t)
 									   (__fpmax_t)
 									   ((lval > 1)
 									   ((lval > 1)
 										? va_arg(ap, long double)
 										? va_arg(ap, long double)
@@ -658,7 +658,7 @@ int vfprintf(FILE * __restrict op, register const char * __restrict fmt,
 						preci = 0;
 						preci = 0;
 						if (!flag[FLAG_MINUS_LJUSTIFY]
 						if (!flag[FLAG_MINUS_LJUSTIFY]
 							/* && flag[FLAG_PLUS] */
 							/* && flag[FLAG_PLUS] */
-							&& (flag[FLAG_0_PAD] == '0')) { 
+							&& (flag[FLAG_0_PAD] == '0')) {
 							preci = width;
 							preci = width;
 							width = 0;
 							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->buf = 0;		/* Set nul terminator for buffer. */
 		*(cookie->bufloc = bufloc) = cookie->buf;
 		*(cookie->bufloc = bufloc) = cookie->buf;
 		*(cookie->sizeloc = sizeloc) = cookie->eof = cookie->pos = 0;
 		*(cookie->sizeloc = sizeloc) = cookie->eof = cookie->pos = 0;
-		
+
 #ifndef __BCC__
 #ifndef __BCC__
 		fp = fopencookie(cookie, "w", _oms_io_funcs);
 		fp = fopencookie(cookie, "w", _oms_io_funcs);
 #else
 #else

+ 1 - 1
libc/stdio/remove.c

@@ -16,7 +16,7 @@ libc_hidden_proto(unlink)
 /* SUSv3 states:
 /* SUSv3 states:
  *   If path does not name a directory, remove(path) shall be equivalent
  *   If path does not name a directory, remove(path) shall be equivalent
  *   to unlink(path).  If path names a directory, remove(path) shall be
  *   to unlink(path).  If path names a directory, remove(path) shall be
- *   equivalent to rmdir(path). 
+ *   equivalent to rmdir(path).
  */
  */
 
 
 libc_hidden_proto(remove)
 libc_hidden_proto(remove)

+ 1 - 1
libc/stdlib/erand48_r.c

@@ -21,7 +21,7 @@
 #include <stdlib.h>
 #include <stdlib.h>
 #include <limits.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;
 	struct drand48_data *buffer) attribute_hidden;
 
 
 libc_hidden_proto(erand48_r)
 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(memcmp) */
 /* Experimentally off - libc_hidden_proto(strlen) */
 /* 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 */
  * don't bother locking access to __environ */
 char *getenv(const char *var)
 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)))
   if (pts_name (fd, &buf, sizeof (_buf)))
     return -1;
     return -1;
-  
+
   if (statfs (buf, &fsbuf) < 0)
   if (statfs (buf, &fsbuf) < 0)
     return -1;
     return -1;
 
 

+ 1 - 1
libc/stdlib/jrand48_r.c

@@ -19,7 +19,7 @@
 
 
 #include <stdlib.h>
 #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;
 	struct drand48_data *buffer) attribute_hidden;
 
 
 libc_hidden_proto(jrand48_r)
 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>
  * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  *
  *
  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  * 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>
  * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  *
  *
  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  * 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>
  * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  *
  *
  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  * 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>
  * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  *
  *
  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  * 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>
  * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  *
  *
  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  * 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.
     as a malloc_chunk. This avoids special-casing for headers.
     But to conserve space and improve locality, we allocate
     But to conserve space and improve locality, we allocate
     only the fd/bk pointers of bins, and then use repositioning tricks
     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;
 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;
   void *mem = 0;
 
 
   _size = HEAP_ADJUST_SIZE (_size);
   _size = HEAP_ADJUST_SIZE (_size);
-  
+
   if (_size < sizeof (struct heap_free_area))
   if (_size < sizeof (struct heap_free_area))
     /* Because we sometimes must use a freed block to hold a free-area node,
     /* 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.  */
        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)
   for (fa = heap->free_areas; fa; fa = fa->next)
     {
     {
       void *fa_mem = HEAP_FREE_AREA_START (fa);
       void *fa_mem = HEAP_FREE_AREA_START (fa);
-      if (fa_mem <= mem) 
+      if (fa_mem <= mem)
 	{
 	{
 	  if (fa_mem == mem && fa->size >= size)
 	  if (fa_mem == mem && fa->size >= size)
 	    /* FA has the right addr, and is big enough! */
 	    /* 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,
 	      /* The new descriptor is at the end of the extended block,
 		 SIZE bytes later than the old descriptor.  */
 		 SIZE bytes later than the old descriptor.  */
 	      fa = (struct heap_free_area *)((char *)fa + size);
 	      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);
 	      __heap_link_free_area (heap, fa, prev_fa, next_fa);
 	    }
 	    }
 	}
 	}

+ 1 - 1
libc/stdlib/nrand48_r.c

@@ -19,7 +19,7 @@
 
 
 #include <stdlib.h>
 #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;
 	struct drand48_data *buffer) attribute_hidden;
 
 
 libc_hidden_proto(nrand48_r)
 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
    terminal devices.  As of Linux 2.1.115 these are no longer
    supported.  They have been replaced by major numbers 2 (masters)
    supported.  They have been replaced by major numbers 2 (masters)
    and 3 (slaves).  */
    and 3 (slaves).  */
-     
+
 /* The are declared in getpt.c.  */
 /* The are declared in getpt.c.  */
 extern const char __libc_ptyname1[] attribute_hidden;
 extern const char __libc_ptyname1[] attribute_hidden;
 extern const char __libc_ptyname2[] 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
 /* 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
    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
    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... */
 #define _ISOC99_SOURCE			/* for ULLONG primarily... */
 #include <limits.h>
 #include <limits.h>
 #include <stdint.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? */
  * TODO: Add in a define to disable the aliases? */
 
 
 #if UINT_MAX == ULONG_MAX
 #if UINT_MAX == ULONG_MAX
@@ -267,7 +267,7 @@ strong_alias(llabs,imaxabs)
 /**********************************************************************/
 /**********************************************************************/
 #ifdef L_atoi
 #ifdef L_atoi
 
 
-#if INT_MAX < LONG_MAX 
+#if INT_MAX < LONG_MAX
 
 
 libc_hidden_proto(strtol)
 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 */
 /* uClinux-2.0 has vfork, but Linux 2.0 doesn't */
 #include <sys/syscall.h>
 #include <sys/syscall.h>
 #ifndef __NR_vfork
 #ifndef __NR_vfork
-# define vfork fork	
+# define vfork fork
 libc_hidden_proto(fork)
 libc_hidden_proto(fork)
 #endif
 #endif
 
 

+ 1 - 1
libc/string/__xpg_strerror_r.c

@@ -149,7 +149,7 @@ static const unsigned char estridx[] = {
 	EISNAM,
 	EISNAM,
 	EREMOTEIO,
 	EREMOTEIO,
 #if EDQUOT > 200			/* mips has an outrageous value for this... */
 #if EDQUOT > 200			/* mips has an outrageous value for this... */
-	0,							
+	0,
 #else
 #else
 	EDQUOT,
 	EDQUOT,
 #endif
 #endif

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

@@ -23,7 +23,7 @@
 
 
 /* We override the word-copying macros, partly because misalignment in one
 /* We override the word-copying macros, partly because misalignment in one
    pointer isn't cause for a special function, partly because we want to
    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
    are only used in memmove.c since we have arch-specific mempcpy, memcpy and
    memset.  */
    memset.  */
 
 

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

@@ -88,8 +88,8 @@ void *memcpy(void *pdst,
   register char *dst __asm__ ("r13") = pdst;
   register char *dst __asm__ ("r13") = pdst;
   register char *src __asm__ ("r11") = (char *) psrc;
   register char *src __asm__ ("r11") = (char *) psrc;
   register int n __asm__ ("r12") = pn;
   register int n __asm__ ("r12") = pn;
-  
+
- 
+
   /* When src is aligned but not dst, this makes a few extra needless
   /* 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
      cycles.  I believe it would take as many to check that the
      re-alignment was unnecessary.  */
      re-alignment was unnecessary.  */
@@ -162,12 +162,12 @@ void *memcpy(void *pdst,
 	;; Restore registers from stack					\n\
 	;; Restore registers from stack					\n\
         movem [sp+],r10"
         movem [sp+],r10"
 
 
-     /* Outputs */ : "=r" (dst), "=r" (src), "=r" (n) 
+     /* Outputs */ : "=r" (dst), "=r" (src), "=r" (n)
      /* Inputs */ : "0" (dst), "1" (src), "2" (n));
      /* Inputs */ : "0" (dst), "1" (src), "2" (n));
   }
   }
 
 
   /* Either we directly starts copying, using dword copying
   /* 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.
      and then the last block (<44 bytes) is copied here.
      This will work since 'movem' will have updated src,dst,n. */
      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.
    arch-specific memcopy.h for Cris.
 
 
    Copy memory to memory until the specified number of bytes
    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;
     register char *dst __asm__ ("r13") = pdst;
- 
+
   if (((unsigned long) pdst & 3) != 0
   if (((unsigned long) pdst & 3) != 0
      /* Oops! n=0 must be a legal call, regardless of alignment. */
      /* Oops! n=0 must be a legal call, regardless of alignment. */
       && n >= 3)
       && n >= 3)
@@ -165,15 +165,15 @@ void *memset(void *pdst,
         addq   12*4,r12  ;; compensate for last loop underflowing n		\n\
         addq   12*4,r12  ;; compensate for last loop underflowing n		\n\
 										\n\
 										\n\
 	;; Restore registers from stack						\n\
 	;; Restore registers from stack						\n\
-        movem [sp+],r10" 
+        movem [sp+],r10"
 
 
      /* Outputs */ : "=r" (dst), "=r" (n)
      /* Outputs */ : "=r" (dst), "=r" (n)
      /* Inputs */ : "0" (dst), "1" (n), "r" (lc));
      /* Inputs */ : "0" (dst), "1" (n), "r" (lc));
-    
+
   }
   }
 
 
     /* Either we directly starts copying, using dword copying
     /* 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.
        and then the last block (<44 bytes) is copied here.
        This will work since 'movem' will have updated src,dst,n. */
        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) {
 	for (n = 0 ; i ; ++n) {
 		i >>= 1;
 		i >>= 1;
 	}
 	}
-	
+
 	return n;
 	return n;
 #endif
 #endif
 }
 }

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

@@ -33,7 +33,7 @@
 #include <string.h>
 #include <string.h>
 
 
 /* Experimentally off - libc_hidden_proto(strncat) */
 /* Experimentally off - libc_hidden_proto(strncat) */
-char *strncat(char * dest, 
+char *strncat(char * dest,
 	const char * src, size_t count)
 	const char * src, size_t count)
 {
 {
     int d0, d1, d2, d3;
     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
 /* 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
    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 :-)
    Assuming L3 would be too pessimistic :-)
 
 
    Some functions define MEMLAT as 2, because they expect their data
    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
 #else
 #define np n
 #define np n
 #endif
 #endif
-	
+
 	r = ((unsigned char *)s) + ((size_t) np);
 	r = ((unsigned char *)s) + ((size_t) np);
 
 
 	while (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 {
 	do {
 		*++tmp_to = *++tmp_from;
 		*++tmp_to = *++tmp_from;
 	} while (--n);
 	} while (--n);
-	
+
 	return to;
 	return to;
  align:
  align:
 	rem = 4 - rem;
 	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 {
 	do {
 		*--tmp_to = *--tmp_from;
 		*--tmp_to = *--tmp_from;
 	} while (--n);
 	} while (--n);
-	
+
 	return to;
 	return to;
  align:
  align:
 	rem = 4 - rem;
 	rem = 4 - rem;

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

@@ -24,7 +24,7 @@
 /* Experimentally off - libc_hidden_proto(memset) */
 /* Experimentally off - libc_hidden_proto(memset) */
 
 
 static __inline__ int expand_byte_word(int c){
 static __inline__ int expand_byte_word(int c){
-	/* this does: 
+	/* this does:
 	   c = c << 8 | c;
 	   c = c << 8 | c;
 	   c = c << 16 | c ;
 	   c = c << 16 | c ;
 	*/
 	*/
@@ -66,7 +66,7 @@ void *memset(void *to, int c, size_t n)
 	do {
 	do {
 		*++tmp_to = c;
 		*++tmp_to = c;
 	} while (--n);
 	} while (--n);
-	
+
 	return to;
 	return to;
  align:
  align:
 	rem = 4 - rem;
 	rem = 4 - rem;

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