openbsd
10 years agobcopy -> memmove
eric [Thu, 26 Dec 2013 17:25:32 +0000 (17:25 +0000)]
bcopy -> memmove
bzero -> memset

10 years agoRework the documentation of Spaces, using the Ossanna/Kernighan/Ritter
schwarze [Thu, 26 Dec 2013 17:23:31 +0000 (17:23 +0000)]
Rework the documentation of Spaces, using the Ossanna/Kernighan/Ritter
Heirloom Nroff/Troff User's Manual at the authoritative reference.
Part of our text was outright wrong.

Also, refrain from advertising the paddable non-breaking space `\~'
in the DESCRIPTION, for three reasons:  For nroff mode, -Tascii, and
fixed width fonts in general, it makes no difference, so keep the
discussion simple.  Compared to `\ ', '\~' is of questionable portability.
And if you want to keep words together, it is also more usual that you
don't want padding to intervene either.

Finally, drop the `\c' escape sequence (interrupt text processing)
which is not a special character but an input processing instruction
akin to the \<newline> escape sequence.

10 years agospacing
kettenis [Thu, 26 Dec 2013 16:22:55 +0000 (16:22 +0000)]
spacing

10 years agoto be dealt with
espie [Thu, 26 Dec 2013 10:25:07 +0000 (10:25 +0000)]
to be dealt with

10 years agoeither dvp == vp or dvp != vp: zap extra test.
espie [Thu, 26 Dec 2013 07:17:15 +0000 (07:17 +0000)]
either dvp == vp or dvp != vp: zap extra test.
okay guenther@

10 years agoI have no idea how it happened that \B, \H, \h, \L, and \l got
schwarze [Thu, 26 Dec 2013 02:55:35 +0000 (02:55 +0000)]
I have no idea how it happened that \B, \H, \h, \L, and \l got
mapped to ESCAPE_NUMBERED (which is for \N and only for \N), that
made no sense at all.  Properly remap them to ESCAPE_IGNORE.

While here, move \B and \w from the group taking number arguments
to the group taking string arguments; right now, that doesn't imply
any functional change, but if we ever go ahead and implement a
parser for roff(7) numerical expressions, it will suddenly start
to matter, and cause confusion.

10 years agoThe roff language really has two groups of basic building blocks:
schwarze [Thu, 26 Dec 2013 02:43:12 +0000 (02:43 +0000)]
The roff language really has two groups of basic building blocks:
Requests and escape sequences.  Consequently, supplement the
REQUEST REFERENCE by an ESCAPE SEQUENCE REFERENCE, such that people
no longer need to guess or experiment what mandoc(1) implements,
what it parses and ignores, and what it doesn't handle at all.

10 years agoParse and ignore the roff(7) escape sequences \d (move half line down)
schwarze [Wed, 25 Dec 2013 22:45:16 +0000 (22:45 +0000)]
Parse and ignore the roff(7) escape sequences \d (move half line down)
und \u (move half line up).  Found by bentley@ in some DocBook crap.
Surprisingly, these two do actually occur in our terminfo(5),
so this patch reduces groff-mandoc differences in base by 0.03%.

10 years agorepair the dates
schwarze [Wed, 25 Dec 2013 22:28:37 +0000 (22:28 +0000)]
repair the dates

10 years agoImplement .Fo/.Fa/.Fc indentation and break handling for -Tman.
schwarze [Wed, 25 Dec 2013 22:00:34 +0000 (22:00 +0000)]
Implement .Fo/.Fa/.Fc indentation and break handling for -Tman.

10 years agoOops, .Fa never breaks the output line in the middle of any of its
schwarze [Wed, 25 Dec 2013 21:24:03 +0000 (21:24 +0000)]
Oops, .Fa never breaks the output line in the middle of any of its
arguments, not even outside SYNOPSIS mode.  Quite surprising as .Fn
does break the line in the middle of its arguments outside SYNOPSIS
mode, and only doesn't do that in SYNOPSIS mode.  Wonders of groff...

10 years agoInstead of deciding which iockbc port is the keyboard port, and which one is the
miod [Wed, 25 Dec 2013 21:01:01 +0000 (21:01 +0000)]
Instead of deciding which iockbc port is the keyboard port, and which one is the
mouse port, depending upon the system time, match what the prom is doing and
actually probe for a keyboard on both ports, and decide the first port with a
keyboard is the keyboard port.

If no keyboard is found, but a mouse is found, decide the keyboard port is the
empty one.

If no device is found, then we can try and pick the defaults, depending upon
the system we are running on, as this used to be the case (i.e. coping with
Fuel having keyboard on port 1 and mouse on port 0 when connecting devices
according to the chassis' markings).

This is necessary because different IO9 board revisions on Tezro come with
different wirings, and we can not tell these boards apart.

Discussed with "nullnilaki" (nullnilaki on gmail) who is the lucky owner of an
Onyx 350 with correct wiring and a Tezro with inverted wiring. Tested on Octane
and Fuel with all combinations of devices connected (mouse only, keyboard only,
keyboard and mouse) in both ports, glass and serial console.

XXX We probably want to allow for more pckbd attachment flexibility on non-x86
XXX platforms eventually (at least where the PS/2 slots are really independent,
XXX so that we can attach pckbd to any port and better cope with human error
XXX when connecting devices.

10 years agofix autoloading of quirks: don't try to run quirks while processing the
espie [Wed, 25 Dec 2013 15:59:51 +0000 (15:59 +0000)]
fix autoloading of quirks: don't try to run quirks while processing the
quirks set, as we may accidentally load the old one.
also, in case we can't load quirks, report if quirks should be there,
e.g., compilation error, without regard to verbose status

10 years agoPass _dl_dtors as the csu cleanup routine on sh
miod [Wed, 25 Dec 2013 15:14:59 +0000 (15:14 +0000)]
Pass _dl_dtors as the csu cleanup routine on sh

10 years agoGarbage collect two local variables each used only one single time.
schwarze [Wed, 25 Dec 2013 15:12:39 +0000 (15:12 +0000)]
Garbage collect two local variables each used only one single time.

10 years agoPass _dl_dtors as the csu cleanup routine on arm.
miod [Wed, 25 Dec 2013 15:01:39 +0000 (15:01 +0000)]
Pass _dl_dtors as the csu cleanup routine on arm.

10 years agoIn the SYNOPSIS, implement hanging indentation for .Fo
schwarze [Wed, 25 Dec 2013 14:40:29 +0000 (14:40 +0000)]
In the SYNOPSIS, implement hanging indentation for .Fo
and avoid output line breaks inside .Fa arguments.
This reduces groff-mandoc differences in base by more than 8%.
Patch from Franco Fichtner <franco at lastsummer dot de> (DragonFly).

10 years agosign package thru a signer object, instead of hardcoding signature parameters
espie [Wed, 25 Dec 2013 14:38:56 +0000 (14:38 +0000)]
sign package thru a signer object, instead of hardcoding signature parameters

10 years agomove the choice of signature type for checking into one single place
espie [Wed, 25 Dec 2013 14:38:15 +0000 (14:38 +0000)]
move the choice of signature type for checking into one single place

10 years agoa bit more scaffolding for running quirks. In particular, once quirks
espie [Wed, 25 Dec 2013 14:20:48 +0000 (14:20 +0000)]
a bit more scaffolding for running quirks. In particular, once quirks
have been loaded, complain loudly if something doesn't work.
(and complain when quirks don't load in !verbose mode)

10 years agoSupport .St -xsh4.2, the System Interfaces part of the original Single
schwarze [Wed, 25 Dec 2013 14:08:36 +0000 (14:08 +0000)]
Support .St -xsh4.2, the System Interfaces part of the original Single
UNIX Specification.  As this one appears to be used in the wild and we
already have -xpg4.2 and even -xsh5, it makes sense to add this one.
Note that calling the original SUS XPG4.2 appears to be more common
than calling it SUSv1, so it's ok that we don't have .St -susv1.
From Sascha Wildner <saw at online dot de> (DragonFly) via Franco Fichtner.

10 years agozap defines that don't make any sense for us
espie [Wed, 25 Dec 2013 14:04:50 +0000 (14:04 +0000)]
zap defines that don't make any sense for us
okay tedu@

10 years agoPass _dl_dtors as the csu cleanup routine on m68k and m88k; change the
miod [Wed, 25 Dec 2013 13:06:00 +0000 (13:06 +0000)]
Pass _dl_dtors as the csu cleanup routine on m68k and m88k; change the
conditional in the MI code to only list the architectures left to adapt.

10 years agoMake ld.so pass its cleanup handler in %g1 as required by the SPARC System V
kettenis [Wed, 25 Dec 2013 11:10:02 +0000 (11:10 +0000)]
Make ld.so pass its cleanup handler in %g1 as required by the SPARC System V
ABI, and stop calling atexit(4) directly from ld.so on sparc.

10 years agoAdd missing IPL_MPSAFE, as same as mvme88k.
aoyama [Wed, 25 Dec 2013 10:41:55 +0000 (10:41 +0000)]
Add missing IPL_MPSAFE, as same as mvme88k.

ok miod@

10 years agofinal circleq to tailq fix. restore the previous pointer check by reading
tedu [Wed, 25 Dec 2013 01:46:00 +0000 (01:46 +0000)]
final circleq to tailq fix. restore the previous pointer check by reading
the previous value again and checking prev.next is still next.
maybe ok guenther

10 years agos/[Nn]ull/NUL/ in comments where appropriate;
schwarze [Wed, 25 Dec 2013 00:50:03 +0000 (00:50 +0000)]
s/[Nn]ull/NUL/ in comments where appropriate;
suggested by Thomas Klausner <wiz @ NetBSD dot org>.

10 years agoDo not break output lines in .Fn function arguments in SYNOPSIS mode.
schwarze [Wed, 25 Dec 2013 00:39:13 +0000 (00:39 +0000)]
Do not break output lines in .Fn function arguments in SYNOPSIS mode.
Following an idea from Franco Fichtner, but implemented more cleanly.
This reduces groff-mandoc-differences in base by a fantastic 7.5%.

10 years agorearrange/correct timeout conditionals to work better.
tedu [Tue, 24 Dec 2013 23:29:38 +0000 (23:29 +0000)]
rearrange/correct timeout conditionals to work better.
fixes negative timeout panics. tested by sthen.

10 years agoDelete the unused flag TERMP_IGNDELIM
schwarze [Tue, 24 Dec 2013 23:04:29 +0000 (23:04 +0000)]
Delete the unused flag TERMP_IGNDELIM
and the empty callback termp_igndelim_pre().
Sort the remaining termp flags.

10 years agomore fixing after circleq conversion. a better fix to check the prev
tedu [Tue, 24 Dec 2013 22:26:19 +0000 (22:26 +0000)]
more fixing after circleq conversion. a better fix to check the prev
pointer is forthcoming.

10 years agoImplement SYNOPSIS .Fn indentation for -Tman.
schwarze [Tue, 24 Dec 2013 22:08:23 +0000 (22:08 +0000)]
Implement SYNOPSIS .Fn indentation for -Tman.

10 years agoIt turns out SYNOPSIS mode does not imply .Bk in general,
schwarze [Tue, 24 Dec 2013 20:45:21 +0000 (20:45 +0000)]
It turns out SYNOPSIS mode does not imply .Bk in general,
but only within .Nm blocks.  Simplify the code accordingly.
This reduces groff-mandoc differences in base by about 2%.

Triggered by research done by Franco Fichtner.

10 years agoWhen deciding whether two consecutive macros are on the same input line,
schwarze [Tue, 24 Dec 2013 19:10:34 +0000 (19:10 +0000)]
When deciding whether two consecutive macros are on the same input line,
we have to compare the line where the first one *ends* (not where it begins)
to the line where the second one starts.
This fixes the bug that .Bk allowed output line breaks right after block
macros spanning more than one input line, even when the next macro follows
on the same line.

10 years agoMore .Bk tests to lessen the risk of upcoming work.
schwarze [Tue, 24 Dec 2013 16:01:15 +0000 (16:01 +0000)]
More .Bk tests to lessen the risk of upcoming work.

10 years agoWhen i replaced the very ugly .in: suffix rule in my previous commit,
schwarze [Tue, 24 Dec 2013 15:58:07 +0000 (15:58 +0000)]
When i replaced the very ugly .in: suffix rule in my previous commit,
that inadvertently disabled the -Tman tests.  Oops.
Enable them again.
Fortunately, in the meantime, nothing slipped.

10 years agosync
deraadt [Tue, 24 Dec 2013 14:17:02 +0000 (14:17 +0000)]
sync

10 years agoIf the FADT has its SMI_CMD set to zero, assume we're only ACPI-only hardware
kettenis [Tue, 24 Dec 2013 13:23:21 +0000 (13:23 +0000)]
If the FADT has its SMI_CMD set to zero, assume we're only ACPI-only hardware
and don't need to disable SMI ownership of the ACPI hardware registers.

ok mlarkin@

10 years agoAdd support for SSL/TLS server certificate validation, enabled by
jca [Tue, 24 Dec 2013 13:00:59 +0000 (13:00 +0000)]
Add support for SSL/TLS server certificate validation, enabled by
default.  See the documentation for the `-S' switch.  This also allows
setting the preferred ciphers for the communication.  Documentation bits
ok'ed by jmc@, ok beck@ sthen@.

