summaryrefslogtreecommitdiff
path: root/libc
AgeCommit message (Collapse)Author
2003-11-05Continue the conversion to using per-arch crti.S and crtn.SEric Andersen
2003-11-05Arthur Shipkowski, art ! videon-central ! com, writes:Eric Andersen
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
2003-11-05Continue the conversion to using per-arch crti.S and crtn.SEric Andersen
2003-11-05Continue the conversion to using per-arch crti.S and crtn.SEric Andersen
2003-11-05Continue the conversion to using per-arch crti.S and crtn.SEric Andersen
2003-11-05Begin the conversion to using per-arch crti.S and crtn.SEric Andersen
2003-11-04minor cleanupEric Andersen
2003-11-03Remove warning that apparently is not needed for e1Eric Andersen
2003-11-03Updated to match the other architectures. Fixes problem with "fcntl:Tobias Anderberg
function not implemented".
2003-11-02Implement getgrent_r. Rework getpwent and getgrent a bit furtherEric Andersen
2003-11-02Both setegid and seteuid were implemented suboptimally, such thatEric Andersen
we were unable to switch back to the original saved group/user ID. -Erik
2003-11-02Be extra careful to check uid and gid converstions to kernel typesEric Andersen
2003-11-02Make the syscall locally, avoid an externEric Andersen
2003-11-02If realloc failed, we'd lose the pointer to the exit function table.Manuel Novoa III
2003-11-02Hopefully fix the struct tm extension problem once and for all.Manuel Novoa III
Also fix a dst-related bug which caused the use of uninitialized data.
2003-11-01Fix things (properly) to open /etc/passd and /etc/group ifEric Andersen
they have not yet been opened. My last try was completely and embarrasingly broken. -Erik
2003-10-31Fix Erik's typo.Manuel Novoa III
2003-10-31Some more soft float fixes... for arm in particular (libfloat).Manuel Novoa III
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.
2003-10-31getpwent(), getpwent_r(), and getgrent(), getgrent_r() would allEric Andersen
fail if you had not previously called setpwent() or setgrent() respectively. Oops. My bad. -Erik
2003-10-25properly deal with soft-float when profiling as wellEric Andersen
2003-10-25Add -msoft-float to SAFECFLAGS when necessary.Manuel Novoa III
2003-10-22Peter S. Mazinger pointed out that I missed a spot. I shouldEric Andersen
stop applying patches by hand...
2003-10-22Per suggestion and patch from Ken Staton, emulates poll usingEric Andersen
select for older 2.0 kernels where poll is missing.
2003-10-20Fix a stupid bug that caused uClibc to never provide the correctEric Andersen
fpu_control.h header file, since the correct arch specific one was always later overwritten by the generic one. oops. -Erik
2003-10-19We were failing to properly set h_errno on success, which couldEric Andersen
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
2003-10-18Peter Kjellerstedt writes:Eric Andersen
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.
2003-10-18Peter Kjellerstedt writes:Eric Andersen
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).
2003-10-18Peter Kjellerstedt writes:Eric Andersen
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.
2003-10-18Implement putgrent to make Peter S. Mazing happyEric Andersen
2003-10-17Doh!!!Eric Andersen
2003-10-16Do not set errno when they asked for size 0Eric Andersen
2003-10-16Code formatting cleanup.Miles Bader
2003-10-16Don't set errno if for zero SIZE returns.Miles Bader
Code formatting cleanup.
2003-10-15Patch from Tony J. White:Eric Andersen
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.
2003-10-14Microblaze port from the uClinux-dist,David McCullough
contributed by John Williams <jwilliams@itee.uq.edu.au>
2003-10-12Don't make two copiesEric Andersen
2003-10-12Sigh. It seems that csh wants glob_pattern_p(), we need toEric Andersen
export it,
2003-10-10Implement getgrgid_r and getgrnam_r. Rework group handling code to be fullyEric Andersen
reentrant, since there was still a shared static value. indent stuff,
2003-10-09Patch from Rob McMullen:Eric Andersen
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
2003-10-08Atsushi Nemoto writes:Eric Andersen
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.
2003-10-08Patch from Atsushi Nemoto (with some additions):Eric Andersen
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.
2003-10-08Apply a trivial patch that doesn't change anything, but which is alledged toEric Andersen
workaround a toolchain specifi bug for the e1.
2003-10-08Patch from George Thanos adding support for the "e1" architecture.Eric Andersen
2003-10-03Quick implementation of sigwait. Doesn't handle thread cancelationEric Andersen
yet, but should work...
2003-09-24Hm. Keep using crt0.c for now. My fever-hack of crt0.S didn't do theTobias Anderberg
expected thing. A so called "D'oh!".
2003-09-23Quick fix to make sure vfprintf always checks stream orientation whenManuel Novoa III
wchar support is enabled.
2003-09-22More fiddling with static free-areas: make sure both their size _and_Miles Bader
their alignment are correct.
2003-09-22Modify _stdio_READ to conform with C99, as stdio input behavior uponManuel Novoa III
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.
2003-09-22Ugh... EOF handling by scanf was completely broken. :-( Regretably,Manuel Novoa III
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.
2003-09-21Fix "subst -g,," problem for SAFECFLAGS.Manuel Novoa III