Commit Graph

3128 Commits

Author SHA1 Message Date
perry
b23b1bcc57 Document what happens when you don't have any dependency lines in a
file, and downgrade "must" to "should" in a couple of places.
Answers a documentation complaint from Jeremy C. Reed in PR misc/21251
2003-04-24 03:15:45 +00:00
jrf
6867af7aad This addresses PR 17613 when certain methods of adding routes would
muck up the routing tables. The patch was submitted by Quentin Garnier
<netbsd@quatriemek.com> and tweaked a little after it was reviewed
by Christos Zoulas <christos@netbsd.org>. Final change/commit approved
by Christos.
2003-04-21 13:42:50 +00:00
itojun
16435cdb98 strcpy/sprintf cleanup. from openbsd 2003-04-21 08:54:42 +00:00
dbj
2e6348f3d8 add a SIGINFO handler progress indicator 2003-04-21 07:58:55 +00:00
christos
336e3096f2 PR/5680: Markus Illenseer: Mounting and using broken mfs results into kernel
panic
Fixed by checking two return cases from alloc() that were not checked before.
2003-04-20 19:55:33 +00:00
christos
c1c48aec57 PR/5544: Anders Magnusson: Init segfaults when hupped in single user.
- fix so that session_db is not de-referenced when null, and other
  possible null pointer dereferences.
