summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* delete sigmask(3) from sigsetmask(3) SYNOPSIS and use .Xr ratherschwarze2017-08-012-8/+7
| | | | | | than .Fn for it, it is documented sigblock(3) as noticed by jmc@; some minor typo and punctuation cleanup while here; OK jmc@
* add missing and correct misspelled names, most in NAME sections;schwarze2017-08-013-9/+12
| | | | | found with regress/usr.bin/mandoc/db/dbm_dump; OK jmc@
* Use stdrup, to avoid clang whining about the length parameters beingderaadt2017-07-273-13/+4
| | | | | based upon input being used unsafely (they are safe) ok millert kettenis
* Favor err() over perror() in example.anton2017-07-221-3/+3
| | | | ok schwarze@
* zap trailing whitespace;jmc2017-07-221-2/+2
|
* rework the page a bit, clarify a few things, maybe better wordingtedu2017-07-221-8/+13
|
* Accessing a mmap(2)ed file behind its end should result in a SIGBUSbluhm2017-07-201-3/+3
| | | | | | according to POSIX. Bring regression test and kernel in line for amd64 and i386. Other architectures have to follow. OK deraadt@ kettenis@
* Rename TBUF_LEN and FMT_LEN to _SIZE as they contain a NUL byte.bluhm2017-07-201-11/+11
| | | | | | Change FMT_SIZE to 1024+1 for consistency. Do not loop over the format string if there is no output space left. OK deraadt@ millert@
* Both syslog(3) and syslogd(8) truncate the message at 8192 bytes.bluhm2017-07-181-2/+7
| | | | | Do the same in sendsyslog(2) and document the behavior. reported by Ilja Van Sprundel; OK millert@ deraadt@
* Get rid of ip6.maxifprefixes and ip6.maxifdefrouters, the kernel noflorian2017-07-131-15/+2
| | | | | | | longer tracks prefixes or default routers from router advertisements. Pointed out by jmc. ports tree grepping sthen, who only found nsh OK mpi, sthen
* one more instance of the previous commit; also initialize ->offset to aotto2017-07-101-2/+3
| | | | definite value in the size == 0 case
* replace Fifos with FIFOs.dlg2017-07-101-3/+3
| | | | ok jmc@ visa@
* update the little endian processor list to give it a chance of matchingtedu2017-07-082-6/+6
| | | | what the reader is using.
* Only access offset if canaries are enabled *and* size > 0, otherwise offsetotto2017-07-071-2/+2
| | | | is not initialized. Problem spotted by Carlin Bingham; ok phessler@ tedu@
* The 0x (or 0X) prefix in base 16 is optional so only skip over themillert2017-07-066-18/+18
| | | | | | prefix if the character following it is a valid hex char. The C99 standard is clear that given the string "0xy" zero should be returned and endptr set to point to the "x". OK deraadt@ espie@
* fix broken cross references; found with mandoc -Tlintschwarze2017-07-061-3/+3
|
* void functions don't return 0tb2017-07-051-6/+2
| | | | From Klemens Nanni
* fix cross references to self; found with mandoc -Tlintschwarze2017-07-051-3/+3
|
* 1. mild deprecation noticeschwarze2017-07-041-3/+11
| | | | | | | | 2. point to getline (suggested by nicm@) 3. cross reference fgetc(3) rather than putc(3) 4. add missing error handling to the example code OK nicm@
* port the RBT code to userland by making it part of libc.dlg2017-06-196-13/+728
| | | | | | | | | | | | | | src/lib/libc/gen/tree.c is a copy of src/sys/kern/subr_tree.c, but with annotations for symbol visibility. changes to one should be reflected in the other. the malloc debug code that uses RB code is ported to RBT. because libc provides the RBT code, procmap doesn't have to reach into the kernel and build subr_tree.c itself now. mild enthusiasm from many ok guenther@
* no need for branding in .Nd linederaadt2017-06-131-3/+3
|
* Add dprintf() and vdprintf() RETURN VALUES. OK deraadt@millert2017-06-121-2/+4
|
* request -> promises; from scott chelohajmc2017-06-111-3/+3
|
* Fix broken markup of function pointer invocations; foundschwarze2017-06-101-11/+6
| | | | with mandoc -Tlint. While here, delete .Tn macros.
* fix a sentence that used unusual terminology, the wrong macro,schwarze2017-06-101-5/+6
| | | | and broken delimiter syntax; found with mandoc -Tlint
* Add an acct(5) flag for pledge violations. Then lastcomm(1) showsbluhm2017-06-071-2/+12
| | | | | | | when something went wrong. This allows to monitor whether the system is under attack and that the attack has been prevented by OpenBSD pledge(2). OK deraadt@ millert@ jmc@
* Remove branch prediction hint from conditional branch instruction.naddy2017-06-011-2/+2
| | | | | These hints are not recognized by clang's builtin assembler. From the corresponding amd64 change. ok visa@ kettenis@
* Add support for EV_RECEIPT and EV_DISPATCH flagsmikeb2017-05-311-2/+17
| | | | | From FreeBSD via Jan Schreiber <jes at posteo ! de>, thanks! OK tedu, bluhm
* install futex(2), ok mpisthen2017-05-311-2/+2
|
* getrlimit is now allowed by "stdio"deraadt2017-05-301-2/+3
|
* Don't fall back to heapsort() if we would otherwise switch tomillert2017-05-301-7/+7
| | | | insertion sort (when the number of elements is < 7).
* sort SEE ALSO;jmc2017-05-291-2/+2
|
* sort SEE ALSO;jmc2017-05-293-7/+7
|
* It is distasteful to have manual pages which don't refer to realderaadt2017-05-2910-29/+35
| | | | | | | function calls, but instead a "class" of functions like "sigsetops". Rename to sigaddset", and while at it improve documentation in sigprocmask(2) to point to it. ok tedu
* move sha224_initial_hash_value[] under !SHA2_SMALL; ok deraadt@ millert@naddy2017-05-271-13/+13
|
* Support swapping 32-bit aligned elements on 64-bit platforms.millert2017-05-241-22/+63
| | | | | Previously they would be swapped a byte at a time when sizeof(int) != sizeof(long). Idea from FreeBSD.
* Document that qsort falls back to heapsort() if the recursion depthmillert2017-05-201-3/+13
| | | | exceeds 2 lg N and add a reference to the introsort paper.
* Use David Musser's introsort algorithm to fall back to heapsort(3)millert2017-05-203-16/+47
| | | | | | when the recursion depth reaches 2*lg(n + 1). This avoids quicksort's quadratic behavior for pathological input without appreciably changing the average run time.
* The BSD qsort() performs tail recursion elimination on the secondmillert2017-05-171-10/+25
| | | | | | | | side of the array being partitioned to save on stack space. Greater savings can be gained by choosing recursion for the smaller side of the partition and eliminating recursion for the larger side. This also results in a small but measurable performance gain. OK otto@ schwarze@
* Typo: freezeo -> freezerotb2017-05-151-3/+3
| | | | From "fenderq" on freenode via tj@
* - fix bug wrt posix_memalign(3) of blocks between half a page and a pageotto2017-05-132-8/+18
| | | | | - document posix_memalign() does not play nice with reacallocarray(3) and freezero(3)
* Fix exponential CPU use with repeated '*' operators by changing '*'millert2017-05-081-21/+34
| | | | | handling to be interative instead of recursive. Fix by Yves Orton, ported to OpenBSD glob.c by Ray Lai. OK tb@
* Update STANDARDS section, these are now in XSI BASE.millert2017-05-082-8/+10
|
* killpg() is covered by XSI so add a STANDARDS section to that effectmillert2017-05-071-3/+12
| | | | | and document that handling of process group 0 is not specified by the standard.
* Don't allow a negative process group ID, it would turn into amillert2017-05-071-1/+1
| | | | process ID when negated.
* Move info about group handling via a negative pid into the listmillert2017-05-061-9/+9
| | | | with the other pid-specific details.
* Document what happens when sending a signal to the calling process.millert2017-05-051-3/+20
| | | | OK jmc@
* Mention that the signal mask does not affect what signals aremillert2017-05-051-3/+18
| | | | | discarded by the kernel. Document that at least one pending signal will be delivered before sigprocmask() returns.
* Merge headers defining identifiers from sysctl.8 into sysctl.3. Shorten andtb2017-05-041-23/+28
| | | | | | update their descriptions. In sysctl.8 refer to /etc/sysctl.conf in FILES. discussed with and ok jmc
* make the description strings match the codederaadt2017-05-031-10/+10
|