summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
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.
2016-03-30Eliminate userspace caching by getlogin_r/setlogin; make the getloginPhilip Guenther
syscall behave exactly like userspace getlogin_r() and rename it to match. Eliminate the reduced-to-no-op wrappers of the syscalls. Eliminate the unnecessary per-thread static buffering by getlogin(). ok kettenis@ deraadt@
2016-03-30some Xr adjustment to catch up with MLINKS removal;Jason McIntyre
2016-03-30for some time now mandoc has not required MLINKS to functionJason McIntyre
correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung
2016-03-27Don't need to define SYS_sycall herePhilip Guenther
noted by miod@
2016-03-27Switch to RSYSCALL: no special handling is needed here any more andPhilip Guenther
we do need the hidden _libc_syscall alias. from miod@
2016-03-27remove unused variableCharles Longeau
ok millert@
2016-03-27Add EISDIR to ERRORS and fix ETXTBSY description; from Piotr Durlej.Todd C. Miller
OK jmc@
2016-03-27Merge a memleak fix from BoringSSL 6b6e0b2:Michael McConville
https://boringssl.googlesource.com/boringssl/+/6b6e0b20893e2be0e68af605a60ffa2cbb0ffa64%5E!/#F0 ok millert@, beck@
2016-03-26fix typo: "prefer seek()" -> "prefer fseek()"Theo Buehler
ok deraadt@, stsp@
2016-03-26fix the last bunch of NAME sections that were overlooked earlierIngo Schwarze
such that the MLINKS removal can be committed after this; OK jmc@
2016-03-26remove some unused ancient test files from 4.4 BSDMichael McConville
ok guenther@, millert@, deraadt@
2016-03-24no more i386_get_ioperm(2);Jason McIntyre
2016-03-24Unbreak arm and m88k: COPY relocations for weak symbols that are overloadedPhilip Guenther
with strong symbols in ld.so don't do what we need, so put definitions back in crt0 and make ld.so update __progname like it does environ. report and testing patrick@ jsg@
2016-03-24Delete i386_{get,set}_ioperm(2) APIs and underlying sysarch(2) bits.Philip Guenther
They're no longer used by anything and should let us simplify the TSS handling. ok mikeb@ naddy@
2016-03-23Initialize _res_ext.nsaddr_list alongside _res.nsaddr_list.Christopher Zimmermann
Fallback to initialization with 0 when _res.nsaddr_list is to small to hold an IPv6 address. OK bluhm@