mjl
f395946596
Correct typos (from OpenBSD).
2003-01-12 21:04:06 +00:00
christos
c3e2d898b4
produce lint free code.
2003-01-10 20:00:50 +00:00
atatat
80f8e56ac7
More properly handle the setgid privileges that we have, casting them
...
out if using them might be unsafe.
2003-01-09 13:05:12 +00:00
uebayasi
3d7c8fcb51
Be more specific how to call arguments of modifiers.
...
Reviewed By: wiz
2003-01-09 01:22:30 +00:00
atatat
a26b7f4d29
Make pmap work on LOCKDEBUG *and* non-LOCKDEBUG kernels (previously it
...
would fail in spectacular ways on LOCKDEBUG kernels) by compiling the
groveler code twice (the second time with LOCKDEBUG defined so that
the appropriate structures get larger in the right way). We currently
decide if we are operating on a kernel with LOCKDEBUG enabled if the
kernel's vm_map has referential integrity between a few pointers
and/or values.
Also, if you use more than one -v, you get a * on a line by itself in
between gaps in entries. It makes finding gaps much easier visually.
2003-01-08 20:25:12 +00:00
wiz
1035faff1d
writable, not writeable.
2003-01-06 20:30:28 +00:00
wiz
1aad114a16
Bump date for -b, -I addition; drop trailing whitespace; separate SEE ALSO
...
entries with a comma.
2003-01-06 19:26:17 +00:00
wiz
c053751628
compatibility, not compatiblity.
2003-01-06 13:26:24 +00:00
wiz
c6f1277bfa
synchronous, not syncronous.
2003-01-06 13:10:25 +00:00
wiz
7e681f7063
interrupt with two rs.
2003-01-06 13:04:54 +00:00
wiz
e840d74cd0
Superfluous word; from jmc@prioris.mini.pw.edu.pl via openbsd.
2003-01-06 12:48:06 +00:00
wiz
bec6f0cde7
Wrong word; from jmc@prioris.mini.pw.edu.pl via openbsd.
2003-01-06 12:43:08 +00:00
wiz
5e442fbbdd
specified, not specifed.
2003-01-06 12:38:47 +00:00
kristerw
4786f258bd
Make yacc emit plain ANSI C prototypes instead of __P() wrapped ones.
...
Per discussion on tech-toolchain.
2003-01-05 21:38:50 +00:00
sommerfeld
35e929d5c4
Document some previously undocumented options.
2003-01-05 19:28:13 +00:00
seb
a74ab65529
Fix usage message and SYNOPSIS section wrt to option O as suggested by wiz.
2003-01-05 13:07:38 +00:00
pooka
732f4c9fa5
Add ${MACROS} to ${ROFF} usage to make output readable
...
from jbernard@mines.edu in misc/19685
2003-01-05 12:24:22 +00:00
wiz
617b132aac
Spell output with two ts.
2003-01-04 23:43:02 +00:00
mjl
037d3d9eb9
Tyop fixes
2003-01-03 14:11:18 +00:00
mycroft
d73e77b28c
Update copyright notice.
2003-01-01 00:00:13 +00:00
sjg
32a3b241bf
Treat an unquoted '#' as end of line when parsing conditionals.
...
This ensures that comments are ok at the end of line.
PR: 19596
Reviewed by: christos
2002-12-30 18:03:09 +00:00
kristerw
5fa174af73
Prevent the "kBps" field from overflowing for values > 1M/s.
...
From Paul Shupak in PR 18822.
2002-12-29 19:03:56 +00:00
seb
28089a8457
After discussion with lukem rename 's' option to 'O'.
...
Hopefully 's' option has been here only a couple of hours.
2002-12-29 18:42:49 +00:00
seb
da890ac594
Fix error message for option `F' when passed a bogus argument.
...
Actually activate option `F' in getopt's optstring.
Implement option `s' to specify output field separator string.
Approved by lukem.
2002-12-29 11:17:04 +00:00
mrg
c0f9ed084d
- decode_int(): always use base 10, so that a time of "1:09" works.
...
- decode_time(): 60 seconds in a minute, really.
both from tsarna@netbsd.org .
- be verbose about the time we are going to record for, if verbose.
2002-12-27 23:43:15 +00:00
briggs
a35f350a48
Remove a duplicate bank holiday entry for 12/26.
2002-12-26 19:17:23 +00:00
jmmv
59978ac5c6
Fix typo: extra 'a' word in plural sentence. Approved by wiz.
2002-12-26 15:49:37 +00:00
jdolecek
63ae9a5e5f
make function merge() static in msort.c
...
cosmetic change to how local variable is incremented (moved to for(;;))
2002-12-25 21:19:15 +00:00
jdolecek
642aec9a6f
improve previous slightly - need >= (not just >) in CHECKFSTACK()
2002-12-24 15:15:01 +00:00
jdolecek
0f5341a33d
max_o in struct tempfile needs to be off_t
...
use fseeko() rather than fseek() when changing file offset using max_o
2002-12-24 15:09:27 +00:00
jdolecek
fed8f4c4a6
put contents of extern.h directly to sort.h, and g/c extern.h
...
de-__P()
2002-12-24 15:02:46 +00:00
jdolecek
8852da41eb
g/c many_files(), too
2002-12-24 14:58:57 +00:00
jdolecek
e296a59c79
bump 'soft' limit for number of files to hard limit on startup; we
...
want to be able to open as many temporary files as possible
2002-12-24 14:55:46 +00:00
jdolecek
b0a6f61876
make sure we don't attempt to write past end of fstack[], error out instead
...
this fixes second part ('tmpdir get smashed') of bin/18614 by Michael Graff
2002-12-24 14:43:37 +00:00
jdolecek
9208bb6e3a
add extern definition for ncols and clist[] to sort.h, eliminate extra
...
definitions in init.c and field.c
g/c MAXMERGE
2002-12-24 13:20:25 +00:00
jdolecek
77d4ae97df
move fltab outside main and make it static, eliminate two memset()s
...
g/c superfluous extern definition for clist[] and ncols
make toutpath[] static
2002-12-24 13:09:38 +00:00
jdolecek
b1eda372a4
simplify a bit (no need for separate 'char *path')
2002-12-23 20:14:26 +00:00
wiz
0065eb62cf
Add a missing word.
2002-12-23 12:49:38 +00:00
lukem
08fab22988
DTRT with -D destdir when the target == destdir
2002-12-23 06:24:15 +00:00
lukem
30c6688fbd
Implement '-e extra', as per svis(3)'s "extra" argument.
...
Document which vis(3) flag particular options enable (for easier cross
referencing between vis(1) and vis(3))
2002-12-23 01:45:54 +00:00
is
8da084abaa
Actually return a different code for big-endian UTF-16 in looks_unicode().
...
Fixes PR 19487.
2002-12-22 16:31:21 +00:00
wiz
ea577b210e
Debugging is usually spelled with three gs.
2002-12-22 13:50:35 +00:00
lukem
64fd31222b
fix -E endian
2002-12-22 11:26:20 +00:00
lukem
47c5aec4fe
document defaults
2002-12-22 11:22:49 +00:00
lukem
f766ef620d
Implement '-D destdir'; if '-M metalog' is being used, remove a
...
leading `destdir' from the file name logged to the metalog.
The -D option has no effect on where the actual files are installed.
2002-12-22 10:15:17 +00:00
kleink
ac7290d7c2
Add a sysconf(3) knob for {ATEXIT_MAX}.
2002-12-19 23:31:54 +00:00
wiz
57f65f0dda
Drop trailing whitespace.
2002-12-19 09:17:01 +00:00
lukem
c7c281222a
Add '-N dbdir', to specify that user & group lookups are to be done from
...
dbdir/master.passwd and dbdir/group, using simple text file parsing
routines from ../../usr.sbin/mtree/getid.c.
2002-12-19 08:30:39 +00:00
wiz
7177b5877e
Drop trailing whitespace, use Aq instead of Lt and Gt.
2002-12-18 20:16:48 +00:00
wiz
2e958b3f0b
Bump date for some recent mach changes, fix two nits.
2002-12-18 20:10:37 +00:00
wiz
7490281b17
New sentence, new line; use more markup.
2002-12-18 19:57:05 +00:00
wiz
e93f0aaa95
Be consistent about putting commas between items in an enumeration.
2002-12-18 19:48:28 +00:00
martin
304244f5d7
Avoid integer overflow in percent calculation when facing a mbuf leak.
...
Fixes PR bin/19381 by Michael van Elst (slightly different than suggested).
2002-12-14 11:12:24 +00:00
atatat
88df2c4818
The -u option takes an argument, so we need the corresponding : in the
...
getopt() string. Does no one use uvm histories any more, or does
everyone just dump all the histories?
2002-12-12 20:03:32 +00:00
lukem
5b7400f6ea
some todo items
2002-12-11 14:33:15 +00:00
lukem
a3d56580b8
- set cachesize to 1MB (instead of default 2.5KB); greatly improves
...
performance on large imports
- remove unnecessary asserts
2002-12-11 14:30:53 +00:00
lukem
d182cf2f90
add db(1)
2002-12-11 13:52:41 +00:00
lukem
a8f67a8b25
db(1) - manipulate db(3)'s btree(3) and hash(3) databases
2002-12-11 13:40:42 +00:00
fvdl
d8ae1c92f7
Build this on x86_64.
2002-12-10 16:07:28 +00:00
manu
6492e2171f
Added support for dumping mach messages in ktrace/kdump. While we are
...
there, KNFify a few functions.
2002-12-09 21:29:20 +00:00
scw
4df9ab06e4
Add evbppc.
2002-12-09 13:00:05 +00:00
gson
936f6a1c3c
When JobExec() was called from JobRestartJobs() via JobRestart(), it
...
executed the make job with sigprocmask(SIG_BLOCK) in effect for a
number of signals including SIGCHLD. This caused recursive submakes
of the make process in question not to receive SIGCHLDs when their
jobs exited. This was a second, independent cause of bin/18895 in
addition to the race condition already fixed. Fixed by unblocking all
signals before executing the job.
2002-12-09 01:23:53 +00:00
perry
43e55ca474
add qsubst
...
re-sort and re-format SUBDIRs
2002-12-08 21:50:36 +00:00
perry
101d2f766f
Some KNF, via indent(1) and hand work. Still needs a lot of cleanup.
2002-12-08 21:29:27 +00:00
mrg
e7e34e98bb
fix an error message
2002-12-08 10:49:22 +00:00
mrg
18c97a1496
remove some #if 0 debug code
2002-12-08 10:49:03 +00:00
mrg
be9dc1869d
fix the description for "-p" to match reality, new text provided in PR#18949.
2002-12-08 10:00:12 +00:00
thorpej
8fb0e9f9e9
Include <string.h> for prototypes.
2002-12-06 03:27:39 +00:00
thorpej
7b3d93e318
Avoid a strict alias warning.
2002-12-06 03:24:42 +00:00
thorpej
29d4b591ea
Avoid strict alias warning.
2002-12-06 03:21:43 +00:00
thorpej
9f3eaa5002
Remove extra args from a printf.
2002-12-06 03:13:14 +00:00
thorpej
f393397bd6
Avoid confict with reserved identifier "log".
2002-12-06 03:09:28 +00:00
thorpej
e0e584cdfa
Avoid a trigraph, and fix printf formats.
2002-12-06 03:05:04 +00:00
thorpej
22887c3c29
Avoid strict alias warning.
2002-12-06 02:57:30 +00:00
thorpej
8d965a0542
Need <stdlib.h> for exit() prototype.
2002-12-06 02:54:19 +00:00
scw
ffeb337cd7
Lst exp -> Lst explist, to avoid warnings about gcc-current's
...
builtin exp() function.
2002-12-05 15:56:52 +00:00
fvdl
286cf86961
Get the right formats for x86_64.
2002-12-05 01:38:26 +00:00
junyoung
d293fed282
Remove KNF from TODO list.
2002-12-02 14:08:17 +00:00
junyoung
2b65911602
KNF.
2002-12-02 14:05:11 +00:00
sjg
ecdc5fc7ad
Parse_DoVar: don't free cp until we are done with it!
...
Reviewed by: hannken
2002-12-01 05:53:30 +00:00
lukem
d348d3d723
tweaks for fparseln(3) move from libutil to libc:
...
- remove #include <util.h> if nothing else needed it
- remove LDFLAGS+=-lutil if nothing else needed it
2002-11-30 03:10:53 +00:00
wiz
287a8f7fb0
Sync usage with man page (and actual options).
2002-11-29 19:15:41 +00:00
wiz
75c991f87d
Bump date for -N; sort options.
2002-11-29 19:14:00 +00:00
wiz
80dfe4a842
Bump date for .PATH description; begin sentence with upper case letter;
...
new sentence, new line.
2002-11-29 19:10:25 +00:00
jdolecek
d51c5abbd9
signame(): if sig == 0, return name " 0", so that the result would be
...
printed as:
CALL kill(0x1e4, SIG 0)
rathern than previous
CALL kill(0x1e4, SIG*unknown 0*)
2002-11-28 16:18:49 +00:00
atatat
a19ac80340
Add -N which inhibits translation of system calls numbers into names.
2002-11-27 21:26:57 +00:00
tron
21f56aa969
Remove the statically initialized "sigaction" structure completely because
...
such usage is broken. Problem pointed out by Klaus Klein on
"sources-changes@netbsd.org".
2002-11-27 16:47:13 +00:00
tron
f58cb59ba6
Add braces in a statically initialized "sigaction" structure to fix a
...
build problem after siginfo(2) has been added.
2002-11-27 14:44:46 +00:00
sjg
78610dd53d
Whenever we update .PATH, set the variable ${.PATH} to reflect the
...
search list that will be used. Thus 'dot' and 'cur' will appear in
${.PATH} either at the start or end depending on .DOTLAST even though
they are not strictly in dirSearchPath.
When .CURDIR is assigned to - re-set the 'cur' Path.
Finally, when checking subdirs, look in 'dot' and 'cur' (first or last
depending on .DOTLAST) just as we do in other situations.
2002-11-26 06:12:59 +00:00
enami
b3e831985f
Call fcntl() on the right file descriptors.
2002-11-26 05:30:01 +00:00
christos
c02b3bbdf4
Fixes from David Laight:
...
- ansification
- format of output of jobs command (etc)
- job identiers %+, %- etc
- $? and $(...)
- correct quoting of output of set, export -p and readonly -p
- differentiation between nornal and 'posix special' builtins
- correct behaviour (posix) for errors on builtins and special builtins
- builtin printf and kill
- set -o debug (if compiled with DEBUG)
- cd src obj (as ksh - too useful to do without)
- unset -e name, remove non-readonly variable from export list.
(so I could unset -e PS1 before running the test shell...)
2002-11-24 22:35:38 +00:00
thorpej
7d013a7ef5
Skip passing -$ to the preprocessor, for now.
2002-11-24 20:24:54 +00:00
simonb
7a17e24ac5
Remove pc532-only hacks to access wildly different interrupt accounting
...
now that interrupts are tracked with evcnt(9) on this port.
2002-11-22 13:30:34 +00:00
simonb
ecf6315bd0
Include <machine/intr.h> to get "struct iv" (in pc532-specific code).
2002-11-21 01:39:15 +00:00
nathanw
7ec345ff22
In getuptime(), use kread() to get the current time as well as boottime,
...
instead of calling time(3).
This makes rate calculations of crash dumps sensible; in contrast,
subtracting the boot time of the crash dump from the current time of the
running system produces a not-very-meaningful number.
2002-11-18 03:17:24 +00:00
gson
96f1cc8289
Fixed race condition that would cause make -j to pause for five
...
seconds if a SIGCHLD arrived while make was not blocked in poll(),
by making the SIGCHLD handler write to a pipe included in the poll.
Avoided the need to implement a duplicate fix for the USE_SELECT case
by emulating poll() in terms of select() when USE_SELECT is defined.
Fixes bin/18895.
2002-11-16 22:22:23 +00:00
itojun
5f2d0b666f
error handling on strdup failure
2002-11-16 15:59:26 +00:00
itojun
d118467d1c
use strlcpy
2002-11-16 13:45:10 +00:00
itojun
0cf92ab036
use strlcpy
2002-11-16 05:24:44 +00:00
itojun
9593086444
use strlcpy
2002-11-16 04:34:13 +00:00
itojun
8fcb6ec6c6
use strlcpy to ensure string termination
2002-11-16 04:31:15 +00:00
nathanw
83be8543f2
Add a _rtld_dlerror() function, since it it now needed by search.c,
...
and otherwise make the error routines look more like what's currently
in rtld.c (so *this* is where _rtld_error_message was hiding...).
2002-11-15 22:39:17 +00:00
manu
bcffe04b31
Now properly display Mach traps
2002-11-15 19:58:05 +00:00
christos
67dc335c98
PR/18896: Jason Thorpe: C99 structure member initializers broken for arrays.
...
XXX: The checking done does not work, but the code passes.
2002-11-13 21:50:57 +00:00
kleink
a4d0ca7ffd
setlocale(LC_ALL, "") on startup.
2002-11-12 22:41:01 +00:00
tron
60f1df5f64
Don't include obsolete include file "rpc_com.h" any more.
2002-11-08 14:19:42 +00:00
enami
988be8626f
- file ... instead of filename ...
...
- "An asterisk (``*'')" instead of "A (``*'')" to be more consistient with
rest of this manpage.
- Fix typo; ``w'' instead of ``''.
- There is no section named Sockets. There is only SOCKETS.
2002-11-07 13:52:04 +00:00
enami
62bf3a2b33
- fix section of this manpage; it's 1 not 8.
...
- use Nm "" instead of just Nm in SYNOPSIS.
2002-11-07 13:40:16 +00:00
mrg
c7cd1b33d0
fix PR#18909, but not quite exactly the same as the patch provided. also,
...
check if the filesize causes a size_t overflow and if so, use the fallback
read/write loop method.
2002-11-04 12:04:23 +00:00
lukem
bac7350bc5
whitespace consistency
2002-11-04 03:17:53 +00:00
wiz
9a746b1751
Move close so that last ioctl is before close call.
...
Fix duplicate word in comment.
Based on patch from Christian Biere in PR 18902, with a style nit fixed.
2002-11-03 19:35:00 +00:00
wiz
ac9ef76efe
Add NetBSD calendar file.
...
Dates supplied by Hubert Feyrer, thanks!
2002-11-03 15:53:41 +00:00
perry
5f042d3d69
add a comment on c99ism noting that the logic might be wrong but we
...
haven't yet decided on what combinations of -s and -S really are
intended to mean yet.
2002-11-02 20:14:10 +00:00
perry
22f5530a1a
Make long long a c99ism, not a gnuism.
2002-11-02 20:10:16 +00:00
perry
cca1626bfa
add c99ism(), by analogy to gnuism(), for c99 construct (un)warnings
2002-11-02 20:09:27 +00:00
perry
2bf91ba1e8
environment variables, not environmental variables
2002-11-02 04:13:41 +00:00
perry
ab74747a8d
1) // is only for c99 or gcc
...
2) inline is acceptable in c99 -- create a new c99 keyword class.
XXX The handling of sflag and Sflag is utterly bogus throughout this
pass. I think I have to make some adjustments.
2002-11-02 01:42:22 +00:00
simonb
b9c304a9e0
Pass all three mib items to a sysctl in dkreadstats().
...
Use the new kernel sysctl sizing code to calculate the number of drives.
2002-11-01 15:23:06 +00:00
mrg
3cf4c73d05
iostat(8) and systat(8) support for separate read/write disk statistics.
...
"iostat -x" now shows these (ala linux/solaris), but this is only splitting
the read/write bytes/transactions, not adding any new metrics. "systat
iostat" now has two new commands to switch between combined/separate mode
for both it's numbers & bar modes.
2002-11-01 12:47:55 +00:00
christos
277101f13c
PR/18866: David A. Holland: missing const keyword in rpcgen output
2002-10-31 02:05:35 +00:00
jdolecek
64275c4aaf
use kqueue to watch the file if possible
...
from FreeBSD via Luke Mewburn
this specifically does NOT include FreeBSD rev. 1.28 change; it's
my understanding -F is specifically meant to only detect removal
of the tailed file, not to watch for intermediate path changes
2002-10-30 21:48:50 +00:00
thorpej
35d6519b2d
Don't truncate the vm_map_entry offset to 32-bits when printing.
2002-10-29 14:50:53 +00:00
manu
0d50171c61
Added support for COMPAT_MACH
2002-10-29 07:17:43 +00:00
kleink
2008ede1e1
psroff has been dead for quite some time.
2002-10-27 12:29:11 +00:00
kleink
f624532a37
Add missing -u euid option to optstring; from Michael van Elst in
...
PR bin/18827.
2002-10-27 11:49:34 +00:00
grant
b1aed1c393
fix typo, from sm@resistor.net in misc/18816.
2002-10-26 17:06:08 +00:00
yamt
ebc708387a
add VT_LFS case.
2002-10-26 06:03:50 +00:00
wiz
d94dd4600f
ispell. Use more markup.
2002-10-25 20:10:21 +00:00
yamt
c81873c76e
- add -A and -B option.
...
- change -3 to a synonym of "-A1 -B1".
(to make compatible other implementations)
- eliminate duplicated codes.
- fix crashes for -3.
2002-10-25 20:06:56 +00:00
chopps
32e3bfbd42
add xref to init where security levels are discussed, more should probably
...
be written in this manpage on this subject.
2002-10-24 18:51:19 +00:00
jdolecek
879d35cda1
merge rev. 1.50.2.1 (made by lukem):
...
rudimentary support for for displaying DTYPE_KQUEUE fds
2002-10-23 22:37:11 +00:00
christos
c7e6cd9edb
mention what is wrong with the ({}) productions.
2002-10-23 13:01:16 +00:00
itojun
e91a21c27c
add DPADD.
2002-10-23 01:25:35 +00:00
christos
fa292fcfa7
forgot to commit those.
2002-10-23 00:36:36 +00:00
christos
5a3a9e9ea9
add support for ({}) gcc shit.
2002-10-22 22:50:11 +00:00
christos
899427c2e4
handle free-ing of temp symbols properly. Don't segv on bad node types.
2002-10-22 21:09:34 +00:00
christos
c5db62c0ef
add C9X/GCC compound literal expressions.
2002-10-22 18:15:00 +00:00
christos
8c326659c6
add variable array dimension.
2002-10-22 13:48:50 +00:00
christos
ff5be0fa49
handle gcc __FUNCTION__ and C9X __func__
2002-10-22 13:31:34 +00:00
christos
e6e5ec1d1b
fix spelling in comment.
2002-10-22 13:30:23 +00:00
christos
cb118faff0
a cast to a pointer is an l-value.
2002-10-22 00:25:29 +00:00
christos
718a2bccc8
handle cast in the rhs of a - op.
2002-10-22 00:06:46 +00:00
christos
49f5eb9bb9
Ignore cast size test in initializers; look at example in the comment.
...
Maybe there is a better way...
2002-10-21 22:48:13 +00:00
christos
18a706cc53
fix typo
2002-10-21 22:44:08 +00:00
christos
8638e1a5b8
add -S flag for c99 support.
2002-10-21 21:16:12 +00:00
christos
66cab14e3e
support for c99 style and gnu style structure and union named initializers.
2002-10-21 21:14:51 +00:00
enami
b579228888
Fix whitespace usage.
2002-10-21 10:18:23 +00:00
enami
f594d61275
If utmpx support is enabled, use sockaddr field to get numeric address.
2002-10-21 10:10:26 +00:00
provos
32b88027c7
use readlink with bufsize - 1; approved thorpej.
2002-10-19 20:33:17 +00:00
wiz
e2a4ec505f
Bump date for last.
2002-10-18 22:44:48 +00:00