Commit Graph

10079 Commits

Author SHA1 Message Date
jdc
f8dbae1d18 Add a cs_hwid field to cpustate and use this to store the ci_cpuid (hardware
ID).  Report this as the HwID in cpuctl.
OK jruoho@.
2011-09-11 14:54:49 +00:00
christos
e1a1d844d3 merge in traceroute1.4a12. Our sources are so different that it is really
difficult to do this with an import.
2011-09-11 01:06:26 +00:00
manu
5a6d3e75bd Serialize access to file size. We already have such a thing in the
kernel, where it fixes race for PUFFS filesystems, but we need it again
in perfused since FUSE filesystems are allowed to reorder requests.

The huge issue is in the asyncrhonous SETATTR sent by fsync. It is
followed by a syncrhnous FSYNC, so if the filesystem does not reorder
requests, once the FSYNC returns, we are confident the SETATTR is done.
But since FUSE can reorder, we need to implement sync in perfused.
2011-09-09 15:45:28 +00:00
jym
a0e5aa6d82 /etc/defaults/rc.conf can be modified at build time by getting additional
arch-specific hooks appended to its end (currently: i386 and amd64).

Handle this case in postinstall(8) by checking whether we are in
$SOURCEMODE or not, and generate the correct rc.conf file on the fly in
case we have to. Otherwise, postinstall(8) may install the default one
obtained from a source directory that does not have the MD hooks
appended to it.

