summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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-02Use open(tty, O_WRONLY) + fdopen() instead of fopen(tty, "w") toTodd C. Miller
keep stdio from opening with O_CREAT which would require pledge cpath.
2016-04-02Another use for fcntl() and thus of the superfluous 3rd parameterKenneth R Westerback
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 aMark Kettenis
driver. ok mpi@
2016-04-02Simplify defining the various set lists.Robert Peichaer
Feedback from and OK halex@ OK krw@
2016-04-02Remove unused variable.Robert Peichaer
OK krw@
2016-04-02forgot to cvs rm locally in previous commitRobert Peichaer
2016-04-02- merge install.sh into install.sub as do_install()Robert Peichaer
- 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 filesMarc Espie
- 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 useMarc Espie
2016-04-02mark the bpf_mem ops as Static.David Gwynne
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()David Gwynne
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.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-04-02Add support for I2C HID devices with GPIO signalled interrupts.Jonathan Gray
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 functionJonathan Gray
pointer can be used with gpio and acpi intr_establish. ok kettenis@
2016-04-01update currency exchange rates;Jason McIntyre
2016-04-01Move atomics.h include dance to an earlier stageMike Belopuhov
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 changeMike Belopuhov
2016-04-01Tweak rcctl wording.Antoine Jacoutot
from ian@
2016-04-01Rename the 'faulty' list action to 'failed'; it clearer.Antoine Jacoutot
prodded by matthieu@ ok millert@ jung@ sthen@
2016-04-01no Pp before Sh;Jason McIntyre
2016-04-01Remove outdated unused compat define. mono_time no longer exists andJonathan Gray
the kernel has had time_second since 2004.
2016-04-01Building kernels with PPPOE_SERVER enabled has been broken for at leastJonathan Gray
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 EOLDamien Miller
2016-04-01syncJonathan Gray
2016-03-31For consistency, omit the variable name in rdaemon() prototype.Jeremie Courreges-Anglas
2016-03-31Go in the background much later, to reduce possible silent failures.Jeremie Courreges-Anglas
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 clonesMartin Natano
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 "<>".Ingo Schwarze
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 "<>".Ingo Schwarze
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 collisionAlexander Bluhm
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 asReyk Floeter
"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-31syncReyk Floeter
(I forgot: previous change to usbdevs was OK jsg@)
2016-03-31Add Aruba CP210x for the integrated "Aruba Networks USB to UART BridgeReyk Floeter
Controller" that is found in HP Aruba 7xxx wireless controllers.
2016-03-31Don't forget to initialize scope_id. This fixes semarie@ and sthen@'sVincent Gross
regressions with dhcpcd. Ok sthen@
2016-03-31Remove fallback from moduli to "primes" file that was deprecated in 2001Darren Tucker
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 hppa64Jonathan Gray
2016-03-31Simplify MACHINE tests, the only platforms in the tree without wsdisplayJonathan Gray
are octeon and hppa64.
2016-03-30Dump strdup()/free() dance and just use a local buffer to translate helpKenneth R Westerback
messages to GPT. Unchecked strdup() result noted by mestre@. ok mestre@ tim@
2016-03-30Add support for multitouch input to wsmouse.Ulf Brosziewski
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.Vincent Gross
2016-03-30Avoid compiler warning about zero-length printf format strings.Todd C. Miller
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".Todd C. Miller
2016-03-30The change to make mkstemp(3) require at least 6 trailing Xs brokeTodd C. Miller
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@
2016-03-30Better support for alphas without all IEEE-mode instructionsAndrew Fresh
From Miod Vallat I trust miod deraadt@
2016-03-30Fix optimization for alphas without the ``precise arithmetic trap'' extensionAndrew Fresh
From Miod Vallat I trust miod deraadt@
2016-03-30syncTheo de Raadt
2016-03-30syncTheo de Raadt
2016-03-30Bump the listen() backlog up, some people have scripts that run up a lotNicholas Marriott
of clients quickly.
2016-03-30Use in6_pcbhashlookup() in in6_pcbconnect(). We don't need in_pcblookup()Vincent Gross
broad search and in_pcbconnect() already uses in_pcbhashlookup(). ok bluhm@ mpi@ jca@