OSDN Git Service

uclinux-h8/uClibc.git
18 years agofix salt type in setup_salt()
Mike Frysinger [Tue, 27 Dec 2005 09:27:33 +0000 (09:27 -0000)]
fix salt type in setup_salt()

18 years agonlist should be unsigned, not signed, as it tracks # of elements in init_fini_list
Mike Frysinger [Tue, 27 Dec 2005 09:26:12 +0000 (09:26 -0000)]
nlist should be unsigned, not signed, as it tracks # of elements in init_fini_list

18 years agorevert debug "fix" since it isnt correct and previous version works
Mike Frysinger [Tue, 27 Dec 2005 09:25:33 +0000 (09:25 -0000)]
revert debug "fix" since it isnt correct and previous version works

18 years agofix signed/unsigned warning
Mike Frysinger [Tue, 27 Dec 2005 09:24:42 +0000 (09:24 -0000)]
fix signed/unsigned warning

18 years agokill off simple unused warnings
Mike Frysinger [Tue, 27 Dec 2005 09:19:15 +0000 (09:19 -0000)]
kill off simple unused warnings

18 years agokill off simple unused warnings
Mike Frysinger [Tue, 27 Dec 2005 09:15:09 +0000 (09:15 -0000)]
kill off simple unused warnings

18 years agokill off simple unused warnings
Mike Frysinger [Tue, 27 Dec 2005 09:13:42 +0000 (09:13 -0000)]
kill off simple unused warnings

18 years ago2005-12-15 Aubrey.Li <aubreylee@gmail.com> writes:
Mike Frysinger [Tue, 27 Dec 2005 09:03:53 +0000 (09:03 -0000)]
2005-12-15 Aubrey.Li <aubreylee@gmail.com> writes:
When I mounted nfs on my target, the kernel crashed. And I found it
was caused by stack overflow. When I digged into it. I found the
following issue.

In the file "./uClibc/libc/inet/rpc/auth_unix.c"
 int max_nr_groups = sysconf (_SC_NGROUPS_MAX);
 gid_t gids[max_nr_groups];

And, NGROUPS_MAX is defined in the file "./linux-2.6.x/include/linux/limits.h"
#define NGROUPS_MAX       65536    /* supplemental group IDs are available */

OK, here we can know max_nr_groups is assigned to 65536, that means a
huge matrix "gids[65536] is in the function **authunix_create_default**.

My method is doing it by malloc, the patch as follows.

18 years agokill off minor warning
Mike Frysinger [Tue, 27 Dec 2005 09:00:18 +0000 (09:00 -0000)]
kill off minor warning

18 years agoAubrey writes:
Mike Frysinger [Tue, 27 Dec 2005 08:58:04 +0000 (08:58 -0000)]
Aubrey writes:
When I mounted nfs on my target, the kernel crashed. And I found it
was caused by stack overflow. When I digged into it.
And I found not only "setgroups.c" but
"getgroups.c" have the matrix (__kernel_gid_t kernel_groups[n]) on the
stack which can be very large because "n" can be assigned to
NGROUPS_MAX.

And, NGROUPS_MAX is defined in the file "./linux-2.6.x/include/linux/limits.h"
#define NGROUPS_MAX       65536    /* supplemental group IDs are available */

I also changed it to do malloc.

18 years agoJan-Benedict Glaw writes:
Mike Frysinger [Tue, 27 Dec 2005 06:52:51 +0000 (06:52 -0000)]
Jan-Benedict Glaw writes:
This patch is wrong and breaks (at least) building a static libc. The
$(MISC_FNMATCH_OBJ) file still uses the .c extension, thus isn't built
at all and eg. strip'ping the .c file fails, breaking the build.

18 years agoAdd new fnmatch code, for now mbstate_t and mbsrtowcs are depending on UCLIBC_HAS_LOC...
Peter S. Mazinger [Sat, 24 Dec 2005 00:15:05 +0000 (00:15 -0000)]
Add new fnmatch code, for now mbstate_t and mbsrtowcs are depending on UCLIBC_HAS_LOCALE, making the new object about 5k, else it would be 10k