Problem reported by wiz@. Thanks!
2011-09-06 21:39:30 +00:00
jym
f618b3bb0d Set $SRC_DIR to its default value at the beginning of main() so that
usage() can print the correct value even when called early.
2011-09-06 14:13:46 +00:00
jym
ec521efc45 Check that $TGZMODE is true to deduce that the set is extracted
from a .tgz instead of checking that $SRC_DIR != $SRC_ARG. These variables
can be modified in different places, so it's less error prone.
2011-09-06 14:08:05 +00:00
plunky
acae68523e reinstate NULL cast by request, where the NULL was being passed as a vararg 2011-09-01 07:18:50 +00:00
christos
218314d564 don't truncate time_t 2011-08-31 16:32:48 +00:00
plunky
9f61b80465 NULL does not need a cast 2011-08-31 16:24:54 +00:00
joerg
bec77c5f43 Use __dead 2011-08-31 13:32:36 +00:00
joerg
12e6140314 __dead + ANSIfy 2011-08-31 13:31:29 +00:00
joerg
011ce1522e Use __dead and __printflike 2011-08-31 13:30:44 +00:00
nakayama
65e58969b4 Fix build on mips (NOAOUT case). 2011-08-31 13:09:10 +00:00
gson
3d0694be75 Yet another format string fix 2011-08-31 08:15:08 +00:00
gson
ed5e21d45c Fix format string to unbreak i386 build 2011-08-31 07:17:44 +00:00
mbalmer
c3001cc345 Remove double 'static'. 2011-08-31 07:03:00 +00:00
joerg
87a5b512fc Localize variables. Use __dead 2011-08-30 21:28:27 +00:00
joerg
ffcaee0540 static + __dead 2011-08-30 21:27:00 +00:00
joerg
949eeab3f6 static + __dead + G/C 2011-08-30 21:26:11 +00:00
joerg
f4727fdfcf static + __dead 2011-08-30 21:18:11 +00:00
joerg
c22bf27456 ANSIfy + static + __dead 2011-08-30 21:17:06 +00:00
joerg
6ede639fd6 __dead + __printflike 2011-08-30 21:14:06 +00:00
joerg
8583b49ce0 static + __dead 2011-08-30 21:03:31 +00:00
joerg
2d826702b5 ANSIfy + static + __dead 2011-08-30 20:54:18 +00:00
joerg
61a4a25cad De-__P + __dead 2011-08-30 20:52:10 +00:00
joerg
30469ad85e static + __dead 2011-08-30 20:51:29 +00:00
joerg
0cc6686eff ANSIfy + __dead 2011-08-30 20:50:24 +00:00
joerg
58b3bed15d static + __dead 2011-08-30 20:49:29 +00:00
joerg
36ae1097e8 static + ANSIfy + __dead 2011-08-30 20:45:31 +00:00
joerg
62c5413271 G/C 2011-08-30 20:43:43 +00:00
joerg
f796930c37 static + ANSIfy + __dead 2011-08-30 20:42:22 +00:00
joerg
2d6640c450 static + __dead 2011-08-30 20:33:30 +00:00
joerg
fedff36094 ANSIFy + static + __dead 2011-08-30 20:29:41 +00:00
joerg
76d8a55bb7 static + __printflike + __dead 2011-08-30 20:25:18 +00:00
joerg
9b838647dd Fast backward code to 1989 and use ANSI C consistently. Use __dead. 2011-08-30 20:17:00 +00:00
joerg
7e8db9e768 static + __dead 2011-08-30 20:08:38 +00:00
joerg
8138b1d050 static + ANSIfy + __dead 2011-08-30 20:07:31 +00:00
joerg
e50af0f5ca static + __printflike + __dead + format string fixes 2011-08-30 20:03:50 +00:00
joerg
428b619bde ANSIfy. Use __dead. 2011-08-30 20:00:58 +00:00
joerg
732d96f1f0 ANSIfy + __printflike + __dead 2011-08-30 19:49:10 +00:00
joerg
257a846ab4 static, __printflike, __dead 2011-08-30 19:27:37 +00:00
joerg
2eb6527c5c static + __dead 2011-08-30 19:20:20 +00:00
joerg
7cbacafc54 ANSIfy + __dead 2011-08-30 19:18:17 +00:00
joerg
5f1d0b022e static + __dead 2011-08-30 19:06:06 +00:00
joerg
6bd0ed17f2 static + __dead 2011-08-30 18:57:38 +00:00
joerg
514310971d Use __dead and __printflike 2011-08-30 18:53:41 +00:00
joerg
7a78feffac static + __dead 2011-08-30 18:50:48 +00:00
joerg
d6ee580bf7 static + __dead 2011-08-30 18:30:13 +00:00
joerg
60f8231589 ANSIfy + static + __dead 2011-08-30 18:28:59 +00:00
joerg
68b3316c6c static + __dead 2011-08-30 18:24:17 +00:00
plunky
87d4f6076b Apply casts to cases where xdrproc_t is expected but is not
strictly passed, for example because the second argument is
a different kind of pointer.
2011-08-30 17:06:20 +00:00
joerg
5c1014c629 ANSIfy + static + dead. 2011-08-30 10:12:06 +00:00
christos
47a08534f0 in external now 2011-08-30 10:08:11 +00:00
joerg
3bb0bce39d static openinfo. dead, not unused usage. 2011-08-30 10:04:50 +00:00
joerg
dccf569e0e Use __dead. 2011-08-29 20:38:53 +00:00
joerg
a1de9c2dbb Use __dead and __printflike 2011-08-29 20:37:43 +00:00
alnsn
e0e35e91bd Typo. 2011-08-29 14:09:01 +00:00
wiz
4776eb0a7a Use Cm to mark up command arguments. Use An -nosplit to avoid linebreak in sentence. 2011-08-28 17:10:37 +00:00
elric
95bd2d4a1e Remove crypto/dist/heimdal and its associated build infrastructure as
it has been replaced by crypto/external/bsd/heimdal.
2011-08-28 16:21:57 +00:00
mbalmer
b6211abfc7 Initialize local variables that previously were global (user, group). 2011-08-28 08:32:47 +00:00
mbalmer
92ced822d1 Add a new ioctl, GPIOPULSE to gpio(4) to allow for pulsing a pin.
If a pin can pulse in hardware, that will be used, else it will
be pulsed in software.  There is no way yet to set the pulse frequency
for pins that pulse in hardware.  While here, make the code mpsafe and
allow more than one thread in the driver (access to ioctl is serialized).
2011-08-28 07:48:50 +00:00
joerg
52e7e4adca ANSIfy 2011-08-27 22:41:35 +00:00
joerg
19f8b044c9 static + __dead 2011-08-27 22:38:48 +00:00
joerg
b71455acb5 Use __dead. Move global variables into function scope. 2011-08-27 22:32:44 +00:00
joerg
42286e2542 Sprinkle const 2011-08-27 22:30:44 +00:00
joerg
8756b97804 static + __dead 2011-08-27 22:22:01 +00:00
joerg
94b1bee225 Mark types as static and usage as dead. 2011-08-27 22:17:53 +00:00
jakllsch
3c644b8a5a Bring mount_psshfs user/host/path argument processing in line with sftp(1). 2011-08-25 19:49:05 +00:00
joerg
1c874f86e1 Use of non-literal format string 2011-08-25 16:53:25 +00:00
joerg
9c4f17f60e Use of non-literal format strings 2011-08-25 16:47:20 +00:00
joerg
21f7e41a91 Use of non-literal format string. 2011-08-25 16:22:43 +00:00
christos
91cc0e5629 more fixes from martin 2011-08-23 19:57:24 +00:00
christos
3e74546ba5 remove stray brace, minor knf 2011-08-23 19:17:07 +00:00
christos
1beaa2ceec PR/45285: Martin Matuska: makefs does not properly convert ISO level 1 and 2
filenames (buffer overflow)

