summaryrefslogtreecommitdiff
path: root/libc
AgeCommit message (Collapse)Author
2005-04-16In Bug 116, dicksnippe writes:Mike Frysinger
uClibc's mkstemp/mktemp tries to read /dev/urandom (or /dev/random) to generate random contents for the .XXXXXX part of its argument. In a chrooted environment /dev/[u]random might not be available. Thus the mkstemp call fails. Add back in the braindamaged gettimeofday/getpid code, but only as a fallback for when reading /dev/[u]random fail for whatever reasons.
2005-04-16cbachman writes Bug 195:Mike Frysinger
Add back in the code which sets the default facility if none specified. This may cause issues with klogd when it tries to use the libc's syslog(), but klogd comes with its own syslog() implementation so that's a none issue. For more info, please see the following: http://sources.redhat.com/ml/libc-alpha/2000-03/msg00059.html
2005-04-13Further rework the mips syscallsEric Andersen
2005-04-01Cleanup the mips syscalls a bit more, and fix a fewEric Andersen
annoying warnings.
2005-03-21Forgot to change name of builtin buffer during last rewrite.Manuel Novoa III
2005-03-21Pass _dl_fini function ptr to __uClibc_start_main().Joakim Tjernlund
To actually use it, one must define _DL_DO_FINI_IN_LIBC globally. That will also break ABI for apps linked with previous version of crtX.S. They must be relinked with this version to work again.
2005-03-20Pass _dl_fini function ptr to __uClibc_start_main().Joakim Tjernlund
To actually use it, one must define _DL_DO_FINI_IN_LIBC globally. That will also break ABI for apps linked with previous version of crtX.S. They must be relinked with this version to work again.
2005-03-20Prepare for moving ldso FINI handling into libc.Joakim Tjernlund
#define _DL_DO_FINI_IN_LIBC to enable(the arch specific part needs to be in place first).
2005-03-17Revert last commit. If I had wanted to include that patch, I would have doneManuel Novoa III
it myself at least a year and a half ago.
2005-03-16http://bugs.uclibc.org/view.php?id=165Mike Frysinger
d1mag writes: Compilation of _fpmaxtostr.c generate an internal error by m68k-elf-gcc, and this patch has been used in uClinux-dist to fix it.
2005-03-16change the reg class so it actually compilesMike Frysinger
2005-03-16merge the syscalls and punt the glibc import in the process (blah, what a ↵Mike Frysinger
waste of time that was :D)
2005-03-16get rid of linux-headers hack ... rip code from glibcMike Frysinger
2005-03-14Make mips/mipsel syscalls no longer complain about the "use of memory inputEric Andersen
without lvalue in asm". Give the asm an lvalue so it can be happy.
2005-03-12- added externs to keep gcc quiet about implicit declaration of 3 functionsNed Ludd
2005-02-25doh! We'll get this one right yet...Eric Andersen
2005-02-21update so argc/argv/envp work and binaries dont just segfault immediatlyMike Frysinger
2005-02-18Some uClinux architectures do not define pivot_rootEric Andersen
2005-02-15dont need sysdep.hMike Frysinger
2005-02-15some incomplete asm source for x86_64Mike Frysinger
2005-02-15some more x86_64 sourceMike Frysinger
2005-02-15some more x86_64 sourceMike Frysinger
2005-02-15some source files for x86_64Mike Frysinger
2005-02-15headers for x86_64Mike Frysinger
2005-02-14When I broke up the stdio code, the "support pre C99 compilers" va_copy compatManuel Novoa III
define was no longer visible to vasprintf. I didn't catch this since I no longer use such old tools. Unfortunately, some well-meaning but misguided individual decided to just cut-and-paste the macro. :-( Try to clean up the situation by putting it into a header that can be overriden by any archs that need to. If this breaks for anyone (as I said, I no longer use such old tools and so haven't tested), let me know and I'll fix it.
2005-02-14Fix some issues with nice(). SUSv3 specifies that it return the newManuel Novoa III
priority if successful, while the linux syscall returns 0. Also, in the non-syscall version, we must be sure to set errno to EPERM on failure since setpriority() can set errno to several possible values. Note: The version of glibc on my debian system is broken wrt EPERM too.
2005-02-13x86_64 fixes: make sure the fall back routine for using umount2() for ↵Mike Frysinger
umount() actually works :)
2005-02-13x86_64 fixes: update prototype to match the other prototypesMike Frysinger
2005-02-13x86_64 fixes: __NR_socketcall doesnt exist, nor does __NR_recv / __NR_send ↵Mike Frysinger
... so dont try using socketcall() unless the system call exists
2005-02-13touchup the $(AR) mojo to address some bugs by Peter KjellerstedtMike Frysinger
2005-02-12no more cvsMike Frysinger
2005-02-09Define va_copy for pre-C99 compilers (code taken from vfprintf.c).Peter Kjellerstedt
2005-02-09Implement _start completely in assembler. Otherwise the compiler willPeter Kjellerstedt
push the frame pointer when DO_DEBUG is enabled (and thus incorrect argc, argv and envp will be passed to the program).
2005-02-09Include features.h (without it, testing for __UCLIBC_HAS_THREADS__ Peter Kjellerstedt
makes no sense).
2005-02-08- 2/NN patches for ssp. Updates from Peter S. Mazinger and Robert ConnollyNed Ludd
2005-02-08- 1/NN patches for sspNed Ludd
2005-01-29merge parallel build supportMike Frysinger
2005-01-25merge parallel build supportMike Frysinger
2005-01-23When there is no umount syscall, but umount2 is available, thenEric Andersen
try to emulate umount() using umount2()
2005-01-19Avoid compiler warnings.Peter Kjellerstedt
2005-01-19Make it compile for architectures which have __UCLIBC_HAS_LFS__ defined,Peter Kjellerstedt
but neither __NR_fadvise64 nor __NR_fadvise64_64.
2005-01-19fix target dependencies to support parallel buildingMike Frysinger
2005-01-19use $(RANLIB)Mike Frysinger
2005-01-17add posix_fadvise / posix_fadvise64 supportMike Frysinger
2005-01-16whitespace cleanupEric Andersen
2005-01-16Per http://bugs.uclibc.org/view.php?id=12:Eric Andersen
Some newer archs only have umount2
2005-01-16- ifdef bdflush update from bug #0000011Ned Ludd
2005-01-16- ifdef uselib update from bug #0000013Ned Ludd
2005-01-11dont bother including sysctl.h unless we need itMike Frysinger
2005-01-11Jean writes:Eric Andersen
Hello, under some circumstances the following small example prints lots of garbage onto the console and into the syslog: #include <syslog.h> int main () { openlog("foo", LOG_CONS|LOG_NDELAY|LOG_PID|LOG_PERROR, LOG_DAEMON); syslog (LOG_WARNING, "mlock: %m"); return 1; } The reason is, that sprintf returns with -1 and vsyslog dumps the complete buffer onto stderr and the syslogd socket. The following patch would fix the problem: