OSDN Git Service

uclinux-h8/uClibc.git
22 years agoMake sure the sccsid tags never get compiled in.
Eric Andersen [Tue, 18 Jun 2002 10:32:26 +0000 (10:32 -0000)]
Make sure the sccsid tags never get compiled in.
 -Erik

22 years agoEliminate all the pointless globals from getcwd(). Default
Eric Andersen [Tue, 18 Jun 2002 10:27:16 +0000 (10:27 -0000)]
Eliminate all the pointless globals from getcwd().  Default
to using the getcwd syscall instead, when it is present.
 -Erik

22 years agoupdate as far as i've double checked things thus far
Eric Andersen [Tue, 18 Jun 2002 10:12:17 +0000 (10:12 -0000)]
update as far as i've double checked things thus far
 -Erik

22 years agoAdd in thread locking for tzset() and associated data. Also, fix a bug so
Manuel Novoa III [Tue, 18 Jun 2002 10:03:43 +0000 (10:03 -0000)]
Add in thread locking for tzset() and associated data.  Also, fix a bug so
that localtime_r() calls tzset() to initialize/update timezone data.

22 years agoKill kernel_version.c, which is completely meaningless crap
Eric Andersen [Tue, 18 Jun 2002 09:29:16 +0000 (09:29 -0000)]
Kill kernel_version.c, which is completely meaningless crap
and didn't even work.
 -Erik

22 years agoRework, reduce the size, add proper locking
Eric Andersen [Tue, 18 Jun 2002 09:19:10 +0000 (09:19 -0000)]
Rework, reduce the size, add proper locking
 -Erik

22 years agoRemove obsolete files.
Manuel Novoa III [Tue, 18 Jun 2002 08:54:53 +0000 (08:54 -0000)]
Remove obsolete files.

22 years agoFix perror() and printf("%m") to not call strerror(), as required by the
Manuel Novoa III [Tue, 18 Jun 2002 08:41:28 +0000 (08:41 -0000)]
Fix perror() and printf("%m") to not call strerror(), as required by the
standards.  Temporarily added a utility function to wrap Erik's strerror_r
so that "Unknown error xxx" strings can be generated for errno's which
cause strerror_r to fail.  That utility function will eventually be merged
in with the strerror/strerror_r functions when I change over to optionallly
mmap'ing the system error strings to provide for lower mem comsumption on
non-MMU platforms, as well as locale-specific system error messages.

22 years agoSilly name change
Eric Andersen [Tue, 18 Jun 2002 07:50:22 +0000 (07:50 -0000)]
Silly name change

22 years agoRework and kill pointless static variable
Eric Andersen [Tue, 18 Jun 2002 07:47:58 +0000 (07:47 -0000)]
Rework and kill pointless static variable
 -Erik

22 years agoFix thread locking so it works
Eric Andersen [Tue, 18 Jun 2002 06:45:46 +0000 (06:45 -0000)]
Fix thread locking so it works
 -Erik

22 years agoFix locking. Kill
Eric Andersen [Tue, 18 Jun 2002 06:39:18 +0000 (06:39 -0000)]
Fix locking.  Kill

22 years agoSome commentary
Eric Andersen [Tue, 18 Jun 2002 06:25:22 +0000 (06:25 -0000)]
Some commentary
 -Erik

22 years agoPatch from Martin Proulx <mproulx@okiok.com> to support
Eric Andersen [Tue, 18 Jun 2002 01:10:28 +0000 (01:10 -0000)]
Patch from Martin Proulx <mproulx@okiok.com> to support
the i960 architecture.

22 years agoUpdate rpc headers. Add missing some headers
Eric Andersen [Mon, 17 Jun 2002 21:18:37 +0000 (21:18 -0000)]
Update rpc headers.  Add missing some headers
 -Erik

22 years agokill cruft
Eric Andersen [Mon, 17 Jun 2002 21:16:54 +0000 (21:16 -0000)]
kill cruft

22 years agoMake things more re-entrany, kill some cruft.
Eric Andersen [Mon, 17 Jun 2002 21:15:35 +0000 (21:15 -0000)]
Make things more re-entrany, kill some cruft.
 -Erik