makefs does not properly verify the maximum filename length in the
special "." case for both ISO level 1 and ISO level 2 filename
conversion.  This creates broken images or causes a buffer overflow
(ISO level 2).

ISO level 1:
If a filename contains only dots or up to 8 characters followed by
dots the 8+3 limit check doesn't work.

ISO level 2:
If a filename contains a dot in the first 30 characters and a dot
on the 30th character, the length limit check doesn't work and the
buffer is overflowed.

$ mkdir level1
$ touch level1/12345............
$ makefs -t cd9660 -o isolevel=1 test.iso level1

$ mkdir level2
$ touch level2/1234567890.2345678901234567.....34567890123456789012345
$ makefs -t cd9660 -o isolevel=2 test.iso level2
2011-08-23 17:09:11 +00:00
christos
93bbed154f use const char [] for format 2011-08-21 08:59:50 +00:00
christos
21a5b878f0 gcc-4.5 is picky about potential negative indexes. appease it. 2011-08-16 16:45:20 +00:00
christos
23bcf1ad25 remove gcc-4.5 hacks 2011-08-16 16:37:07 +00:00
mbalmer
0813ba11d0 Fix some typos. 2011-08-16 14:29:16 +00:00
christos
0d33c75c01 use memcpy to avoid type punning. 2011-08-16 12:49:13 +00:00
christos
0f2de03a73 remove gcc-4.5 hack and check fileno instead. 2011-08-16 12:39:29 +00:00
christos
6d3347a9d8 Avoid non-literal format strings 2011-08-16 10:39:31 +00:00
christos
d5189d25a6 avoid non-literal format strings 2011-08-16 08:33:46 +00:00
christos
73de74d401 document non-literal format string (unsafe) 2011-08-16 08:18:19 +00:00
christos
a0ca34f556 document non-literal format 2011-08-16 08:04:17 +00:00
christos
6f0b276b18 fix non-literal strings 2011-08-16 08:02:18 +00:00
christos
982a21784c - no need for gcc-4.5 hacks
- document non literal format
2011-08-16 07:52:32 +00:00
wiz
8e6d328065 Re-order `usage' alphabetically;
rename option arguments in the manpage's `SYNOPSIS' section to
match those from `usage' (not the other way around; the `usage'-line
(and other parts of makefs.c) contain the correct names);
minor punctuation improvements.

