summaryrefslogtreecommitdiffstats
path: root/libc/misc
Commit message (Collapse)AuthorAgeFilesLines
...
* Prepare for moving ldso FINI handling into libc.Joakim Tjernlund2005-03-201-3/+7
| | | | #define _DL_DO_FINI_IN_LIBC to enable(the arch specific part needs to be in place first).
* no more cvsMike Frysinger2005-02-122-3/+0
|
* merge parallel build supportMike Frysinger2005-01-2526-128/+101
|
* Jean writes:Eric Andersen2005-01-111-1/+9
| | | | | | | | | | | | | | | | | | | 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:
* Patch from Peter S. Mazinger:Eric Andersen2004-12-221-2/+2
| | | | rename UCLIBC_PROPOLICE to UCLIBC_HAS_SSP
* Revert Peter's __lib_gettimeofday patch. There's the minor issue ofManuel Novoa III2004-10-314-4/+4
| | | | | | adding cruft to include/sys/time.h. But also, there's no sense in making changes like this until we decide how we're going to approach the hidden symbol transition.
* Fix up __uClibc_init() for so that we prevent starting SUIDEric Andersen2004-10-271-17/+66
| | | | | binaries where the standard file descriptors are not opened. -Erik
* Peter S. Mazinger writes:Eric Andersen2004-10-194-4/+4
| | | | | | | | | | | Hello! Would the attached patch be acceptable (maybe instead of __libc_gettimeofday using __gettimeofday) We have some issues, see http://bugs.gentoo.org/show_bug.cgi?id=65892
* Atsushi Nemoto writes:Joakim Tjernlund2004-09-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | Hi. I found a mismatch between uClibc and kernel in semctl definition. In uClibc/libc/misc/sysvipc/sem.c: static inline _syscall4(int, __semctl, int, semid, int, semnum, int, cmd, union semun *, arg); ... int semctl(int semid, int semnum, int cmd, ...) ... arg = va_arg (ap, union semun); ... return __semctl(semid, semnum, cmd, &arg); But kernel's semctl is: asmlinkage long sys_semctl (int semid, int semnum, int cmd, union semun arg) The last argument is an union semun itself, not a pointer to the union. Here is a patch.
* Hide some x86-specific devel asserts.Manuel Novoa III2004-09-101-0/+5
|
* I will always test before I commit.Eric Andersen2004-08-161-29/+32
| | | | | | I will always test before I commit. I will always test before I commit. -Erik
* Setup __pagesize from inside __uClibc_init(), or else when registeringEric Andersen2004-08-161-31/+31
| | | | | | dtors via atexit(), atexit may need to call realloc with __pagesize still set to 0. ugh. -Erik
* Be a bit more prominant about the fact that setuid handlingEric Andersen2004-08-161-3/+8
| | | | is not quite there...
* The variable used to store pagesize is not the same as theEric Andersen2004-08-161-5/+3
| | | | | _dl_pagesize variable in ldso, so avoid aliasing. -Erik
* Fixup PAGE_SIZE problemsEric Andersen2004-08-131-1/+1
| | | | -Erik
* dohEric Andersen2004-08-041-1/+1
|
* Add missing header file needed to define PAGE_SIZEEric Andersen2004-08-041-0/+1
|
* As Joakim Tjernlund rightly notes, I should have used PAGE_SIZEEric Andersen2004-08-031-2/+2
| | | | not the hard coded value of 4096.
* Do not grovel about in the ELF header for the page size whenEric Andersen2004-07-281-2/+5
| | | | running on uClinux, which at runtime uses the FLAT file format.
* Oops. Missed a spot.Eric Andersen2004-06-121-1/+1
|
* scrap the goofy time + getpid() based "randomness" and useEric Andersen2004-06-061-28/+35
| | | | the real thing.
* Joakim Tjernlund writes:Eric Andersen2004-05-141-10/+6
| | | | | | | | | | | Hi Erik It seems to me that __pthread_once and __pthread_initialize_minimal could be made WEAKs with no stub. The code in rpc_thread.c and __uClibc_main.c appears to expect this. Also, __pthread_return_0 __pthread_return_1 and __pthread_return_void can be static, not to pollute the name space. Jocke
* Setup a _dl_pagesize value for use by staticly linked appsEric Andersen2004-05-111-0/+2
|
* make certain that getpagesize() returns correct the value for mipsEric Andersen2004-05-111-3/+25
| | | | by extracting the value from the ELF header.
* Purge trailing white spaceEric Andersen2004-05-111-13/+13
|
* Obligatory forgotten file...Manuel Novoa III2004-05-081-1/+2
|
* Change clock() to allow wrapping.Manuel Novoa III2004-05-081-86/+145
| | | | | | | Add timegm() function. Make lookup_tzname() static (as it should have been). Have strftime() get timezone information from the passed struct for the %z and %Z conversions when using struct tm extensions.
* "Fix" this so that at least things will link when threading is disabled.Manuel Novoa III2004-05-071-4/+8
| | | | | | Also fix the sizeof() issue since the change to a dynamicly allocated buf. Note! This is still broken wrt threading, but so is the glibc version. I'm just commiting this for new until I can test my rewrite.
* Fix a bug noticed by Oleg I. Vdovikin, oleg at cs dot msu dot su.Eric Andersen2004-04-061-4/+0
| | | | | | | This code in uClibc would attempt to set the default facility if none was specified. Except none being specified is 0, which is also LOG_KERN, therefore klogd could never get kernel messages logged as LOG_KERN.
* Reduce memory used by static buffers and allocate that memory dynamiclyEric Andersen2004-03-182-3/+18
| | | | | | | | | | instead. Based on an initial patch from Tobias Anderberg, but reworked. I asked Tobias to look into doing something more like what is done in busybox, but that proved to be a pain. One possible concern is that these buffers will probably show up as memory leaks i.e. with valgrind. Perhaps we should add in an atexit call to free this memory right after we allocate it?
* Rewrite the err/warn functions as they were broken (__noreturn__ funcsManuel Novoa III2004-03-113-76/+111
| | | | | were returning). Anyway, also make them threadsafe and smaller. The error.c file still needs work.
* New stdio core. Should be more maintainable. Fixes a couple of bugs.Manuel Novoa III2004-02-116-68/+44
| | | | | | | | Codepaths streamlined. Improved performance for nonthreaded apps when linked with a thread-enabled libc. Minor iconv bug and some locale/thread related startup issues fixed. These showed up in getting a gcj-compiled java helloworld app running. Removed some old extension functions... _stdio_fdout and _stdio_fsfopen.
* Split up syscalls.c, since it had grown to be quite large and ugly.Eric Andersen2004-01-215-21/+18
| | | | -Erik
* Prevent runaway asserts, which can happen if there's a problem withManuel Novoa III2004-01-171-9/+15
| | | | stdio or locales.
* Add a dummy (always fails) wcsftime. This is needed for the libstdc++ localeManuel Novoa III2004-01-142-0/+36
| | | | implementation to build. Later this month I'll add a functional wcsftime.
* My mistake. We do need some weak pthread_* funcs. But we were previouslyManuel Novoa III2004-01-041-2/+87
| | | | | | | missing one in the glibc abi, and including a number of extras (which I left in commented). Unfortunately, this brings back the perl pthread bug. Fixing the incorrect weaks in libpthread wasn't sufficient to escape the shared loader bug. :-(
* Peter S. Mazinger writes:Eric Andersen2004-01-021-0/+7
| | | | | | | | | | | | | | | | | | | Hello Erik! I have made some cosmetical changes to the files, removed the added SCRT=-fPIC option from building the crt0.S file (but it is a requirement to build them with -fPIC), and changed some comments. I have left the ldso.c patch with PIE_SUPPORT ifdefs, but consider applying it w/o them (see some earlier comment from PaX Team on this issue, as it is considered a bug). To have it work correctly, you'll also need removing COMPLETELY_PIC. One thing is missing: PIE_SUPPORT should be usable only for i386 (for now). Also added the support for propolice protection (that works for me and catches memcpy/strcpy attacks (but needs a special gcc version). Thanks, Peter
* Handle the app_fini stuff in exit without requiring atexit().Manuel Novoa III2003-12-271-3/+4
| | | | This avoids pulling in all the malloc/free code for a simple true/false app.
* Fix a long-standing bug with pthreads. A couple of linuxthreads filesManuel Novoa III2003-12-2714-95/+30
| | | | | | | | | | | | | | | | were including libc-lock.h which had a bunch of weak pragmas. Also, uClibc supplied a number of no-op weak thread functions even though many weren't needed. This combined result was that sometimes the functional versions of thread functions in pthread would not override the weaks in libc. While fixing this, I also prepended double-underscore to all necessary weak thread funcs in uClibc, and removed all unused weaks. I did a test build, but haven't tested this since these changes are a backport from my working tree. I did test the changes there and no longer need to explicitly add -lpthread in the perl build for perl to pass its thread self tests.
* Fix some dst issues in _time_mktime().Manuel Novoa III2003-12-141-5/+12
| | | | | Normalize the tm_isdst value to -1, 0, or 1. If no dst for this timezone, then reset tm_isdst to 0.
* Fix a couple of 'declaration after statement' errors.Manuel Novoa III2003-12-141-2/+1
|
* Building of iconv.o was accidently always disabled.Manuel Novoa III2003-12-041-8/+4
| | | | Also, build the iconv app in utils.
* Always include locale.h, which was included by libintl.h only whenManuel Novoa III2003-11-201-0/+2
| | | | optimizing.
* I forgot to update the thread locking in the last dst fix.Manuel Novoa III2003-11-161-2/+4
|
* For now, disable the iconv utilityEric Andersen2003-11-081-8/+7
|
* Fix up several errors related to filename length and errno thatEric Andersen2003-11-081-2/+5
| | | | | showed up while running the latest LTP testsuite. -Erik
* Add clock_gettime() submitted by Justus Pendleton <uc@ryoohki.net>.Manuel Novoa III2003-11-072-1/+41
|
* Hopefully fix the struct tm extension problem once and for all.Manuel Novoa III2003-11-021-22/+65
| | | | Also fix a dst-related bug which caused the use of uninitialized data.
* Some more soft float fixes... for arm in particular (libfloat).Manuel Novoa III2003-10-311-1/+1
| | | | | | 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.
* Peter Kjellerstedt writes:Eric Andersen2003-10-181-1/+1
| | | | | | | | | | 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.