18 years agoMove fnmatch.c to fnmatch_old.c
Peter S. Mazinger [Sat, 24 Dec 2005 00:08:38 +0000 (00:08 -0000)]
Move fnmatch.c to fnmatch_old.c

18 years agoBuild PIC objects if DOPIC is set, thx to pcj
Peter S. Mazinger [Fri, 23 Dec 2005 20:35:12 +0000 (20:35 -0000)]
Build PIC objects if DOPIC is set, thx to pcj

18 years agoJie Zhang writes:
Mike Frysinger [Thu, 22 Dec 2005 01:46:09 +0000 (01:46 -0000)]
Jie Zhang writes:
I think the loop was written for MMU case. When there is MMU, mmap ()
is used to allocate the stack. If one segment is already mapped, we
should continue to see if we can use the next one. However, for NOMMU,
malloc () is used. It's waste of CPU cycles to continue to try if it
fails. Here is a new patch, which makes this change only for NOMMU.

18 years agoRemove all trailing ; after *_alias and change 2 to use weak_alias instead of __attri...
Peter S. Mazinger [Fri, 16 Dec 2005 23:09:32 +0000 (23:09 -0000)]
Remove all trailing ; after *_alias and change 2 to use weak_alias instead of __attribute__ ...

18 years agoRemove trailing ;
Peter S. Mazinger [Fri, 16 Dec 2005 19:28:49 +0000 (19:28 -0000)]
Remove trailing ;

18 years agoRemove trailing ; after *alias()
Peter S. Mazinger [Fri, 16 Dec 2005 19:10:38 +0000 (19:10 -0000)]
Remove trailing ; after *alias()

18 years agoTypo
Peter S. Mazinger [Fri, 16 Dec 2005 18:23:45 +0000 (18:23 -0000)]
Typo

18 years agoAdapt some missed prototypes
Peter S. Mazinger [Fri, 16 Dec 2005 18:17:59 +0000 (18:17 -0000)]
Adapt some missed prototypes

