summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* make proper use of fstatat, as suggested by guenther@espie2016-06-271-8/+6
| | | | okay millert@
* defer munmap to after unlocking malloc. this can (unfortunately) be antedu2016-06-271-23/+32
| | | | | | | 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
* make the fallback code more accurate (in particular, it should return namesespie2016-06-271-4/+4
| | | | | | | | | 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@
* increase the minimum for auto rounds to 6. that was the previous low boundtedu2016-06-261-2/+2
| | | | for login.conf, and we don't want to go lower.
* sort previous;jmc2016-06-181-18/+18
|
* Remove duplicated line.reyk2016-06-181-2/+1
| | | | OK eric@
* Add net.inet.{tcp,udp}.rootonly sysctl, to mark which portsvgross2016-06-181-2/+19
| | | | | | cannot be bound to by non-root users. Ok millert@ bluhm@
* Update column width decisionguenther2016-06-181-2/+2
|
* Document KTRFAC_{PLEDGE,EXEC{ARGS,ENV}}guenther2016-06-181-2/+14
|
* PSEUDO_NOERROR() is used for syscalls that return now, so need to putguenther2016-06-161-1/+2
| | | | a nop in the slot skipped by the kernel on success
* On localhost a user program may create a socket splicing loop.bluhm2016-06-131-2/+6
| | | | | | | | 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@
* remove historic note about multiple processes. mostly irrelevant today.tedu2016-06-072-18/+4
| | | | ok deraadt millert
* Document the net.inet.tcp.synuselimit sysctl; OK bluhm@ jmc@tim2016-06-071-2/+6
|
* Add ERRORS section, from FreeBSD. OK tedu@millert2016-06-061-2/+17
|
* Return EOVERFLOW, not ENOMEM for overflow conditions to match POSIX.millert2016-06-061-3/+3
|
* Fix typo; the period should be outside the parens. From Michael McConvillemillert2016-06-021-3/+3
|
* Document EINVAL when unlinking "." with the AT_REMOVEDIR flag.millert2016-06-011-2/+11
|
* rmdir(2) should return EINVAL not EBUSY when trying to remove ".".millert2016-06-011-3/+6
| | | | | This brings us back in conformance with POSIX rmdir(2) and rmdirat(2). OK kettenis@
* Kill sysctl net.inet6.ip6.rr_prunejca2016-06-011-7/+2
| | | | | We don't support Router Renumbering and there are no plans to change that. ok mpi@
* correct documentation for PT_WRITE_I. it may be necessary to flush icache.tedu2016-05-311-4/+5
| | | | after explanation from kettenis
* Move __getcwd from ASM to HIDDEN: we don't want the literal __getcwd symbolguenther2016-05-301-3/+3
| | | | ok millert@ deraadt@
* We no longer have syscalls with multiple return values. Whine aboutguenther2016-05-301-5/+7
| | | | long long alignment instead.
* Consistently reference '_end' instead of 'end' in the brk/sbrk implementationguenther2016-05-3015-33/+28
| | | | ok deraadt@
* The icdb magic number doesn't need to be visible to static linksguenther2016-05-301-2/+2
| | | | ok tedu@
* Stop publicly declaring _yp_dobind() and struct dom_binding, closing outguenther2016-05-303-5/+10
| | | | | | a rant Theo wrote 24 years ago. Mark __ypexclude_{add,is,free}() as hidden "get off my lawn!" deraadt@
* Do setjmp cookies for eip, esp, and ebp. For bonus points, mix howguenther2016-05-303-70/+124
| | | | | | | | 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@
* Do setjmp cookies for gp, sp, and raguenther2016-05-302-26/+58
| | | | | endian testing and ok deraadt@ ok visa@
* _yp_bind(), _ypbindlist, _yp_domain, and _yplib_timeout are no longerguenther2016-05-292-5/+5
| | | | | | exported, so declare them as hidden to avoid pointless GOT relocations ok millert@ deraadt@
* Switch from calling obsolete sig{block,setmask} to directly using theguenther2016-05-292-21/+27
| | | | | | sigprocmask syscall ok kettenis@
* Wrap <machine/sysarch.h> to prevent overriding internal calls, forguenther2016-05-291-0/+25
| | | | | | alpha and mips64 ok millert@
* Remove dead support for changing BDB hash algorithm and cache of alternativesguenther2016-05-294-120/+11
| | | | ok natano@ millert@ deraadt@
* wxabort bits; ok deraadtjmc2016-05-291-2/+7
|
* Only require 4 byte alignment on ILP32 archsguenther2016-05-292-4/+4
|
* Use .balign instead of .align; only need 8 byte alignment not 2^8guenther2016-05-291-2/+2
|
* Prefer AF_* over PF_* and 'address family' over 'protocol family'guenther2016-05-292-13/+13
| | | | ok jung@
* The synopsis rendered very poorly because of a "Quite Ugly buttb2016-05-281-6/+8
| | | | | | | | 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@
* rcmd(3) and rcmdsh(3) use getaddrinfo(3) not gethostbyname(3).millert2016-05-282-9/+9
|
* Use getaddrinfo() instead of the non-standard gethostbyname2().millert2016-05-281-5/+14
| | | | OK deraadt@ jca@ jung@ florian@
* W^X violations are no longer permitted by default. A kernel log messagederaadt2016-05-273-6/+37
| | | | | | | | | | | | | | | | 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
* typo fixes; Anthony Coultersthen2016-05-271-2/+2
|
* The destination string is declared as "s" but referred to as "dst"millert2016-05-261-5/+5
| | | | | in some cases. Be consistent and use "dst" everywhere like for strlcat(3) and strncat(3). From Tim Kuijsten.
* Use S_ISDIR instead of doing it by hand. No binary change.millert2016-05-261-3/+2
|
* fputs(3) now returns a non-negative number (as opposed to 0) on successfulmillert2016-05-261-10/+8
| | | | | completion, just like puts(3). Found the hard way in portable code. OK jmc@
* Calculate elapsed time in poll() and subtract that from the remaining timejmatthew2016-05-261-4/+19
| | | | | | | | | | 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@
* Change the way regexec handles REG_STARTEND combined with REG_NOTBOL.martijn2016-05-262-20/+62
| | | | | | | | | | | | | 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@
* KNF with respect to indentation; no code changeschwarze2016-05-251-28/+27
|
* Fix another one-byte buffer underflow (read access only).schwarze2016-05-251-7/+4
| | | | | | | | | | | | 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.
* More fixes from miodguenther2016-05-231-4/+4
|
* Include SYS.h instead of DEFS.h now that this does a direct syscallguenther2016-05-231-2/+2
|
* Major bump for the removal of the various locale, ruserok, andguenther2016-05-231-1/+1
| | | | longjmperror symbols