10 years agoRemove some leftover bits that are no longer necessary now that we no
kettenis [Tue, 24 Dec 2013 10:53:37 +0000 (10:53 +0000)]
Remove some leftover bits that are no longer necessary now that we no
longer call atexit(4) directly on hppa.

10 years agosync
deraadt [Tue, 24 Dec 2013 05:31:48 +0000 (05:31 +0000)]
sync

10 years agoyup, we do ELF
deraadt [Tue, 24 Dec 2013 05:31:13 +0000 (05:31 +0000)]
yup, we do ELF

10 years agoget rid of if (timeout_pending()) timeout_del(). this is racy. any
dlg [Tue, 24 Dec 2013 01:11:04 +0000 (01:11 +0000)]
get rid of if (timeout_pending()) timeout_del(). this is racy. any
conditionals you did on timeout_pending can now be done on timeout_del
now that it returns what it did.

ok and a very good fix from kettenis@

10 years agorename local ticks to nticks to avoid aliasing global. ok krw
tedu [Tue, 24 Dec 2013 01:11:00 +0000 (01:11 +0000)]
rename local ticks to nticks to avoid aliasing global. ok krw

10 years agofix error checking oddity in msdosfs code, as noted by kettenis@
halex [Tue, 24 Dec 2013 00:18:46 +0000 (00:18 +0000)]
fix error checking oddity in msdosfs code, as noted by kettenis@

