Commit Graph

11230 Commits

Author SHA1 Message Date
christos
1584d030d7 PR/50547: David Binderman: fix bad sizeof 2015-12-13 18:14:13 +00:00
christos
5ea0d1a896 Add ip6addrctl 2015-12-13 02:26:08 +00:00
christos
b649613962 Add ip6addrctl from FreeBSD 2015-12-12 23:35:56 +00:00
mlelstv
b92b935f14 pass new pin configuration flags to driver. 2015-12-06 07:31:28 +00:00
msaitoh
29c28998b8 Model 0x5e is also 6th gen Core or Xeon E3-1500 v5 like model 0x4e. 2015-12-04 05:34:59 +00:00
christos
48e922c8f8 CID 1341551: Don't bother formatting if ti == NULL 2015-12-03 21:01:50 +00:00
plunky
81aeedab3e add details of later (to v4.2) specification versions and
extended feature flags,
2015-11-28 09:25:45 +00:00
joerg
d0bd9a5f3f Don't pass garbage to parsedate, but do use the return value. 2015-11-27 15:10:32 +00:00
wiz
bdbb24f38c Whitespace. 2015-11-26 23:29:05 +00:00
hubertf
9ad20c88f4 Allow i2cdev to be specified with or without the /dev prefix.
Inspired by and code borrowed from gpioctl(8).
2015-11-26 17:31:56 +00:00
hubertf
0654568c32 Add an EXAMPLES section to show what 'i2cdev' looks like.
Hint: /dev required!
2015-11-26 16:56:52 +00:00
wiz
516ffc06d2 Sort options in usage to match man page order. 2015-11-25 16:32:20 +00:00
wiz
9c188db61b "file system" as two words. 2015-11-25 16:32:00 +00:00
christos
799916c021 Provide a -T option to set timestamps to a consistent value for MKREPRO 2015-11-25 00:48:49 +00:00
plunky
6741d295e4 newer versions of the Bluetooth Core specification state that
service record number values of 0x00000001->0x0000FFFF are
reserved, so comply with that here.
2015-11-24 21:11:39 +00:00
christos
62025e09ce PR/50344: Stephen Fisher: apropos shows formatting on console with vt100 term
type. Can't print terminfo sequences directly; need to process them with
ti_puts() to handle padding. This removes the padding delays, and stricly
could break on slow terminal hardware, but they way the code is structured
makes it impossible to fix properly (since the formatting strings are
passed in the query).
XXX: pullup-7
2015-11-23 22:34:00 +00:00
mrg
d94f57291f allow most commands to specify more than one cpu. now you can online or
offline (or identify, or intr/nointr) a list of cpus all together.
2015-11-16 03:34:50 +00:00
mrg
f94c9137cf convert getcpuid() to take char* not char** 2015-11-16 02:04:32 +00:00
mrg
0e5e5d5b01 use stdbool.h 2015-11-16 02:02:41 +00:00
pgoyette
7935b6fc9b Enable installation of amd64 on an lfsv2 partition.
XXX Other ports will need similar changes to arch/.../md.h after testing!

XXX The mount_lfs warning about lfs being experimental may confuse or
XXX corrupt the sysinst display window.
2015-11-14 23:00:17 +00:00
christos
6c340bb484 Add usage function, various cosmetics; no functional change. 2015-11-12 16:51:18 +00:00
ozaki-r
0bc5ae37c7 Introduce rump.rtadvd
It is used to write ATF tests for RA.

From s-yamaguchi@IIJ.
2015-11-11 07:48:41 +00:00
christos
a21a8a4ef3 CID 1338514: Check NULL returns 2015-11-10 18:04:51 +00:00
christos
8f21cd691f Since now the kernel returns ENXIO again for devices exceeding the
number of devices configured in the kernel, use that instead of
scanning /dev.
XXX: pullup to 7 together with the kernel change.
2015-11-09 17:39:20 +00:00
christos
2761cda93e Again copying code is bad; the second copy of mountd was completely stale. 2015-11-08 21:03:16 +00:00
christos
017f121465 Some of the puffs mount programs don't need RUMP, re-enable them. 2015-11-08 20:00:22 +00:00
christos
1e8cf51077 merge RUMP changes. 2015-11-08 16:36:28 +00:00
pgoyette
513f488856 Update to keep up with reality. In NetBSD 7, the vnconfig command was
renamed.  So add this fact to the HISTORY section and remove BUGS.