22 years agoRe-backport all the rpc stuff from glibc 2.2.5. This allows us to make this
Eric Andersen [Mon, 17 Jun 2002 21:12:16 +0000 (21:12 -0000)]
Re-backport all the rpc stuff from glibc 2.2.5.  This allows us to make this
junk (and I do mean that ;-) thread safe without undue pain.  Adds 12k worth to
the code size I'm afraid, but since I never use NFS and therefore never include
this stuff, I guess thats acceptable.  I still need to enable the multi-threaded
bits...
 -Erik

22 years agoImplement strerror_r. This is per SuSv3, not glibc which does
Eric Andersen [Mon, 17 Jun 2002 19:49:02 +0000 (19:49 -0000)]
Implement strerror_r.  This is per SuSv3, not glibc which does
something different.
 -Erik

22 years agoShuffle the logic around a bit
Eric Andersen [Mon, 17 Jun 2002 19:02:01 +0000 (19:02 -0000)]
Shuffle the logic around a bit
 -Erik

22 years agoShuffle the logic around a bit
Eric Andersen [Mon, 17 Jun 2002 19:00:59 +0000 (19:00 -0000)]
Shuffle the logic around a bit

22 years agoSome cleanups so utmp/wtmp behaves. Fix potential use of
Eric Andersen [Mon, 17 Jun 2002 18:58:58 +0000 (18:58 -0000)]
Some cleanups so utmp/wtmp behaves.  Fix potential use of
uninitialized memory.  Prepare to reentrantify the utmp
stuff.
 -Erik

22 years agoAh kant spel mi name
Eric Andersen [Mon, 17 Jun 2002 18:49:47 +0000 (18:49 -0000)]
Ah kant spel mi name

22 years agoAdd support for sigtimedwait and sigwaitinfo
Eric Andersen [Mon, 17 Jun 2002 17:31:43 +0000 (17:31 -0000)]
Add support for sigtimedwait and sigwaitinfo
 -Erik

22 years agoCommit the new time stuff, even though I haven't made it threadsafe yet.
Manuel Novoa III [Mon, 17 Jun 2002 09:45:15 +0000 (09:45 -0000)]
Commit the new time stuff, even though I haven't made it threadsafe yet.
At least people can play with it.  Also, fix a buglet in setenv.c.

22 years agoI guess nobody's tried this stuff. I apparently checked in the wrong version
Manuel Novoa III [Mon, 17 Jun 2002 08:35:18 +0000 (08:35 -0000)]
I guess nobody's tried this stuff.  I apparently checked in the wrong version
several weeks ago.

22 years agotime() is implemented in syscalls.c
Eric Andersen [Sat, 15 Jun 2002 19:27:00 +0000 (19:27 -0000)]
time() is implemented in syscalls.c
 -Erik

22 years agoImplement ttyname_r
Eric Andersen [Sat, 15 Jun 2002 19:24:08 +0000 (19:24 -0000)]
Implement ttyname_r
 -Erik

22 years agoPrevent buffer overflow
Eric Andersen [Sat, 15 Jun 2002 19:23:42 +0000 (19:23 -0000)]
Prevent buffer overflow

22 years agoFix a silly bug...
Eric Andersen [Sat, 15 Jun 2002 18:37:27 +0000 (18:37 -0000)]
Fix a silly bug...

22 years agoFix pthreads to use the rt signals if present
Eric Andersen [Thu, 13 Jun 2002 02:16:09 +0000 (02:16 -0000)]
Fix pthreads to use the rt signals if present
 -Erik

22 years agoBegin efforts at reentrance by seperating out the stuff that isn't
Eric Andersen [Thu, 13 Jun 2002 01:37:20 +0000 (01:37 -0000)]
Begin efforts at reentrance by seperating out the stuff that isn't
reentrant and labeling it, and making everything else const.
 -Erik

22 years agoDon't use fixed buffers if we have an mmu such that malloc
Eric Andersen [Wed, 12 Jun 2002 23:32:53 +0000 (23:32 -0000)]
Don't use fixed buffers if we have an mmu such that malloc
and realloc are cheap.
 -Erik

