summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* 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)
* 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@
* 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
* fix leaks in error cases found by parfaitjsg2009-11-111-3/+7
| | | | ok blambert@ miod@ deraadt@
* 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-0947-139/+283
| | | | | | | | | | | | | 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.
* permit -DMALLOC_STATS to compile againtodd2009-11-021-2/+2
| | | | | noticed by Jonathan Armani & Fabien Romano ugh+ok otto@
* Use a local numeric label to branch to the start of the function, instead ofmiod2009-11-011-2/+3
| | | | referencing it by name; silences a linker warning; no functional change.
* Two minor bug fixes rotting in my tree:schwarze2009-11-011-11/+8
| | | | | | | | | (1) When the second malloc in yp_next fails, do not leak the memory allocated by the first one. Same fix as yp_first.c rev. 1.9. (2) When compiled with YPMATCHCACHE, do not fail the lookup when reserving memory for the cache fails. Instead, just return the correct result without caching it. ok millert@
* s/Mhz/MHz/, MHz is a multiple of the SI unit hertz (whose symbol is Hz).sobrado2009-10-311-2/+2
|
* skip the \' formatting flag, grouping is not implemented; ok deraadt@naddy2009-10-281-1/+5
|
* more fallout from jasper's commit.jsg2009-10-281-2/+2
| | | | | | | Changing the size of the _sys_errlist array changes a libc interface so we need to crank major. kettenis@ agrees
* more rcsid/sccs cleanupderaadt2009-10-2842-223/+18
|
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-274-23/+5
| | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
* We don't have an "Ap" macro so ".Fn execve() Ap d" is wrong, reword to removenicm2009-10-271-16/+15
| | | | | | it. ok jmc
* add ENOTSUP and bump libc minorjasper2009-10-263-4/+7
| | | | | discussed with a few ok deraadt@
* Back out previous commit, as it caused too much growth for the installguenther2009-10-2247-283/+139
| | | | media to fit
* Fix the handle locking in stdio to use flockfile/funlockfileguenther2009-10-2147-139/+283
| | | | | | | | | | | | 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. ok kurt@, earlier version tested by sthen@ and jj@
* Check mmap return value against MAP_FAILED not NULL.pirofti2009-10-201-2/+2
| | | | Okay deraadt@, otto@.
* teach gdtoa & its subroutines that malloc can fail; in which casemartynas2009-10-1646-2989/+408
| | | | | | ecvt, fcvt, gcvt, *printf, strtof, strtod, strtold act per ieee 1003.1. after these massive changes, remove unused files which would not work now. reported by Maksymilian Arciemowicz; ok theo
* rewrite the history section, prompted by Paul Stoeber; ok deraadt@ jmc@otto2009-10-101-25/+28
|
* Add (again) support for divert sockets. They allow you to:michele2009-10-041-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | - queue packets from pf(4) to a userspace application - reinject packets from the application into the kernel stack. The divert socket can be bound to a special "divert port" and will receive every packet diverted to that port by pf(4). The pf syntax is pretty simple, e.g.: pass on em0 inet proto tcp from any to any port 80 divert-packet port 1 A lot of discussion have happened since my last commit that resulted in many changes and improvements. I would *really* like to thank everyone who took part in the discussion especially canacar@ who spotted out which are the limitations of this approach. OpenBSD divert(4) is meant to be compatible with software running on top of FreeBSD's divert sockets even though they are pretty different and will become even more with time. discusses with many, but mainly reyk@ canacar@ deraadt@ dlg@ claudio@ beck@ tested by reyk@ and myself ok reyk@ claudio@ beck@ manpage help and ok by jmc@
* Minor bump for safety, due to the mips cachectl() addition.miod2009-09-271-1/+1
|
* Add an implementation of IRIX-compatible cacheflush() routine to mips ports,miod2009-09-272-1/+39
| | | | | | | needed for gcc -ftrampoline operation as well as by some third-party software. Although the implementation uses the sysarch() sysctl, the wrapper is added to libc as it was a direct system call (which it is on IRIX).
* cvs log message from ed@freebsd, revision 197045:jmc2009-09-101-3/+3
| | | | | | | | | | | Make the description of `b' a little better. If you have a one-byte sequence, `w', `b' is the second character. Not the third. Submitted by: Christoph Mallon checked by otto
* maxzis -> maxsize; from Han Boetesjmc2009-09-091-3/+3
|
* I had not enough oks to commit this diff.michele2009-09-081-7/+1
| | | | Sorry.
* Add support for divert sockets. They allow you to:michele2009-09-081-2/+8
| | | | | | | | | | | | | | | | - queue packets from pf(4) to a userspace application - reinject packets from the application into the kernel stack. The divert socket can be bound to a special "divert port" and will receive every packet diverted to that port by pf(4). The pf syntax is pretty simple, e.g.: pass on em0 inet proto tcp from any to any port 80 divert-packet port 8000 test, bugfix and ok by reyk@ manpage help and ok by jmc@ no objections from many others.
* make getaddrinfo(3) accept numeric servname when ai_socktype is notfgsch2009-09-021-4/+2
| | | | | specified in hint or hints is NULL. claudio@ ok
* Don't stop traversing a directory hierarchy if we reach SHRT_MAX,millert2009-08-272-14/+27
| | | | | | | | just stop updating fts_level so we don't overflow it. This allows rm, find, etc to operate on very deep hierarchies. Consumers of fts(3) do need to be aware that the actual level may be larger than fts_level. During the next libc major bump we will make fts_level an int instead of a short. OK deraadt@
* add SF_ARCHIVED. ok millert@, tedu@martynas2009-08-201-4/+5
|