summaryrefslogtreecommitdiffstats
path: root/lib (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Get page size information by reading the kernel image' struct uvmexp, insteadmiod2009-12-071-22/+44
| | | | of the value of PAGE_SIZE found in the standard headers when compiling.
* Make userland malloc use __LDPGSZ granularity on mips, regardless of themiod2009-12-071-1/+3
| | | | actual kernel page size.
* Make internal file descriptor handling async-signal safe by eliminatingkurt2009-12-0611-83/+124
| | | | | | the use of spinlocks and malloc. All needed memory is allocated upfront and _thread_kern_sig_defer/undefer() is now used to protect critical sections. okay guenther@
* missing word;jmc2009-12-051-3/+3
| | | | from trhodes@freebsd, r200095;
* we don't expose overruns/underruns as negative positions anymore,ratchov2009-12-021-3/+3
| | | | don't call the sio_onmove() call-back with negative argument.
* This might not be necessary, but Just In Case: since the underlyingguenther2009-11-281-1/+1
| | | | | syscall ABI has changed and everything is going to need to be relinked anyway, bump the rthread major
* wrap Nd in quotes, since it has >9 args;jmc2009-11-271-2/+2
|
* Correct description of physically vs logically; spotted by Nickotto2009-11-271-4/+7
| | | | Guenther; ok jmc
* Switch the chunk_info lists to doubly-linked lists and use the queueotto2009-11-271-51/+34
| | | | | | macros for them. Avoids walking the lists and greatly enhances speed of freeing chunks in reverse or random order at the cost of a little space. Suggested by Fabien Romano and Jonathan Armani; ok djm@
* Add setrdomain() and getrdomain() system calls. Committing now toguenther2009-11-272-3/+67
| | | | | | | | catch the libc major bump per request from deraadt@ Diff by reyk. ok guenther@
* Don't forget to fill region from the cache with junk if needed in one case;otto2009-11-271-1/+3
| | | | from Fabien Romano and Jonathan Armani
* No need to clear a mmapped region; from Fabien Romano and Jonathanotto2009-11-271-2/+1
| | | | Armani
* Add a signal for librthread to use for interthread ASTs for cancelationguenther2009-11-272-4/+6
| | | | | | and suspension. "get it in" deraadt@, tedu@, cheers by others
* Convert thrsleep() to an absolute timeout with clockid to eliminate aguenther2009-11-274-34/+21
| | | | | | race condition and prep for later support of pthread_condattr_setclock() "get it in" deraadt@, tedu@, cheers by others
* Convert thrsigdivert to (almost) be sigtimedwait by adding siginfo_tguenther2009-11-272-4/+5
| | | | | | | and struct timespec * argument. sigtimedwait is just a one line wrapper after this. "get it in" deraadt@, tedu@, cheers by others
* Change threxit() to take a pointer to a pid_t to zero out from theguenther2009-11-275-102/+43
| | | | | | | | | | kernel so that librthread can detect when a thread is completely done with its stack without need a kqueue. The dying thread moves itself to a GC list, other threads scan the GC list on pthread_create() and pthread_join() and free the stack and handle once the thread's thread id is zeroed. "get it in" deraadt@, tedu@, cheers by others
* Bump the libc major for the post-h2k9 string of ABI changes and additionsguenther2009-11-271-1/+1
| | | | (rthreads, MB_LEN_MAX, rdomains)
* sync german translations with recent C.msg changesstsp2009-11-271-0/+24
| | | | "Reads ok" mk@
* Italian translationsgiovanni2009-11-251-0/+24
| | | | "syntax looks good" guenther@
* Add `da.msg'.mk2009-11-241-2/+2
|
* Danish translations.mk2009-11-241-0/+246
| | | | | (If anyone can suggest a translation for e.g. `breakpoint' that doesn't make me cringe, let me know.)
* Update the ENOTSUP summary and description.guenther2009-11-241-4/+4
| | | | | | Pointed out by Alan Bueno and jmc@ ok jmc@
* - sync with latest additionsjasper2009-11-241-0/+24
| | | | feedback & ok otto@
* Change ENOTSUP's strerror() to "Not supported"guenther2009-11-243-2/+50
| | | | | | | Provide C and Pig locale expansions for errno values from EAUTH to ENOTSUP ok millert@, mk@, go aheads from others who have other translations in the works
* Make the code example fit on an 80 char screen without wrapping.mk2009-11-231-3/+4
| | | | ok guenther (no word from the sunshine girls on the matter, though)
* Oops, KSEG -> CKSEG.miod2009-11-221-4/+4
|
* Fixed typo in function name.tobias2009-11-221-1/+1
| | | | ok jmc
* Allow mips ports to override VM_{MIN,MAX}_KERNEL_ADDRESS, and provide themiod2009-11-221-3/+15
| | | | | | | address as a kernel variable for use by libkvm. On sgi IP27 and IP30 kernels, use XKSEG instead of CKSSEG; this will allow kernel KVM size to grow in the future if necessary.
* replacing malloc/realloc dance, by only one reallocchl2009-11-211-3/+2
| | | | ok millert@
* remove unused variablechl2009-11-211-2/+1
| | | | ok deraadt@
* remove unused variablechl2009-11-211-2/+1
| | | | ok guenther@
* Ooops, committed an unbaked changeguenther2009-11-211-2/+2
|
* Several stdio functions were failing to set the stream orientationguenther2009-11-216-7/+13
| | | | | | to 'narrow' as they should. "looks correct" millert@ "makes sense" blambert@
* pthread_rwlock_wrlock() should increment the count of writers justguenther2009-11-191-4/+3
| | | | | | once and not on every wakeup. ok kurt@
* More shrinkage, a bit for ramdisks but mostly for static binaries:guenther2009-11-1810-686/+842
| | | | | | | | | | | | | | | | | - wrap with #ifndef NO_LOG_BAD_DNS_RESPONSES libc code that uses p_class() and p_type() for diagnostics, then add that define to libstub to avoid pulling in res_debug_syms.o - split rcmd() and ruserok() into separate files, as nothing uses both - split readdir_r() to its own file - split syslog_r() from syslog(), as the latter needs localtime(); many binaries no longer need to pull in all the time code after this; switch from usleep() to nanosleep() while we're at it (The profit of analysis of -Wl,-M,--cref output) Chops 888kB from /bin and /sbin on i386 ok deraadt@, miod@
* simplify the code looking for + in the password database, after analysisderaadt2009-11-121-5/+4
| | | | of a false positive made by parfait; ok millert
* change back to preferring kqueue, now that nicm, tedu and i havederaadt2009-11-121-4/+4
| | | | | fixed it (or, all the issues we are aware of so far). discussed with nicm
* fix leaks in error cases found by parfaitjsg2009-11-111-3/+7
| | | | ok blambert@ miod@ deraadt@
* memory leaks, found by parfait; ok millertderaadt2009-11-111-2/+5
|
* obvious use after free, found by parfaitderaadt2009-11-111-2/+2
|
* pull Ben Lauries blind prefix injection fix for CVE-2009-3555 frommarkus2009-11-1010-12/+40
| | | | openssl 0.9.8l; crank minor version; ok djm@ deraadt@; initially from jsg@
* ctim -> ctime; from ca (pr #6256)jmc2009-11-101-3/+3
|
* mbrlen returns size_t not int.nicm2009-11-091-3/+3
| | | | ok espie
* Fix the handle locking in stdio to use flockfile/funlockfilekurt2009-11-0948-270/+405
| | | | | | | | | | | | | internally when and where required. Macros in <stdio.h> are updated to automatically call the underlying functions when the process is threaded to obtain the necessary locking. A private mutex is added to protect __sglue, the internal list of FILE handles, and another to protect the one-time initialization. Some routines in libc that use getc() change to use getc_unlocked() as they're either protected by their own lock or aren't thread-safe routines anyway. committing on behalf of and okay guenther@ now that we have install media space available.
* ansifystsp2009-11-081-5/+2
| | | | ok deraadt
* remove gcc 1 workaround we no longer care about whichjsg2009-11-071-11/+1
| | | | | | | was breaking non GNUC defining compilers. Came up during a conversation with ragge@, positive comments from several.
* Provide assembly version of sqrtl(3).kettenis2009-11-062-1/+14
| | | | ok pirofti@
* Provide assembly version of sqrtl(3).kettenis2009-11-052-1/+14
| | | | ok otto@
* in block size calculations, use SIO_BPS(precision) instead ofratchov2009-11-031-3/+3
| | | | | precision / 8. Fixes sio_setpar() requesting smaller block sizes on 24-bit devices.
* permit -DMALLOC_STATS to compile againtodd2009-11-021-2/+2
| | | | | noticed by Jonathan Armani & Fabien Romano ugh+ok otto@