22 years agoSilence warnings, clean things up.
Eric Andersen [Wed, 12 Jun 2002 23:27:00 +0000 (23:27 -0000)]
Silence warnings, clean things up.
 -Erik

22 years agoCleanup the mess, remove now obsolete files
Eric Andersen [Wed, 12 Jun 2002 21:59:00 +0000 (21:59 -0000)]
Cleanup the mess, remove now obsolete files
 -Erik

22 years agoWrite a new strxfrm that doesn't make function calls. Uses the same logic as
Eric Andersen [Wed, 12 Jun 2002 21:47:35 +0000 (21:47 -0000)]
Write a new strxfrm that doesn't make function calls.  Uses the same logic as
before but unrolls the func calls and thereby eliminates some steps and some
bytes.  Now adds just 40 bytes to .text.
 -Erik

22 years agoYipe. As Joseph Chiu noticed, sockvec is supposed to be an int*
Eric Andersen [Wed, 12 Jun 2002 02:24:38 +0000 (02:24 -0000)]
Yipe.  As Joseph Chiu noticed, sockvec is supposed to be an int*
not an int.

22 years agoRevert Erik's patch to vasprintf and fix the real issue.
Manuel Novoa III [Tue, 11 Jun 2002 21:19:41 +0000 (21:19 -0000)]
Revert Erik's patch to vasprintf and fix the real issue.
The writer for the stream returned by open_memstream was supposed to
keep the buffer nul-terminated.  I apparently left out a statement.

22 years agoThis patch from Rik Faith <faith@alephnull.com> fixes a potentially
Eric Andersen [Tue, 11 Jun 2002 12:54:12 +0000 (12:54 -0000)]
This patch from Rik Faith <faith@alephnull.com> fixes a potentially
non-NULL terminated string problem that could result from the use
of open_memstream().  Manuel may have a better solution, but this
one works for me, since with this plus the popen fix I can now run
things like gdb properly.  Thanks Rik!

22 years agoA patch from Ted Phelps to fix popen(). Ted writes:
Eric Andersen [Tue, 11 Jun 2002 11:55:44 +0000 (11:55 -0000)]
A patch from Ted Phelps to fix popen().  Ted writes:
    There is a minor bug in the implementation of popen().  In the case
    where the file descriptor returned from its call to pipe() is the same
    as the file descriptor that it is meant to be (where the dup2() branch
    is not taken), the end of the pipe is still closed by close(reading)
    even though it shouldn't be.
Thanks Ted!

22 years agoKill the libc-lock headers, which we do not use and which are
Eric Andersen [Mon, 10 Jun 2002 21:44:45 +0000 (21:44 -0000)]
Kill the libc-lock headers, which we do not use and which are
not correct for uClibc.  Fix setenv locking to behave itself.
 -Erik

22 years agoOops. Forgot to check this in. Thanks Martin Volf for noticing
Eric Andersen [Sun, 9 Jun 2002 13:15:38 +0000 (13:15 -0000)]
Oops.  Forgot to check this in.  Thanks Martin Volf for noticing
 -Erik

22 years agoAdded a version of nl_langinfo for the stub C/POSIX locale support.
Manuel Novoa III [Sat, 8 Jun 2002 02:36:52 +0000 (02:36 -0000)]
Added a version of nl_langinfo for the stub C/POSIX locale support.

22 years agoFix up of '_dlopen' call and removal of unneeded argument in call '_dl_load_elf_share...
"Steven J. Hill" [Wed, 5 Jun 2002 18:40:46 +0000 (18:40 -0000)]
Fix up of '_dlopen' call and removal of unneeded argument in call '_dl_load_elf_shared_library'.

22 years agoIf we are cross-compiling, don't even try to build the target utilities.
"Steven J. Hill" [Tue, 4 Jun 2002 16:09:19 +0000 (16:09 -0000)]
If we are cross-compiling, don't even try to build the target utilities.

22 years agoChanges so that 'regdef.h' gets included in the development environment.
"Steven J. Hill" [Tue, 4 Jun 2002 16:07:56 +0000 (16:07 -0000)]
Changes so that 'regdef.h' gets included in the development environment.

