summaryrefslogtreecommitdiffstats
path: root/libc
Commit message (Collapse)AuthorAgeFilesLines
...
* Continue the conversion to using per-arch crti.S and crtn.SEric Andersen2003-11-053-1/+79
|
* Continue the conversion to using per-arch crti.S and crtn.SEric Andersen2003-11-053-1/+89
|
* Arthur Shipkowski, art ! videon-central ! com, writes:Eric Andersen2003-11-051-0/+3
| | | | | | | | | | | | | | | | | | | | | | I've noticed a few people have posted over the last year about problems compiling programs that use vfork when pthreads are involved. Some detective work turned up that ptfork.c aliases vfork to fork and then tries to call the original fork as __libc_fork. This patch removes the aliasing when there is no MMU present, and uses the same call semantics to call __libc_vfork. I then added a symbol to the m68k vfork.S to allow vfork to be called as __libc_vfork. The same bug exists in the uClibc CVS, and with a possible tweak this patch should go through there as well. Obviously, all other platforms need __libc_vfork as a workable means to call vfork in order for this to work for them. Let me know if there are any problems with this patch. Art Shipkowski Videon Central Software Engineer (814)235-1111 x307
* Continue the conversion to using per-arch crti.S and crtn.SEric Andersen2003-11-053-1/+113
|
* Continue the conversion to using per-arch crti.S and crtn.SEric Andersen2003-11-053-1/+122
|
* Continue the conversion to using per-arch crti.S and crtn.SEric Andersen2003-11-056-2/+157
|
* Begin the conversion to using per-arch crti.S and crtn.SEric Andersen2003-11-053-1/+100
|
* minor cleanupEric Andersen2003-11-041-1/+1
|
* Remove warning that apparently is not needed for e1Eric Andersen2003-11-031-1/+0
|
* Updated to match the other architectures. Fixes problem with "fcntl:Tobias Anderberg2003-11-031-29/+67
| | | | function not implemented".
* Implement getgrent_r. Rework getpwent and getgrent a bit furtherEric Andersen2003-11-022-24/+38
|
* Both setegid and seteuid were implemented suboptimally, such thatEric Andersen2003-11-022-3/+42
| | | | | we were unable to switch back to the original saved group/user ID. -Erik
* Be extra careful to check uid and gid converstions to kernel typesEric Andersen2003-11-021-17/+74
|
* Make the syscall locally, avoid an externEric Andersen2003-11-021-2/+6
|
* If realloc failed, we'd lose the pointer to the exit function table.Manuel Novoa III2003-11-021-6/+8
|
* Hopefully fix the struct tm extension problem once and for all.Manuel Novoa III2003-11-021-22/+65
| | | | Also fix a dst-related bug which caused the use of uninitialized data.
* Fix things (properly) to open /etc/passd and /etc/group ifEric Andersen2003-11-014-24/+36
| | | | | | | they have not yet been opened. My last try was completely and embarrasingly broken. -Erik
* Fix Erik's typo.Manuel Novoa III2003-10-311-1/+1
|
* Some more soft float fixes... for arm in particular (libfloat).Manuel Novoa III2003-10-312-18/+4
| | | | | | Remove the ADD_LIBGCC_FUNCTIONS option and do things the right way. Either we have a shared libgcc available, or the libgcc routines aren't PIC and don't belong in the shared libc anyway.
* getpwent(), getpwent_r(), and getgrent(), getgrent_r() would allEric Andersen2003-10-313-1/+8
| | | | | | fail if you had not previously called setpwent() or setgrent() respectively. Oops. My bad. -Erik
* properly deal with soft-float when profiling as wellEric Andersen2003-10-254-0/+12
|
* Add -msoft-float to SAFECFLAGS when necessary.Manuel Novoa III2003-10-251-0/+3
|
* Peter S. Mazinger pointed out that I missed a spot. I shouldEric Andersen2003-10-221-1/+3
| | | | stop applying patches by hand...
* Per suggestion and patch from Ken Staton, emulates poll usingEric Andersen2003-10-222-1/+196
| | | | select for older 2.0 kernels where poll is missing.
* Fix a stupid bug that caused uClibc to never provide the correctEric Andersen2003-10-201-1/+1
| | | | | | fpu_control.h header file, since the correct arch specific one was always later overwritten by the generic one. oops. -Erik
* We were failing to properly set h_errno on success, which couldEric Andersen2003-10-191-0/+3
| | | | | | | cause gethostbyaddr_r to keep looping allocating more and more memory each time till alloca finally caused a segfault. Ugh. This fixes that as well... -Erik
* Peter Kjellerstedt writes:Eric Andersen2003-10-1811-28/+16
| | | | | | | | | | ln.patch: * Define $(LN) as ln in Rules.mak. * Change all occurrences of ln into $(LN). * Change all constructs like (cd path && ln -sf foo/file file) into $(LN) -sf foo/file path/file. The latter construct is already used in a number of places so it should not be an additional compatibility problem.
* Peter Kjellerstedt writes:Eric Andersen2003-10-1854-78/+78
| | | | | | | rm.patch: * Define $(RM) as rm -f in Rules.mak and test/Rules.mak (this is the same definition as gmake uses by default). * Change all occurrences of rm and rm -f into $(RM).
* Peter Kjellerstedt writes:Eric Andersen2003-10-182-8/+8
| | | | | | | | | install.patch: * Define $(INSTALL) as install in Rules.mak. * Change all occurrences of install into $(INSTALL). * Change all occurrences of mkdir -p into $(INSTALL) -d. install -d is already used in a number of places so this should not be an additional compatibility problem.
* Implement putgrent to make Peter S. Mazing happyEric Andersen2003-10-182-1/+57
|
* Doh!!!Eric Andersen2003-10-171-1/+1
|
* Do not set errno when they asked for size 0Eric Andersen2003-10-161-1/+1
|
* Code formatting cleanup.Miles Bader2003-10-161-5/+6
|
* Don't set errno if for zero SIZE returns.Miles Bader2003-10-161-11/+14
| | | | Code formatting cleanup.
* Patch from Tony J. White:Eric Andersen2003-10-152-1/+313
| | | | | | I've created a patch for adding dn_expand() to uClibc 0.9.21. dn_expand() is used by at least ipsec-tools and also openldap I think.
* Microblaze port from the uClinux-dist,David McCullough2003-10-1423-0/+1204
| | | | contributed by John Williams <jwilliams@itee.uq.edu.au>
* Don't make two copiesEric Andersen2003-10-122-34/+40
|
* Sigh. It seems that csh wants glob_pattern_p(), we need toEric Andersen2003-10-121-5/+3
| | | | export it,
* Implement getgrgid_r and getgrnam_r. Rework group handling code to be fullyEric Andersen2003-10-1025-671/+738
| | | | reentrant, since there was still a shared static value. indent stuff,
* Patch from Rob McMullen:Eric Andersen2003-10-091-0/+74
| | | | | | | | Here's a patch... Since they aren't SUSv3 functions, I don't know if they'll ever get officially added, but it helps with BSD porting and allows quite a few Gentoo ebuilds to compile without changing anything. Rob
* Atsushi Nemoto writes:Eric Andersen2003-10-084-17/+17
| | | | | | | | | | | | | I found inappropriate data types are used in some places in networking codes. * tcp_seq is 32bit (u_long -> u_int32_t) * in_addt_t should be used for internet address (unsigned long -> in_addr_t) * socklen_t should be used for accept() This is a patch against uclibc-0.9.21 (can be applied for current CVS). 64bit platforms (sizeof(int)!=sizeof(long)) will need this. I believe this patch does not harm any 32bit platforms.
* Patch from Atsushi Nemoto (with some additions):Eric Andersen2003-10-0818-2/+722
| | | | | | | Current uClibc contains only one fpu_control.h and it is i386 version. This is a patch to use platform specific fpu_control.h. All new files come from glibc 2.3.2. This patch is against 0.9.21 but also can be applied to CVS as is.
* Apply a trivial patch that doesn't change anything, but which is alledged toEric Andersen2003-10-081-1/+1
| | | | workaround a toolchain specifi bug for the e1.
* Patch from George Thanos adding support for the "e1" architecture.Eric Andersen2003-10-0822-0/+1712
|
* Quick implementation of sigwait. Doesn't handle thread cancelationEric Andersen2003-10-032-7/+35
| | | | yet, but should work...
* Hm. Keep using crt0.c for now. My fever-hack of crt0.S didn't do theTobias Anderberg2003-09-241-1/+1
| | | | expected thing. A so called "D'oh!".
* Quick fix to make sure vfprintf always checks stream orientation whenManuel Novoa III2003-09-231-0/+19
| | | | wchar support is enabled.
* More fiddling with static free-areas: make sure both their size _and_Miles Bader2003-09-221-5/+5
| | | | their alignment are correct.
* Modify _stdio_READ to conform with C99, as stdio input behavior uponManuel Novoa III2003-09-221-28/+66
| | | | | | | | | | | | encountering EOF changed with Defect Report #141. In the current standard, the stream's EOF indicator is "sticky". Once it is set, all further input from the stream should fail until the application explicitly clears the EOF indicator (clearerr(), file positioning), even if more data becomes available. Fixed a bug in fgets. Wasn't checking for read errors. Minor thread locking optimizations to avoid some unnecessary locking. Remove the explicit calls to __builtin_* funcs, as we really need to implement a more general solution.
* Ugh... EOF handling by scanf was completely broken. :-( Regretably,Manuel Novoa III2003-09-221-67/+66
| | | | | | | | I got my mind fixed in one mode and didn't comply with the standards. Things should be fixed now, but comparision testing is difficult when glibc's scanf is broken and they stubbornly refuse to even acknowledge that it is... even when confronted by specific examples from the C99 standards and from an official C standard defect report.