18 years agoForgot about the macros ;-(
Peter S. Mazinger [Fri, 16 Dec 2005 18:16:10 +0000 (18:16 -0000)]
Forgot about the macros ;-(

18 years agomemmove, exit are external iconv_main
Peter S. Mazinger [Fri, 16 Dec 2005 17:50:56 +0000 (17:50 -0000)]
memmove, exit are external iconv_main

18 years agoCorrect C_SYMBOL_PREFIX handling for asm, supports only none or _
Peter S. Mazinger [Fri, 16 Dec 2005 17:36:58 +0000 (17:36 -0000)]
Correct C_SYMBOL_PREFIX handling for asm, supports only none or _

18 years agoHope it solves JBG's problem, why didn't it bail out here?
Peter S. Mazinger [Fri, 16 Dec 2005 15:09:24 +0000 (15:09 -0000)]
Hope it solves JBG's problem, why didn't it bail out here?

18 years agoMacros are no good for jump relocs, hack to get rid of one introduced my new regex...
Peter S. Mazinger [Fri, 16 Dec 2005 12:35:43 +0000 (12:35 -0000)]
Macros are no good for jump relocs, hack to get rid of one introduced my new regex code

18 years agoUse hidden towupper in new regex
Peter S. Mazinger [Fri, 16 Dec 2005 12:11:09 +0000 (12:11 -0000)]
Use hidden towupper in new regex

18 years agoMake new regex build w/ WCHAR disabled, vapier, does it now work for you?
Peter S. Mazinger [Fri, 16 Dec 2005 11:54:26 +0000 (11:54 -0000)]
Make new regex build w/ WCHAR disabled, vapier, does it now work for you?

18 years agoUse kernel provided syscalls for user-space, the one from libc is not usable
Peter S. Mazinger [Fri, 16 Dec 2005 11:06:08 +0000 (11:06 -0000)]
Use kernel provided syscalls for user-space, the one from libc is not usable

18 years agoBetter guards within _LIBC, cleanup, typos
Peter S. Mazinger [Fri, 16 Dec 2005 09:52:34 +0000 (09:52 -0000)]
Better guards within _LIBC, cleanup, typos

18 years agoHide towctrans*. What is SMALL_UPLOW and why do we need it?
Peter S. Mazinger [Fri, 16 Dec 2005 08:56:00 +0000 (08:56 -0000)]
Hide towctrans*. What is SMALL_UPLOW and why do we need it?

18 years agoConvert all the rest, remove isxupper/isxlower, if someone objects, I'll add it back
Peter S. Mazinger [Fri, 16 Dec 2005 01:18:01 +0000 (01:18 -0000)]
Convert all the rest, remove isxupper/isxlower, if someone objects, I'll add it back

18 years agoConvert some users and get rid of __rpc_thread_createerr jump reloc, this was indeed...
Peter S. Mazinger [Fri, 16 Dec 2005 01:05:56 +0000 (01:05 -0000)]
Convert some users and get rid of __rpc_thread_createerr jump reloc, this was indeed a badly chosen name

18 years agoConvert users
Peter S. Mazinger [Fri, 16 Dec 2005 01:02:50 +0000 (01:02 -0000)]
Convert users

18 years agoNew regex as well
Peter S. Mazinger [Fri, 16 Dec 2005 01:00:06 +0000 (01:00 -0000)]
New regex as well

18 years agoglob/ftw/regex_old reworked. regex_old did not have MBS_SUPPORT enabled
Peter S. Mazinger [Fri, 16 Dec 2005 00:57:39 +0000 (00:57 -0000)]
glob/ftw/regex_old reworked. regex_old did not have MBS_SUPPORT enabled

18 years agoCorrect some problems
Peter S. Mazinger [Fri, 16 Dec 2005 00:51:04 +0000 (00:51 -0000)]
Correct some problems

18 years agoNew hidden versions
Peter S. Mazinger [Fri, 16 Dec 2005 00:44:04 +0000 (00:44 -0000)]
New hidden versions

18 years agoGet rid of warnings, use internals, create new hidden versions
Peter S. Mazinger [Fri, 16 Dec 2005 00:38:38 +0000 (00:38 -0000)]
Get rid of warnings, use internals, create new hidden versions

18 years agoHide C and wchar related stuff
Peter S. Mazinger [Fri, 16 Dec 2005 00:35:09 +0000 (00:35 -0000)]
Hide C and wchar related stuff

18 years agoHide locales
Peter S. Mazinger [Fri, 16 Dec 2005 00:32:09 +0000 (00:32 -0000)]
Hide locales

18 years agoConvert some users
Peter S. Mazinger [Fri, 16 Dec 2005 00:28:30 +0000 (00:28 -0000)]
Convert some users

18 years agoDisable some unused stuff, better guard for libc
Peter S. Mazinger [Fri, 16 Dec 2005 00:26:05 +0000 (00:26 -0000)]
Disable some unused stuff, better guard for libc

18 years agoSome undefs to be pedantic
Peter S. Mazinger [Fri, 16 Dec 2005 00:22:11 +0000 (00:22 -0000)]
Some undefs to be pedantic

18 years agoMake clone use internal _exit
Peter S. Mazinger [Fri, 16 Dec 2005 00:14:26 +0000 (00:14 -0000)]
Make clone use internal _exit

18 years agoBuild x64 versions only if LFS is enabled
Peter S. Mazinger [Fri, 16 Dec 2005 00:10:58 +0000 (00:10 -0000)]
Build x64 versions only if LFS is enabled

18 years agoHide exit/_exit
Peter S. Mazinger [Thu, 15 Dec 2005 20:05:52 +0000 (20:05 -0000)]
Hide exit/_exit

18 years agoHide fork and vfork, use the newly introduced *alias
Peter S. Mazinger [Thu, 15 Dec 2005 19:49:58 +0000 (19:49 -0000)]
Hide fork and vfork, use the newly introduced *alias

18 years agoAdd for assembler all *alias
Peter S. Mazinger [Thu, 15 Dec 2005 19:47:05 +0000 (19:47 -0000)]
Add for assembler all *alias

18 years agoHide *getc* *putc*
Peter S. Mazinger [Thu, 15 Dec 2005 19:40:16 +0000 (19:40 -0000)]
Hide *getc* *putc*

18 years agoSync headers w/ glibc
Peter S. Mazinger [Thu, 15 Dec 2005 19:01:10 +0000 (19:01 -0000)]
Sync headers w/ glibc

18 years agowordexp can't be built w/o glob
Peter S. Mazinger [Thu, 15 Dec 2005 14:02:43 +0000 (14:02 -0000)]
wordexp can't be built w/o glob

18 years agosilly bug
Eric Andersen [Thu, 15 Dec 2005 11:32:30 +0000 (11:32 -0000)]
silly bug

18 years agoFix static apps on linux 2.6. Linux clobbers r7 in 2.6, so
Joakim Tjernlund [Thu, 15 Dec 2005 07:50:05 +0000 (07:50 -0000)]
Fix static apps on linux 2.6. Linux clobbers r7 in 2.6, so
use r3 instead to pass _dl_fini.

18 years agoinclude features.h instead of sys/cdefs.h
Mike Frysinger [Wed, 14 Dec 2005 23:28:39 +0000 (23:28 -0000)]
include features.h instead of sys/cdefs.h

18 years agofix signed/unsigned warnings and unused warnings
Mike Frysinger [Wed, 14 Dec 2005 23:10:21 +0000 (23:10 -0000)]
fix signed/unsigned warnings and unused warnings

18 years ago remove .oS too
Mike Frysinger [Wed, 14 Dec 2005 23:07:48 +0000 (23:07 -0000)]
 remove .oS too

18 years agoHide _stdio_init/term, sorry, one change went mistakenly into the earlier commit
Peter S. Mazinger [Wed, 14 Dec 2005 13:50:39 +0000 (13:50 -0000)]
Hide _stdio_init/term, sorry, one change went mistakenly into the earlier commit

18 years agoDo hidden brk, hide _brk as well for some archs, convert users of brk
Peter S. Mazinger [Wed, 14 Dec 2005 13:48:23 +0000 (13:48 -0000)]
Do hidden brk, hide _brk as well for some archs, convert users of brk

18 years agoFixup byte order handling. Not all architectures define __BIG_ENDIAN__ so i.e.
Eric Andersen [Wed, 14 Dec 2005 02:33:36 +0000 (02:33 -0000)]
Fixup byte order handling.  Not all architectures define __BIG_ENDIAN__ so i.e.
on big endian mips the code is compiled as little-endian and the wrong half of
the 64-bit point value is examined to check for NaN, etc.  This bug also broke
fpclassify(), isfinite(), isnormal(), isinf(), finite(), and signbit().

18 years agoConvert all users of earlier hiddens
Peter S. Mazinger [Tue, 13 Dec 2005 21:38:57 +0000 (21:38 -0000)]
Convert all users of earlier hiddens

18 years agoThis header blocked the use of __THROW in libc-internal.h
Peter S. Mazinger [Tue, 13 Dec 2005 21:31:53 +0000 (21:31 -0000)]
This header blocked the use of __THROW in libc-internal.h

18 years agoHidden fflush, adapt fopen to hack in libc-internal.h
Peter S. Mazinger [Tue, 13 Dec 2005 21:30:04 +0000 (21:30 -0000)]
Hidden fflush, adapt fopen to hack in libc-internal.h

18 years agoHidden readdir*
Peter S. Mazinger [Tue, 13 Dec 2005 21:25:39 +0000 (21:25 -0000)]
Hidden readdir*

18 years agoHidden lseek[64], disabled llseek and _llseek for now, not in any headers
Peter S. Mazinger [Tue, 13 Dec 2005 21:23:53 +0000 (21:23 -0000)]
Hidden lseek[64], disabled llseek and _llseek for now, not in any headers

18 years agoDo hidden fcntl*
Peter S. Mazinger [Tue, 13 Dec 2005 21:20:44 +0000 (21:20 -0000)]
Do hidden fcntl*

18 years agoAdd some more hidden prototypes
Peter S. Mazinger [Tue, 13 Dec 2005 21:14:37 +0000 (21:14 -0000)]
Add some more hidden prototypes

18 years agoConvert internal users of chmod/*stat*, minimize change for __strsep
Peter S. Mazinger [Tue, 13 Dec 2005 11:35:31 +0000 (11:35 -0000)]
Convert internal users of chmod/*stat*, minimize change for __strsep

18 years agoAdd __lstat and reorganize somewhat
Peter S. Mazinger [Tue, 13 Dec 2005 11:28:16 +0000 (11:28 -0000)]
Add __lstat and reorganize somewhat

18 years agoUse __remove and remove trailing ;
Peter S. Mazinger [Tue, 13 Dec 2005 11:15:40 +0000 (11:15 -0000)]
Use __remove and remove trailing ;

18 years agoHide chmod, lockf*
Peter S. Mazinger [Tue, 13 Dec 2005 10:41:14 +0000 (10:41 -0000)]
Hide chmod, lockf*

18 years agoHidden __md5_crypt/__des_crypt, missed to adapt prototype
Peter S. Mazinger [Tue, 13 Dec 2005 10:07:09 +0000 (10:07 -0000)]
Hidden __md5_crypt/__des_crypt, missed to adapt prototype

18 years ago__malloc_consolidate is only libc internal, enable use of __sbrk
Peter S. Mazinger [Tue, 13 Dec 2005 10:02:23 +0000 (10:02 -0000)]
__malloc_consolidate is only libc internal, enable use of __sbrk

18 years agoDo hidden fopen*/remove
Peter S. Mazinger [Tue, 13 Dec 2005 10:00:07 +0000 (10:00 -0000)]
Do hidden fopen*/remove

18 years agoAdd redirect/redefines for x to x64 until someone will answer my mail/decides of...
Peter S. Mazinger [Tue, 13 Dec 2005 09:29:46 +0000 (09:29 -0000)]
Add redirect/redefines for x to x64 until someone will answer my mail/decides of a better way. libc-internal.h will finally have >5xx __x prototypes

18 years agoDo hidden sbrk
Peter S. Mazinger [Tue, 13 Dec 2005 09:24:29 +0000 (09:24 -0000)]
Do hidden sbrk

18 years agoSync w/ glibc
Peter S. Mazinger [Tue, 13 Dec 2005 09:22:15 +0000 (09:22 -0000)]
Sync w/ glibc

18 years agoSync w/ glibc
Peter S. Mazinger [Tue, 13 Dec 2005 09:18:49 +0000 (09:18 -0000)]
Sync w/ glibc

18 years agoMake sure we are really within uClibc only, these bits should move from the visible...
Peter S. Mazinger [Sun, 11 Dec 2005 01:13:38 +0000 (01:13 -0000)]
Make sure we are really within uClibc only, these bits should move from the visible header

18 years agoFix debugging.
"Steven J. Hill" [Sun, 11 Dec 2005 00:55:30 +0000 (00:55 -0000)]
Fix debugging.

18 years agoInstall dummy libc-internal.h
Peter S. Mazinger [Sat, 10 Dec 2005 21:53:53 +0000 (21:53 -0000)]
Install dummy libc-internal.h

18 years agoRemove fread/fwrite/vfprintf redefines, the only user is iconv, being an external app
Peter S. Mazinger [Sat, 10 Dec 2005 19:30:34 +0000 (19:30 -0000)]
Remove fread/fwrite/vfprintf redefines, the only user is iconv, being an external app

18 years agoMerge from NPTL branch.
"Steven J. Hill" [Sat, 10 Dec 2005 18:45:05 +0000 (18:45 -0000)]
Merge from NPTL branch.

18 years agoFix alias.
"Steven J. Hill" [Sat, 10 Dec 2005 18:39:26 +0000 (18:39 -0000)]
Fix alias.

18 years agoSolve warning about redefined _GNU_SOURCE, allow iconv to build
Peter S. Mazinger [Sat, 10 Dec 2005 18:27:03 +0000 (18:27 -0000)]
Solve warning about redefined _GNU_SOURCE, allow iconv to build

18 years agoRemove trailing ';' from strong_alias, thx Bernhard Fischer
Peter S. Mazinger [Sat, 10 Dec 2005 18:26:05 +0000 (18:26 -0000)]
Remove trailing ';' from strong_alias, thx Bernhard Fischer

18 years agoMerge from NPTL branch. Bring in the remaining changes for sigaction.
"Steven J. Hill" [Sat, 10 Dec 2005 18:18:41 +0000 (18:18 -0000)]
Merge from NPTL branch. Bring in the remaining changes for sigaction.

18 years agoMerge from NPTL branch.
"Steven J. Hill" [Sat, 10 Dec 2005 17:59:34 +0000 (17:59 -0000)]
Merge from NPTL branch.

18 years agoThe minimum is different for NPTL because of two new signals.
"Steven J. Hill" [Sat, 10 Dec 2005 17:35:34 +0000 (17:35 -0000)]
The minimum is different for NPTL because of two new signals.

18 years agoRemove unused weak_alias. Thanks Peter.
"Steven J. Hill" [Sat, 10 Dec 2005 17:27:13 +0000 (17:27 -0000)]
Remove unused weak_alias. Thanks Peter.

18 years ago- fixup after sync with glibc. _ptyname was renamed to __libc_ptyname
Bernhard Reutner-Fischer [Sat, 10 Dec 2005 14:08:40 +0000 (14:08 -0000)]
- fixup after sync with glibc. _ptyname was renamed to __libc_ptyname

18 years agoMerge from NPTL.
"Steven J. Hill" [Sat, 10 Dec 2005 13:38:34 +0000 (13:38 -0000)]
Merge from NPTL.

18 years agofixed unused warning
Mike Frysinger [Sat, 10 Dec 2005 03:55:43 +0000 (03:55 -0000)]
fixed unused warning

18 years agofix signed warning
Mike Frysinger [Sat, 10 Dec 2005 03:54:27 +0000 (03:54 -0000)]
fix signed warning

18 years agofix a warning
Mike Frysinger [Sat, 10 Dec 2005 03:52:54 +0000 (03:52 -0000)]
fix a warning

18 years agofix some warnings
Mike Frysinger [Sat, 10 Dec 2005 03:51:24 +0000 (03:51 -0000)]
fix some warnings

18 years agofix warning
Mike Frysinger [Sat, 10 Dec 2005 03:48:33 +0000 (03:48 -0000)]
fix warning

18 years agosync with glibc (grab some hidden updates) and fix some warnings
Mike Frysinger [Sat, 10 Dec 2005 02:46:52 +0000 (02:46 -0000)]
sync with glibc (grab some hidden updates) and fix some warnings

18 years agomacro away the last parameter since we dont actually utilize it (saves a few bytes...
Mike Frysinger [Sat, 10 Dec 2005 02:42:49 +0000 (02:42 -0000)]
macro away the last parameter since we dont actually utilize it (saves a few bytes) and fix signed warnings

18 years agoclean up warnings
Mike Frysinger [Sat, 10 Dec 2005 02:41:39 +0000 (02:41 -0000)]
clean up warnings

18 years agoadd attribute_unused and include features.h so that we can include libc-internal...
Mike Frysinger [Sat, 10 Dec 2005 02:34:20 +0000 (02:34 -0000)]
add attribute_unused and include features.h so that we can include libc-internal.h directly and have it work