22 years agoMoved to 'sys' directory.
"Steven J. Hill" [Tue, 4 Jun 2002 16:06:11 +0000 (16:06 -0000)]
Moved to 'sys' directory.

22 years agoDoh!
Eric Andersen [Sat, 1 Jun 2002 12:07:20 +0000 (12:07 -0000)]
Doh!

22 years agoPatch from Robert Griebl <griebl@gmx.de> to support
Eric Andersen [Fri, 31 May 2002 00:11:26 +0000 (00:11 -0000)]
Patch from Robert Griebl <griebl@gmx.de> to support
getusershell() and friends.

22 years agoRework setenv, getenv and friends per the latest glibc code, but cleaned
Eric Andersen [Thu, 30 May 2002 23:49:43 +0000 (23:49 -0000)]
Rework setenv, getenv and friends per the latest glibc code, but cleaned
up for readability.   Merge in putenv.  Add clearenv as a side effect.
 -Erik

22 years ago-#ifdef _POSIX_THREADS
Eric Andersen [Thu, 30 May 2002 13:19:34 +0000 (13:19 -0000)]
-#ifdef _POSIX_THREADS
+#ifdef __UCLIBC_HAS_THREADS__

22 years agoFixup totally broken locking code... No storage for the mutex,
Eric Andersen [Thu, 30 May 2002 13:17:44 +0000 (13:17 -0000)]
Fixup totally broken locking code...  No storage for the mutex,
wrong ifdef macro..
 -Erik

22 years agoFix dependancy. again.
Eric Andersen [Thu, 30 May 2002 12:28:56 +0000 (12:28 -0000)]
Fix dependancy.  again.

22 years agoFix dependancy for util target
Eric Andersen [Thu, 30 May 2002 12:17:51 +0000 (12:17 -0000)]
Fix dependancy for util target
 -Erik

22 years agoDoh! A silly typo broke select...
Eric Andersen [Thu, 30 May 2002 12:08:10 +0000 (12:08 -0000)]
Doh!  A silly typo broke select...
 -Erik

22 years agoAnd with this, the alpha port is not basically working.
Eric Andersen [Thu, 30 May 2002 10:07:53 +0000 (10:07 -0000)]
And with this, the alpha port is not basically working.
 -Erik

22 years agodon't include the linux dir. Pointless and broken.
Eric Andersen [Thu, 30 May 2002 09:29:36 +0000 (09:29 -0000)]
don't include the linux dir.  Pointless and broken.
 -Erik

22 years agoPut GCCINCDIR here, which is the only place it is needed.
Eric Andersen [Thu, 30 May 2002 09:20:50 +0000 (09:20 -0000)]
Put GCCINCDIR here, which is the only place it is needed.
 -Erik

22 years agoCool. An even better way to get the gcc include dir which eliminates
Eric Andersen [Thu, 30 May 2002 09:16:54 +0000 (09:16 -0000)]
Cool.  An even better way to get the gcc include dir which eliminates
several external program calls, thanks to a suggestion from rmk.
 -Erik

22 years agoMake these properly cope with 64bit systems
Eric Andersen [Thu, 30 May 2002 08:51:13 +0000 (08:51 -0000)]
Make these properly cope with 64bit systems
 -Erik

22 years agoFixup some silly bugs I added earlier
Eric Andersen [Thu, 30 May 2002 07:53:59 +0000 (07:53 -0000)]
Fixup some silly bugs I added earlier
 -Erik

22 years agoNeeded for the alpha port
Eric Andersen [Thu, 30 May 2002 03:04:12 +0000 (03:04 -0000)]
Needed for the alpha port
 -Erik

22 years agoMake syscalls.c way more generic. Now works on alpha...
Eric Andersen [Thu, 30 May 2002 02:05:42 +0000 (02:05 -0000)]
Make syscalls.c way more generic.  Now works on alpha...
 -Erik

22 years agoCope with systems that don't glob all these together, but use
Eric Andersen [Thu, 30 May 2002 00:41:03 +0000 (00:41 -0000)]
Cope with systems that don't glob all these together, but use
separate syscalls.
 -Erik

22 years agoSilly me. ldd.target is for the target system, so don't
Eric Andersen [Wed, 29 May 2002 15:14:06 +0000 (15:14 -0000)]
Silly me.  ldd.target is for the target system, so don't
use-build-dir when compiling...
 -Erik

