summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/reallocarray.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2016-04-03syncjsg1-1/+1
2016-04-03Long overdue updates for timecounter changes.jsg9-102/+44
Feedback from jmc@, ok guenther@ for an earlier version.
2016-04-03ath(4) 11g support code is broken and not enabled. Document this limitation.stsp1-2/+5
2016-04-03mark the packet buffer in bpf_filter as bounded by the pktlen argdlg1-2/+3
ok guenther@
2016-04-02Wrap <pthread.h> and <pthread_np.h> to eliminate PLT entries for internalguenther10-10/+226
references. Use _thread_pagesize for the semaphore mmap size instead of calling getpagesize() each time. ok beck@
2016-04-02Eliminate superfluous 3rd params in fcntl(F_GETFL) calls.krw3-9/+10
ttymsg.c doesn't need to include fcntl.h. Tweak standard fd sanitising to be more like the sanitise_stdfd() used elsewhere, though other uses of 'nullfd' make importing sanitise_stdfd() itself unappetizing. Add a die(0) if dup2() fails. suggestions & ok bluhm@
2016-04-02Eliminate the need to explicitly invoke syscalls via their _thread_sys_*guenther5-16/+32
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-02Use open(tty, O_WRONLY) + fdopen() instead of fopen(tty, "w") tomillert1-2/+4
keep stdio from opening with O_CREAT which would require pledge cpath.
2016-04-02Another use for fcntl() and thus of the superfluous 3rd parameterkrw3-27/+70
is when sanitising standard fd's before calling daemon(). Use a tweaked version of the ssh(1) function in all three places found using fcntl() this way. ok jca@ beck@
2016-04-02Reduce dmesg spam by knocking out some acpi hardware IDs that don't need akettenis1-2/+22
driver. ok mpi@
2016-04-02Simplify defining the various set lists.rpe1-8/+4
Feedback from and OK halex@ OK krw@
2016-04-02Remove unused variable.rpe1-2/+1
OK krw@
2016-04-02forgot to cvs rm locally in previous commitrpe2-0/+0
2016-04-02- merge install.sh into install.sub as do_install()rpe23-492/+424
- merge upgrade.sh into install.sub as do_upgrade() - delete install.sh and upgrade.sh - make install.sub executable - turn install and upgrade into symbolic links to install.sub - add autoinstall symbolic link to install.sub - change dot.profile to use these symlinks - introduce a -m option to set MODE in install.sub - alternativly set MODE and AUTO depending on PROGNAME - execute the do_{install,upgrade) functions depending on $MODE OK halex@, krw@ 'go for it' deraadt@
2016-04-02streamline the code that checks meta information before extracting filesespie3-47/+71
- verify_modes should only verify modes - put the whole checking code in one single routine in validate_meta, makes the size checking code more obvious - document what's going on - prevent PkgCreate from creating impossible packages, only a few Ustar objects are actually usable.
2016-04-02sprinkle spaces to make more obvious which fields we useespie1-2/+2
2016-04-02mark the bpf_mem ops as Static.dlg1-9/+12
Static is a nop in _KERNEL, but is static in userland and therefore libpcap
2016-04-02mark the program and buffer as const in bpf_filter()dlg2-4/+5
other projects have already done this, and there's software (eg, gopacket) which now expects it. based on a discussion with jasper@ and canacar@ ok jasper@
2016-04-02refactor bpf_filter a bit.dlg4-189/+205
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-04-02Add support for I2C HID devices with GPIO signalled interrupts.jsg3-10/+47
Required for the keyboard and touchpad on the ideapad 100s. ok kettenis@
2016-04-02Make the gpio intr_establish callback return an int so the same functionjsg3-9/+11
pointer can be used with gpio and acpi intr_establish. ok kettenis@
2016-04-01update currency exchange rates;jmc1-40/+40
2016-04-01Move atomics.h include dance to an earlier stagemikeb1-12/+13
Otherwise proc.h & friends pick it up before we manage to perform our MULTIPROCESSOR dance. This time I've made sure we get LOCK prefixes with an objdump. Bug reported by Evgeniy Sudyr, thanks!
2016-04-01Revert the clone bitmap enlargement changemikeb3-20/+7
2016-04-01Tweak rcctl wording.ajacoutot1-2/+2
from ian@
2016-04-01Rename the 'faulty' list action to 'failed'; it clearer.ajacoutot3-11/+11
prodded by matthieu@ ok millert@ jung@ sthen@
2016-04-01no Pp before Sh;jmc1-2/+1
2016-04-01Remove outdated unused compat define. mono_time no longer exists andjsg1-4/+1
the kernel has had time_second since 2004.
2016-04-01Building kernels with PPPOE_SERVER enabled has been broken for at leastjsg3-215/+4
eleven years, remove it. Despite what the wildly outdated time(9) claims, there is no longer globally visible "struct timeval mono_time" or "struct timeval time". ok mpi@ sthen@ mikeb@
2016-04-01whitespace at EOLdjm1-2/+2
2016-04-01syncjsg18-0/+18
2016-03-31For consistency, omit the variable name in rdaemon() prototype.jca1-2/+2
2016-03-31Go in the background much later, to reduce possible silent failures.jca1-5/+37
rev. 1.34 moved the call to daemon() before the chroot, thus hiding errors if the target directory or _tftpd user don't exist. To go in the background later we need to preopen /dev/null. The code is put in a daemon(3) like function that could be used in other daemons. Lack of error reporting spotted by ajacoutot@, initial diff from dlg@. rdaemon() "concept" discussed with semarie@. ok ajacoutot@ dlg@
2016-03-31Increase size of the clone bitmap. A limit of only 64 device clonesnatano3-7/+20
turned out to be too low for the upcoming work on cloning bpf. The new limit is 1024 device clones. As part of the size increase, the bitmap has been changed to be allocated separately to avoid bloating all device nodes, as suggested by guenther, millert and deraadt. ok millert mikeb
2016-03-31Don't use .Aq for syntax elements that require ASCII "<>".schwarze1-4/+4
Bug reported by Christian Heckendorf <mbie at ulmus dot me>, patch by me. OK jmc@ bentley@
2016-03-31Don't use .Aq for syntax elements that require ASCII "<>".schwarze4-34/+34
Patch from Christian Heckendorf <mbie at ulmus dot me>. OK jmc@ bentley@
2016-03-31If one of the TCP syn cache buckets overflow, it might be a collisionbluhm1-1/+6
attack against our hash function. In this case, switch to the passive syn cache as soon as possible. It will start with a new random seed for the hash. input and OK mpi@
2016-03-31The USB console port on Aruba 7xxx wireless controllers shows up asreyk2-3/+5
"Aruba Networks USB to UART Bridge Controller". It uses a Silabs CP210x chip with a modified vendor Id that is supported by uslcom(4). OK jsg@
2016-03-31syncreyk2-4/+16
(I forgot: previous change to usbdevs was OK jsg@)
2016-03-31Add Aruba CP210x for the integrated "Aruba Networks USB to UART Bridgereyk1-1/+5
Controller" that is found in HP Aruba 7xxx wireless controllers.
2016-03-31Don't forget to initialize scope_id. This fixes semarie@ and sthen@'svgross1-1/+2
regressions with dhcpcd. Ok sthen@
2016-03-31Remove fallback from moduli to "primes" file that was deprecated in 2001dtucker2-10/+8
and fix log messages referring to primes file. Based on patch from xnox at ubuntu.com via bz#2559. "kill it" deraadt@
2016-03-31remove files that are not built on hppa64jsg1-4/+0
2016-03-31Simplify MACHINE tests, the only platforms in the tree without wsdisplayjsg3-22/+7
are octeon and hppa64.
2016-03-30Dump strdup()/free() dance and just use a local buffer to translate helpkrw1-9/+7
messages to GPT. Unchecked strdup() result noted by mestre@. ok mestre@ tim@
2016-03-30Add support for multitouch input to wsmouse.bru7-166/+1285
This change adds new input-processing functions to wsmouse and adapts the touchpad drivers. ok mpi@, shadchin@
2016-03-30Cover the case where we are bound to [::] and SO_REUSEADDR is not set.vgross2-14/+24
2016-03-30Avoid compiler warning about zero-length printf format strings.millert2-8/+10
Allow a NULL format in message() and switch the two calls to error() and message() with an empty format string to using NULL. OK deraadt@
2016-03-30In setnonblocking() rename "mode" variable to "flags".millert1-6/+6
2016-03-30The change to make mkstemp(3) require at least 6 trailing Xs brokemillert1-14/+8
rdistd for directories that do not exist on the destination. Calling mkstemp(3) twice with the same format (filled in by the first mkstemp(3) call) is bogus so call chkparent() *before* mkstemp(3) instead of only on error. This costs an extra lstat(2) in the case where the directory already exists but simplifies the code and doesn't rely on undefined behavior (namely, the state of the template when mkstemp fails). OK tim@