XXX Pull-up to NetBSD-7 !
2015-11-05 22:35:24 +00:00
shm
269fc1573a Added missed break statement. (Missed break in -z option implicitly implies
-P option)
2015-10-26 08:53:45 +00:00
mrg
80a4e936b5 extend the "tout" column to 5 characters, it's really common on a modern
machine to have eg, build output way more than 9999 chars/sec.

this doesn't affect the default disk list on an 80-char wide screen.
2015-10-25 02:47:17 +00:00
msaitoh
df71a53179 Add 6th gen Core, Xeon E3-1500 v5 and Xeon D-1500 from the latest Intel SDM. 2015-10-19 02:47:05 +00:00
martin
e082252485 PR 50342: if there is no current partition manage, assume we are running
from an already installed system.
2015-10-18 09:21:55 +00:00
christos
50b513f12f remove clause 3. 2015-10-16 16:40:02 +00:00
dholland
5191580c7d Enable lfs64 in dumplfs. Print LFS32/64 in the output header. 2015-10-15 06:24:46 +00:00
christos
55b72e0a94 this is syslog-like 2015-10-14 16:02:03 +00:00
christos
a2e2b1306b eliminate %m complexity. __format_arg__ thinks it is handling a format for
printf, so it does not like %m.
2015-10-14 15:50:48 +00:00
dholland
f3729261c1 Track down and fix two missing uses of SEGSUM_FINFOBASE(). 2015-10-10 22:34:09 +00:00
dholland
4cb9c64ab0 Use accessors for another batch of indirect block accesses, this time
in dumplfs.
2015-10-03 08:28:56 +00:00
dholland
7f7a5fa1e3 Apply IINFO in the other userland tools. 2015-10-03 08:28:46 +00:00
joerg
a309080e06 Make usage static and dead. 2015-10-02 20:42:15 +00:00
isaki
8950e44dd3 Fix typo. display.contrast is 0-15, not 0-1. 2015-09-21 08:04:43 +00:00
wiz
c20b084d18 Add -s to getopt(3)-string.
Noted missing by Henning Petersen in PR 50255.

While here, clean up usage.
2015-09-20 17:45:25 +00:00
joerg
7d8085e8a5 Typo 2015-09-12 13:50:55 +00:00
plunky
bd4132cd78 according to C99 6.5.15 in a conditional expression, both
operands should be of compatible types.