22 years agoNow that was silly
Eric Andersen [Wed, 29 May 2002 10:08:41 +0000 (10:08 -0000)]
Now that was silly

22 years agoUpdate content a bit
Eric Andersen [Wed, 29 May 2002 01:47:43 +0000 (01:47 -0000)]
Update content a bit

22 years agoPatch from Yoshinori Sato <qzb04471@nifty.ne.jp> to use
Eric Andersen [Tue, 28 May 2002 23:35:18 +0000 (23:35 -0000)]
Patch from Yoshinori Sato <qzb04471@nifty.ne.jp> to use
C_SYMBOL_PREFIX for confused compilers, such as for v850
and h8300, per suggestion from Miles Bader.

22 years agoFixup and unifiy version numbering. Automate versioning updates.
Eric Andersen [Tue, 28 May 2002 23:21:57 +0000 (23:21 -0000)]
Fixup and unifiy version numbering.  Automate versioning updates.
Propagate fixes across makefiles.
 -Erik

22 years agoPatch from Tobias Anderberg <tobias.anderberg@axis.com> to abstract
Eric Andersen [Tue, 28 May 2002 21:33:41 +0000 (21:33 -0000)]
Patch from Tobias Anderberg <tobias.anderberg@axis.com> to abstract
out page alignment issues.  As we we were assuming 4k pages, which
need not be the case...

22 years agoFix a couple of silly bugs I'd left in while fixing things
Eric Andersen [Fri, 24 May 2002 14:30:15 +0000 (14:30 -0000)]
Fix a couple of silly bugs I'd left in while fixing things
 -Erik

22 years agoFix libcrypt, thanks to Vadim Berkgaut <berk@rc.ru>
Eric Andersen [Fri, 24 May 2002 05:41:22 +0000 (05:41 -0000)]
Fix libcrypt, thanks to Vadim Berkgaut <berk@rc.ru>

22 years agoFix ldd so it correctly handles search paths of just one entry
Eric Andersen [Fri, 24 May 2002 05:32:40 +0000 (05:32 -0000)]
Fix ldd so it correctly handles search paths of just one entry
(per fix in ldso a while back), and correctly matches the search
order in the shared lib loader.
 -Erik

22 years agoPass the -s to the linker
Eric Andersen [Fri, 24 May 2002 04:35:54 +0000 (04:35 -0000)]
Pass the -s to the linker

22 years agoSend the -s to the linker
Eric Andersen [Fri, 24 May 2002 04:02:41 +0000 (04:02 -0000)]
Send the -s to the linker

22 years agoObligatory forgotten file during commit...
Manuel Novoa III [Thu, 23 May 2002 21:54:01 +0000 (21:54 -0000)]
Obligatory forgotten file during commit...

22 years agoMultibyte and wide char conversion functions. Some work still to do, but
Manuel Novoa III [Thu, 23 May 2002 20:33:53 +0000 (20:33 -0000)]
Multibyte and wide char conversion functions.  Some work still to do, but
they're quite solid now and Erik needs them for the gcc port.  Comments at
the head of wchar.c.

22 years agoSeveral h8300 updates from Yoshinori Sato <qzb04471@nifty.ne.jp>
Eric Andersen [Thu, 23 May 2002 19:09:03 +0000 (19:09 -0000)]
Several h8300 updates from Yoshinori Sato <qzb04471@nifty.ne.jp>

22 years agoCleanup slightly
Eric Andersen [Thu, 23 May 2002 18:54:59 +0000 (18:54 -0000)]
Cleanup slightly

22 years agoChanged path where cross development tools are installed.
"Steven J. Hill" [Tue, 21 May 2002 19:42:03 +0000 (19:42 -0000)]
Changed path where cross development tools are installed.

22 years agoAdded more debug code.
"Steven J. Hill" [Mon, 20 May 2002 21:53:30 +0000 (21:53 -0000)]
Added more debug code.

22 years agoChanges needed for MIPS with regards to the .init and .fini sections.
"Steven J. Hill" [Mon, 20 May 2002 18:35:43 +0000 (18:35 -0000)]
Changes needed for MIPS with regards to the .init and .fini sections.

