summaryrefslogtreecommitdiff
path: root/lib/libc/gen
AgeCommit message (Collapse)Author
2017-10-17add missing HISTORY; based on CVS logs and release announcementsIngo Schwarze
2017-10-16draft-ietf-tcpm-initcwnd was published as rfc 6928Mike Belopuhov
2017-10-04iscntrl(0) is != 0 at least since Version 7 AT&T UNIX, and POSIXIngo Schwarze
requires that, too (in XBD 7.3.1), even though the C standard leaves it implementation-defined; found during my kcgi audit on behalf of CAPEM; OK deraadt (stupid me forgot to commit before lock).
2017-09-18Document readdir_r() return value and update style of the exampleTodd C. Miller
code. Adapted from a diff by Ross L Richardson.
2017-09-17__progname has type char *, we cannot change its type without causingOtto Moerbeek
havoc all over the place. So add some casts to silence the compiler. ok deraadt@ guenther@
2017-09-12Update the documentation regarding /dev/mem and /dev/kmem;Ingo Schwarze
Theo already clamped down on these devices last year. Triggered by a question from Nan Xiao <xiaonan830818 at gmail dot com>. OK deraadt@
2017-09-10shm_open(), sysconf(), tcflow(), and tcsendbreak() are not permitted to bePhilip Guenther
cancellation points in POSIX, so change them to invoke the non-cancellation point versions of open(), close(), nanosleep(), and write() ok deraadt@ millert@
2017-09-10Fix spelling of 4.3BSD-Net/2.Ingo Schwarze
2017-09-10sysctl strings include the termingating NUL character in both in and out lengthsTom Cosgrove
Prompted by Nan Xiao noticing the redundancy of bzero+termination - thanks. ok deraadt@
2017-09-05Remove unused 32bit version of elf_hash().Martin Pieuchot
Riding previous libc bump. ok kettenis@
2017-09-05New POSIX xlocale implementation written from scratch.Ingo Schwarze
Complete in the sense that all POSIX *locale(3) and *_l(3) functions are included, but in OpenBSD, we of course only really care about LC_CTYPE and we only support ASCII and UTF-8. With important help from kettenis@, guenther@, and jca@. Repeated testing in ports bulk builds by naddy@. Additional testing by jca@, sebastia@, dcoppa@, and others. OK kettenis@ dcoppa@, and guenther@ on an earlier version. Riding guenther@'s libc/librthread major bump.
2017-09-05Add additional errno values required by POSIX.Jonathan Gray
ok jca@ kettenis@ deraadt@
2017-08-29It is confusing to talk about priorities being ordered from highTodd C. Miller
to low when they are actually numbered in the opposite (numerical) order. Use "ordered by decreasing importance" instead. Also try to make it clear that LOG_UPTO uses the numerical priorities where a larger value means a lower priority. OK jmc@
2017-08-29isunordered() returns true if at least one of the arguments is NaNTodd C. Miller
OK espie@
2017-08-12Minimize #includes, particularly to avoid thread_private.hPhilip Guenther
ok tedu@
2017-08-08Stop running nd6_expire every second.Florian Obser
We know when pltime or vltime decrease to zero. Run nd6_expire then. Input & OK mpi, bluhm
2017-08-08Kernel sendsyslog(2), libc syslog(3), and syslogd(8) restrict andAlexander Bluhm
truncate the length of a syslog message to 8192 bytes. Use one global define LOG_MAXLINE for all of them. OK deraadt@ millert@
2017-08-07Since sendsyslog(2) handles the LOG_CONS parameter, the variableAlexander Bluhm
conp in syslog(3) is unused. Remove dead code. OK jca@ deraadt@
2017-08-01add missing and correct misspelled names, most in NAME sections;Ingo Schwarze
found with regress/usr.bin/mandoc/db/dbm_dump; OK jmc@
2017-07-20Rename TBUF_LEN and FMT_LEN to _SIZE as they contain a NUL byte.Alexander Bluhm
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@
2017-07-13Get rid of ip6.maxifprefixes and ip6.maxifdefrouters, the kernel noFlorian Obser
longer tracks prefixes or default routers from router advertisements. Pointed out by jmc. ports tree grepping sthen, who only found nsh OK mpi, sthen
2017-07-06fix broken cross references; found with mandoc -TlintIngo Schwarze
2017-06-19port the RBT code to userland by making it part of libc.David Gwynne
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@
2017-06-10Fix broken markup of function pointer invocations; foundIngo Schwarze
with mandoc -Tlint. While here, delete .Tn macros.
2017-05-29It is distasteful to have manual pages which don't refer to realTheo de Raadt
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
2017-05-08Fix exponential CPU use with repeated '*' operators by changing '*'Todd C. Miller
handling to be interative instead of recursive. Fix by Yves Orton, ported to OpenBSD glob.c by Ray Lai. OK tb@
2017-05-08Update STANDARDS section, these are now in XSI BASE.Todd C. Miller
2017-05-04Merge headers defining identifiers from sysctl.8 into sysctl.3. Shorten andTheo Buehler
update their descriptions. In sysctl.8 refer to /etc/sysctl.conf in FILES. discussed with and ok jmc
2017-04-14whitespaceTheo de Raadt
2017-04-14correct path; from Klemens NanniTheo de Raadt
2017-03-17recallocarray() the string buffer, to avoid leaving such contentsTheo de Raadt
around in the address space. Don't bother doing so for the buffer which contains aslr'd pointers... ok millert
2017-03-16sync the vfs bits as best i can;Jason McIntyre
2017-03-16bit more consistent;Jason McIntyre
2017-03-13- no KERN_RND: from schwarzeJason McIntyre
- remove some XXX i no longer need
2017-03-13for each sysctl name, attach the variable name as seen by sysctl(8);Jason McIntyre
includes some fixes from schwarze, as well as some general tweaking; ok deraadt schwarze
2017-02-15Style improvement, no functional change.Ingo Schwarze
As reported by Yuri Pankov, some versions of GCC whine that "tmp" might be used uninitialized in fts_open(3). Clearly, that cannot actually happen, but explicitly setting it to NULL is safer anyway. While here, rename the badly named variable "tmp" and make the inner "if" easier to understand. Feedback and OK guenther@
2016-12-25gcc says "if you define labels and don't use them, I will whine."Kenneth R Westerback
ok tom@
2016-11-09Fix a use after free error introduced in rev 1.18 by only callingTodd C. Miller
closedir() outside the loop. OK deraadt@ guenther@ markus@
2016-10-19Use the reentrant strerror_r() instead of strerror() to expand %m.Todd C. Miller
Previously, syslog_r() would avoid calling strerror() since the latter is not reentrant. OK bluhm@
2016-10-18Avoid generate SIGTTOU when restoring the terminal mode. If we getTodd C. Miller
SIGTTOU it means the process is not in the foreground process group which, in most cases, means that the shell has taken control of the tty. Requiring the user the fg the process in this case doesn't make sense and can result in both SIGTSTP and SIGTTOU being sent which can lead to the process being suspended again immediately after being brought into the foreground.
2016-10-07sort;Jason McIntyre
2016-10-07introduce a sysctl to hijack dns sockets. when set to a port number,Ted Unangst
all dns socket connections will be redirected to localhost:port. this could be a sockopt on the listening socket, but sysctl is an easier interface to work with right now. ok deraadt
2016-09-28use the same template for describing securelevel interaction;Jason McIntyre
2016-09-28document kern.allowkmem; ok deraadtJason McIntyre
2016-09-24Fix matching when all of user, host and domain are specified.Todd C. Miller
OK guenther@
2016-09-21no more KERN_ARND; ok deraadtJason McIntyre
2016-09-21Delete casts to off_t and size_t that are implied by assignmentsPhilip Guenther
or prototypes. Ditto for some of the char* and void* casts too. verified no change to instructions on ILP32 (i386) and LP64 (amd64) ok natano@ abluhm@ deraadt@ millert@
2016-09-07Remove usermount remnants. ok teduMartin Natano
2016-09-03tweak previous;Jason McIntyre
2016-09-03note that getpass is obsolete. removed from posix in 2001.Ted Unangst