summaryrefslogtreecommitdiff
path: root/lib/libc
AgeCommit message (Collapse)Author
2016-09-01bumpOtto Moerbeek
2016-09-01Less lock contention by using more pools for mult-threaded programs.Otto Moerbeek
tested by many (thanks!) ok tedu, guenther@
2016-09-01black magic for sparc page size can goTed Unangst
2016-09-01remove references to sparcTed Unangst
2016-09-01Update list of ioctls for the audio promise. Suggested by jmc@, thanks.Alexandre Ratchov
2016-09-01Mention explicit_bzero(3); ok jmcMartin Natano
2016-09-01retire the sparc library codeTed Unangst
2016-08-29Store the return value of mbrtowc() in a size_t, not int.Todd C. Miller
OK schwarze@
2016-08-28Don't call lstat() before readlink() just to see if it's a symlink,Philip Guenther
as readlink() will tell you that more cheaply. ok millert@
2016-08-27Stop recommending the non-standard and slightly dangerous fgetln(3).Ingo Schwarze
Recommend POSIX getline(3) instead.
2016-08-27When a precision is specified for a string format use strnlen()Todd C. Miller
to determine the length instead of doing it manually. OK schwarze@
2016-08-27improve revision 1.2: in unusual cases, fgetwc(3) can succeedIngo Schwarze
even though ferror(3) is already set; also from Andrey Chernov <ache at freebsd dot org>; OK millert@
2016-08-27Pull in <stdio.h> for NULLPhilip Guenther
ok deraadt@
2016-08-26Pull in <time.h> for clock_gettime()Philip Guenther
ok deraadt@
2016-08-25After read errors, fgetln(3) sometimes succeeded (returning non-NULL)Ingo Schwarze
and failed (setting errno and ferror(3)) both at the same time. That's a bad idea in general, and here in particular since returning partial lines was neither reliable (sometimes, you got NULL anyway) nor predictable (almost always, the line would be truncated long before the actual read error). Instead, on read failure, fail properly and always return NULL. Issue found in a discussion with Andrey Chernov <ache at freebsd dot org> who finally agreed to move FreeBSD into the same direction. The fix is joint work with and OK by millert@.
2016-08-24set the error indicator on malloc(3) failure;Ingo Schwarze
from Andrey Chernov <ache at freebsd dot org>; OK millert@
2016-08-21bugfix: when fgetwc(3) fails, fgetwln(3) must fail as well;Ingo Schwarze
OK jca@ martijn@ millert@
2016-08-21fix obvious typo in the .Dt section numberIngo Schwarze
2016-08-20Sync connect_wait() example with its real usage in ftp(1).Todd C. Miller
2016-08-20Declare all _asr_* debug functions as hidden.Jeremie Courreges-Anglas
Reported by & similar diff by guenther@ some time ago, ok eric@
2016-08-18Add an EXAMPLES section that illustrates how to deal with connect(2)Todd C. Miller
returning EINTR. OK jung@ deraadt@
2016-08-17% is escaped with more %, not backslash.Ted Unangst
2016-08-17Generate syslog warnings for %s fmt strings NULL to "(null)" conversions.Theo de Raadt
Over time we can repair software which performs this non-standard behaviour, and fix bugs along the way. Let's first find out how bad the situation is by deploying this in snapshots. This type of logging is possible because OpenBSD syslog_r(3) -> sendsyslog(2) is side-effect free enough to be used in the bowels of libc. ok tedu
2016-08-17wrterror() is fatal, delete dead code; ok tom@ natano@ tedu@Otto Moerbeek
2016-08-15add a bit of spacing to previous, to keep the notes about deprecatedJason McIntyre
functions out the way of the main body; ok guenther
2016-08-14Reduce qabs() and qdiv() to aliases of llabs() and lldiv().Philip Guenther
Merge the manual pages and call them deprecated there. ok and manpage tweak jmc@, ok natano@
2016-08-14Refer to /etc/passwd consistently as the "legacy password file" andTheo Buehler
remove some references to differences between versions 6 and 7. ok jmc, millert, tedu
2016-08-13modern interfaces should use modern speelings, so spell quad_t as int64_t.Ted Unangst
2016-08-11Between relro and previous RWX work, the __{got,plt}_{start,end} symbolsPhilip Guenther
are no longer needed by ld.so. Move them to the m88k-specific list, as it hasn't made the jump. ok deraadt@
2016-08-09Expand the asynchronous connect information and move it out ofTodd C. Miller
ERRORS and into a new second paragraph. Adapted from NetBSD. OK deraadt@ jmc@
2016-08-09Document that connect goes async when interrupted by signal.Todd C. Miller
2016-08-07Add XOR cookies for lr and sp. Stop saving/restoring r12 to/from the jmpbuf.Philip Guenther
Switch from calling obsolete sig{block,setmask} to directly using the sigprocmask syscall. ok deraadt@ kettenis@
2016-08-06Use internal names for __errno, _memcpy, memset, and {,_}{set,long}jmpPhilip Guenther
Eliminate pointless use of PIC_SYM() Split out DEFS.h from SYS.h like some other archs ok kettenis@ deraadt@
2016-08-05Obvious minor fixes:Ingo Schwarze
* Add missing .Dv, .Ev, and .Fa macros. * Delete deprecated .Tn macros. * Mark up global variable names with .Va, not with .Fa or .Li. * Mark up config file commands with .Ic, not with .Fa. * Fix HISTORY, trivial to verify from the CSRG archive CD.
2016-08-05Make RES_OPTIONS point directly to resolv.conf(5) instead of going throughMartijn van Duren
resolver(3). OK jmc@
2016-07-28RMD160Update actually takes size_t lengthTed Unangst
2016-07-26Wrap fpgetround() so internal calls to it (seen on arm, powerpc, and sh)Philip Guenther
go direct instead of through the PLT. ok millert@ kettenis@
2016-07-20Make the size for the syn cache hash array tunable. As we areAlexander Bluhm
swapping between two syn caches for random reseeding anyway, this feature can be added easily. When the cache is empty, there is an opportunity to change the hash size. This allows an admin under SYN flood attack to defend his machine. Suggested by claudio@; OK jung@ claudio@ jmc@
2016-07-18We have __weak_alias() everywhere; remove obsolete #ifdef'sPhilip Guenther
ok deraadt@
2016-07-14kern.usermount is currently a no-op;Jason McIntyre
ok deraadt
2016-07-10Document that SIGTTOU is sent if the process is in the background.Todd C. Miller
Adapted from text from tcsetattr(3).
2016-07-06J/j is a three valued option, document and fix code to actuall support thatOtto Moerbeek
with a little help from jmc@ for the man page bits ok jca@ and a reluctant tedu@
2016-07-06Use fstatat() to avoid path surgery.Philip Guenther
bug catching and ok millert@
2016-07-04DEBUGLIBS has been broken since the gcc4 switch, so delete it. CFLAGSPhilip Guenther
contains -g by default anyway problem noted by Edgar Pettijohn (edgar (at) pettijohn-web.com) ok millert@ kettenis@ deraadt@
2016-07-03introduces new promise "chown" to allow changing owner/group with *chown(2) ↵Sebastien Marie
family it splits PLEDGE_FATTR in two ("fattr" stills grant the 2 flags, so no functional changes): - PLEDGE_CHOWN : to be able to call *chown(2) syscalls - PLEDGE_FATTR : the rest it introduces "chown" which grant: - PLEDGE_CHOWN : be able to call *chown(2) - PLEDGE_CHOWNUID : be able to modifying owner/group ok deraadt@ tedu@
2016-06-30nptys sysctls were removedTed Unangst
2016-06-30adapt S option: add C, rm F (not relevant with 0 cache and disablesOtto Moerbeek
chunk rnd), rm P: is default
2016-06-28For the EINVAL case there can be more than a single option.Todd C. Miller
2016-06-28fts_open() requires that the list passed as argument to contain at leastTodd C. Miller
one path. When the list is empty (contain only a NULL pointer), return EINVAL instead of pretending to succeed, which will cause a NULL pointer deference in a later fts_read() call. From FreeBSD.
2016-06-28Add sysctl for arp timers: net.inet.ip.arptimeout (expire timer for resolvedChris Cappuccio
entries) and net.inet.ip.arpdown (expire timer for unresolved entries) ok mpi@