22 years agoFixed MIPS dynamic linker by removing link order dependency bug.
"Steven J. Hill" [Mon, 20 May 2002 18:30:17 +0000 (18:30 -0000)]
Fixed MIPS dynamic linker by removing link order dependency bug.

22 years agoRevert Erik's previous patch and fix what I believe he was trying to, while
Manuel Novoa III [Sun, 12 May 2002 16:58:16 +0000 (16:58 -0000)]
Revert Erik's previous patch and fix what I believe he was trying to, while
preserving the space-saving aliases.

22 years agoAdd a missing #include
Eric Andersen [Sun, 12 May 2002 00:49:32 +0000 (00:49 -0000)]
Add a missing #include

22 years agoUse the default version in include/sys instead
Eric Andersen [Sun, 12 May 2002 00:37:03 +0000 (00:37 -0000)]
Use the default version in include/sys instead

22 years agoFixes for 64 bit arches
Eric Andersen [Sun, 12 May 2002 00:33:22 +0000 (00:33 -0000)]
Fixes for 64 bit arches

22 years agoSeveral bugfixes for problems that showed up on alpha
Eric Andersen [Sun, 12 May 2002 00:32:39 +0000 (00:32 -0000)]
Several bugfixes for problems that showed up on alpha
 -Erik

22 years agoFix some silly bugs and type problems
Eric Andersen [Sun, 12 May 2002 00:28:24 +0000 (00:28 -0000)]
Fix some silly bugs and type problems

22 years agoSmall cleanups for alpha
Eric Andersen [Sun, 12 May 2002 00:27:48 +0000 (00:27 -0000)]
Small cleanups for alpha

22 years agoFix this one up so it works
Eric Andersen [Sun, 12 May 2002 00:26:48 +0000 (00:26 -0000)]
Fix this one up so it works

22 years agoAdd a config file for alpha
Eric Andersen [Sun, 12 May 2002 00:24:09 +0000 (00:24 -0000)]
Add a config file for alpha

22 years agoAdd a default syscalls.h that will just error out.
Eric Andersen [Sun, 12 May 2002 00:23:39 +0000 (00:23 -0000)]
Add a default syscalls.h that will just error out.
Add in syscalls.h for alpha.

22 years agoFix the defines which I had backwards
Eric Andersen [Sat, 11 May 2002 22:50:22 +0000 (22:50 -0000)]
Fix the defines which I had backwards

22 years agoFixup for architectures that do not supply the ipc system
Eric Andersen [Sat, 11 May 2002 22:45:03 +0000 (22:45 -0000)]
Fixup for architectures that do not supply the ipc system
call, but implement the ipc functions as separate system calls.
 -Erik

22 years agoMajorly rework to also cope with architectures which do not use
Eric Andersen [Sat, 11 May 2002 22:26:04 +0000 (22:26 -0000)]
Majorly rework to also cope with architectures which do not use
the socketcall system call, but instead implement each fundamental
networking function directly as a system call.
 -Erik

22 years agoOops. Stupid typo.
Eric Andersen [Sat, 11 May 2002 20:01:09 +0000 (20:01 -0000)]
Oops.  Stupid typo.

22 years agoAdjust preprocessor logic to initialize QUAL_CHARS correctly for Erik's alpha
Manuel Novoa III [Sat, 11 May 2002 14:50:18 +0000 (14:50 -0000)]
Adjust preprocessor logic to initialize QUAL_CHARS correctly for Erik's alpha
port.  Also, explicitly use the macro versions of isdigit and isspace in the
printf and scanf code.

22 years agoBegin the process of reworking the time functions for proper
Eric Andersen [Sat, 11 May 2002 05:40:55 +0000 (05:40 -0000)]
Begin the process of reworking the time functions for proper
time zone and locale support (in theory).  More work is
still needed.
 -Erik

22 years agoImplement readdir_r. Audit for proper thread safety and locking.
Eric Andersen [Sat, 11 May 2002 00:26:15 +0000 (00:26 -0000)]
Implement readdir_r.  Audit for proper thread safety and locking.
 -Erik