ok mikeb@ espie@

10 years agoremove junk
deraadt [Mon, 23 Dec 2013 23:32:40 +0000 (23:32 +0000)]
remove junk

10 years agospelling
deraadt [Mon, 23 Dec 2013 23:23:22 +0000 (23:23 +0000)]
spelling

10 years agoinstall a link as sha512. simplify program internals; there are only
tedu [Mon, 23 Dec 2013 23:00:38 +0000 (23:00 +0000)]
install a link as sha512. simplify program internals; there are only
two modes. ok deraadt gilles jca

10 years agofix circleq tailq conversion
tedu [Mon, 23 Dec 2013 22:39:50 +0000 (22:39 +0000)]
fix circleq tailq conversion

10 years agoUse slightly diffrerent code to get the global offset table address. This
kettenis [Mon, 23 Dec 2013 22:24:37 +0000 (22:24 +0000)]
Use slightly diffrerent code to get the global offset table address.  This
version will match the (upcoming) 32-bit version (for sparc) and allegedly
is slightly faster.

10 years agoMake ld.so pass its cleanup handler in %rdx as required by the AMD64 System V
kettenis [Mon, 23 Dec 2013 22:13:03 +0000 (22:13 +0000)]
Make ld.so pass its cleanup handler in %rdx as required by the AMD64 System V
ABI, and stop calling atexit(4) directly from ld.so on amd64.  Note that this
means that binaries built before the middle of november may no longer call
destructors in shared libraries implemented in C++.  Update your packages!

