schwarze [Mon, 6 Jan 2014 03:52:05 +0000 (03:52 +0000)]
Remove the redundant "file" column from the "mlinks" table.
The contents can easily be reconstructed from sec, arch, name, form.
Shrinks the database by another 3% in standard mode and 9% in -Q mode.
schwarze [Mon, 6 Jan 2014 03:02:39 +0000 (03:02 +0000)]
Drop Nd from the mpages table, it is still in the keys table.
This shrinks the database in standard mode by 3%, in -Q mode by 9%,
without loss of functionality.
espie [Mon, 6 Jan 2014 01:50:54 +0000 (01:50 +0000)]
tedu unused macro.
okay tedu@
schwarze [Mon, 6 Jan 2014 00:53:14 +0000 (00:53 +0000)]
Joerg Sonnenberger contributed copyrightable amounts of text to
some files. To make it clear that he also put his contributions
under the ISC license, with his explicit permission, add his
Copyright notice to the relevant files. No code change.
brad [Mon, 6 Jan 2014 00:52:21 +0000 (00:52 +0000)]
Mention tmpfs
brad [Sun, 5 Jan 2014 23:56:35 +0000 (23:56 +0000)]
regen
brad [Sun, 5 Jan 2014 23:55:25 +0000 (23:55 +0000)]
Add Realtek RTS5227
espie [Sun, 5 Jan 2014 23:11:24 +0000 (23:11 +0000)]
don't whine about octal numbers > 2^32. They're not portable, but
they work on all OpenBSD platforms.
Shuts up warning noticed by naddy@
mlarkin [Sun, 5 Jan 2014 23:06:54 +0000 (23:06 +0000)]
HIBERNATE_SELTABLE is not used anymore. Remove, and reclaim its stolen
page.
schwarze [Sun, 5 Jan 2014 21:21:08 +0000 (21:21 +0000)]
Fix one case where a non-literal is used as format string.
Fix another case where a variable is formatted using the wrong type.
Patch from Joerg Sonnenberger <joerg@NetBSD>.
schwarze [Sun, 5 Jan 2014 21:02:43 +0000 (21:02 +0000)]
Merge NetBSD rev. 1.4:
Rename static function data() to getdata()
to work around bugs in the NetBSD PPC64 toolchain.
Original author of the patch: Christos Zoulas <christos@NetBSD>.
Received via Joerg Sonnenberger <joerg@NetBSD>.
deraadt [Sun, 5 Jan 2014 20:53:56 +0000 (20:53 +0000)]
missing newline on error message
schwarze [Sun, 5 Jan 2014 20:26:27 +0000 (20:26 +0000)]
Add an option -Q (quick) to mandocdb(8)
for accelerated generation of reduced-size databases.
Implement this by allowing the parsers to optionally
abort the parse sequence after the NAME section.
While here, garbage collect the unused void *arg attribute
of struct mparse and mparse_alloc().
This reduces the processing time of mandocdb(8) on /usr/share/man
by a factor of 2 and the database size by a factor of 4.
However, it still takes 5 times the time and 6 times the space
of makewhatis(8), so more work is clearly needed.
mlarkin [Sun, 5 Jan 2014 20:23:56 +0000 (20:23 +0000)]
Don't use the first 64KB for anything, including tramps. Move tramps and
hibernate goo up after 64KB to avoid posible corruption by buggy BIOS SMM
code. Diff also ensures the first 64KB doesn't get handed to UVM either.
ok deraadt@, tested by many with no regressions reported
jsing [Sun, 5 Jan 2014 16:03:48 +0000 (16:03 +0000)]
Hook installboot into the build.
Discussed with deraadt@
jsing [Sun, 5 Jan 2014 16:02:40 +0000 (16:02 +0000)]
Add initial man page for installboot.
jsing [Sun, 5 Jan 2014 15:03:57 +0000 (15:03 +0000)]
On some architectures you can get away with using an uninitialised mutex;
this is not the case on hppa (practically the only architecture where
unlocked has a non-zero value). This one has been hiding since r1.223...
Found the hard way by juanfra@
miod [Sun, 5 Jan 2014 14:37:08 +0000 (14:37 +0000)]
Cleanup some leftovers from previous changes.
espie [Sun, 5 Jan 2014 10:29:16 +0000 (10:29 +0000)]
document -DFW_UPDATE/@option firmware
espie [Sun, 5 Jan 2014 10:24:30 +0000 (10:24 +0000)]
have -DFW_UPDATE set @option firmware on downloaded firmwares.
- normal pkg_add -u should ignore them
- pkg_delete will ask about deleting them
okay landry@
jmc [Sun, 5 Jan 2014 09:30:36 +0000 (09:30 +0000)]
comma previous;
schwarze [Sun, 5 Jan 2014 05:27:44 +0000 (05:27 +0000)]
garbage collect unused global variable retval,
forgotten in rev. 1.36 when removing timed(8) support;
proofed by sobrado@
schwarze [Sun, 5 Jan 2014 05:11:17 +0000 (05:11 +0000)]
some conversion specifiers are not required by POSIX;
joint work and OK jmc@ sobrado@
schwarze [Sun, 5 Jan 2014 05:04:06 +0000 (05:04 +0000)]
date(1) can only exit(0) or exit(1), not exit(2), so make this .Ex -std;
obviouly, this was forgotten in rev. 1.57 when removing timed(8) support.
ok jmc@ sobrado@
schwarze [Sun, 5 Jan 2014 04:48:35 +0000 (04:48 +0000)]
Rip out the complete "reachable" checks, without replacement.
It's a pity i spent time during t2k13 writing this; however,
when an entire concept is busted, let us not look back.
There is no such thing as an unreachable page. Even if you are crazy
enough to put a page starting with ".Dt NAMEI 9" into a file man1/cat.1,
we now make sure that it can be found by all of the following:
Nm=namei Nm=cat sec=1 sec=9
It will always be displayed as:
cat(1) - pathname lookup
So you know that you have to type `man cat` to get at it.
That obsoletes the concept of "unreachable manuals" for good.
schwarze [Sun, 5 Jan 2014 04:13:46 +0000 (04:13 +0000)]
Remove the obsolete file name column from the mpages table.
This column wasn't helpful because one manpage can have multiple MLINKS.
Use the file name column in the mlinks table, instead.
schwarze [Sun, 5 Jan 2014 03:25:51 +0000 (03:25 +0000)]
Remove the obsolete sec and arch columns from the mpages table.
They were confusing because a manpage can have MLINKS in different
sections and architectures.
schwarze [Sun, 5 Jan 2014 03:06:36 +0000 (03:06 +0000)]
Reimplement apropos -s NUM -S ARCH EXPR by internally converting it to
apropos \( EXPR \) -a 'sec~^NUM$' -a 'arch~^(ARCH|any)$'
in preparation for removal of sec and arch from the mpage table.
Almost no functional change except for the following bonus:
This also makes sure that for cross-section and cross-arch MLINKs,
all of the following work:
apropos -s 1 encrypt
apropos -s 8 encrypt
apropos -s 1 makekey
apropos -s 8 makekey
Before this commit, they don't, neither for the
old makewhatis(8)/apropos(1) combo nor for the new one.
While here, print error messages about invalid regexps to stderr.
deraadt [Sun, 5 Jan 2014 01:56:52 +0000 (01:56 +0000)]
Like upgrade, use feed_random right after mounting filesystems. This
is less than ideal. We hope the kernel has good entropy already, because
this is a reinstall?? Or maybe the ftp server startup has run to completion?
Or if this is an autoinstall, that config has enough unique in it? This
needs more work, but the existing late-entropy feed sequence is worse.
discussed at length with rpe, who tested it
deraadt [Sun, 5 Jan 2014 01:53:35 +0000 (01:53 +0000)]
We can feed_random right after mounting the filesystems, hoping we pick
up the previous kernel's /var/db/host.random
ok rpe
deraadt [Sun, 5 Jan 2014 01:52:17 +0000 (01:52 +0000)]
provide feed_random() and store_random(). The first is used by install or
upgrade to feed as much additional usable entropy (as early as possible)
to the current bsd.rd install kernel. The latter is used late in the
procedure to store entropy for the next boot (of a real kernel)
based on an issue described by dtucker, must conversation with halex and rpe
tested by rpe
deraadt [Sun, 5 Jan 2014 01:27:58 +0000 (01:27 +0000)]
sync
deraadt [Sun, 5 Jan 2014 01:16:51 +0000 (01:16 +0000)]
We need /dev/random on the install media
discussed with rpe and halex
schwarze [Sun, 5 Jan 2014 00:29:49 +0000 (00:29 +0000)]
Put section and architecture info into the keys table,
in preparation for removing them from the mpages table,
aiming for cleaner and more uniform interfaces.
Database growth is below 4%, part of which will be reclaimed.
As a bonus, this allows searches like:
./obj/apropos An=kettenis -a arch=ppc
./obj/apropos An=kettenis -a sec~[^4]
schwarze [Sat, 4 Jan 2014 23:42:32 +0000 (23:42 +0000)]
New implementation of complex search criteria using \(, \), -a because
the old implementation got lost in the Berkeley to SQLite switch.
Note that this is not just feature creep, but required for upcoming
database format cleanup and simplification.
The following takes less than half a second on my Z61m ThinkPad:
time ./obj/apropos An=kettenis -a \( Cd=vnet -o Xr=vbus \)
miod [Sat, 4 Jan 2014 20:28:24 +0000 (20:28 +0000)]
Fix of_cmap[] size. Makes the textmode cursor reappear on vgafb (i.e.
non-radeon) systems.
jmc [Sat, 4 Jan 2014 18:27:03 +0000 (18:27 +0000)]
accept [0-9]lua as a valid section name (netbsd only);
from wiz@netbsd
tedu [Sat, 4 Jan 2014 17:50:55 +0000 (17:50 +0000)]
use standard types and formats for size_t like variables. ok dtucker
espie [Sat, 4 Jan 2014 17:10:56 +0000 (17:10 +0000)]
to do: this is a fatal error, we want a decent error message
tobias [Sat, 4 Jan 2014 15:39:17 +0000 (15:39 +0000)]
Properly validate index value received from CDDB server.
ok deraadt@, millert@
espie [Sat, 4 Jan 2014 14:14:55 +0000 (14:14 +0000)]
recognize @option firmware
espie [Sat, 4 Jan 2014 14:13:39 +0000 (14:13 +0000)]
more forbidden elements
espie [Sat, 4 Jan 2014 14:13:05 +0000 (14:13 +0000)]
oops, it's global to the set, no need to do it several times
miod [Sat, 4 Jan 2014 10:49:21 +0000 (10:49 +0000)]
Add rnddata[] placeholders to make these boot blocks build again.
espie [Sat, 4 Jan 2014 01:42:46 +0000 (01:42 +0000)]
mark @vendor as old keyword so that transitory packages can be handled
thru pkg_delete -q
deraadt [Sat, 4 Jan 2014 00:20:08 +0000 (00:20 +0000)]
sync
espie [Sat, 4 Jan 2014 00:14:08 +0000 (00:14 +0000)]
vendor->signer
shorten pubkey -> pub (naddy@)
\\ -> \e (jmc@)
millert [Fri, 3 Jan 2014 23:24:19 +0000 (23:24 +0000)]
Use kern.securelevel to determine whether or not we are in single
user mode now that init no longer raises securelevel during reboot.
OK deraadt@
tedu [Fri, 3 Jan 2014 22:47:18 +0000 (22:47 +0000)]
signify into the build
millert [Fri, 3 Jan 2014 22:29:00 +0000 (22:29 +0000)]
Do not raise the securelevel when transitioning from catatonia to
multiuser since we are not actually going multiuser. Fixes a problem
where the securelevel was raised for rc.shutdown even when reboot
was run from single user mode. OK deraadt@
pelikan [Fri, 3 Jan 2014 19:58:54 +0000 (19:58 +0000)]
Purging a queue requires it to be non-empty, not empty.
ok millert
tedu [Fri, 3 Jan 2014 17:14:47 +0000 (17:14 +0000)]
don't initialize declared variable with a function call
tedu [Fri, 3 Jan 2014 17:13:42 +0000 (17:13 +0000)]
replace hand rolled strchr with strchr
espie [Fri, 3 Jan 2014 17:10:57 +0000 (17:10 +0000)]
synch with signify usage
espie [Fri, 3 Jan 2014 17:10:27 +0000 (17:10 +0000)]
let signify have an actual parameters: the file to sign/verify
clarify SYNOPSIS, as options are highly dependent on the mode.
okay tedu@,
usage suggestion by jmc@
espie [Fri, 3 Jan 2014 16:56:22 +0000 (16:56 +0000)]
PATH is now fixed
jmc [Fri, 3 Jan 2014 16:24:06 +0000 (16:24 +0000)]
sort SEE ALSO;
jmc [Fri, 3 Jan 2014 16:21:58 +0000 (16:21 +0000)]
consistent Nd lines for the various dhcp bits; help/ok krw
jmc [Fri, 3 Jan 2014 15:52:04 +0000 (15:52 +0000)]
note that our date supports traditional bsd date format, which is
different to what posix/xpg specifies;
diff originally posted to tech, changed after some feedback from
kettenis, then a bit more from schwarze and sobrado;
ok schwarze sobrado
espie [Fri, 3 Jan 2014 15:42:22 +0000 (15:42 +0000)]
terminate b64 encoded lines. decoding happily skips \n.
okay tedu@
tedu [Fri, 3 Jan 2014 15:35:23 +0000 (15:35 +0000)]
some more information, based on a diff by sven falempin
millert [Fri, 3 Jan 2014 15:25:18 +0000 (15:25 +0000)]
The whois() function is called in a loop so make sure we close the
socket to the whois server before returning. Adapted from a diff
from Loganaden Velvindron.
jmc [Fri, 3 Jan 2014 15:23:16 +0000 (15:23 +0000)]
remove trailing whitespace and unneccessary macros from previous;
espie [Fri, 3 Jan 2014 14:58:54 +0000 (14:58 +0000)]
explicitly tells pkg_add we're fw_update, will have some nice side-effects
later.
okay deraadt@
aoyama [Fri, 3 Jan 2014 13:48:25 +0000 (13:48 +0000)]
KNF, update comments, and delete LUNA(m68k) specific DIPSW comments.
No functional change.
espie [Fri, 3 Jan 2014 13:26:24 +0000 (13:26 +0000)]
make sure elements are not set manually, namely forbid
@depend (use -P)
@wantlib (use -W)
@name (duh)
@arch
@localbase
@option manual-installation
@comment pkgpath=...
(some of this is actually redundant, but will give more explicit error
messages)
espie [Fri, 3 Jan 2014 13:12:35 +0000 (13:12 +0000)]
explain why digital-sig must be unique
espie [Fri, 3 Jan 2014 13:10:04 +0000 (13:10 +0000)]
finish moving annotations around
espie [Fri, 3 Jan 2014 12:54:59 +0000 (12:54 +0000)]
start moving internal annotations' description into package(5) proper,
pkg_create(1) should only document what users can use.
Accordingly, describe dependencies in terms of -P and -W directly.
pelikan [Fri, 3 Jan 2014 12:48:58 +0000 (12:48 +0000)]
Switch frequently allocated structs from malloc(M_DEVBUF) to separate pools.
ok henning, "looks fine" mikeb, input from guenther.
pelikan [Fri, 3 Jan 2014 12:43:09 +0000 (12:43 +0000)]
Make queues disappear correctly on interfaces being destroyed.
ok henning
jsing [Fri, 3 Jan 2014 10:32:44 +0000 (10:32 +0000)]
regen
jsing [Fri, 3 Jan 2014 10:31:09 +0000 (10:31 +0000)]
Fix previous commit, which clearly was not even compile tested, since it
broke the tree.
brad [Fri, 3 Jan 2014 05:52:03 +0000 (05:52 +0000)]
regen
brad [Fri, 3 Jan 2014 05:50:23 +0000 (05:50 +0000)]
Add some newer Intel wireless PCI ids from 2000, 2030, 135, 100, 3160
and 7265 controllers.
brad [Fri, 3 Jan 2014 05:05:38 +0000 (05:05 +0000)]
Add the second 7260 PCI id.
guenther [Fri, 3 Jan 2014 03:00:39 +0000 (03:00 +0000)]
Fix spelling in comments
deraadt [Thu, 2 Jan 2014 23:27:36 +0000 (23:27 +0000)]
crank version after random instruction fix from jsing
schwarze [Thu, 2 Jan 2014 22:44:07 +0000 (22:44 +0000)]
Avoid "utf8" in the names of a function and a struct member
that don't necessarily have anything to do with UTF-8.
Just renaming, no functional change.
schwarze [Thu, 2 Jan 2014 22:19:38 +0000 (22:19 +0000)]
Do not put UTF-8-encoded strings into the database by default, use ASCII.
Just like for mandoc(1), provide a -Tutf8 option for people who want that.
jmc [Thu, 2 Jan 2014 21:37:28 +0000 (21:37 +0000)]
update currency exchange rates;
jmc [Thu, 2 Jan 2014 21:16:37 +0000 (21:16 +0000)]
pesky double space;
schwarze [Thu, 2 Jan 2014 20:24:35 +0000 (20:24 +0000)]
Polish the mlink_add() interface:
Allocate memory inside, not in the callers.
No functional change.
espie [Thu, 2 Jan 2014 20:13:43 +0000 (20:13 +0000)]
simplify handling of special files some more, that stuff has fixed names
anyways
schwarze [Thu, 2 Jan 2014 18:51:51 +0000 (18:51 +0000)]
Check all MLINKS for consistency with the content of the manual page,
not just the first one. This doesn't change how the check is done,
but just which MLINKS are checked.
espie [Thu, 2 Jan 2014 18:19:46 +0000 (18:19 +0000)]
make the special file creation more explicit, so that the order actually
doesn't matter
miod [Thu, 2 Jan 2014 17:05:02 +0000 (17:05 +0000)]
LDFLAGS -> LDADD, fixes build on static arches.
espie [Thu, 2 Jan 2014 17:02:48 +0000 (17:02 +0000)]
Someone accidentally the verb (Henri Kemppainen)
espie [Thu, 2 Jan 2014 16:34:02 +0000 (16:34 +0000)]
display proper error messages for read/write.
after a lot of bickering with tedu...
"fine, fix it" tedu@
schwarze [Thu, 2 Jan 2014 16:29:46 +0000 (16:29 +0000)]
Since the functions in read.c are part of the mandoc(3) library,
do not print to stderr. Instead, properly use the mmsg callback.
Issue noticed by Abhinav Upadhyay <er dot abhinav dot upadhyay
at gmail dot com> and Thomas Klausner <wiz at NetBSD>.
espie [Thu, 2 Jan 2014 16:27:10 +0000 (16:27 +0000)]
be more explicit in why we don't write DESC
return early instead of adding an extra level of test.
espie [Thu, 2 Jan 2014 16:05:42 +0000 (16:05 +0000)]
zap PKG_PREFIX (undocumented and unused, now)
okay landry@
syl [Thu, 2 Jan 2014 15:39:12 +0000 (15:39 +0000)]
Call fuse callbacks on FBT_INIT and FBT_DESTROY.
Issue reported by Helg Bredow, thanks!
With inputs from tedu@
ok tedu@
aoyama [Thu, 2 Jan 2014 15:30:34 +0000 (15:30 +0000)]
Add primary support for LUNA-88K 4bpp/8bpp frame buffer.
This brings color support on LUNA's wscons. And, with the help of recent
development version of 'mlterm-fb' (frame buffer version of ports/x11/mlterm),
graphic images can be displayed in 16/256 colors on the screen. Thanks to
arakiken, the original developer of mlterm!
This diff is based on NetBSD/luna68k work:
http://mail-index.netbsd.org/source-changes/2013/12/28/msg050266.html
Need more work to coexist with the monochrome X.Org server.
"go ahead!" miod@
espie [Thu, 2 Jan 2014 15:01:37 +0000 (15:01 +0000)]
Document new options related to signatures
espie [Thu, 2 Jan 2014 13:45:14 +0000 (13:45 +0000)]
adapt to signify changes
allow a separate key for firmwares
dtucker [Thu, 2 Jan 2014 11:06:22 +0000 (11:06 +0000)]
mention hardware vlan support for 6105M chips. ok sthen@
gilles [Thu, 2 Jan 2014 08:00:35 +0000 (08:00 +0000)]
disable MSI for Samsung XP941.
This is so I can use the machine to figure out the others things on it,
the quirk will go away when interrupt routing gets fixed.
ok dlg@, jmatthew@
gilles [Thu, 2 Jan 2014 07:43:14 +0000 (07:43 +0000)]
sync
gilles [Thu, 2 Jan 2014 07:42:33 +0000 (07:42 +0000)]
add vendor and product
ok dlg@