summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2012-06-15update return values for ibuf_write and msgbuf_writeJonathan Matthew
ok gilles@
2012-06-15Fix typos.Matthew Dempsky
ok pig(6)
2012-06-07Document mbsnrtowcs() and wcsnrtombs().Matthew Dempsky
ok jmc
2012-06-06Add support for mbsnrtowcs() and wcsnrtombs() to libc.Matthew Dempsky
Bulk build test by naddy.
2012-06-04stop editing header by hand, expose script I'm going to use for next versionsMarc Espie
2012-06-04fix autodetection, somehow I managed to lose that commit earlier ?Marc Espie
(brad reminded me we have strerror_r too).
2012-06-04finish synching libraryMarc Espie
2012-06-04minor update to 3.7.12.1Marc Espie
2012-06-04crank minor, since a symbol was addedTheo de Raadt
2012-06-02in imsg_read() avoid calling recvmsg() if we detect that we will be shortGilles Chehade
on descriptors, this can be achieved thanks to the new getdtablecount() system call. application may provide a reserve count to ensure that the recvmsg() call is not called when they don't have enough descriptors to work properly. change the API so that transient errors that can be retried immediately are retried within the function right away, whereas transient errors for which the application may want to take action will set errno to EAGAIN. ok deraadt@ and henning@
2012-06-02Committed the wrong version (an earlier try) of the KERN_FILE2 vsPhilip Guenthe
rthreads fix. Update to the correct one.
2012-06-02Update STANDARDS section for a few <stdlib.h> functionsPhilip Guenthe
Update SYNOPSIS for setkey() to show it's in <stdlib.h> ok jmc@, millert@
2012-06-01Fix document titles.Lawrence Teo
ok haesbaert jmc henning
2012-06-01Improve standards conformance: ecvt(), fcvt(), gcvt(), mktemp(), ttyslot(),Philip Guenthe
and valloc() are not in the current version, while posix_memalign() mkstemp(), and mkdtemp() are, and setstate()'s argument has lost a bogus 'const'. ok millert@ jmc@ espie@ kettenis@; ports build testing by naddy@
2012-05-25tweak previous; ok sthen lteoJason McIntyre
2012-05-25Import a number of core functions from libpcap-1.2.0 while preservingLawrence Teo
local changes: strncpy() -> strlcpy(), malloc(x * y) -> calloc(x, y), exclude cross-platform cruft, etc. The new functions are pcap_create(), pcap_set_snaplen(), pcap_set_promisc(), pcap_can_set_rfmon(), pcap_set_rfmon(), pcap_set_timeout(), pcap_set_buffer_size(), pcap_activate(), and pcap_statustostr(). This diff was tested on amd64, i386, macppc, and sparc64, where regression tests were done on various pcap-based ports (especially amd64 and i386 where regression tests were run on all pcap-based ports). Testers also tried running pcap-based ports that they are familiar with to ensure that there is no behavioral change. tcpdump and pflogd in base were also tested by different testers. The new pcap_* functions were tested with a proof-of-concept Snort 2.9 port for many months. Thank you to everyone who helped test this diff and provided feedback: haesbaert@, sthen@, matthew@, gonzalo@, brett@, Rodolfo Gouveia, Aaron Bieber, Markus Lude, and Ray Percival. ok haesbaert sthen henning
2012-05-24some symbols actually changed.Marc Espie
visible interface, not "officially" published, but still... technically visible. Better safe than sorry: major bump. as prodded/discussed with deraadt@
2012-05-24fuck, forgot we still have !C99 compilersMarc Espie
reminded by deraadt@
2012-05-23Make the "default" string a valid device name that has the same effectAlexandre Ratchov
as NULL has. This will (hopefully) simplify ports where the user passes the device string.
2012-05-22Don't misleadingly suggest that fpos_t only needs to be a complex typeMatthew Dempsky
on non-UNIX systems: it's a complex type on Linux, and to be C99 compliant we'll probably need it to be a complex type too.
2012-05-22Document that ftell() may return EOVERFLOW.Matthew Dempsky
Diff from Tim van der Molen.
2012-05-22those no longer belong, they've been move to the test/ directory upstreamMarc Espie
2012-05-22lemon bug: checking lines is not enough, we have to be sure we're at theMarc Espie
end of file to make sure the include file hasn't been altered. problem reported by landry@, deraadt@
2012-05-22bump version, regen sqlite3.h with our changes (and bump version)Marc Espie
2012-05-22merge syncMarc Espie
2012-05-22import sqlite 3.7.12 (tested by landry@)Marc Espie
2012-05-21Fix ftell() to return EOVERFLOW if the file offset is greater thanMatthew Dempsky
LONG_MAX. Also, remove an Alpha-specific optimization that only saves a couple of bytes of code size. ok millert, guenther
2012-05-14More sysconf(3)-y and pathconf(3)-y goodness from Brad.Matthew Dempsky
ok guenther, millert (and me); bulk build test by naddy
2012-05-11The default device is selected with sndiod(1) or the AUDIODEVICEAlexandre Ratchov
environment variable, so stop using the /dev/audio symlink which can't be used by sndiod(1) anyway
2012-05-06Style nits from Brad.Paul Irofti
2012-05-03Add pthread spinlock support.Paul Irofti
Implementation, documentation and naive regression tests for: - pthread_spin_init() - pthread_spin_destroy() - pthread_spin_lock() - pthread_spin_trylock() - pthread_spin_unlock() Implementation okay guenther@, documentation okay jmc@.
2012-05-01Eliminate the f_usecount ref count in struct file; instead of sleepingPhilip Guenthe
at the top of closef() until all in-progress calls finish, just do the advisory locking bits required of close() by POSIX and let whichever thread has the last reference do the call to the file's fo_close() method and the final cleanup. lots of discussion with deraadt@ and others; worked out with and ok krw@
2012-04-26Drop support from openpty() for 8+ year old kernels that don't supportMatthew Dempsky
/dev/ptm. Users are strongly encouraged to upgrade to a more recent release if they haven't already. ok deraadt
2012-04-26Add strnlen() to libkern.Matthew Dempsky
ok deraadt
2012-04-25fix a few warningsEric Faurot
2012-04-24document address truncation; from Steffen Daode NurpmesoJason McIntyre
ok deraadt matthew millert
2012-04-23Honor subsystem style.Paul Irofti
`Visual inspection looks ok' kurt@. >From Brad
2012-04-22enable sqlite3, as prompted by theoMarc Espie
2012-04-22add missing defines, crucial: -DSQLITE_COREMarc Espie
used while compiling extensions which are actually a part of the core, prevents segfaults because extensions have not been loaded...
2012-04-22regen all files we can, prepare stuff to make sure it works even withoutMarc Espie
depend
2012-04-22Document that getpeereid() works for SOCK_SEQPACKET sockets too.Matthew Dempsky
2012-04-20use "an addrinfo", not "a addrinfo". ok jmcStuart Henderson
2012-04-20Fix kvm_deadfile2_byid()'s handling of kernel vs user addresses forPhilip Guenthe
fd_ofiles and fd_ofileflags, reading in the separate allocation when necessary. Lets fstat -p and fstat -u work on kernel crash dumps again. ok millert@
2012-04-20rearrange DESCRIPTION somewhat to make this page more readable;Jason McIntyre
from Lawrence Teo
2012-04-19cherrypick fix for CVE-2012-2110: libcrypto ASN.1 parsing heap overflowDamien Miller
ok miod@ deraadt@
2012-04-19rely on the compiler giving us a built-in alloca. any new architectureTheo de Raadt
or compiler we use will. ok millert
2012-04-17Make it optional for kvm_getprocs() (and related sysctl) to returnPaul Irofti
thread information. Add a KERN_PROC_SHOW_THREADS flag that has to be set in order to get the thread info and make it off by default. This creates backwards compatibility for applications that relied on a given size/number of items to be returned. Modify ps(1) and top(1) accordingly. Okay guenther@.
2012-04-17Remove "#define _POSIX_THREADS" line before include <pthread.h>.Miod Vallat
The latter contains "#define _POSIX_THREADS 1" which makes gcc 2.95 complain.
2012-04-15Create a new resolver for each thread. It will be done differentlyEric Faurot
eventually, but it's enough for now to make the blocking API fully thread-safe without locking.
2012-04-15calling getnameinfo here is a bad idea. use inet_ntop.Eric Faurot