From Snader_LB.
2011-08-15 14:45:01 +00:00
wiz
4db9004657 Re-order and synchronize options listed in manpage (`SYNOPSIS' and
text) as well as `usage'-line; several punctuation improvements.
From Snader_LB.
2011-08-15 14:43:17 +00:00
wiz
d91834d02d Sync usage with SYNOPSIS. 2011-08-15 14:31:58 +00:00
wiz
8579c851c4 Sort options in SYNOPSIS. From Snader_LB. 2011-08-15 14:31:24 +00:00
tnn
c908dc3b47 Use proper capitalization. Reported on IRC. 2011-08-15 14:20:08 +00:00
dholland
c1b04cb467 Add compile-time assertion to make sure the previous doesn't go off the
rails sometime in the future.
2011-08-14 23:13:43 +00:00
christos
0b147c5d2b avoid type punned warnings 2011-08-14 17:57:44 +00:00
christos
5e788a3ae4 remove gcc type punned warnings 2011-08-14 17:54:55 +00:00
christos
7a3dc95e5c fix various gcc-4.5 warnings 2011-08-14 17:50:16 +00:00
christos
ef977d1767 use memcpy to avoid type punned warnings 2011-08-14 17:42:23 +00:00
mbalmer
c9922bae5e use my NetBSD email address 2011-08-12 08:06:23 +00:00
mbalmer
badcc9683d Make some functions static, use getprogname() instead of
'extern char *__progname'.
2011-08-12 08:02:33 +00:00
riastradh
772f45cfc9 Cache vattr in psshfs's setattr.
This means within the cache window, a setattr that wouldn't change the
remote file's attributes from our current view of them will not be
relayed to the server and wait for the server to answer.  Thus, e.g., a
process with a periodic timer interrupt that calls open(2) in a loop
can make progress with much higher probability than without caching.

XXX The test case doesn't work, so it's currently disabled.  It needs
to stop the child of sshd that is handling an sftp session, not sshd
itself, and it's not obvious how to do that.

ok pooka
2011-08-12 04:14:00 +00:00
uch
7d18226237 newfs_v7fs(8)'s -v and -P options are obsolete. changed to newfs(8) compatible -V option. 2011-08-10 11:31:49 +00:00
jmmv
dcba4bad03 Check (and fix) that unprivileged-user has been changed from _atf to _tests
in /etc/atf/common.conf.  Requested by martin@.
2011-08-09 18:24:46 +00:00
joerg
52dc944dae Requires -Wno-array-bounds with clang now. 2011-08-09 13:06:10 +00:00
joerg
975a569b2d Passes with the relaxed array boundary check in clang 2011-08-09 13:04:28 +00:00
manu
f8584de4e3 Fix warning 2011-08-09 07:00:13 +00:00
christos
b166834bb8 PR/45217: Martin Matuska: Use proper lengths to space pad fields and don't
overwrite them according to the spec.
2011-08-06 23:25:19 +00:00
jmmv
bbf950e188 Rename the _atf user to _tests. The _atf name will get obsoleted if/when
we migrate to Kyua (atf v2), so it's better to use a generic name that does
not depend on the specific implementation.  Also, this user has not gone
out yet into any stable release, so we can easily rename it.

Suggested by jruoho@.
2011-08-05 14:43:41 +00:00
gdt
c623d1003e Explain how to use -e -v without -o to see the current options.
Caution that installing a new primary bootstrap will reset options to
default values.
2011-08-03 14:47:28 +00:00
manu
fb0fa57f18 Fix creds passed to FUSE when requests are done on behalf of the kernel.
We previously sent uid/gid set to -1, we now set it to 0.
2011-08-02 14:53:38 +00:00
matt
d84c971f21 Break up list of directories by first letter. 2011-08-01 23:19:52 +00:00
mbalmer
631d5867a0 According to the Oxford Dictionary of Etymology, a wether is a male sheep
or ram.
2011-08-01 12:28:53 +00:00
uch
876775fb1a regen 2011-07-24 09:00:06 +00:00
uch
7ce939b3e2 v7fs rump support 2011-07-24 08:55:28 +00:00
christos
63147c0e32 don't set flags in the wrong fields. 2011-07-24 01:35:15 +00:00
wiz
fc4d0f871a Bump date for previous, fix typo. 2011-07-22 13:04:00 +00:00
joerg
29d01baadc Allow cross-compiling from Linux 2011-07-19 18:29:41 +00:00
tron
12aec09384 Re-enable v7fs support in the tools version of "makefs" after the
issues have been fixed by Alan Barrett. Tested under Mac OS X.
2011-07-18 22:52:37 +00:00
tron
d341b47a1c Define "USE_V7FS" in the makefile of the directory with the actual source. 2011-07-18 21:22:55 +00:00
tron
043cc21d99 Don't include v7fs support into tool version of "makefs" because it
breaks the build.
2011-07-18 17:15:51 +00:00
tron
2c0999f3fa Fix broken error check found by GCC 4.5. 2011-07-18 17:15:07 +00:00
tron
b166bb160f Don't include v7fs support into tool version of makefs because it
breaks the build.
2011-07-18 17:15:06 +00:00
uch
dd9e830956 v7fs(7th edition(V7) file system) support. 2011-07-18 08:58:38 +00:00
joerg
3eb244d801 Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
2011-07-17 20:54:30 +00:00
plunky
ee76f29c49 rcconf_is_set takes a tuple of <script> <variable>, so add
in a couple of missing script names

	network ip6forwarding
	sysctl defcorename

and remove the trailing "sysctl"
2011-07-14 09:35:24 +00:00
plunky
0067012e91 introduce rcvar_is_enabled to test if a rcvar is enabled
use this instead of rcconf_is_set to warn about superseded
rc.d scripts, to silence spurious warnings produced before
/etc/defaults/rc.conf script was updated.

(spurious warnings noted by Martin Husemann)
2011-07-14 09:31:19 +00:00
dholland
2a4f285a6d Minor cosmetic fixes, no semantic changes. (object file diffs have been
checked)
2011-07-10 07:54:49 +00:00
dholland
edda69b9c3 tsort contents of file. 2011-07-10 07:31:48 +00:00
dholland
a958ceefc8 use __dead 2011-07-10 07:19:24 +00:00
kefren
e733a1c2f0 Mention that it doesn't support Path Vectors and Hop Counts
Mention RFC3037 and xref ldpd.conf
2011-07-07 05:20:16 +00:00
kefren
849a1cbddc return EXIT_SUCCESS and EXIT_FAILURE instead on 0 and -1 2011-07-02 18:17:12 +00:00
joerg
7293bf2d37 Replace malloc + incorrect memset with calloc. 2011-07-01 03:09:29 +00:00
joerg
a6bdeabc26 Fix memset usage. 2011-07-01 03:07:21 +00:00
mrg
1c1ba33ca6 apply some -Wno-strict-overflow for GCC >= 4.5 2011-07-01 02:42:10 +00:00
wiz
4cbd24b23f dependant -> dependent 2011-06-30 20:09:15 +00:00
mrg
b6d5d1aeec fix previous / -Wno-enum-compare is only valid for GCC 4.5. 2011-06-29 06:34:31 +00:00
mrg
667b3f39be -Wno-enum-compare is only valid for GCC 4.5. 2011-06-29 06:32:32 +00:00
mrg
90786c5ad2 apply some -Wno-enum-compare 2011-06-29 02:40:11 +00:00
plunky
976f402dd7 use appropriate types for uid/gid 2011-06-25 09:28:45 +00:00
enami
0b23c5aa3d Move inclusion of sys/endian.h from cd9660_eltorito.c to cd9660.h
since actual user is not cd9660_eltorito.c but iso.h and
cd9660_eltorito.h.

Actually, include order/place of sys/endian.h doesn't matter on
netbsd since it is always included by sys/types.h but it's not
true on other system.  This should fix cross build breakage on
freebsd introduced by rev. 1.16 of cd9660_eltorito.c.
Problem reported and fix suggested on twitter.
2011-06-23 02:35:56 +00:00
mrg
5ed322d90a apply some -Wno-error/-Wno-enum-compare/-Wno-array-bounds.
this should be looked at more closely.
2011-06-22 05:23:53 +00:00
mrg
33c01d32fc remove some always true if () checks GCC 4.5.3 picks up. 2011-06-22 04:03:23 +00:00
mrg
62f88af12a fix the length argument to a memcpy() to refer to the size of the
destination, not the size of the pointer.  real bug on 64 bit platforms.
2011-06-22 04:02:46 +00:00
mrg
c111245a78 apply some -Wno-error and/or -fno-strict-aliasing.
all of this should be looked at closer, but some of them are not
very trivial.
2011-06-22 02:49:41 +00:00
mrg
2c77b0841d avoid code that looks like this:
x = x = y;
since GCC 4.5 complains about it having sequence point issues.
2011-06-21 09:36:46 +00:00
enami
7a059b3bd9 Now need to use own buffer for klog read due to previous change. 2011-06-20 08:27:15 +00:00
mrg
75e42fa7da remove most of the remaining HAVE_GCC tests that are always true in
the modern world.
2011-06-20 07:43:56 +00:00
enami
9394c08bbe Defer the processing of incomplete line at the end of buffer so that
kernel printf messages logged to /var/log/messages become always
easier to read.
2011-06-20 00:42:11 +00:00
wiz
d7b84b20f6 New sentence, new line. Fix some typos and an xref. Bump date. 2011-06-17 18:20:40 +00:00
manu
448e1c49b2 Add mount -o extattr option to enable extended attributs (corrently only
for UFS1).
Remove kernel option for EA backing store autocreation and do it by
default. Add a sysctl so that autocreated attriutr size can be modified.
2011-06-17 14:23:50 +00:00
kefren
d4ba594c90 Correct prefixlen->sockaddr calculation. Now ldpd may finally allow MPLS
forwarding for default route.
2011-06-16 20:42:15 +00:00
kefren
c2db1af7a2 obey RFC3036 3.5.2 regarding holdtimes
wire SIGINT
2011-06-16 14:48:30 +00:00