So, use ((void)0) here to match `void dbprintf()'
2015-09-08 18:33:12 +00:00
dholland
64fc2fa3fc tidy/fix printing of paths from sockaddr_un 2015-09-05 20:19:43 +00:00
ozaki-r
3296ce621c Fix rump.ndp -I options by rump-ifying if_nametoindex(3)
From s-yamaguchi@IIJ
2015-09-01 09:54:34 +00:00
dholland
eb2560adae The ifile's inode number is constant. (it is always 1)
Therefore, storing the value in the superblock and reading it out
again is silly and offers the opportunity for it to become corrupted.
So, don't do that (most of the code already didn't) and use the
existing constant instead. Initialize new 32-bit superblocks with
the value for the sake of old userland programs, but don't keep the
value in the 64-bit superblock at all.

(approved by Margo Seltzer)
2015-09-01 06:12:04 +00:00
dholland
4b344787e1 Make the inode fields in the 64-bit superblock 64 bits wide.
Reasoning as before.

Note that I am not going through and checking for 64->32 truncations
in inode numbers; I'm sure there are quite a few, but that's a project
for later.
2015-09-01 06:11:06 +00:00
dholland
d0cadc370c Bypass the ifile's double indirect block if the ifile size in blocks
is less than or equal to NDADDR + NINDIR, the number of blocks mapped
without getting to the double indirect block.

The code here was instead using NINDIR * ifpb (ifile entries per
block); this gives the number of ifile entries the indirect block can
map, but that isn't a useful number.

Caught by mlelstv.
2015-08-29 05:33:20 +00:00
joerg
10100b028a Simplify. 2015-08-28 12:04:08 +00:00
christos
795680b973 handle blacklistd properly. 2015-08-24 07:21:14 +00:00
christos
cb8ff824c3 fix bogus %m
use EXIT_FAILURE
2015-08-21 15:41:38 +00:00
jnemeth
5923cd0eff PR/50158 - Simon Burge -- postinstall does not know about blacklistd 2015-08-21 12:02:07 +00:00
christos
df1774464d Put back a Trusted Computing Platform Alliance table pretty printer. 2015-08-19 07:37:17 +00:00
christos
7e168b655c comment out end comment printing. 2015-08-18 17:49:49 +00:00
christos
8c2dc81004 comment out tcpa printout since it has been split between server and client
struct.
2015-08-18 17:46:09 +00:00
wiz
18805f9978 Fix a typo. Sort commands. End list correctly. 2015-08-17 17:47:22 +00:00
knakahara
a1136117a8 Add intrctl(8) man. 2015-08-17 06:50:03 +00:00
knakahara
84f76c9c0f Add intrctl(8). 2015-08-17 06:42:45 +00:00
uebayasi
2d6876178b Whitespace. 2015-08-15 09:33:55 +00:00
dholland
b1828e0ba3 Hack up dinode usage to be 64 vs. 32 as needed. Part 1.
(This part changes the native lfs code; the ufs-derived code already
has 64 vs. 32 logic, but as aspects of it are unsafe, and don't
entirely interoperate cleanly with the lfs 64/32 stuff, pass 2 will be
rehashing that.)
2015-08-12 18:28:00 +00:00
dholland
e54b457c15 Provide 32-bit and 64-bit versions of FINFO.
This also entailed sorting out part of struct segment, as that
contains a pointer into the current FINFO data.
2015-08-12 18:27:01 +00:00
dholland
2e090556c4 Make 32-bit and 64-bit versions of SEGSUM.
Also fix some of the FINFO handling as it's closely entangled.
2015-08-12 18:26:26 +00:00
dholland
32577c4f1c Add IFILE32 and IFILE64 structures for the on-disk ifile entries.
Add and use accessors. There are also a bunch of places that cast and
I hope I've found them all...
2015-08-12 18:25:51 +00:00
dholland
f11e4edeba Make 32-bit and 64-bit versions of CLEANERINFO.
XXX: while this is written to disk, it seems like much of it would
XXX: be better set up as a commpage shared with the cleaner.
2015-08-12 18:25:03 +00:00
tsutsui
37c170c28e Remove unused es message files. 2015-08-12 18:22:22 +00:00
tsutsui
7ec466b181 Drop ancient AOUT2ELF option. Saves ~280 bytes. 2015-08-12 18:20:02 +00:00
jnemeth
494e3bc90d PR/50125 - Jarle Greipsland -- Incorrect PID in /var/run/mountd.pid
Move call to pidfile() after daemon() so that correct (child) pid is
written to pidfile.
2015-08-05 23:23:47 +00:00
ozaki-r
10613e2fe6 Introduce rump.ndp
ndp(8) uses RTM that requires that getpid(2) works correctly. Unfortunately
supporting getpid(2) in librumphijack will be tricky so that we rump-ify
ndp(8) as well as arp(8).
2015-08-03 09:51:40 +00:00
dholland
9e5184b86b Add a (draft) 64-bit superblock. Make things build again.
Add pieces of support for using both superblock types where
convenient, and specifically to the superblock accessors, but don't
actually enable it anywhere.

First substantive step on PR 50000.
2015-08-02 18:18:09 +00:00
dholland
992b9a23af Use accessor functions for the version field of the lfs superblock.
I thought at first maybe the cases that test the version should be
rolled into the accessors, but on the whole I think the conclusion on
that is no.
2015-08-02 18:14:16 +00:00
dholland
9263edc766 Use the lfs header file and lfs's mount args struct, not ufsmount.h
and the ffs mount args struct, for mounting lfs.

(they are the same, so this doesn't matter yet, but still...)
2015-08-02 18:11:57 +00:00
dholland
078ffcb8d8 Second batch of 64 -> 32 truncations in lfs, along with more minor
tidyups and corrections in passing.
2015-08-02 18:10:07 +00:00
dholland
95a8d28c27 Fix assorted 64 -> 32 truncations in lfs. Also, some minor tidyups and
corrections in passing.
2015-08-02 18:08:12 +00:00
ozaki-r
14e1104e9a Reduce abuse of global variables 2015-07-31 04:02:40 +00:00
ozaki-r
fe28962804 Introduce rump.arp
arp(8) uses RTM that requires that getpid(2) works correctly. Unfortunately
supporting getpid(2) in librumphijack will be tricky so that we rump-ify
arp(8) as well as ifconfig and route commands.

Suggested by pooka@.
2015-07-29 06:07:35 +00:00
dholland
34f0d74c9e Add a new lfs header file: lfs_accessors.h.
This contains all the accessor functions and macros out of lfs.h.
Add an include of lfs_accessors.h after all uses of lfs.h... except
for code that wants to define its own struct lfs-alike that the
accessors are supposed to play along with. For these, set STRUCT_LFS
and include lfs_accessors.h after the necessary structure has been
defined, so that lfs_accessors.h can emit functions in terms of it.
2015-07-28 05:09:34 +00:00
mlelstv
1cd8415fdc Handle getfsspecname errors. 2015-07-25 10:37:22 +00:00
isaki
bbeaff6281 indent and some KNF. 2015-07-25 07:12:30 +00:00
dholland
adca8af59e More lfs superblock accessors.
(This changes the rest of the code over; all the accessors were
already added.)

The difference between this commit and the previous one is arbitrary,
but the previous one passed the regression tests on its own so I'm
keeping it separate to help with any bisections that might be needed
in the future.
2015-07-24 06:59:31 +00:00
dholland
f59b8f4b3a Switch to accessor functions for elements of the LFS on-disk
superblock. This will allow switching between 32/64 bit forms on the
fly; it will also allow handling LFS_EI reasonably tidily. (That
currently doesn't work on the superblock.)

It also gets rid of cpp abuse in the form of fake structure member
macros.

Also, instead of doing sleep/wakeup on &lfs_avail and &lfs_nextseg
inside the on-disk superblock, add extra elements to the in-memory
struct lfs for this. (XXX: these should be changed to condvars, but
not right now)

XXX: this migrates a structure needed by the lfs code in libsa (struct
salfs) into lfs.h, where it doesn't belong, but for the time being
this is necessary in order to allow the accessors (and the various
lfs macros and other goop that relies on them) to compile.
2015-07-24 06:56:41 +00:00
christos
cb4eacf0ac PR/50057: Wolfgang Stukenbrock: yp-map transfer removes SECURE-flag 2015-07-17 15:58:01 +00:00
rmind
87af5b04d3 - npfvar_get_type1: check for NULL first.
- Minor fix for the npf(7) man page.
2015-07-12 23:54:43 +00:00
dholland
887da82a3d Comma of result is (though increasingly common) not formally recognized
grammar[,;] use a semicolon.
2015-07-11 06:40:37 +00:00
mrg
bdd303d7a7 support fnmatch(3) patterns for disknames. eg, "iostat wd*" works now.
update the default disk number selection to note that it uses the current
terminal size to fit disks, not hard coded 4.
2015-07-09 13:26:52 +00:00
jnemeth
3480dbd463 Check for an out of date /etc/fonts/fonts.conf and if so, forcibly
update it (it is not intended to be user editable).  This is
primarily intended so that pkgsrc fonts installed in the new location
can be found.
2015-07-08 05:00:15 +00:00
matt
36b15a92c0 Stub out enough so this builds for evbarm64 2015-07-08 01:12:48 +00:00
martin
6fb47df388 PR install/50020: postinstall does not check for mandoc in /etc/man.conf.
Add a check, but ask the user to fix manually (the file could have local
modifications).
2015-07-02 09:53:12 +00:00
martin
64fd3ef0cf Simplify previous, pass awk as TOOL_AWK (that is what the makefile uses),
create an obj dir for make and force it to use that.
This version now works with read-only source again.
2015-07-02 09:31:56 +00:00
msaitoh
a62e5a29f2 Add Xeon E5-4600 v3, Xeon E3-1200 v4 etc. from the latest Intel SDM. 2015-07-01 15:46:26 +00:00
martin
c365a0b724 Clean up the src/etc/mtree directory after using it to generate the mtree
spec file.
XXX this is fishy, we should find a better way.
2015-07-01 12:40:07 +00:00
martin
4a5465f248 Pass AWK to make when invoking emit_dist_file.
Part of fixing PR toolchain/50004.
2015-06-28 09:29:58 +00:00
martin
61b769c0d4 Terminate the obsole directory walking loop when we hit "/" or "."
(both relative to DESTDIR), I have seen it run into an endless loop with
_path=. when invoked from the top level make with some (valid) args.
2015-06-27 09:56:54 +00:00
youri
28411567b5 Wording. 2015-06-19 12:27:02 +00:00
christos
7408c4ccbf more error normalization 2015-06-17 01:05:41 +00:00
christos
d672d793c3 a couple more stray \n 2015-06-16 23:54:58 +00:00
christos
b3ded435d4 revert kernhist patch accidentally committed 2015-06-16 23:48:20 +00:00
christos
8ee626c9fa improve error messages (remove \n, use __func__, etc) 2015-06-16 23:04:13 +00:00
ozaki-r
cba76b60ed Fix regression on sending RA messages
r1.48 dropped hoplimit cmsg but forgot to adjust cmsg buffer length.

Reported by Timo Buhrmester
2015-06-15 04:15:33 +00:00
plunky
68a3deedd1 the Bluetooth rc.d setup was simplified some time ago, so
'btdevctl' variable is no longer used. change wording to
reflect this
2015-06-12 09:43:05 +00:00