ok guenther@

10 years agoMake ld.so pass its cleanup handler in r7 as required by the PowerPC System V
kettenis [Mon, 23 Dec 2013 22:03:52 +0000 (22:03 +0000)]
Make ld.so pass its cleanup handler in r7 as required by the PowerPC System V
ABI, and stop calling atexit(4) directly from ld.so on powerpc.

10 years agoFix indentation.
kettenis [Mon, 23 Dec 2013 21:49:27 +0000 (21:49 +0000)]
Fix indentation.

10 years agoFix two dotline bugs for the price of one.
florian [Mon, 23 Dec 2013 21:47:32 +0000 (21:47 +0000)]
Fix two dotline bugs for the price of one.
1) When answering "No newline at end of file, add one?" with y and
   dot is not at the end of buffer dotline is off by one
2) When displaying the same buffer in two windows, dot in the
   second window is below dot in the first and a newline is entered in
   the first window dotline is not updated in the second.

OK lum

10 years ago- fix gamma ramp (now white is real white instead of light grey)
miod [Mon, 23 Dec 2013 21:32:30 +0000 (21:32 +0000)]
- fix gamma ramp (now white is real white instead of light grey)
- speed-up the integer to single precision float routine by omitting the
  sign check and starting the log2 computation at 12 instead of 32, since
  all the values passed to this routine are actually on-screen coordinates.

