Commit Graph

11119 Commits

Author SHA1 Message Date
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
rmind
1662d4f47c - npfctl: fix the confusion in the parser (0/0 case with no other filter).
- Always populate the error dictionary, not only for DEBUG/DIAGNOSTIC.
2015-06-08 01:00:43 +00:00
joerg
8cd9de5e58 Linking against libutil is not appropiate for tools. 2015-06-06 15:45:47 +00:00
roy
9d47679b07 Use %m in syslog(3) instead of %s strerror(3). 2015-06-05 15:41:59 +00:00
roy
54f3dcbf97 Set the hoplimit of 255 as specified in RFC 4861 section 4.2
using the IPV6_MULTICAST_HOPS socket option rather than using CMSG
when constructing each message.
2015-06-05 14:15:41 +00:00
roy
76ec1114d0 Use clock_gettime(2) instead of gettimeofday(2) so we can use a monotonic
clock rather than the wall clock.
Use timespec rather than timeval structs to make this transition easier.
Kill custom timeval comparison functions in favor of timespeccmp(3).
2015-06-05 14:09:20 +00:00
mlelstv
182e6e3b91 Can't use getfsspecname (and thus wedge names) while building tools. 2015-06-05 07:44:39 +00:00
mlelstv
18bcb9c15b Support wedge names. 2015-06-05 05:03:21 +00:00
mlelstv
bddb934a67 Compute bootloader checksum correctly also on little endian systems. 2015-06-05 05:02:48 +00:00
rmind
d6bf72e999 npfctl: fix the from/to port mess up when showing the rules. 2015-06-03 23:36:05 +00:00
hannken
c063d4ccd5 Use VFS_PROTOS() for lfs.
Rename conflicting struct lfs field "lfs_start" to "lfs_s0addr".

No functional change.
2015-05-31 15:44:30 +00:00
ozaki-r
8f82f57c45 Remove obsolete interfaces: eon (netiso) and nsip (netns)
Pointed out by Kamil Rytarowski
2015-05-21 01:09:00 +00:00