summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-06-30Kill dead code, what does a negative number of addresses on a carp(4)Martin Pieuchot
mean? ok deraadt@
2014-06-30remove backwards compat layer for alpha osf1. back then compilers andTheo de Raadt
the parsers sucked, so byte misalignment repair was requested. These days it means the parsers should improve. ok lteo
2014-06-30sys/types.h rather than sys/param.h, where applicable. avoid overreach.Theo de Raadt
2014-06-30sort includes much more sensiblyTheo de Raadt
2014-06-30limits.h rather than sys/param.hTheo de Raadt
2014-06-29Use the freshly improved roff_getname() functionIngo Schwarze
for the main roff request parsing routine, roff_parse(). In request or macro invocations, escape sequences now terminate the request or macro name; what follows is treated as arguments. Besides, the names of user-defined macros can now contain backslashes (eek!).
2014-06-29delete a #ifdef _KERNEL chunk protecting userland from an #if 0 chunkTheo de Raadt
2014-06-29Use the freshly improved roff_getname() functionIngo Schwarze
for the .de parsing routine, roff_block(), to correctly handle names terminated by escape sequences. Besides, this saves us 20 lines of code.
2014-06-29Major roff_getname() cleanup.Ingo Schwarze
* Return the name even if it is terminated by an escape sequence, not a blank. * Skip the full escape sequence using mandoc_escape(), not just the first byte. * Make it non-destructive, return the length instead of writing a '\0'. * Let .ds and .as cope with the above changes to the internal interface. * Fix .rm and .rr to accept an escape sequence as the end of a name. * Fix .nr and .rr to not set/delete a register with an empty name.
2014-06-29Bugfix in roff_setstrn():Ingo Schwarze
Do not call strcmp() on an array of char that might not be NUL-terminated.
2014-06-29Free "data" when it's no longer in use.Loganaden Velvindron
(Thanks to Brent Cook) OK from jsing@
2014-06-29Fix file descriptor leakLoganaden Velvindron
(Thanks to Brent Cook) OK from jsing@
2014-06-29Remove yet another unused file... a backup copy (minus copyright andJoel Sing
includes) follows this commit message:
2014-06-29KNF.Joel Sing
I just spent too long chasing a bug in here and really should have done this first. Gem of the day... is it an if test or a for loop? No, it is a super ifloop! if (!(flags & PKCS7_NOVERIFY)) for (k = 0; k < sk_X509_num(signers); k++) {
2014-06-29Remove another unused source file - I got suspicious when I found aJoel Sing
function that ended with: if (ret & 0x01) if (ret & V_ASN1_CONSTRUCTED) }
2014-06-29More KNF.Joel Sing
2014-06-29Don't ridiculously assume that sysctl.h will (through a set of extremelyTheo de Raadt
unfortunate circumstances) pull machine/cpufunc.h
2014-06-29If you want <sys/queue.h>, you need to include it. Don't assume thatTheo de Raadt
<sys/sysctl.h> will pull in the universe (I am working on breaking that assumption in a gentle fashion)
2014-06-29correct issetugid sense as spotted by Stijn van Drongelen.Theo de Raadt
Substantially expand the conditional to reduce potential for error.
2014-06-29do not need sys/disk.hTheo de Raadt
2014-06-28Don't use meaningless MAP_TRYFIXED flag in compat_linuxMatthew Dempsky
Pointed out by deraadt
2014-06-28syncTheo de Raadt
2014-06-28Add a missing word.Jeremie Courreges-Anglas
2014-06-28Fix a memory leak and another one that occurs in the error paths.Loganaden Velvindron
(Thanks to Brent Cook) OK from tedu@
2014-06-28Fix 9 memory leaks.Loganaden Velvindron
(Thanks to Brent Cook) With help from tedu@ OK from tedu@
2014-06-28Fix 2 memory leaks.Loganaden Velvindron
(Thanks to Brent Cook) OK from tedu@
2014-06-28espie points out <string.h> is needed for the AUDIO_INITINFO() macroMatthew Dempsky
2014-06-28Dv blah , Dv blehJason McIntyre
is more simply written as Dv blah , bleh
2014-06-28audio(4) has nothing to do with <string.h>Matthew Dempsky
2014-06-28Use Fa for vscsi(4) ioctl() commands.Matthew Dempsky
2014-06-28Fix indenting for bio(4) and pci(4) ioctl()s.Matthew Dempsky
2014-06-28Add argument types for bio(4) ioctl() commandsMatthew Dempsky
2014-06-28Use Dv and Fa as appropriate for describing video(4) ioctl() commands.Matthew Dempsky
2014-06-28Document the arg types for pci(4)'s ioctl() commands.Matthew Dempsky
2014-06-28Cleanup documentation for SCSI device driver ioctl()s.Matthew Dempsky
2014-06-28Add the userland facing drm header for nouveau.Jonathan Gray
This is required by the generic loader code in newer versions of Mesa even when we aren't building any nouveau drivers. The way these headers are used on Linux is with a kernel version and a libdrm version which are largely identical with the *_drm.h headers always installed by libdrm when libdrm is built with autoconf. In OpenBSD we have a single version of the _drm.h headers that are shared by the kernel and userspace and have our own simple Makefile for the libdrm build.
2014-06-28Use strtonum() instead of atoi(), and then impose what are we thinkTheo de Raadt
are the current range checks. Help from millert and lteo. Please test now that it is deployed and let us know if any numbers are off.. ok lteo
2014-06-27Fix mmap() flag usage: explicitly specify MAP_PRIVATE and drop uselessMatthew Dempsky
MAP_FILE and MAP_HASSEMAPHORE flags. Discussed with deraadt, tedu, and kettenis
2014-06-27zap unneccessary punctuation;Jason McIntyre
2014-06-27When building a BN on the stack in BN_div(), make sure to initialize all itsMiod Vallat
fields (i.e. the flags field) before using it. This is currently harmless, but might not be if we end up invoking other BN functions checking for constant-time processing requirement in the future.
2014-06-27re-init and init code paths are now more shared, so the getpid()-basedTheo de Raadt
portable code path must handle that; with brent cook
2014-06-27Cleanup ioctl.2 slightly:Matthew Dempsky
- Markup ioctl argument types with Fa - Be clearer that ioctl arguments are pointers to ints. Similar changes to follow for manual pages that describe device-specific ioctl commands. Discussed with jmc and schwarze.
2014-06-27Cleanup support for legacy mmap flagsMatthew Dempsky
Move all legacy MAP_FOO values behind #ifndef _KERNEL and redefine them to either be aliases for existing flags (e.g., MAP_COPY -> MAP_PRIVATE) or 0. Also, add MAP_OLDFOO defines (behind #ifndef _KERNEL) so the kernel and kdump can remain compatible with current OpenBSD binaries. ok deraadt
2014-06-27OpenBSD supports mmap() on block special files too.Matthew Dempsky
2014-06-27Avoid buffer overflow on max line length by ending string with just one \0.Tobias Stoeckmann
ok deraadt@
2014-06-27Split out mmap's compatibility flags into a separate section, so usersMatthew Dempsky
aren't misled into thinking they're useful on OpenBSD.
2014-06-27Revise wording to reflect that callers should always specify (exactly)Matthew Dempsky
one of MAP_PRIVATE or MAP_SHARED, as required by POSIX. However, also caveat that currently OpenBSD doesn't strictly enforce this behavior.
2014-06-27fix loading of private keysMarkus Friedl
2014-06-27extra evil spaces snuck in over the last whileTheo de Raadt
2014-06-27Standardize xfer byte counts to ssize_t rather than a mix of size_t and intMiod Vallat
(we need to make them signed to spot controller overruns), and fix format strings accordingly. While there, make sure every runtime printf is prefixed by either the complete target information, if available, or at least the driver name with the proper instance number - supported systems with > 1 wdsc are quite common.