10 years agoMake ld.so pass its cleanup handler in v0 and stop calling atexit(4) directly
kettenis [Mon, 23 Dec 2013 21:18:57 +0000 (21:18 +0000)]
Make ld.so pass its cleanup handler in v0 and stop calling atexit(4) directly
from ld.so on alpha.  Note that this means that binaries built before early
december may no longer call destructors in shared libraries implemented in
C++.  Update your packages!

10 years agosync specvops with ffs (fixing spec_open along the way)
tedu [Mon, 23 Dec 2013 20:35:19 +0000 (20:35 +0000)]
sync specvops with ffs (fixing spec_open along the way)
ok espie

10 years agoAdd an instruction barrier to bus_space_barrier(). From David Hill.
kettenis [Mon, 23 Dec 2013 20:32:31 +0000 (20:32 +0000)]
Add an instruction barrier to bus_space_barrier().  From David Hill.
ok deraadt@

10 years agoAdd assembly code to set up the arguments for the common C startup code. This
kettenis [Mon, 23 Dec 2013 18:16:39 +0000 (18:16 +0000)]
Add assembly code to set up the arguments for the common C startup code.  This
means we no longer rely on how the C compiler sets up the initial stack frame
and allows us to get rid of MD_NO_CLEANUP.

ok deraadt@, guenther@

10 years agoMake ld.so pass its cleanup handler in %g1 as required by the SPARC System V
kettenis [Mon, 23 Dec 2013 17:29:15 +0000 (17:29 +0000)]
Make ld.so pass its cleanup handler in %g1 as required by the SPARC System V
ABI, and stop calling atexit(4) directly from ld.so on sparc64

10 years agoMove KASSERT a bit further down because it can apparently be triggered by
kettenis [Mon, 23 Dec 2013 17:23:51 +0000 (17:23 +0000)]
Move KASSERT a bit further down because it can apparently be triggered by
trying to hardlink a directory.  While this is not allowed on tmpfs, this
allows us to reach the code that checks for this such that we can return
the appropriate error.

Cluestick from Pedro Martelletto.
ok espie@

10 years agoCope with the change in ftp(1) warning messages since last commit.
jca [Mon, 23 Dec 2013 16:55:00 +0000 (16:55 +0000)]
Cope with the change in ftp(1) warning messages since last commit.
Issue reported by Maxime Villard, ok espie@.

10 years agomove ntogo code, so it can be used while copying packages in pkg_create.
espie [Mon, 23 Dec 2013 16:50:29 +0000 (16:50 +0000)]
move ntogo code, so it can be used while copying packages in pkg_create.
add the few lines necessary for that to work.

10 years agoget rid of "copy_long", we don't really need to recheck names while copying
espie [Mon, 23 Dec 2013 16:34:51 +0000 (16:34 +0000)]
get rid of "copy_long", we don't really need to recheck names while copying
a package contents.

Allow -o/-S for output/signature dirs for batch operations.
Fix copying of packages while signing, add progressmeter.

10 years agosimpler logic: if one package is signed, check all digests
espie [Mon, 23 Dec 2013 15:40:24 +0000 (15:40 +0000)]
simpler logic: if one package is signed, check all digests

10 years agoreal fix: turns out visit_with_* are transparent, e.g., pass all their
espie [Mon, 23 Dec 2013 15:04:37 +0000 (15:04 +0000)]
real fix: turns out visit_with_* are transparent, e.g., pass all their
parameters to the end consumer.  Make sure the !Term version obeys that too.

10 years agoMove findbuffer() to buffer.c.
lum [Mon, 23 Dec 2013 14:58:16 +0000 (14:58 +0000)]
Move findbuffer() to buffer.c.
ok florian@

10 years agoSync Makefile with what other platforms do; makes dependency tracking actually
kettenis [Mon, 23 Dec 2013 14:22:12 +0000 (14:22 +0000)]
Sync Makefile with what other platforms do; makes dependency tracking actually
work.

ok deraadt@, guenther@

