summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2016-04-27minor cleanup;Jason McIntyre
2016-04-26Remove predefined strings from libm pages.Theo Buehler
With lots of help, input and tweaks and finally ok schwarze@
2016-04-26Enable LIBREBUILD to construct libc.so.*.aTheo de Raadt
2016-04-25Allow setenv(3) and putenv(3) to operate on a NULL environ pointer.Todd C. Miller
The getenv(3) and unsetenv(3) functions already support this. This will make it easier to emulate the glibc clearenv() function in ports. Based on a diff from and OK jca@
2016-04-25no more systraceTed Unangst
2016-04-24no more outlen; from remcoJason McIntyre
ok bcook deraadt
2016-04-24typos;Jason McIntyre
2016-04-20delete unused -m option;Ingo Schwarze
ok martijn@ also checked by Christian Heckendorf <mbie at ulmus dot me>
2016-04-20New editline(7) manual, explaining to end-users how line editing worksIngo Schwarze
in programs like ftp(1), sftp(1), bc(1), and cdio(1) that use libedit. The existing editrc(5) manual only explains customization, and the existing editline(3) manual only explains the C language interface. Already listing all editor functions and all default key bindings, but in other respects, not 100% complete yet, and due to the sheer size, some bugs may have slipped, but all that can be fixed in the tree. OK and tweaks jmc@. Also seems reasonable to Christian Heckendorf <mbie at ulmus dot me>.
2016-04-19fix typo in comment; ok beckT.J. Townsend
2016-04-18Delete redundant, empty callbacks;Ingo Schwarze
no functional change, minus hundred lines of code. OK martijn@; also proof-read by Christian Heckendorf <mbie at ulmus dot me>.
2016-04-17document pledge(2); from rob pierceJason McIntyre
2016-04-15Document PROTO_NORMAL requires matching DEF_{,NON}STDPhilip Guenther
2016-04-15PROTO_NORMAL(pthread_cond_signal) requires DEF_STD(pthread_cond_signal)Philip Guenther
2016-04-15make pthread_barrier_wait behave more like it does on other platforms.Ted Unangst
from Kari Tristan Helgason
2016-04-13Revert the recent changes to pledge.2.Theo Buehler
Requested by deraadt@
2016-04-13Use the correct iv and counter when decrypting the ciphertext forJoel Sing
EVP_aead_chacha20_poly1305_ietf().
2016-04-13Re-introduce the following commit:Ingo Schwarze
OpenBSD read.c rev. 1.4 1997/06/10 20:10:13 millert FIONREAD takes int *, not long * It got lost in the following merge from NetBSD: OpenBSD read.c rev. 1.10 2003/10/31 08:42:24 otto OK millert@ martijn@
2016-04-12tweak previous;Jason McIntyre
2016-04-12two times a define to an inline function, from Michael McConville; ok djm@Otto Moerbeek
2016-04-12documents "mcast" promiseSebastien Marie
with few nits from and ok schwarze@
2016-04-12documents "route" promiseSebastien Marie
initial diff from Rob Pierce rob ! 2keys. ca with some enhancements from jmc@, schwarze@ and me ok jmc@ schwarze@
2016-04-12Cleanup, no functional change:Ingo Schwarze
* Make the return value from read_getcmd() less confusing. * No need to store that return value; testing it once is enough. * Get rid of one #ifdef section in el_wgets(). OK czarkoff@ martijn@
2016-04-12* Delete the unimplemented feature XK_EXE.Ingo Schwarze
* Delete the unused macro MIN(). No functional change. OK czarkoff@ martijn@
2016-04-11delete the "private" and "public" preprocessor macros, just use standard C;Ingo Schwarze
OK martijn@
2016-04-11Clean up chartype.h:Ingo Schwarze
* not used in tokenizer.c * only use it for !NARROWCHAR * no need for underscores before ct_{de,en}code_string() * make the conversion buffer resize function private OK martijn@
2016-04-11get rid of the non-standard data type "Char" in almost all files;Ingo Schwarze
ok martijn@
2016-04-11Move wrapper macros to the two files actually needing them:Ingo Schwarze
FUNW, Strlen, Strdup, Strcmp, Strncmp, Strncpy, Strncat -> history.c Strchr, tok_strdup -> tokenizer.c FUN, TYPE, STR -> both of these files OK martijn@ Also proofread by Christian Heckendorf <mbie at ulmus dot me> who reported some whitespace issues in parse.c.
2016-04-10Clean up and complete the lists of allowed syscalls.Theo Buehler
With input from schwarze@ and semarie@. "go ahead" schwarze@ (documentation perspective only, without checking factual accuracy) ok semarie@ on an earlier version
2016-04-09For pointers, use NULL rather than 0; no functional change;Ingo Schwarze
from Pedro Giffuni via Christos Zoulas.
2016-04-09Delete 26 wrapper macros and two wrapper functions that are noIngo Schwarze
longer needed now that we always compile with wide character support, reducing code obfuscation. OK czarkoff@ martijn@. Diff also proofread by Christian Heckendorf <mbie at ulmus dot me>.
2016-04-09Always compile with WIDECHAR on and delete that preprocessor switch.Ingo Schwarze
OK martijn@. Diff also proofread by Christian Heckendorf <mbie at ulmus dot me>.
2016-04-09Reset the terminal to its initial state before exiting a programIngo Schwarze
using libedit, using code from NetBSD tty.c rev. 1.42, 1.48, 1.49, 1.58, and 1.59. Code mostly by Christos Zoulas, one bug report by John Hein, one additional bugfix by me (rev. 1.59). While here, switch t_mode to unsigned char, which is sufficient, also from NetBSD. OK martijn@. Also checked by Christian Heckendorf <mbie at ulmus dot me>.
2016-04-09tweak MALLOC_STATS printing (switched off by default), prodded byOtto Moerbeek
Michael McConville
2016-04-09redundant memset(3), from Michael McConville, ok armani@Otto Moerbeek
2016-04-09replace 0xf57ff05f with dmb syJonathan Gray
spotted by guenther
2016-04-09Document (near) standards conformancePhilip Guenther
based on diff by mmcc@
2016-04-07Use the "new" audio(4) api and delete all the useless code to dealAlexandre Ratchov
with artificial complications caused by the old api. No behaviour change. ok armani, semarie
2016-04-06bad spell of whether...Jason McIntyre
2016-04-06add two functions from libpcap-1.7.4 which are required by at least gopacketJasper Lievisse Adriaanse
ok lteo@ "go for it" dlg@
2016-04-05Move more fcntl(,F_GETFL,0) -> fcntl(,F_GETFL).Kenneth R Westerback
No functional change. ok guenther@
2016-04-05Prefer _MUTEX_*LOCK over _THREAD_PRIVATE_MUTEX_*LOCK() when thread-specificPhilip Guenther
data isn't necessary. ok mpi@, ok&tweak natano@
2016-04-05Update example in comment: setlogin doesn't use {PROTO,DEF}_WRAP() nowPhilip Guenther
2016-04-04get* can change *lineptr on failurePhilip Guenther
ok sthen@
2016-04-03Document ``use after free'' error messageOtto Moerbeek
2016-04-02Wrap <pthread.h> and <pthread_np.h> to eliminate PLT entries for internalPhilip Guenther
references. Use _thread_pagesize for the semaphore mmap size instead of calling getpagesize() each time. ok beck@
2016-04-02Eliminate the need to explicitly invoke syscalls via their _thread_sys_*Philip Guenther
aliases by using a macro REDIRECT_SYSCALL() to map the symbols. Apply that to getthrid(), sysctl(), and issetugid() as well. ok mpi@ beck@
2016-04-02refactor bpf_filter a bit.David Gwynne
the code was confusing around how it dealt with packets in mbufs vs plain memory buffers with a lenght. this renames bpf_filter to _bpf_filter, and changes it so the packet memory is referred to by an opaque pointer, and callers have to provide a set of operations to extra values from that opaque pointer. bpf_filter is now provided as a wrapper around _bpf_filter. it provides a set of operators that work on a straight buffer with a lenght. this also adds a bpf_mfilter function which takes an mbuf instead of a buffer, and it provides explicit operations for extracting values from mbufs. if we want to use bpf filters against other data structures (usb or scsi packets maybe?) we are able to provide functions for extracting payloads from them and use _bpf_filter as is. ok canacar@
2016-03-30Major bump for getlogin*/ptrace changesPhilip Guenther
2016-03-30Turd polish: use HIDDEN= instead of PSEUDO= for ptrace syscall stub, toPhilip Guenther
make its underlying symbol name look like others.