summaryrefslogtreecommitdiffstats
path: root/libc
Commit message (Collapse)AuthorAgeFilesLines
...
* Hopefully this is correctEric Andersen2003-01-232-11/+18
|
* Hopefully this will work as expected. I have no way toEric Andersen2003-01-232-6/+16
| | | | test but this should be correct.
* Update crt0 for arm to provide the main referenceEric Andersen2003-01-231-7/+13
| | | | | | a bit more nicely, and make _init and _fini be weak for people with broken compilers -Erik
* Wasn't thinking... we don't need to seek to end when appending if stdioManuel Novoa III2003-01-231-12/+0
| | | | is built without buffer support.
* Update ignore listEric Andersen2003-01-231-1/+1
|
* Update a tiny bitEric Andersen2003-01-231-5/+1
|
* Cleanup makefiles and make clean a bitEric Andersen2003-01-232-7/+10
|
* Making atexit weak does nothing for dynamicly linked apps. And forEric Andersen2003-01-231-3/+5
| | | | | | | | | | staticly linked apps it entirely prevents destructors from running unless atexit is called for some other reason. So if they enabled ctor/dtor support we need to have a call to the real atexit for dtors to work properly. If people don't want the extra 4k or so of junk in their static apps, they should leave ctor/dtor support disabled. -Erik
* simpler method for getting a 'main' reference. Make _init and _finiEric Andersen2003-01-231-6/+12
| | | | be weak so people won't need to fix their compilers
* Shuffle two lines so the comment applies to the correct line.Eric Andersen2003-01-231-2/+2
|
* Rewrite powerpc crt0.S for proper ctor/dtor handlingEric Andersen2003-01-232-40/+61
|
* Kill the needless '#if 1'Eric Andersen2003-01-231-2/+0
|
* Update malloc behavior on malloc(0) to be consistant withEric Andersen2003-01-231-2/+5
| | | | malloc-930716 behavior, i.e. return a NULL.
* Fixed a bug related file position in append mode. _stdio_fwrite nowManuel Novoa III2003-01-221-11/+52
| | | | | | | | | seeks to the end of the stream when append mode is set and we are transitioning to write mode, so that subsequent ftell() return values are correct. Also fix _stdio_fopen to support fdopen() with append specified when the underlying file didn't have O_APPEND set. It now sets the O_APPEND flag as recommended by SUSv3 and is done by glibc.
* Update sigaction syscall names to act more like glibc. Fix the x86 sigactionEric Andersen2003-01-226-15/+196
| | | | | | implementation such that gdb can actually debug signal handlers. Gdb behaves much better now, for example, on multi-threaded apps. -Erik
* Changed '__kernel_nlink_t' data type to match Linux/MIPS kernel type"Steven J. Hill"2003-01-221-1/+1
| | | | | definition and to be consistent with the ABI. Done per conversation with Ralf (Linux/MIPS) maintainer.
* Add in arm specific sigaction implementation to fix sa_restorerEric Andersen2003-01-223-2/+159
| | | | behavior so it works as expected
* Missed an endifEric Andersen2003-01-221-0/+1
|
* Looks like sigaction on arm needs adjustment, so split this intoEric Andersen2003-01-222-111/+106
| | | | a common header file and a default implementation.
* Only include lockf64 when large file support is enabled, fixingEric Andersen2003-01-182-1/+23
| | | | | a problem noticed by Jeff Mock. Sorry about that. -Erik
* Patch from Jay Kulpinski:Eric Andersen2003-01-101-0/+10
| | | | | | | __decode_dotted() does not count the null terminating byte of a hostname in the DNS response. This causes lookups to fail if the DNS response doesn't compress domain names in the message.
* Fix warningsEric Andersen2003-01-101-1/+2
|
* Implement lockf64Eric Andersen2003-01-102-1/+86
| | | | -Erik
* Patch from Nick Fedchik to support ether_atonEric Andersen2003-01-102-1/+84
|
* Fix a silly bug in _wstdio_fwrite. wprintf %s should now work correctly.Manuel Novoa III2003-01-051-1/+3
|
* Rework sparc architecture support so it will compileEric Andersen2003-01-0212-212/+293
| | | | | and run. Seems to be working... -Erik
* Be sure we have a crt1.o file. Use the asm version by default.Eric Andersen2002-12-211-22/+5
| | | | -Erik
* The big thing is locale dependent collation support.Manuel Novoa III2002-12-206-127/+1037
| | | | Also added outdigit support and (legacy) YESSTR/NOSTR support.
* Initial checkinMiles Bader2002-12-182-0/+184
|
* whitespaceMiles Bader2002-12-181-0/+1
|
* (SSRC): Rename longjmp.S to __longjmp.SMiles Bader2002-12-181-2/+2
| | | | (CSRC): Add clone.c
* Rename longjmp.S to __longjmp.SMiles Bader2002-12-181-8/+2
| | | | Remove extra weak symbols defined by ../common/longjmp.c
* Based on discussions with Stefan Allius, change it so that we alwaysEric Andersen2002-12-1210-90/+26
| | | | | | | build a crt0.o and a crt1.o. crt1.o will support ctors and dtors if such support is enabled. One more gratuitous toolchain support issue is thereby removed... -Erik
* Remove trailing comma from enum list as a nicety for older compilers.Manuel Novoa III2002-12-111-1/+1
|
* Change some variable names so we are more consistant with whatEric Andersen2002-12-041-7/+7
| | | | | the linux kernel uses. -Erik
* Implement the rest of the missing include/net/if.h interfacesEric Andersen2002-12-041-22/+149
| | | | -Erik
* Fix the other instance of getcwdEric Andersen2002-12-041-18/+21
|
* For now, always claim we have exactly one cpu. It shouldEric Andersen2002-12-041-2/+4
| | | | generally be the truth...
* Properly allocate memory when size is 0, but so is bufEric Andersen2002-12-041-25/+28
|
* Cut and paste error.Manuel Novoa III2002-12-021-4/+5
|
* Forgot one...Manuel Novoa III2002-12-021-33/+0
|
* Add hsearch and hsearch_r. Consolidate all functions prototyped inManuel Novoa III2002-12-029-93/+334
| | | | search.h in one directory.
* If the wait failed in pclose it would return a random status codeDavid McCullough2002-12-011-1/+2
| | | | instead of -1 as expected.
* I forgot to include features.hEric Andersen2002-11-291-0/+2
|
* Silly me, I forgot to include features.hEric Andersen2002-11-291-4/+5
|
* Make support for global constructors and global destructors beEric Andersen2002-11-276-11/+68
| | | | | | configurable, so people who do not need or want ctor/dtor support can disable it and make their binaries a little bit smaller. -Erik
* Fix an ifdef mismatch.Manuel Novoa III2002-11-271-2/+2
|
* Fix bug in setting daylight and timezone when no (valid) TZ.Manuel Novoa III2002-11-271-3/+5
| | | | Bug reported by Arne Bernin <arne@alamut.de> in regards to freeswan.
* Oops.. left in a bit of debugging code.Manuel Novoa III2002-11-231-2/+0
|
* Ok... here's the summary:Manuel Novoa III2002-11-2212-473/+1667
| | | | | | | | | | | | | | Hopefully locale support will build when cross compiling now. Collation is still not supported, but that's what I'm currently working on. In the next couple of days, I'll probably put up a couple of files for download that will save people the trouble of generating all the glibc locales. Added *wprintf functions, although they currently don't support floating point. That will be fixed when I rewrite _dtostr... or possibly before. Added the wcsto{inttype} functions. Added iconv() and a mini iconv utility. The require locale support and only provide for conversions involving the various unicode encodings { UCS-4*, UCS-2*, UTF-32*, UTF-16*, UTF-8 }, the 8-bit codesets built with the locale data, and the internal WCHAR_T.