10 years ago- clarify that sio_close() stops the device first, then
ratchov [Mon, 23 Dec 2013 14:14:31 +0000 (14:14 +0000)]
- clarify that sio_close() stops the device first, then
  frees the handle and not the opposite
- clarify that sio_close() and sio_stop() dont discard
  samples in the play buffer.

suggested by Reimar Doeffinger <Reimar.Doeffinger at gmx.de>

ok jmc@

10 years agoCall __cxa_atexit(3) instead of atexit(3). Preparation for upcoming changes to
kettenis [Mon, 23 Dec 2013 14:13:03 +0000 (14:13 +0000)]
Call __cxa_atexit(3) instead of atexit(3).  Preparation for upcoming changes to
make it possible to call atexit from dynamically loaded shared objects.

10 years agoand I fucked up that one too...
espie [Mon, 23 Dec 2013 14:03:58 +0000 (14:03 +0000)]
and I fucked up that one too...

10 years agoMake ld.so pass its cleanup handler in %arg1 and stop calling atiexit(4)
kettenis [Mon, 23 Dec 2013 13:57:44 +0000 (13:57 +0000)]
Make ld.so pass its cleanup handler in %arg1 and stop calling atiexit(4)
directly from ld.so on hppa.

10 years agoThe xbase set requires the comp set. If xbase is in the selection,
rpe [Mon, 23 Dec 2013 13:57:05 +0000 (13:57 +0000)]
The xbase set requires the comp set. If xbase is in the selection,
but not comp, put comp back in automatically.

suggested by and ok deraadt@
ok halex@

10 years agointerface bug: visit_with_size has a state parameter.
espie [Mon, 23 Dec 2013 13:29:41 +0000 (13:29 +0000)]
interface bug: visit_with_size has a state parameter.
I've been lucky that I've not invoked it with more parameters so far...

10 years agoWhen no address for the current AF was specified with -a generate pass
florian [Mon, 23 Dec 2013 13:08:25 +0000 (13:08 +0000)]
When no address for the current AF was specified with -a generate pass
rules instead of erroring out.
ok dlg, benno, camield

10 years agoMake it possible to give -a multiple times on the command line.
florian [Mon, 23 Dec 2013 13:07:47 +0000 (13:07 +0000)]
Make it possible to give -a multiple times on the command line.
Initial diff by camield, tweaked by me.
ok dlg, benno, camield
manpage input/ok jmc

10 years agoImplement -a option in tftp-proxy to make it work on a NAT gateway.
florian [Mon, 23 Dec 2013 13:06:53 +0000 (13:06 +0000)]
Implement -a option in tftp-proxy to make it work on a NAT gateway.
input/ok dlg, benno, camield
manpage input/ok jmc

10 years agoregen
brad [Mon, 23 Dec 2013 12:46:46 +0000 (12:46 +0000)]
regen

10 years agoAdd Atheros AR9462 and AR9565
brad [Mon, 23 Dec 2013 12:18:37 +0000 (12:18 +0000)]
Add Atheros AR9462 and AR9565

10 years agofix IPv6 in proxy_dst6()
benno [Mon, 23 Dec 2013 11:45:39 +0000 (11:45 +0000)]
fix IPv6 in proxy_dst6()
ok florian camield dlg

10 years agoRevert previous commit. It makes resume hang on some MP systems running
kettenis [Mon, 23 Dec 2013 10:48:43 +0000 (10:48 +0000)]
Revert previous commit.  It makes resume hang on some MP systems running
GENERIC.MP.

10 years agoMake ld.so pass its cleanup handler in %edx as required by the i386 System V
kettenis [Mon, 23 Dec 2013 10:39:10 +0000 (10:39 +0000)]
Make ld.so pass its cleanup handler in %edx as required by the i386 System V
ABI, and stop calling atexit(4) directly from ld.so on i386.

ok guenther@

10 years agomlink TASK_INITIALIZER
dlg [Mon, 23 Dec 2013 04:25:42 +0000 (04:25 +0000)]
mlink TASK_INITIALIZER

10 years agodocument TASK_INITIALIZER()
dlg [Mon, 23 Dec 2013 04:24:43 +0000 (04:24 +0000)]
document TASK_INITIALIZER()

10 years agoprovide a TASK_INITIALIZER() macro.
dlg [Mon, 23 Dec 2013 04:20:47 +0000 (04:20 +0000)]
provide a TASK_INITIALIZER() macro.

