summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-03-17Switch (non-curses, non-ksh) programs that use COLUMNS to a single idiom.Anthony J. Bentley
Previously behaviors were all over the map. This changes them to use COLUMNS first, and either terminal width or a hardcoded value (typically 80) as appropriate. ok deraadt@; man bits ok jmc@
2016-03-17Only attempt to build the pci sdhc attachment when it is configured.Jonathan Gray
Don't require it when building other sdhc attachments. From Patrick Wildt.
2016-03-17- add realloc_pages to move a buffer's physmem from one range to another.Bob Beck
- modify B_DMA handling to be in vfs_biomem.c - change buffer allocation to try allocations with NOWAIT and to throw away clean pages if allocation fails - allocate with WAITOK only if you can't throw away enough pages to succeed "probably sound" deraadt@
2016-03-17explicit_bzero for asn1 objects on free. Too often these contain sensitive ↵Bob Beck
information and they should not be a performance bottleneck ok miod@ krw@
2016-03-17Add error checking for COLUMNS/LINES environment variables.Anthony J. Bentley
It would be better to replace all the complicated existing code with a simple idiom, and this is being worked on. But for the moment, preventing vi from crashing is worthwhile. ok jung@
2016-03-16Make urndis(4) print tx/rx errors only if compiled in DEBUG mode.Stefan Sperling
These printfs were causing too much noise in dmesg during regular operation. And don't forget to count input errors. ok sthen@ mpi@
2016-03-16Remove a (now) obsolete comment about shortened IPv4 syntaxmestre
OK deraadt@ jca@
2016-03-16Replace strncpy(3) calls for safer strlcpy(3)mestre
OK deraadt@ jca@
2016-03-16Replace atoi(3) calls for safer strtonum(3)mestre
OK deeradt@ jca@
2016-03-16notab mode is not enabled at the moment.Mark Lumsden
2016-03-16Remove redundant check.Stefan Kempf
The compiler is also smart enough to recognize that this is redundant. The resulting code on amd64 is basically equivalent (slightly different register allocation and instruction scheduling). ok mpi@ deraadt@
2016-03-16More "(<blah> *)0" -> NULL, avoiding any stdarg functions.Kenneth R Westerback
Feedback millert@ kettenis@
2016-03-16style(9) includesmmcc
ok nicm@
2016-03-16Add SDF_DYING checks to more functions in scsi disk, to prevent anAlexander Bluhm
use after free of the scsi link structure during detach. OK krw@
2016-03-16Prefer fseek(3) over rewind(3) since the latter although it also calls fseekmestre
then additionally it calls clearerr(3) deliberately but we want to catch any error that may happen and this way we couldn't catch it OK tb@
2016-03-16- Check if user running spamlogd(8) has root privileges and if not then stopmestre
program early - #define SPAMD_USER "_spamd" and use it on getpwnam(3) call - Set usage() as __dead void - Remove lint-style comments OK beck@
2016-03-16if ticks diverge from ifq_congestion too far the diff will go negativeDavid Gwynne
detect this and bump ifq_congestion forward rather than claim the system is congested for a long period of time. ok mpi@ henning@ jmatthew@
2016-03-16macros for the null, min, and max vlan ids.David Gwynne
ok mpi@ and tweaks from sthen@
2016-03-16There's no reason to have execute permissions on a file system image.natano
ok millert
2016-03-16knock out unused Pp in previous;Jason McIntyre
2016-03-16Expose new audio ioctls that do one thing only: start and stop DMA,Alexandre Ratchov
set and get parameters. This is much simpler. ok semarie, armani, tweaks from jmc
2016-03-16syncTheo de Raadt
2016-03-16Fix a typo in comment. Diff from Yuuichi Someya.YASUOKA Masahiko
2016-03-16remove cpp version of __sputc, since the inline version is all we haveTheo de Raadt
ever used. ok jsg
2016-03-16Transition to "Req-Sent" had been missing when RTA in "Opened". This causedYASUOKA Masahiko
a timer event leak. Diff from Yuuichi Someya.
2016-03-16Wrap a macro's args in parentheses. No binary change.mmcc
I'm discussing with deraadt@ whether it's a good idea to convert some of these to functions. The one changed by this commit probably isn't eligible because it defines only a for loop's condition, but many others in less(1) should probably be converted. ok millert@
2016-03-15'accomodate' -> 'accommodate' in comments.Kenneth R Westerback
Started by diff from Mical Mazurek.
2016-03-15execl(3) calls must have the last argument casted to (char *)NULLmestre
At the time when this was commited me and tb@ discussed that it shouldn't be changed, but still snucked in within a larger diff that we didn't notice. OK tb@
2016-03-15Update to tzdata2016b from ftp.iana.org.Todd C. Miller
2016-03-15Don't warn about valid time zone abbreviations. POSIX through 2000Todd C. Miller
says that an abbreviation cannot start with ':', and cannot contain ',', '-', '+', NUL, or a digit. POSIX from 2001 on changes this rule to say that an abbreviation can contain only '-', '+', and alphanumeric characters from the portable character set in the current locale. To be portable to both sets of rules, an abbreviation must therefore use only ASCII letters." Adapted from tzcode2015f. OK deraadt@ mestre@
2016-03-15remind people rewind is seldom a good choiceMarc Espie
okay jmc@
2016-03-15Allocate amap slots for a virtual memory range reserved with sbrk lazily.Stefan Kempf
This avoids wasting kernel memory if the user process does not make use of the allocated memory. Testing by sthen@ and tobiasu@, thanks! ok deraadt@
2016-03-15For amaps with only a few slots, allocate the slots via pool(9)Stefan Kempf
This saves some memory compared to using malloc, because there's no roundup to the next bucket size. And it reduces kmem pressure at least for some architectures (e.g. amd64). Testing by sthen@ and tobiasu@, thanks! ok sthen@ deraadt@
2016-03-15not compiled before commitTheo de Raadt
2016-03-15Fix size passed to free(), found the hard way by Nick PermyakovJeremie Courreges-Anglas
ok deraadt@
2016-03-15Ethernet drivers no longer need to include if_vlan_var.h for the VLANChristian Weisgerber
definitions; ok mpi@
2016-03-15pledge: wl_paths: resolvpath() logic errorSebastien Marie
prepend chroot value *after* canonization and not before.
2016-03-15pledge: wl_paths: corrects a memory leak in error code path and an evaluationSebastien Marie
order ("a += b > c" is the same as "a += (b > c)" which is wrong here) ok jca@
2016-03-15usbd_is_dying() can't be part of the common rtwn(4) driver code once weStefan Sperling
merge code from urtwn(4). So timeouts must move back to the bus-specific part of the driver. ok mpi@
2016-03-15Exar XR17V354 puc(4) device, "high speed quad uart".Mike Larkin
2016-03-15syncMike Larkin
2016-03-15Typo in part number in previous commit (fix Exar P/N from XR17C354 toMike Larkin
XR17V354)
2016-03-15syncMike Larkin
2016-03-15syncMike Larkin
2016-03-15Add Exar 4 port PCIe serial port (puc)Mike Larkin
2016-03-15spelling fix;Jason McIntyre
2016-03-15 o remove legacy code that defines abs(3) if it isn't availablemmcc
o inline an ugly and potentially risky macro of the form: #define x if (a) b; else o fix a >21 y.o. bug resulting from someone writing: puts("[nothing to parse], stdout"); when they meant: fputs("[nothing to parse]", stdout); ok canacar@
2016-03-15Remove now unused legacy uiomovei() function.Stefan Kempf
All its callers got reviewed and converted to use uiomove() properly. ok deraadt@
2016-03-15 o clean up a little whitespace and formattingmmcc
o move some declarations out of hexdump.h o mark some declarations as __dead or static from Michal Mazurek, with input from and ok tb@
2016-03-15Burn more LDT deadwood: stop allocating one for each idle thread,Philip Guenther
load the ldt register with the null selector (disabling use of it), stop reloading it on every context switch, and blow away the table itself, as well as the pcb and pmap bits that were used to track it (making sure to keep pcb_savefpu correctly aligned). testing naddy@ ok kettenis@ mpi@ mlarkin@