summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/common
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove profil.c, since it is constained within gmon.c.Manuel Novoa III2003-09-072-114/+1
|
* Fix some more problems found by the ltpEric Andersen2003-09-071-6/+9
|
* Add an implementation of profil(), based on the version fromEric Andersen2003-09-062-1/+114
| | | | glibc, with several changes for use in uClibc.
* Fix numerous problems with both getcwd implementations.Eric Andersen2003-09-061-66/+63
| | | | -Erik
* Create a typedef for the ctype bitmask table entries.Manuel Novoa III2003-08-282-1/+16
| | | | | | | | | Hack a fix for ctype support of 8-bit codeset locales. Note: toupper/tolower mappings do not handle the special cases for the tr_TR and az_AZ locales, since the wide versions currently handle them either. That will be addressed when I rewrite the data generation tools and the libc locale code.
* Added cris to "define list".Tobias Anderberg2003-08-271-1/+1
|
* Fix a few bugs in the new extended locale functions.Manuel Novoa III2003-08-241-4/+7
| | | | | | | | | Move stub gettext functions to a stub libintl to make switching in gnu gettext easier. Also add a few gnu-isms. Change to using hidden names with global weak aliases for the extended locale functions, as expected by libstd++. Slightly rework the locale data generation stuff to allow pregenerated locale data to be used with buildroot.
* Don't use linux/sysctl.h and instead locally define struct __sysctl_args.Eric Andersen2003-08-221-1/+9
|
* Add missing semicolonsEric Andersen2003-08-211-2/+2
|
* Correct included header for ustat.Manuel Novoa III2003-08-201-1/+1
|
* Use the common version for bits/sem.h. Fixup the types toEric Andersen2003-08-141-2/+2
| | | | match the kernel type exactly.
* Patch from Paul Mundt adding uClibc sh64 support:Eric Andersen2003-08-131-1/+1
| | | | | | | | | | | | | | | | Here's a patch that implements the beginnings of a rudimentary sh64 port. So far, this only works static, as I haven't done any of the ldso work yet. I've also not touched the libpthread stuff yet either, so that's also disabled for now. This port was based off of some work that Sean McGoogan at SuperH did for his initial port, but the this patch doesn't carry over too much from there (basically the libc/sysdeps/linux/sh64/Makefile (or rather, parts of it), the setjmp/longjmp stuff (which I had to rewrite portions of it to work with the new toolchains), etc.). However, for static, everything appears to work correcly, at least in a hello world type application.
* Add support for the ulimit syscallEric Andersen2003-08-101-0/+81
|
* Add support for personality(), prctl(), ustat(), and ulimit()Eric Andersen2003-08-083-6/+38
| | | | | syscalls, which had managed to stay unimplemented thus far. -Erik
* Patch from David Wuertele to prevent "conflicts with new declaration with CEric Andersen2003-08-051-0/+4
| | | | linkage" problems with C++
* Zou WeiJun noticed a type breaking the stime syscallEric Andersen2003-08-051-1/+1
| | | | -Erik
* Replace 'new' in a prototype to avoid c++ problems.Manuel Novoa III2003-08-011-1/+1
|
* Add a new *scanf implementation, includeing the *wscanf functions.Manuel Novoa III2003-08-017-67/+425
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Should be standards compliant and with several optional features, including support for hexadecimal float notation, locale awareness, glibc-like locale-specific digit grouping with the `'' flag, and positional arg support. I tested it pretty well (finding several bugs in glibc's scanf in the process), but it is brand new so be aware. The *wprintf functions now support floating point output. Also, a couple of bugs were squashed. Finally, %a/%A conversions are now implemented. Implement the glibc xlocale interface for thread-specific locale support. Also add the various *_l(args, locale_t loc_arg) funcs. NOTE!!! setlocale() is NOT threadsafe! NOTE!!! The strto{floating point} conversion functions are now locale aware. The also now support hexadecimal floating point notation. Add the wcsto{floating point} conversion functions. Fix a bug in mktime() related to dst. Note that unlike glibc's mktime, uClibc's version always normalizes the struct tm before attempting to determine the correct dst setting if tm_isdst == -1 on entry. Add a stub version of the libintl functions. (untested) Fixed a known memory leak in setlocale() related to the collation data. Add lots of new config options (which Erik agreed to sort out :-), including finally exposing some of the stripped down stdio configs. Be careful with those though, as they haven't been tested in a long time. (temporary) GOTCHAs... The ctype functions are currently incorrect for 8-bit locales. They will be fixed shortly. The ctype functions are now table-based, resulting in larger staticly linked binaries. I'll be adding an option to use the old approach in the stub locale configuration.
* Remove the arch specific shm.h and use the fixed up commonEric Andersen2003-08-011-39/+34
| | | | | one which now uses the kernel structs -Erik
* Patch from Peter Kjellerstedt to make it simpler for arches to specifyEric Andersen2003-07-151-1/+1
| | | | either -fPIC or -fpic
* Fix a couple of typosEric Andersen2003-06-271-2/+1
|
* oops. Fix the name so it is "mmap64", not "__mmap64"Eric Andersen2003-06-271-2/+3
|
* Actually, some arches do support _syscall6, so implement a generic versionEric Andersen2003-06-271-7/+36
| | | | | for them... -Erik
* Mention that the common mmap64 is a stub and must be overriddenEric Andersen2003-06-271-0/+7
| | | | on a per arch basis using platform specific code
* Add missing madvise syscallEric Andersen2003-06-271-0/+6
|
* As noted by Peter S. MazingerEric Andersen2003-06-161-227/+0
| | | | | | | After removal of stropts.h none of the files references bits/stropts.h, so it can be removed. Peter
* (__libc_open): Fix wacky indentation.Miles Bader2003-05-081-6/+6
|
* Fixup __libc_open to use varargs and match the prototype.David McCullough2003-04-291-2/+7
| | | | | On the H8 varargs are rather unusual and if you declare a function with varargs, it had better use them or it won't work.
* sjhill needs to buy donuts for everyoneEric Andersen2003-03-111-1/+0
|
* Compliance with MIPS ABI and MIPS kernel changes."Steven J. Hill"2003-03-111-9/+2
|
* Patch from Stefan Allius:Eric Andersen2003-03-071-3/+2
| | | | fix a couple of gcc 3.3 compiler warnings in gmon.c
* Default to using fork() for vfork() when no arch specificEric Andersen2003-03-052-1/+9
| | | | implementation of vfork is present.
* Initial effort at adding profiling support.Eric Andersen2003-03-0310-1/+906
|
* cut-n-paste strikes againEric Andersen2003-03-021-1/+1
|
* Add missing alias __modify_ldtEric Andersen2003-03-021-0/+1
|
* Major update for pthreads, based in large part on improvementsEric Andersen2003-02-272-10/+9
| | | | | from glibc 2.3. This should make threads much more efficient. -Erik
* Fixup ioctl so we can special case powerpc sillinessEric Andersen2003-02-183-21/+30
|
* Using -g when doing the initfini compilation breaks the SH4 case prettyDavid McCullough2003-02-171-0/+5
| | | | | badly. I have removed -g for all platforms as I suspect no one wants it for the initfini creation process.
* Add missing ';'s so powerpc will compileEric Andersen2003-02-151-2/+2
|
* Fix a _ton_ of system call user type/kernel type translationEric Andersen2003-02-153-109/+301
| | | | | problems, causing user space to get scrambled hosed up results. -Erik
* We need to have the size of struct dirent equal to the size of struct dirent64Eric Andersen2003-02-103-18/+12
| | | | | | | so when _FILE_OFFSET_BITS=64 (such that we transparently change 32bit into 64 bit interfaces), we will not lose an unsigned char from d_name which silently becomes the d_type field instead. oops. -Erik
* Fixup compile on 2.2.x kernels when UCLIBC_HAS_LFS is enabledEric Andersen2003-02-032-11/+29
|
* Use correct names for dummy crti.o/crtn.o files.Miles Bader2003-01-301-2/+2
|
* Create stub crti.o and crtn.o files when UCLIBC_CTOR_DTOR is disabledEric Andersen2003-01-291-2/+9
| | | | -Erik
* Fix scandir64 to not free the wrong pieces of memory (which couldEric Andersen2003-01-284-13/+211
| | | | | | | | and did cause segfaults) by adjusting the working scandir.c to the the 64 thing. Fix up potential for mismatches between the libc and kernel dirent structures, which could also cause ugly problems. -Erik
* Patch from Stefan Allius to fix the build whenEric Andersen2003-01-282-0/+4
| | | | large file support is disabled
* Finish up fixing stat and setting various system types.Eric Andersen2003-01-243-54/+11
|
* I thought it would be smaller to inline since these funcs are small.Eric Andersen2003-01-244-10/+51
| | | | | Well, not inlining saves 300 bytes, so do that instead. -Erik
* Ok, people are probably going to hate me for this... This commit changes theEric Andersen2003-01-244-50/+275
| | | | | | | | | | | | | | | type of 'struct stat' and 'struct stat64' so they use consistant types. This change is the result of a bug I found while trying to use GNU tar. The problem was caused by our using kernel types within struct stat and trying to directly compare these values with standard types. Trying an 'if (a < b)' when 'a' is an 'unsigned long' and 'b' is an 'int' leads to very different results then when comparing entities of the same type (i.e. time_t values).... Grumble. Nasty stuff, but I'm glad I got this out of the way now. As a result of this fix, uClibc 0.9.17 will not be binary compatible with earlier releases. I have always warned people this can and will happen. -Erik
* Update architecture specific support to consistantlyEric Andersen2003-01-231-6/+1
| | | | | | generate a crt0 and crt1 file. Most arches still need to be updated to call __uClibc_start_main() rather than __uClibc_main().