10 years agoImplement a long-standing desideratum,
schwarze [Mon, 23 Dec 2013 02:19:57 +0000 (02:19 +0000)]
Implement a long-standing desideratum,
hanging indentation for .Fn in SYNOPSIS mode,
exploiting the new trailspace feature
by deliberately *NOT* using it.

10 years agosync
deraadt [Mon, 23 Dec 2013 00:23:15 +0000 (00:23 +0000)]
sync

10 years agoInstall a bunch more of OpenSSL manpages. ok deraadt@
jca [Mon, 23 Dec 2013 00:09:22 +0000 (00:09 +0000)]
Install a bunch more of OpenSSL manpages.  ok deraadt@

10 years agoPolishing the worms in my favourite can, term_flushln().
schwarze [Sun, 22 Dec 2013 23:33:52 +0000 (23:33 +0000)]
Polishing the worms in my favourite can, term_flushln().

The TERMP_TWOSPACE flag i introduced in August 2009 was idiosyncratic
and served only a very narrow purpose.  Replace it by a more intuitive
and more general termp attribute "trailspace", to be used together
with TERMP_NOBREAK, to request a minimum amount of whitespace at
the end of the current column.  Adapt all code to the new interface.

No functional change intended;
code reviews to confirm that are welcome *eg*.

10 years agoremove unneeded check for null context. ok deraadt gilles millert
tedu [Sun, 22 Dec 2013 22:55:51 +0000 (22:55 +0000)]
remove unneeded check for null context. ok deraadt gilles millert

10 years agoTry to keep the framebuffer console layout that was set up by the firmware
kettenis [Sun, 22 Dec 2013 21:03:45 +0000 (21:03 +0000)]
Try to keep the framebuffer console layout that was set up by the firmware
on sparc64.

10 years agoAdd support for BCM57786,which seems to be almost indistinguishable from the
kettenis [Sun, 22 Dec 2013 20:39:23 +0000 (20:39 +0000)]
Add support for BCM57786,which seems to be almost indistinguishable from the
BCM57785.

Tested by Mark Rowland.

10 years agoUse the rasops_info struct as the accesscookie for wsdisplay. Simplifies the
kettenis [Sun, 22 Dec 2013 19:49:23 +0000 (19:49 +0000)]
Use the rasops_info struct as the accesscookie for wsdisplay.  Simplifies the
code as it allows us to use some of the rasops_xxx functions directly.

10 years agoBail out early if the PCI bus number is -1. This means the hardware isn't
kettenis [Sun, 22 Dec 2013 18:55:25 +0000 (18:55 +0000)]
Bail out early if the PCI bus number is -1.  This means the hardware isn't
there and the AML might reference stuff that isn't there.

10 years agoOnly attach cpu0 on single-processor kernels, to match the expected behaviour.
miod [Sun, 22 Dec 2013 18:53:14 +0000 (18:53 +0000)]
Only attach cpu0 on single-processor kernels, to match the expected behaviour.

10 years agoCompute ncpusfound correctly. The logic was there but the count variable was
miod [Sun, 22 Dec 2013 18:52:34 +0000 (18:52 +0000)]
Compute ncpusfound correctly. The logic was there but the count variable was
kept MD.

10 years agoMP-safe rw_cas() implementation for rwlocks.
miod [Sun, 22 Dec 2013 18:32:40 +0000 (18:32 +0000)]
MP-safe rw_cas() implementation for rwlocks.

10 years agoSet the primary CPU's PAL revision to the OSF/1 PAL revision after switching
miod [Sun, 22 Dec 2013 18:31:29 +0000 (18:31 +0000)]
Set the primary CPU's PAL revision to the OSF/1 PAL revision after switching
to it, per the Green Book; from NetBSD.

It turns out this is necessary on some (if not all) systems to properly spin
up secondary processors.

Bump version.

10 years agoctype cleanups, now that the kernel has u_char strings (that is the
deraadt [Sun, 22 Dec 2013 16:50:15 +0000 (16:50 +0000)]
ctype cleanups, now that the kernel has u_char strings (that is the
easy road, otherwise this would be a righteous mess)
ok florian

10 years agochange pf_osfp_entry strings to unsigned, to help userland
deraadt [Sun, 22 Dec 2013 16:49:29 +0000 (16:49 +0000)]
change pf_osfp_entry strings to unsigned, to help userland
ok florian