summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-01-12#define LOFF_T off_tKenneth R Westerback
#define llseek lseek #define LOFF_T_MAX LLONG_MAX I mean, really? Nuke'em and use off_t, lseek and LLONG_MAX. Also make a couple of checks for overflow of off_t value more likely to work. ok millert@
2016-01-12use explicit_bzero() more liberally in the buffer code; ok deraadtDamien Miller
2016-01-12Move prototypes of local functions from lp.h to the .c files and maketb
functions static if possible. Move delay() to lpd/printjob.c and fix an annoying typo. ok deraadt@
2016-01-12remove lint annotationsmmcc
ok nicm@
2016-01-12naddy observed the TSC fallback code could encounter (high word) %edxTheo de Raadt
being 0; after multiply there is no perturbance to the from-disk entropy buffer. Further investigation showed perturbance was biased towards the lower bytes of a word. Compensate for this with a hocus pocus bit-spreading operation which applies a result byte by byte. discussion with kettenis, tb, mlarkin, naddy ok naddy
2016-01-12Another unused file for the attic.Kenneth R Westerback
2016-01-12The only thing in pdisk.h is an unused #define. So don't include it.Kenneth R Westerback
2016-01-12Move unused files to attic.Kenneth R Westerback
2016-01-12Use normal err/errx/warn/warnx rather than handrolling new ones. MoveKenneth R Westerback
usage() to pdisk.c and nuke do_help() and '-h'. ok jasper@ deraadt@
2016-01-12properly initialize quirks before sending them to hid layer, brokenJoshua Stein
during hid abstraction problem noticed and fix tested by abieber
2016-01-12zap trailing whitespaceTheo de Raadt
2016-01-12accurately describe that the (3) malloc option settings are onlyTheo de Raadt
inspected on the first call to a malloc(3) family function. ok tedu
2016-01-12Remove LINUNUM, a needless alias for off_t. Also, remove a redundantmmcc
condition. ok nicm@
2016-01-12rename new i2c_attach_args fields to avoid conflict with cpp magic inTheo de Raadt
isavar.h (a few parts of the tree include both) ok jcs
2016-01-12Let smtpd start on machines without a FQDN as hostname.Sunil Nimmagadda
Ok millert@ gilles@ jung@
2016-01-12dev/isa/isavar.h does not appear to be needed by any of consumers.Theo de Raadt
(noticed because of another issue: one consumer is a high level busdriver, but also contains i2c support, so the isa #define for ia_irq clashes against i2c)
2016-01-12include files.hid before files.i2cTheo de Raadt
2016-01-12Use uiomove() instead of uiomovei(); from Martin NatanoStefan Kempf
ok deraadt@
2016-01-12Remove media interation types, structures and functions. They are not usedKenneth R Westerback
anywhere, as evidenced by everything still compiling after they are gone.
2016-01-12Retire '-i', a poorly documented interactive mode that tries toKenneth R Westerback
mimic the 20th century MacOS version of pdisk more closely than the usual interactive editor. One set of commands is enough for anyone. ok jasper@
2016-01-12A couple of unused variables have sneaked in from the debug codeMike Belopuhov
2016-01-12Convert XenStore code to free running producer/consumer indicesMike Belopuhov
After some hair pulling while implementing xnf(4) I've realised that Xen uses free running producer/consumer indices wrapping with their type (unsigned 32 bit integer). Later I've confirmed it with free chapters of the "The Definitive Guide to the Xen Hypervisor" by David Chisnall available online.
2016-01-12Kill the "doclusterread" and "doclusterwrite" defines.Martin Pieuchot
They are defined to 0 since the import of ext2fs 19 years ago.
2016-01-12Remove the "doclusterread" and "doclusterwrite" buttons.Martin Pieuchot
Cluster read is unconditionnally enabled for FFS since some years and toggling "doclusterread" has no effect. OpenBSD no longer support write clustering since the Dynamic Buffer Cache went in, so there is reason to delay the call to bawrite(9). Tested by Mathieu, ok dlg@
2016-01-12fix a misplaced curly braceStefan Sperling
2016-01-12Use task to execute command except polling context.Masao Uebayashi
2016-01-12Do not print an error if the list of prefixes is empty.Martin Pieuchot
This is becoming more and more comon now that the list is only used for autoconfigured prefix. From Florian Riehm.
2016-01-12Prevent a possible NULL-derefenced introduced by the move of RA sleepingMartin Pieuchot
code in a task. Such dereferenced can be triggered by receiving a RA with the 'on-link' bit set to 0 apparently generated by dnsmasq and reported by matthieu@. ok matthieu@, sthen@, bluhm@
2016-01-12Remove wireless turbo mode support. It is a non-standard extensionStefan Sperling
which only worked with ath(4) devices from a decade ago. Diff tested on ath(4) hardware by me to verify that 11a/b modes still work. ok reyk deraadt chris sthen kettenis
2016-01-12Compare if the prefix lengths are equal rather than checking if theMartin Pieuchot
netmasks are non-NULL for RTM_CHANGE and RTM_LOCK. Fix route(8) regressions tests 14 and 16 with ART kernels. These tests were failing because with ART, RTF_HOST routes always have a mask. ok claudio@, bluhm@
2016-01-12Prevent a NULL-reference if SIOCGVH is issued without carpdev argument.Martin Pieuchot
Problem reported by and diff tested by Fabian Raetz, thanks! ok benno@, bluhm@
2016-01-12Use task to execute watchdog tickle.Masao Uebayashi
2016-01-12The ksh(1) vi editing mode code is much harder to understand thanIngo Schwarze
the emacs editing mode code, so add a testsuite before touching it. To avoid having to deal with the horrendous low-level terminal handling and high-level command execution code, write the tests in unit test style rather than in integration test style, by providing minimal glue to run vi.c stand-alone. In case relevant internal interfaces in sh.c, edit.c, and friends are changed, the glue may need adjustment. Not testing completion and history at this time, only line editing.
2016-01-12get caught up with files krw removedTheo de Raadt
2016-01-12Refactor ipmi_watchdog(); split tickle and set into separate functions.Masao Uebayashi
2016-01-12Improve emulation of PM registers on Hardware-redcued ACPI by emulatingMark Kettenis
SPL_TYPx, SLP_EN and WAK_STS using the new SLEEP_STATUS_REG and SLEEP_CONTROL_REG registers. Makes the transition into S5 (powerdown) work on the ASUS X205TA. ok deraadt@, mlarkin@
2016-01-12syncTheo de Raadt
2016-01-12Since we use the disklabel size info we are always in 'device sizeKenneth R Westerback
mode' and '-c' and the '-d' command to toggle cflag are pointless since cflag is never examined.
2016-01-12Add dwiic, a driver for the Synopsys DesignWare i2c controller foundJoshua Stein
on the Samsung ATIV Book 9 laptop. This initial version only supports ACPI config/attachment. Add ihidev, a HID-over-i2c driver largely based on uhidev. dwiic handles attaching ihidev devices found in ACPI. Add ims, a HID-over-i2c mouse/trackpad driver to get basic cursor and button functionality from HID-compliant i2c trackpads. ok kettenis deraadt
2016-01-12The data for CGI_{METHOD,TIME,TZ} comes from an external source.Robert Peichaer
Validate before assignment. with feedback from and OK halex@ OK krw@
2016-01-12post the packet on em_82547 chips after bpfDavid Gwynne
now that start and txeof can run on different cpus, txeof could have freed the mbuf before bpf got to it.
2016-01-11More '-v' leftovers (usage).Kenneth R Westerback
2016-01-11Remove some '-v' leftovers. Pointed out by jasper@.Kenneth R Westerback
2016-01-11Nuke now unused files.Kenneth R Westerback
ok deraadt@
2016-01-11open_pathname_as_media() simply called open_file_as_media() whichKenneth R Westerback
takes the same parameters and returns the same value. Nuke open_pathname_as_media() and call open_file_as_media() directly. Nothing else from pathname.[ch] is used so remove them from build in preparation for moving them to the attic. ok deraadt@
2016-01-11Mention sdhc* at acpi?.Mark Kettenis
2016-01-11Enable sdhc* at acpi?.Mark Kettenis
2016-01-11Make sdhc(4) attach to hardware IDs "80860F14" and "PNP0FFF".Mark Kettenis
2016-01-11Add a "mux -1" locator to wsdisplay(4) instances representing secondaryMark Kettenis
displays. This makes sure the keyboard mux gets picked up by the primary (console) display and that USB keyboards get paired with the console even if they are not marked as the console keyboard. This is what most people expect to happen. If you really want to associate your USB keyboard with a secondary display, you can detach it from the mux using wsconscfg -f /dev/ttyCcfg -k -d and attach it to another display using wsconscfg -f /dev/ttyDcfg -k
2016-01-11This adds the host_error output and the http code (when available) to theSebastian Benoit
host-check log. ok claudio@