summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-01-24Add bus_dmamem_alloc_range(9) to allow drivers to allocate DMA'able memoryMark Kettenis
within a range that is more (or less) restrictive than the default range. ok deraadt@, stsp@
2015-01-24Move -lz late in the linker commandline for things to build on static arches.Miod Vallat
2015-01-24Add back <sys/param.h>; it's needed for MACHINE_STACK_GROWS_UP.Mark Kettenis
ok millert@, tobiasu@
2015-01-24preserve .PP before .RE; effect found in audio/pms(1)Ingo Schwarze
2015-01-24Convert openssl(1) sess_id to the new option handling.Doug Hogan
input + ok jsing@
2015-01-24Convert openssl(1)'s rsa.c to the new option handling code.Doug Hogan
input + ok jsing@
2015-01-24Strangely, ignoring the roff(7) .na request was implemented in the man(7)Ingo Schwarze
parser. Simplify the code by moving it into the roff(7) parser, also making it work for mdoc(7).
2015-01-24Remove a comment that is no longer true with MCLGETI and jumbos onBrad Smith
some revisions of the chipsets.
2015-01-24change .Cm to .Ar for macro argumentsIngo Schwarze
2015-01-24Support .RE with an argument; needed for audio/pms(1).Ingo Schwarze
2015-01-24Userland (base & ports) was adapted to always include <netinet/in.h>Theo de Raadt
before <net/pfvar.h> or <net/if_pflog.h>. The kernel files can be cleaned up next. Some sockaddr_union steps make it into here as well. ok naddy
2015-01-24In shell statements use shell pattern '+([0-9])', not sed regularKenneth R Westerback
expression '[0-9]*'. Should fix problem reported by jsg@ where 'hostname.vlan6.bak' was deemed to be an active vlan specification during upgrade. No change to script output. Tested by rpe@. ok halex@ rpe@
2015-01-23More missing $OpenBSD$.Kenneth R Westerback
ok nicm@
2015-01-23a wee little bit more cleanup (more const and remove noise from CDIAGFLAGS...Marc Espie
-pedantic kind of requires -std=c99 here to avoid LL warnings) okay miod@, millert@
2015-01-23-Wpointer-sign is supported by gcc 4 only.Miod Vallat
2015-01-23While ignoring the .ta (set tab stops) and .ti (temp indent) requestsIngo Schwarze
is sometimes harmless, it often causes seriously ugly output, so flag these requests as unsupported rather than ignoring them. Discussed with naddy@.
2015-01-23braces to open a function go on their own line like god intendedTed Unangst
2015-01-23delete some code that doesn't (and shouldn't) run. ok deraadt millertTed Unangst
2015-01-23Make km_alloc(9) use the direct map for all "phys contig" mappings requestedMark Kettenis
by the caller on architectures that implement them. Make sure that we physically align memory such that we meet any demands on virtual alignment in this case. This should reduce the overhead of mapping large pool pages for pools that request dma'able memory. ok deraadt@, dlg@
2015-01-23Remove now-unused DebugFlags.Todd C. Miller
2015-01-23Ensure that a ServerKeyExchange message is received if the selected cipherJoel Sing
suite uses ephemeral keys. This avoids an issue where an ECHDE cipher suite can effectively be downgraded to ECDH, if the server omits the ServerKeyExchange message and has provided a certificate with an ECC public key. Issue reported to OpenSSL by Karthikeyan Bhargavan. Based on OpenSSL. Fixes CVE-2014-3572. ok beck@
2015-01-23Killing my darling. Functionality and binary name moved to pkg_* andAlexander Hall
friends. So long and thanks for all the fish. ok deraadt@
2015-01-23Let .Aq/.Ao/.Ac print "<>" instead of the normal "\(la\(ra"Ingo Schwarze
when the only child is .Mt, not when the preceding node is .An, to improve robustness. Triggered by a question from Svyatoslav Mishyn <juef at openmailbox dot org> (Crux Linux).
2015-01-23typoMarc Espie
2015-01-23remove a bunch of dangerous casts (useless casts from void * to somethingMarc Espie
else, in some cases by adding extra temporary variables. IMO, it's much better practice to do void *a; int *p = a; *p = 42; rather than void *a; *(int *)a = 42; okay miod@... to be revisited for some possible const additions later.
2015-01-23Normal OpenBSD code fits in an 80 column term. From Jim Smith, ok dlg.Stuart Henderson
2015-01-23break after return is useless.David Gwynne
2015-01-23move from deferring vd requests with a task per message to a ringDavid Gwynne
of pointers to vd requests, and a single task to notify the taskq that there's work on the ring. the ring is modelled on what you usually get with network cards, which is an array with a producer and consumer index. the interrupt handler fills an entry in the ring at the producers index and increments it. the task reads entries at the consumer index and increments it until it reaches the same value as the producer. tested and slightly tweaked by kettenis@ ok kettenis@
2015-01-23get the args right for the fallback atomic_{cas,swap}_ptrDavid Gwynne
implementations, and then cast the pointer to the right type for the gcc builtins.
2015-01-23zap trailing whitespace;Jason McIntyre
2015-01-23Remove the OK and ERR macros. They obfuscate the code and don'tTed Unangst
help legibility. (unix system calls use 0 for ok, but hundreds of other projects use 1 to indicate success.) Despite the name, many system calls (e.g., open) also return not OK values for success. It also cleans up some weird code like int crontab_fd = OK - 1; This diff is mechanical in nature. Later I will fix the bugs it reveals. ok deraadt
2015-01-23don't need to define debugging 0 anymoreTed Unangst
2015-01-23minor debug removal cleanupTed Unangst
2015-01-23remove debug code.Ted Unangst
I think the level of debug code in cron is excessive for a program that has reached feature complete. If cron needs to provide more information to the user about its operational status, I think syslog would be more appropriate. (The debug flags also disable forking into the background, so they aren't even that useful for debugging a live system.) ok deraadt millert
2015-01-23Wonders of roff(7): Integer numbers in numerical expressions can carryIngo Schwarze
scaling units, and some manuals (e.g. in devel/grcs) actually use that, so let's support it. Missing feature reported by naddy@.
2015-01-22Slightly improve \w width measurements:Ingo Schwarze
Count special characters with the same width as ASCII characters and treat all other escape sequences as if they had a width of 0. Certainly not perfect, but a bit better. For example, GNU RCS ci(1) needs this; reported by naddy@.
2015-01-22delete useless casts. ok deraadt guenther millertTed Unangst
2015-01-22remove a stupid -Wstrict-prototype warning by making the hash functionTed Unangst
static. noticed by florian riehm
2015-01-22Traditional roff(7) explicitly allows certain control charactersIngo Schwarze
in the input stream (SOH, STX, ETX, ENQ, ACK, BEL, BS) for specific purposes (leaders, backspace, delimiters, .tr), but making sure these don't leak through to the output is tricky, so mark them as unsupported for now.
2015-01-22Fix logic botch causing warnings with Clang. Reported by dhill, matchesMiod Vallat
similar changes in FreeBSD a few years ago.
2015-01-22Possibly uninitialized variable. From Clang via dhill.Miod Vallat
2015-01-22heirarchy -> hierarchy;Jason McIntyre
2015-01-22Document that changes made to the directory hierarchy of the chrootTodd C. Miller
jail may inadvertanly allow a process to escape. Also mention the problem of directory fd passing. Based on a diff from deraadt@
2015-01-22Provide a warning about chroot misuses (which sadly, seem to have becomeTheo de Raadt
quite popular because shiny). sshd cannot detect/manage/do anything about these cases, best we can do is warn in the right spot in the man page. ok markus
2015-01-22pool_setipl() on both pmap pools as a workaround for some sort of MPTheo de Raadt
race. This will certainly be revisited, but too much time has been spent on it for now. ok mpi
2015-01-22Don't let a failing mparse_open() clobber the filename pointer;Ingo Schwarze
fixes error message content and a use after free for .so with non-existent target when -Wall or -Tlint is given.
2015-01-22Processing $OpenBSD$ as well as sccs's @(#) is an OpenBSD extension, andKenneth R Westerback
should stop displaying the line at the 2nd '$'. Clarify intended behaviour in man page. ok millert@ beck@ deraadt@
2015-01-22Use /etc/services names in all the default pf rules (most alreadyKenneth R Westerback
did). This allows any local changes to /etc/services to be effective if all you have is the default. Issue pointed out by Brian S. Vangsgaard on bugs@. Thanks! ok phessler@ deraadt@
2015-01-22Clean up includes, while here fix a white space which lead to a falseFlorian Obser
positive during grep'ing. OK reyk
2015-01-22Let powerpc's bus_space(9) use the same pmap and uvm interfaces than theMartin Pieuchot
other archs. Specify the caching policy by passing PMAP_* flags to pmap_kenter_pa() like the majority of our archs do and kill pmap_kenter_cache(). Spread some pmap_update() along the way. While here remove the unused flag argument from pmap_fill_pte(). Finally convert the bus map/unmap functions to km_alloc/free() instead of uvm_km_valloc/free(). Inputs from kettenis@ and miod@, ok miod@