summaryrefslogtreecommitdiff
path: root/lib/libc
AgeCommit message (Collapse)Author
2016-06-28Do not return an error in fts_open(3) if one of the paths in argvTodd C. Miller
is empty. Otherwise, programs using fts(3) will report an error if one of the paths is empty instead of just treating it as a non-existent file. OK guenther@
2016-06-28fix a couple of errors in the page;Jason McIntyre
from henning petersen, netbsd pr lib/51284 ok semarie
2016-06-28Back out previous; otto saw a potential race that could lead to aTheo Buehler
double unmap and I experienced a much more unstable firefox. discussed with otto on icb
2016-06-27make proper use of fstatat, as suggested by guenther@Marc Espie
okay millert@
2016-06-27defer munmap to after unlocking malloc. this can (unfortunately) be anTed Unangst
expensive syscall, and we don't want to tie up other threads. there's no need to hold the lock, so defer it to afterwards. from Michael McConville ok deraadt
2016-06-27make the fallback code more accurate (in particular, it should return namesMarc Espie
based on the actual device, not any kind of inode equality which won't hold for duplicates of the dev tree in a chroot) no bump as it doesn't change any API. okay and improvements guenther@
2016-06-26increase the minimum for auto rounds to 6. that was the previous low boundTed Unangst
for login.conf, and we don't want to go lower.
2016-06-18sort previous;Jason McIntyre
2016-06-18Remove duplicated line.Reyk Floeter
OK eric@
2016-06-18Add net.inet.{tcp,udp}.rootonly sysctl, to mark which portsVincent Gross
cannot be bound to by non-root users. Ok millert@ bluhm@
2016-06-18Update column width decisionPhilip Guenther
2016-06-18Document KTRFAC_{PLEDGE,EXEC{ARGS,ENV}}Philip Guenther
2016-06-16PSEUDO_NOERROR() is used for syscalls that return now, so need to putPhilip Guenther
a nop in the slot skipped by the kernel on success
2016-06-13On localhost a user program may create a socket splicing loop.Alexander Bluhm
After writing data into this loop, it was spinning forever causing a kernel hang. Detect the loop by counting how often the same mbuf is spliced. If that happens 128 times, assume that there is a loop and abort the splicing with ELOOP. Bug found by tedu@; OK tedu@ millert@ benno@
2016-06-07remove historic note about multiple processes. mostly irrelevant today.Ted Unangst
ok deraadt millert
2016-06-07Document the net.inet.tcp.synuselimit sysctl; OK bluhm@ jmc@Tim van der Molen
2016-06-06Add ERRORS section, from FreeBSD. OK tedu@Todd C. Miller
2016-06-06Return EOVERFLOW, not ENOMEM for overflow conditions to match POSIX.Todd C. Miller
2016-06-02Fix typo; the period should be outside the parens. From Michael McConvilleTodd C. Miller
2016-06-01Document EINVAL when unlinking "." with the AT_REMOVEDIR flag.Todd C. Miller
2016-06-01rmdir(2) should return EINVAL not EBUSY when trying to remove ".".Todd C. Miller
This brings us back in conformance with POSIX rmdir(2) and rmdirat(2). OK kettenis@
2016-06-01Kill sysctl net.inet6.ip6.rr_pruneJeremie Courreges-Anglas
We don't support Router Renumbering and there are no plans to change that. ok mpi@
2016-05-31correct documentation for PT_WRITE_I. it may be necessary to flush icache.Ted Unangst
after explanation from kettenis
2016-05-30Move __getcwd from ASM to HIDDEN: we don't want the literal __getcwd symbolPhilip Guenther
ok millert@ deraadt@
2016-05-30We no longer have syscalls with multiple return values. Whine aboutPhilip Guenther
long long alignment instead.
2016-05-30Consistently reference '_end' instead of 'end' in the brk/sbrk implementationPhilip Guenther
ok deraadt@
2016-05-30The icdb magic number doesn't need to be visible to static linksPhilip Guenther
ok tedu@
2016-05-30Stop publicly declaring _yp_dobind() and struct dom_binding, closing outPhilip Guenther
a rant Theo wrote 24 years ago. Mark __ypexclude_{add,is,free}() as hidden "get off my lawn!" deraadt@
2016-05-30Do setjmp cookies for eip, esp, and ebp. For bonus points, mix howPhilip Guenther
the cookies are used in setjmp/_setjmp/sigsetjmp so that mixing calls (e.g., longjmp on a _setjmp buffer) will scramble all three registers and jump you to a random location on a random stack! ok deraadt@
2016-05-30Do setjmp cookies for gp, sp, and raPhilip Guenther
endian testing and ok deraadt@ ok visa@
2016-05-29_yp_bind(), _ypbindlist, _yp_domain, and _yplib_timeout are no longerPhilip Guenther
exported, so declare them as hidden to avoid pointless GOT relocations ok millert@ deraadt@
2016-05-29Switch from calling obsolete sig{block,setmask} to directly using thePhilip Guenther
sigprocmask syscall ok kettenis@
2016-05-29Wrap <machine/sysarch.h> to prevent overriding internal calls, forPhilip Guenther
alpha and mips64 ok millert@
2016-05-29Remove dead support for changing BDB hash algorithm and cache of alternativesPhilip Guenther
ok natano@ millert@ deraadt@
2016-05-29wxabort bits; ok deraadtJason McIntyre
2016-05-29Only require 4 byte alignment on ILP32 archsPhilip Guenther
2016-05-29Use .balign instead of .align; only need 8 byte alignment not 2^8Philip Guenther
2016-05-29Prefer AF_* over PF_* and 'address family' over 'protocol family'Philip Guenther
ok jung@
2016-05-28The synopsis rendered very poorly because of a "Quite Ugly butTheo Buehler
syntactically correct" roff mess. Follow the mdoc style guide on function pointers to improve this a little. Neglect and remove a comment that advises against trying to fix this. guidance and ok schwarze@
2016-05-28rcmd(3) and rcmdsh(3) use getaddrinfo(3) not gethostbyname(3).Todd C. Miller
2016-05-28Use getaddrinfo() instead of the non-standard gethostbyname2().Todd C. Miller
OK deraadt@ jca@ jung@ florian@
2016-05-27W^X violations are no longer permitted by default. A kernel log messageTheo de Raadt
is generated, and mprotect/mmap return ENOTSUP. If the sysctl(8) flag kern.wxabort is set then a SIGABRT occurs instead, for gdb use or coredump creation. W^X violating programs can be permitted on a ffs/nfs filesystem-basis, using the "wxallowed" mount option. One day far in the future upstream software developers will understand that W^X violations are a tremendously risky practice and that style of programming will be banished outright. Until then, we recommend most users need to use the wxallowed option on their /usr/local filesystem. At least your other filesystems don't permit such programs. ok jca kettenis mlarkin natano
2016-05-27typo fixes; Anthony CoulterStuart Henderson
2016-05-26The destination string is declared as "s" but referred to as "dst"Todd C. Miller
in some cases. Be consistent and use "dst" everywhere like for strlcat(3) and strncat(3). From Tim Kuijsten.
2016-05-26Use S_ISDIR instead of doing it by hand. No binary change.Todd C. Miller
2016-05-26fputs(3) now returns a non-negative number (as opposed to 0) on successfulTodd C. Miller
completion, just like puts(3). Found the hard way in portable code. OK jmc@
2016-05-26Calculate elapsed time in poll() and subtract that from the remaining timeJonathan Matthew
when restarting poll() after receiving a signal. The ruby runtime send signals to threads periodically, so without accounting for elapsed time, the timeout would never expire if we didn't get a response from a nameserver. ok deraadt@ eric@
2016-05-26Change the way regexec handles REG_STARTEND combined with REG_NOTBOL.Martijn van Duren
The new code sees this combination as a continuation of string at offset pmatch[0].rm_so, instead of a new string which starts at that offset. This change fixes a search quirk in vi and is needed for upcoming fixes in ed/sed/vi. This new behaviour is also used in gnu regex. Lots of help from schwarze@ Manpage bits by schwarze@ OK schwarze@ and millert@
2016-05-25KNF with respect to indentation; no code changeIngo Schwarze
2016-05-25Fix another one-byte buffer underflow (read access only).Ingo Schwarze
This change touches code that only runs when REG_BASIC is given and the regular expression is anchored with [[:<:]] or \< _and_ uses backreferences. Simplify the logic while here, already looking at the previous character if REG_STARTEND and REG_NOTBOL are both in use, in anticipation of martijn@'s upcoming patch which will further improve REG_STARTEND. OK millert@ martijn@ Also tested by Pedro Giffuni (pfg) on FreeBSD.