summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2015-11-01delete old lint ARGSUSED commentsPhilip Guenther
2015-11-01delete old lint ARGSUSED commentsPhilip Guenther
2015-11-01delete old lint ARGSUSED commentsPhilip Guenther
2015-10-31Invoke the _HIDDEN() sigprocmask label rather than the public one.Miod Vallat
2015-10-31This is sigprocmask, not sigpending.Miod Vallat
2015-10-31Do not include a timestamp in the syslog message. There is no need --Theo de Raadt
syslogd will fill it in immediately upon reception on the other side of sendsyslog(2). Our libc only talks to our syslogd, which will fix the timestamp before forwarding. syslog_r has done this for a long time already. ok tedu bluhm
2015-10-30Pull in <sys/types.h> to get ssize_t or <stdint.h> to get uint32_t, instead ofMiod Vallat
relying upon previously included headers to do this, to enhance portability; from Pascal Cuoq, libressl github pull request #52
2015-10-30For getgrent.3:Philip Guenther
- delete the commented out setgrfile bits, as well as the MLINK - rename getgr{nam,gid}_r()'s 'buffer' parameters to 'buf' to be consistent with getpwnam(3) and practically all other section 3 manpages - we have sysconf(_SC_GETGR_R_SIZE_MAX) now, so uncomment and revise the text For getpwnam.3: - rename buflen to bufsize for consistency - rewrite the description of the getpw{nam,uid}_r functions to match the better getgr{nam,gid}_r() description, adding sysconf() bits Add sysconf(3) to SEE ALSO for both encouraged by schwarze@ ok millert@
2015-10-29update text to be more like posix, in particular wrt length = 0Ted Unangst
2015-10-29(struct timezone *)0 -> NULL, while I'm here.mmcc
2015-10-28We are always using _PATH_RESCONF, so no need to remember the path onEric Faurot
the resolver. ok millert@ deraadt@
2015-10-28Remove support for [addr]:port syntax from the "nameserver" line.Theo de Raadt
This extension never made it to other systems. (pledge is also happy with this. The idea of DNS @ any port collides with pledge encouraring differentiation between DNS and non-DNS sockets) ok phessler jung sthen kettenis
2015-10-28Rewrite the mbtowc(3) page for clarity. Explain what needs to be done on error.Stefan Sperling
With input from jmc, zhuk, schwarze, and bentley. ok jmc zhuk bentley
2015-10-27Wrap the remaining math functions in libc: __fpclassify*(), __flt_rounds(),Philip Guenther
and ldexp(). ok millert@
2015-10-27The fd of the passwd database is marked close-on-exec nowPhilip Guenther
Incorrect text pointed out by tedu@ ok deraadt@ millert@ tedu@
2015-10-26don't keep the passwd database open; callers do not expect that they willTed Unangst
become responsible for calling endpwent. ok deraadt
2015-10-25Wrap waitpid() so calls go direct; weaken wait() and wait3().Philip Guenther
Strip out unnecessary #includes and use NULL instead of (struct rusage *)0
2015-10-25Move the _atfork_list definition to atexit.c so that the fork syscall stubPhilip Guenther
doesn't get pulled into all static executables ok millert@ jca@
2015-10-25Hide __atexit and __atexit_register_cleanup()Philip Guenther
Wrap __cxa_{atexit,finalize}() so the call from exit() goes direct Switch regress/lib/libc/atexit/ to be built with -static so that it can still access __atexit* ok millert@ jca@
2015-10-25Nuke union of d_packname with un_d_boot0 & un_d_boot1, keepingKenneth R Westerback
d_packname as a simple field. Also nuke the access #defines, and support for b0 and b1 capabilities in disktab. ok deraadt@ miod@
2015-10-25Sort the obsolete flags.Doug Hogan
2015-10-25Mark SSL_OP_NO_{COMPRESSION,SSLv2,SSLv3} as obsolete.Doug Hogan
For backward compatibility, the flags are redefined as 0. ok jsing@
2015-10-25Remove last vestige of SSL_OP_NO_SSLv3 support.Doug Hogan
No part of LibreSSL checks for this flag any longer. ok jsing@
2015-10-25Simplify ssl23_get_client_hello error handling.Doug Hogan
ssl23_get_client_hello sets type=1 on error and continues processing. It should return an error immediately to simplify things. This also allows us to start removing the last of SSL_OP_NO_SSL*. Added extra paranoia for s->version to make sure it is set properly. ok jsing@
2015-10-25The only thing that was translated into multiple languages in OpenBSDAlexander Bluhm
are the errno messages and signal names. Everything else is in English. We are not planning to translate more text. Running a mixed system with less than 1% of the text in native language makes no sense. So remove the NLS support from libc messages. The catopen(3) functions stay as they are. OK stsp@ mpi@
2015-10-25Use sigaction() instead of signal() to avoid pulling in unnecessaryPhilip Guenther
wrappers. To keep uses from crawling back in, mark signal() as deprecated inside libc. ok deraadt@
2015-10-24typommcc
2015-10-24Move #includes from private.h to the .c files that need them, getting rid ofPhilip Guenther
several. Switch from FILENAME_MAX to PATH_MAX (it's for open(), not fopen()). ok deraadt@ tedu@ krw@
2015-10-24nl_langinfo(3) conforms to POSIX.Anthony J. Bentley
ok jmc@
2015-10-24Unify all the errno names inAlexander Bluhm
- include comment - libc errlist - nls C msg - man page OK tedu@
2015-10-24remove a paste error and get section numbers right for sysctl(3);Jason McIntyre
2015-10-24Cast isxdigit()'s argument to unsigned char.mmcc
ok guenther@
2015-10-24Cast ctype function arguments to unsigned char.mmcc
ok guenther@
2015-10-23Verify that opened message catalog is valid, i.e. avoid integer overflowsTobias Stoeckmann
and out of boundary accesses. with input by miod, ok stsp
2015-10-23Switch if_nameindex(3) to use the new NET_RT_IFNAMES sysctl to get theClaudio Jeker
list of interface names. At the same time switch if_nametoindex(3) and if_indextoname(3) to use if_nameindex(3) instead of getifaddrs(3). if_nameindex(3) exposes much less then getifaddrs(3) and is allowed by pledge(2). With and OK deraadt@
2015-10-23Fix waitpid() loop again: do the errno check only if waitpid() returns -1Philip Guenther
and check WIFEXITED() only if it returns != -1. Delete the logging of errors other than ECHILD: EFAULT and EINVAL are impossible here. ok deraadt@ millert@
2015-10-23Use waitpid() instead of wait() to avoid returning early from another childPhilip Guenther
exiting, and loop the waitpid() on EINTR ok deraadt@ millert@
2015-10-23Loop the waitpid() on EINTR, and save and restore the disposition ofPhilip Guenther
SIGINT and SIGQUIT with sigaction() instead of signal() so that all bits are preserved. ok deraadt@ millert@
2015-10-23Merge the sigaction() and sigprocmask() overloads/wrappers from libpthreadPhilip Guenther
into libc, and move pthread_sigmask() as well (just a trivial wrapper). This provides consistent handling of SIGTHR between single- and multi-threaded programs and is a step in the merge of all the libpthread overloads, providing some ASM and Makefile bits that the other wrappers will need. ok deraadt@ millert@
2015-10-23Add 3 new pledge requests. "ps" exposes enough sysctl information forTheo de Raadt
ps-style programs (there are quite a few in the tree, including tmux). "vminfo" exposes a bit more system operation information, which many observation programs want (such as top). settime allows setting the system time, and will be used to pledge-protect the last ntpd process.
2015-10-23crank libc majorTheo de Raadt
2015-10-23Remove dnssocket() and dnsconnect(), since we decided to use a SOCK_DNSTheo de Raadt
flag instead. ok guenther tedu semarie
2015-10-23Switch to using SOCK_DNS flag, rather than the dnssocket() andTheo de Raadt
dnssonnect() calls. Be a bit careful crossing over this, need a kernel no older than Monday. ok guenther tedu semarie
2015-10-22Cast ctype function arguments to unsigned char.mmcc
ok guenther@
2015-10-22Another change that is needed to restore the previous behaviour ofJoel Sing
ASN1_{GENERALIZED,UTC}TIME_set_string(), which allows it to be called with a NULL pointer. ok beck@
2015-10-22Restore previous behaviour and allowJoel Sing
ASN1_{GENERALIZED,UTC,}TIME_set_string() to be called with a NULL pointer. Found the hard way by @kinichiro on github. ok beck@
2015-10-22document "id" request; from Gregor BestTheo de Raadt
2015-10-21Reject too small bits value in BN_generate_prime_ex(), so that it does not riskMiod Vallat
becoming negative in probable_prime_dh_safe(). Reported by Franck Denis who noticed `openssl gendh 0' would segfault. Fix adapted from OpenSSL RT#2701. ok beck@ jsing@
2015-10-21In the case where len is not a multiple of sizeof(RC4_CHUNK) the RC4 codeJoel Sing
will end up doing a read and write of up to 7 bytes beyond the specified length. This is effectively a non-issue since we read and write back the same data and due to alignment it is within a page boundary. Regardless, avoid this by removing the "special" handling for the remaining length and allow the standard (non-chunk) code to process the remaining bytes, which does not result in overrun. Reported by Pascal Cuoq <cuoq at trust-in-soft.com> - thanks! ok beck@ miod@
2015-10-20Document SOCK_DNS flagTheo de Raadt
ok guenther tedu semarie