summaryrefslogtreecommitdiffstats
path: root/libc/misc
Commit message (Collapse)AuthorAgeFilesLines
* doh! wrong branch0_9_28Eric Andersen2007-01-291-40/+4
|
* Fix compile error when locale is enabledEric Andersen2007-01-291-4/+40
|
* per suggestion by psm, remove the variable DYNAMIC_LINKEREric Andersen2005-08-131-1/+1
|
* Fix string.h. Change our _susv3_strerror_r to __xpg_strerror_r for glibcManuel Novoa III2005-07-281-1/+1
| | | | | compatibility. Also change _glibc_strerror_r to __glibc_strerror_r for consistency.
* Fix 2 bugs in strftime related to glibc struct tm extensions.Manuel Novoa III2005-07-251-1/+24
| | | | | | | | | 1) Need to negate tm_gmtoff field value when used. (bug 336). 2) Deal with NULL ptr case for tm_zone field, which was causing segfaults in both the NIST/PCTS tests and the Python 2.4.1 self-test suite. NOTE: We set uninitialized timezone names to "???", and this differs (intentionally) from glibc's behavior.
* import fix from glibc to resolve segfault reported by wmq in Bug 335Mike Frysinger2005-07-121-1/+1
|
* punt unused __pthread_return_void funcMike Frysinger2005-07-091-6/+0
|
* Add __libc_stack_end to libc.Joakim Tjernlund2005-06-293-7/+8
|
* previous commit of trimming __IPC_64 wasnt quite correct ... rework __IPC_64 ↵Mike Frysinger2005-06-292-10/+18
| | | | so that it will compile and it is correct
* always define __IPC_64 regardless of __NR_ipcMike Frysinger2005-06-291-2/+2
|
* tweak to get rid of warning when TZ is disabledMike Frysinger2005-06-291-0/+2
|
* remove __IPC_64 in syscall() macro since real 64bit arches dont need it (and ↵Mike Frysinger2005-06-272-2/+2
| | | | it doesnt compile)
* Add Peter Mazinger fini/crt compat patch. Select DL_FINI_CRT_COMPAT toJoakim Tjernlund2005-05-281-1/+11
| | | | | | | | be able to run apps built with 0.9.27. This also renames __uClibc_start_main to __uClibc_main. This compat option should be removed some time after 0.9.28 is released. Let me know if you don't like this change.
* This commit breaks the entire world (yet again). Calculate theEric Andersen2005-05-261-11/+13
| | | | | | | position of envp in C code based on argv and argp. No need to caclulate that in asm for N arches. This way, we better match what glibc does. All arches will need to be fixed to match up with this change.
* Adapt startup code in x86 and PPC to almost match glibc. _init vs. ↵Joakim Tjernlund2005-05-251-3/+4
| | | | | | __libc_csu_init and _fini vs. __libc_csu_fini remains to do.
* Pass main function ptr from crt1 to __uClibc_start_main.Joakim Tjernlund2005-05-211-20/+3
| | | | | | | | Kill old crt0/__uClibc_main. This breaks ABI. All apps and toolchain needs to be recompiled. All archs except x86 are now broken and need to be fixed as x86. PPC will be fixed shortly by me, the rest is left to the arch maintainers.
* Change strptime so that it only modifies struct tm fields specified.Manuel Novoa III2005-05-101-1/+3
|
* Added support for clock_getres() and clock_settime() in addition toPeter Kjellerstedt2005-04-282-41/+1
| | | | | | | the already existing clock_gettime(). In addition they will now use the corresponding system calls if they exists, which resulted in a move to libc/sysdeps/linux/common for clock_gettime.c (it was previously located in libc/misc/time).
* Fix bug 222: Move all archs to newer __IPC_64 interface for {msg,sem,shm}ctlJoakim Tjernlund2005-04-244-6/+8
| | | | syscalls. This won't work on 2.2 kernels(I think).
* In Bug 116, dicksnippe writes:Mike Frysinger2005-04-161-3/+32
| | | | | | | | | | 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.
* cbachman writes Bug 195:Mike Frysinger2005-04-161-0/+4
| | | | | | | | 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
* 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.