summaryrefslogtreecommitdiff
path: root/libc
AgeCommit message (Collapse)Author
2001-08-30"Kim B. Heino" <Kim.Heino@bluegiga.com> reportsEric Andersen
In the libc/stdlib/bsd_getpt.c file you have line: memcpy (buf, _PATH_PTY, sizeof (_PATH_PTY) - 1); It really should be: memcpy (buf, _PATH_PTY, sizeof (_PATH_PTY) ); The last nul character must be copied too because the next line uses strlen() to get buf's length.
2001-08-28Fix goofy formattingEric Andersen
2001-08-28This will hopefully make global constructors and destructors workEric Andersen
2001-08-28Add "__write" as a weak alias for "write"Eric Andersen
2001-08-24Use "stdin", "stdout", and "stderr", not "_stdin", "_stdout", andEric Andersen
"_stderr", since this is what gcc and libgcc expect... -Erik
2001-08-24Add the __fopen prototype, since I pulled it from stdio.hEric Andersen
2001-08-24atoi, atol, atoll, and atof are supposed to be functions, not macros.Eric Andersen
-Erik
2001-08-17Fix a silly bug with the header fileEric Andersen
2001-08-14use some #defines internal to the ctype functions to eliminate themEric Andersen
calling other tiny ctype functions. Now all ctype funcs will end up with no extern references, which ends up shrinking both the uClibc shared lib and shrinking client code. -Erik
2001-08-11I just wrote a stpncpy() since someone wanted itEric Andersen
2001-08-11I rewrote strcat without any function calls.Eric Andersen
2001-08-09Add cmsg_nxthdr function for the cases where the headersDavid McCullough
do not so it inline.
2001-08-09Add in changes from philipc@lineo:David McCullough
Fix three bugs and bring into line with glibc: 1. The first character read using getc() was being ignored if it was EOF. Normally this is okay because the next getc() returns EOF as well, but for sscanf, this was causing us to skip the null terminator and start scanning whatever happened to be next in memory. 2. %s, %c, and %[ formats now return -1 if EOF is reached before any characters are read, instead of 0. This was causing an infinite loop in diald. 3. Default to base 10 for %i fields if not prefix modifier present.
2001-08-09Added sigset_t casts so we behave like the other platforms.David McCullough
2001-08-09Fix a couple of warningsDavid McCullough
2001-08-09Make sure the weak aliases are defined before the functions/varsDavid McCullough
they use as stubs, otherwise, some compilers (ie., m68k-elf) tie them to the local symbols and the weak aliases do not work.
2001-08-08This syncs things up with my local tree. Mainly changes installerEric Andersen
issues, and syns things (as far as I am willing) with Dave Schleef's tree. We may need to go another round or so, but we do seem to be converging...
2001-08-06Fixup the pipe system call for the SH target.David McCullough
The FD's are returned in registers.
2001-07-28Oops... left in a debugging line.Manuel Novoa III
2001-07-28Back out the changes to _uClibc_fread and loop in fread() if incomplete, toManuel Novoa III
avoid problems with fgets on tty streams. I actually did some testing this time. ;-) Note: there is a difference in behavior between glibc and uClibc here regarding fread() on a tty stream. glibc's fread() seems to return after reading all _available_ data even if not at end-of-file, while uClibc's fread() continues reading until all requested or eof or error. The latter behavior seems correct w.r.t. the standards.
2001-07-26Yes... the previous "fix" was broken too... the result of careless cuttingManuel Novoa III
and pasting while pressed for time. I haven't checked this one either. :-(
2001-07-25Ok... the fix wasn't quite so straightforward. Hopefully this will do it.Manuel Novoa III
2001-07-25Fix fread bug reported by Vodz. The fix is straightforward, but I haven'tManuel Novoa III
tested it (lack of time).
2001-07-16use ln -fsEric Andersen
2001-07-13PowerPC has a different kernel interface for termios. Grrr...David Schleef
2001-07-13The previous termios.h strongly appeared to be from a differentDavid Schleef
architecture.
2001-07-11Added __BEGIN_DECLS and __END_DECLS to the files that didn't haveDavid McCullough
it and that I could see needed it. Should be pretty low impact as these are only defined when using C++.
2001-07-11Fixup the atexit weak alias for elf, need to include <features.h> toDavid McCullough
get the correct value for the HAVE_ELF define.
2001-07-09A patch from Michal Moskal <malekith@pld.org.pl> to includeEric Andersen
partial IPV6 support. This adds things like gethostbyname2(). Off by defaut, of course,
2001-07-09Workaround an old m68k-coff compiler problemEric Andersen
2001-07-06Fix strxfrm, which was broken (thanks to Shaya Potter <spotter@us.ibm.com>Eric Andersen
for noticing, and cleanup a warning. -Erik
2001-07-04Added stpcpy and strcasestr along with some code to test them.David McCullough
2001-07-03remove bits/syscall.h when cleaningDavid Schleef
2001-07-03Autogen include/bits/syscall.h for ARMEric Andersen
-Erik
2001-07-03Get rid of warning messages and spurious diffsDavid Schleef
2001-07-03Need to include sys/syscall.h because of other changesDavid Schleef
2001-07-03It is now autogeneratedDavid Schleef
2001-07-03Fix to autogen bits/syscall.h, like i386David Schleef
2001-07-01These zero-length files apparently weren't deleted from cvs.Manuel Novoa III
2001-06-30Add syscalls.h for ARMEric Andersen
2001-06-28Changes for new auto-generated syscall.hDavid McCullough
2001-06-28Changes to support autogenerated syscall.hDavid McCullough
2001-06-28sysdep.h was not providing all the needed bits to build working asm withDavid McCullough
some compilers, so define any macros we need that are not defined already. Needed to include uClibc_config.h to get some defines. New syscall header files for _mmap vfork.c is not used so ditch it.
2001-06-28Added a script to create bits/syscall.h for each arch.Manuel Novoa III
NOTE!!! This is run by "make -C libc/sysdeps/linux/$(TARGET_ARCH) headers" in the main Makefile, but I only changed libc/sysdeps/linux/i386/Makefile as I had no way of testing it for the other archs. Various arch maintainers, please check and update the corresponding Makefile... or report bugs ;-)... appropriately. You'll also want to "cvs del" syscall.h and add it to a .cvsignore in $(ARCH)/bits. Also added a define to uClibc_config.h, __UCLIBC_USE_UNIFIED_SYSCALL__, and moved i386 unified syscall stuff out of common and into i386/bits/syscalls.h.
2001-06-27the minimum needed for nowDavid McCullough
2001-06-27Added this guy, nothing needed here really.David McCullough
2001-06-27Remove nonstandard functions.Manuel Novoa III
2001-06-27Remove obsolete files tell.c and getdents.cManuel Novoa III
2001-06-27Stub out an initial version. Manuel will be writingEric Andersen
some code to autogenerate this stuff...
2001-06-27Step one in a process to ween ourselves off of using asm/unistd.h.Eric Andersen
This will break the build for a bit. -Erik