- ignore hup and tstp in single user mode.
2003-04-20 17:16:31 +00:00
tls
539a3fbb0a The sysctl returning the amount of memory in the system returns "int",
which is silly.  Luckily, it really does return the correct result if
interpreted as an unsigned int.  This change lets dump work on 32-bit
systems that have more than 2GB of RAM.
2003-04-19 23:29:12 +00:00
christos
7e60cdc11e add tcp.ident. 2003-04-19 21:55:48 +00:00
wiz
dab156a456 This command is not normally executed at boot time.
Closes PR 21225 by Aidan Kehoe.
2003-04-18 14:53:50 +00:00
thorpej
817eb1cb2e We need -I., too. 2003-04-17 22:12:50 +00:00
fvdl
9f959f87e7 Call MAKEDEV with "init" 2003-04-17 18:04:47 +00:00
fvdl
38f661d48d -I. -> -I${.CURDIR} 2003-04-17 10:55:43 +00:00
lukem
85828b646a clear errno before strto(u)l() if we're going to test it for ERANGE afterwards 2003-04-17 04:01:56 +00:00
wiz
472351e13d Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
2003-04-16 13:34:34 +00:00
martin
eb1ff84c33 Until timeval.tv_sec becomes a time_t, we can't pass a pointer to
it to ctime(). tv_sec is long, while time_t is int on some archs.
2003-04-16 13:32:58 +00:00
wiz
037dbec1f7 New sentence, new line. 2003-04-16 13:05:01 +00:00
wiz
77c7ae1259 Drop superfluous .Pp; bump date for last. 2003-04-16 13:04:27 +00:00
wiz
1745a4efd2 Combine no-argument options in SYNOPSIS. 2003-04-16 12:55:15 +00:00
wiz
3b71168fc8 Bump date for last. 2003-04-16 11:58:43 +00:00
wiz
843df8bc67 Bump date for last-but-one; remove superfluous .Pp. 2003-04-16 10:09:47 +00:00
dsl
1608697b9e Fix printf formats and kill unused variable to make it compile 2003-04-16 08:39:56 +00:00
darrenr
8745a98a43 Don't forget to increment the iterator when going around a loop 2003-04-15 19:07:37 +00:00
darrenr
543eb62ec5 Add a note to "retry" option about device requirements. 2003-04-15 18:39:58 +00:00
darrenr
8dac8843a5 Implement (and document!) "dkctl <dev> badsector .." to `manage' the bad
sector information in the kernel.  Doing this uncovered some shortcomings
that should have been pretty obvious with the code committed prior, addressing
the major kludge with a new struct - disk_bacsecinfo to be passed into
DIOCBSLIST.
2003-04-15 18:27:26 +00:00
itojun
3fbac68bea use snprintf. there are more... 2003-04-15 08:20:17 +00:00
itojun
64e132e781 array seems too small 2003-04-15 07:37:34 +00:00
itojun
84490858f9 correct questionable use of strncpy(). 2003-04-15 07:36:14 +00:00
itojun
781846fcdb use NI_MAX*. 10 is not enough for port number. sync w/kame 2003-04-15 07:32:06 +00:00
elric
3c7e4881c4 Fix typo. params files are not stored in /dev/cgd/ 2003-04-15 06:43:36 +00:00
fvdl
7b402ff9df If an alternate superblock is used, update the standard one correctly. 2003-04-14 18:50:52 +00:00
itojun
506c5eeb9e permit -s 0. from Maxim Konovalov 2003-04-14 10:18:37 +00:00
yamt
f5f20840e2 save and restore errno in signal handlers. 2003-04-13 10:22:40 +00:00
christos
a16e9fc559 add checkinterface 2003-04-12 04:32:54 +00:00
perry
765e98ca6e Document the -v and -z flags. 2003-04-12 01:08:28 +00:00
perry
d229e19ca4 Add an option (-z) like -v except that it clears the input/output
stats after printing them.
(Basically this just calls SIOCZIFDATA instead of SIOCGIFDATA).
Submitted by Jean-Edouard BABIN in PR bin/21078
However, he suggested using -c, and cgd (reasonably) noted that -z for
"zero" was probably more reasonable.
I've also changed the code very slightly.
2003-04-12 01:07:43 +00:00
christos
c54d6ca813 PR/1472: David Carrel: Add option to specify the nfs port.
This was not done, I added the functionality to be able to parse
port=num in the options. While I was there, I added this for all
the other numeric options: rsize, wsize etc.
2003-04-11 17:39:09 +00:00
enami
e89481b248 Correctly detect a UFS1 file system of non-native endian. 2003-04-11 10:21:40 +00:00
jdolecek
40d3f26f8c desupport LMRESERV_O, anything relying on it doesn't have chance of working
anyway due to numerous kernel structure changes
2003-04-11 07:49:31 +00:00
elric
8105111443 If reading an old style parameters file then default a missing
keygen_iteration to 128.  This will not default the iteration count
on a new style parameter file as it is an error in the new style
to fail to specify the iteration count.

Addresses PR: bin/21056
2003-04-10 05:45:29 +00:00
lukem
04a792a536 fix typo introduced in previous (print "addr=" instead of "ddr=") 2003-04-10 04:40:38 +00:00
fvdl
774a28f33f Correctly deal with directories that need indirect blocks by adding
some code I missed in the UFS2 commit. Should fix false positives
seen by fsck_ffs on clean filesystems.

Thanks to Takahiro Kambe for debugging help.
2003-04-09 12:49:28 +00:00
fvdl
e06c710852 Swap the right blocks in an inode in the byteswapping case. 2003-04-08 14:59:52 +00:00
fvdl
bbc00e975a Fix reverse test for UFS2 in the blks command. 2003-04-08 14:46:21 +00:00
fvdl
2812e7d837 Since the size passed in may be different from the fs blocksize, just
allocate a buffer each time instead of using a static one.
2003-04-08 10:02:23 +00:00
fvdl
0835d456dd dblk should be static. Fixes PR 21020, by Geoff Wing. Patch supplied
by him.
2003-04-08 09:16:19 +00:00
fvdl
253e7c6b6a Don't print the version of the argument structure, it's easily confused
with the NFS version.
2003-04-07 13:31:17 +00:00
wiz
d0ca8fad45 Some casing changes, and use Er for EINTR. 2003-04-06 19:42:59 +00:00
fvdl
750ed85d47 Write update some old fields when writing the superblock, similar to
ffs_oldfscompat_write() in the kernel. Use the old totals when
time < old_time (i.e. an old kernel or fsck wrote the filesystem last).
When setting the date back on a new kernel, that works out ok, since
new kernels always update both fields.
2003-04-06 17:23:25 +00:00
lukem
ea56af7b9d Tweak behaviour introduced in rev 1.50;
*	by default, warning messages go to stderr
    *	if -A or -a is used, send warning messages to stdout instead.

The behaviour in 1.50 meant that
	somevar=`sysctl -n machdep.booted_kernel 2>/dev/null`
could end up with $somevar="machdep.booted_kernel: the value is not available"
rather than the more useful $somevar="".

(This way, "sysctl -A | grep ..." is still useful.)
2003-04-06 05:19:03 +00:00
fvdl
8e4c90f49a Skip checks for old 4.2BSD filesystem; as it stands, we can't deal with
writing them. Could be fixed, but doesn't have a high priority.
2003-04-05 13:45:21 +00:00