christos
64059bbbda
PR/38017: Greg A. Woods: rpcinfo -s broke after coverity fixes.
2008-02-13 16:15:18 +00:00
dyoung
d4f4828ee0
Do not #include <sys/device.h> from userland.
2008-02-11 22:43:39 +00:00
dyoung
4ef6fc056a
#include <sys/evcnt.h> instead of <sys/device.h>, since the former
...
is sufficient, anyway. Do not needlessly #include <sys/device.h>.
Note well: device_t is not part of the kernel ABI.
2008-02-11 03:51:17 +00:00
ragge
eb30206a9f
Adapt to new import of pcc.
2008-02-10 20:32:25 +00:00
jmmv
be1e5d770b
Always test MKMODULAR with != "no". Requested by mrg@.
2008-02-10 08:21:25 +00:00
jmmv
4e4a76c0c4
Do not descend into modstat if MKMODULAR is set.
2008-02-09 19:33:17 +00:00
mlelstv
5c1a4dd94c
Fix a segfault when doing 'stat -f %R' on the stdin file handle, instead
...
fake the filename '(stdin)' like the %N format.
2008-02-09 09:18:07 +00:00
joerg
bcdbb8101f
Print the complain about random stuff after empty only once.
2008-02-07 00:49:38 +00:00
joerg
c8bc46c4bc
Warn for constructs like
...
.if empty xxx(foo)
which are interpreted as
.if empty(foo)
or
.if empty (foo)
This is based on rillig's commit to pkgsrc/devel/bmake, but doesn't warn
for the third case. Discussed with sjg.
2008-02-06 18:26:37 +00:00
yamt
b895a23e56
fix a typo(?) in rev.1.34, which causes NULL dereferences.
2008-02-06 15:31:42 +00:00
joerg
a570300f03
Be pedantic and use unsigned int here as uwe@ suggested.
2008-02-05 16:39:26 +00:00
joerg
75ce084b15
Merge from pkgsrc's bmake: don't use signed short for bitfields.
...
This makes IBM xlc happy.
2008-02-05 15:11:50 +00:00
christos
0523aae770
PR/37954: Thomas Klausner: "tail -c 2" broken.
...
It is not tail -c 2 but most of tail -c <n> with pipes. Fix by Anon Ymous
2008-02-04 16:23:11 +00:00
christos
1d50c3e36a
add gettytab
2008-02-04 15:30:44 +00:00
christos
a1232e4db1
Add more undocumented capabilities to the *cap printing.
2008-02-02 20:57:20 +00:00
christos
ebcc6ba679
handle cap style databases.
2008-02-01 22:39:20 +00:00
erh
570958013a
Clarify what the format section of the cap_mkdb man page is talking about.
2008-01-31 04:00:54 +00:00
christos
5c8db85ac9
wait for 15 seconds, not 15 microseconds.
2008-01-25 19:54:40 +00:00
christos
787a0bbadb
minor lint
2008-01-25 19:36:27 +00:00
christos
1b761c7278
PR/37863: Wolfgang Stukenbrock: yp_passwd command may destroy NIS database entries when used on a server that includes users via netgroups
2008-01-25 19:36:12 +00:00
christos
2d1f1d1dae
PR/37862: Wolfgang Stukenbrock: ypwhich uses only UDP and not TCP
2008-01-24 23:56:55 +00:00
ad
703069c0e9
specfs changes for PR kern/37717 (raidclose() is no longer called on
...
shutdown). There are still problems with device access and a PR will be
filed.
- Kill checkalias(). Allow multiple vnodes to reference a single device.
- Don't play dangerous tricks with block vnodes to ensure that only one
vnode can describe a block device. Instead, prohibit concurrent opens of
block devices. As a bonus remove the unreliable code that prevents
multiple file system mounts on the same device. It's no longer needed.
- Track opens by vnode and by device. Issue cdev_close() when the last open
goes away, instead of abusing vnode::v_usecount to tell if the device is
open.
2008-01-24 17:32:52 +00:00
dyoung
5448ecad57
#include <stdbool.h> for 'bool', so that this kernel groveller will
...
hopefully compile again.
2008-01-21 20:34:13 +00:00
lukem
69b443d18c
Turn off the alarmtimer before resetting the SIGALRM handler back to SIG_DFL.
...
Fix from dieter roelants <dieter.NetBSD@pandora.be>
Should fix PR 35630.
2008-01-21 10:31:28 +00:00
hubertf
3618b9ac2c
It's RPCGEN_CPP, not RPCGEN_RSH
...
Pointed out on tech-userlevel by Anthony Mallet <anthony.mallet@useless-ficus.net>
2008-01-19 14:22:05 +00:00
sjg
807aff24d0
Implement -dl (aka LOUD) to override '@' at the start of script lines.
...
Based on supplied patch.
PR: 37202
2008-01-19 06:52:13 +00:00
ginsbach
9470f2d15c
Fix problem with handling escaped octal and hexadecimal sequences in the -f
...
format option. The problem is that the next character after such an escape
was not copied to the output.
2008-01-18 16:16:10 +00:00
jschauma
595e87e328
add an paragraph before listing of options
2008-01-18 01:50:11 +00:00
yamt
0116b931c2
sync with kernel. (make some mbuf related statistics per-cpu.)
2008-01-17 14:53:18 +00:00
tls
2a6850b9a9
Fix PR37377 from Devon O'Dell: num_menus can be referenced without being
...
emitted if dynamic menus are not enabled.
2008-01-16 09:21:33 +00:00
christos
e451ddaaa8
- Make the msdos and non-msdos cpp handling use the same variable $RPCGEN_CPP
...
instead of one using $CPP and the other using $RPCGENCPP, following suit with
RDIST_RSH, CVS_RSH, etc. and document it.
- make the msdos environment variable take precedence over path search.
2008-01-15 20:04:48 +00:00
rmind
5c71a4d49f
Implementation of processor-sets, affinity and POSIX real-time extensions.
...
Add schedctl(8) - a program to control scheduling of processes and threads.
Notes:
- This is supported only by SCHED_M2;
- Migration of LWP mechanism will be revisited;
Proposed on: <tech-kern>. Reviewed by: <ad>.
2008-01-15 03:37:10 +00:00
yamt
bfc70617c5
mbpr: fix a harmless bug. (sizeof pointer -> sizeof *pointer)
2008-01-14 12:56:05 +00:00
mkirby
bb55aebb4f
Fix a small grammatical error.
2008-01-12 21:05:13 +00:00
dholland
cbae618808
sizeof(char) is always 1. Conversely, however, CHAR_BIT is not always 8.
...
reviewed: mrg
2008-01-12 05:49:46 +00:00
lukem
cd2d88332f
Don't bring in -lutil for tools.
2008-01-11 00:38:10 +00:00
simonb
ccab3b34ce
Remove support for NetBSD/pc532.
2008-01-10 13:40:36 +00:00
lukem
d7382668ef
Convert to using raise_default_signal(3).
2008-01-10 05:15:07 +00:00
lukem
e4952757b6
Convert to raise_default_signal(3).
2008-01-09 05:48:58 +00:00
reed
e25157a1c9
Sort a command. It was was renamed in 1.113 but not resorted.
...
(I noticed when reading man page but didn't quickly find what I was
looking for.)
Also add a missing period.
2008-01-08 15:28:31 +00:00
apb
74bc6bcb6f
Add more detail in comments about maximum size of environment and
...
arguments passed by xargs(1) to execvp(2). Research done while
investigating PR 37666, which is not a problem in -current.
2008-01-07 08:20:52 +00:00
christos
03f11859f6
don't show cpu number on single processor machines for the threads display too.
2008-01-06 19:59:22 +00:00
yamt
f4a8d6e7c6
s/processor/CPU/ to increase chance to fit within 80 chars.
2008-01-06 06:55:08 +00:00
christos
bba8223c2b
it is pointless to print the cpuid on a single processor machine.
2008-01-05 19:29:12 +00:00
dsl
6a6b0fc96a
When we extend the buffer used to read makefiles (in order to read lines
...
longer than 32k) remember the new length so we DTRT for lines longer than 64k.
Should fix PR/37684
2008-01-03 22:14:53 +00:00
yamt
7afae692b2
remove no longer necessary lockdebug hacks.
2008-01-02 17:23:31 +00:00
dholland
5e6732eb9c
Don't allow negative args for the -A and -B options, because they
...
lead to SIGSEGV in the output formatting code.
Fixes PR 37657 from Jeffrey E. Bedard.
2008-01-01 17:45:01 +00:00
ad
7f3f509466
COMPAT_HPUX is gone
2007-12-31 15:26:31 +00:00
christos
5665eef11f
don't call curses from a signal handler!
2007-12-31 00:22:13 +00:00
degroote
11c94c257e
Report the new ipcomp stats under FAST_IPSEC : ipcomps_minlen and
...
ipcomps_uselesscomp
2007-12-29 21:36:43 +00:00
wiz
665cd277c5
Comment out xref to makemap(8), which does not exist.
2007-12-27 12:56:49 +00:00
ad
ea3f10f7e0
Merge more changes from vmlocking2, mainly:
...
- Locking improvements.
- Use pool_cache for more items.
2007-12-26 16:01:34 +00:00
ad
6b5fc70210
No need to list every file system type in this file.
2007-12-24 19:52:37 +00:00
wiz
8caeef46da
Sort options.
2007-12-24 13:56:00 +00:00
dsl
2cdb58761e
If make can't find a rule to create a file it needs to satisfy a rule
...
that came from .depend then just output a message and contine.
2007-12-21 20:32:24 +00:00
snj
787df2d0dd
Bump date for bzip2.
2007-12-21 19:45:33 +00:00
joerg
3fca1a6505
Document ISO format "cal 2007-12", leave "cal 2007/12" undocumented
...
intentionally.
2007-12-21 14:21:42 +00:00
dogcow
a9d4845398
It doesn't seem worth it to keep pathnames.h around (especially when it has
...
non-static data)
2007-12-21 06:46:31 +00:00
simonb
75727a9ea5
Fix some whitespace nits.
2007-12-21 06:25:19 +00:00
dogcow
37f3200b59
add new flag to newsyslog(5): J to bzip2 files.
...
There are no longer any hardcoded gzip-specific args, yay.
And while I was at it, compiles with -Wsigned, too.
2007-12-21 05:40:59 +00:00
ad
73157b0e11
- Support two different sizes of pool_cache group. The default has 14 or 15
...
items, and the new large groups (for busy caches) have 62 or 63 items.
- Add PR_LARGECACHE flag as a hint that a pool_cache should use large groups.
This should be eventually be tuned at runtime.
- Report group size for vmstat -C.
2007-12-20 23:49:10 +00:00
joerg
358c956d05
Also recognize year-month as suggested by Alan Barrett.
2007-12-19 16:45:41 +00:00
joerg
c98485db44
Make syntax checking more strict and recognize year/month.
...
One Finish and German developer agree that month year is a stupid
order, the French and British guys disagree and the only natural
choice left is to make it understand ISO style.
2007-12-19 15:52:50 +00:00
christos
08face766e
Fix a (very old) file leak. From Anon Ymous
2007-12-17 22:06:00 +00:00
perry
d4b751b032
Remove lots of redundant __attribute__((__noreturn__))s
...
The lines already had __dead on them. I wonder why they had both...
2007-12-15 22:01:25 +00:00
perry
8b0f9554ff
convert __attribute__s to applicable cdefs.h macros
2007-12-15 19:44:37 +00:00
perry
36c7456d7c
include sys/cdefs.h so that __attribute__ can be fixed later
2007-12-15 16:32:05 +00:00
perry
4d096031f0
replace instances of __attribute__((__packed__)) with __packed
2007-12-15 16:03:29 +00:00
christos
428c7a1f82
From Anon Ymous:
...
- Fix a file handle leak.
- Use Fopen(), Fdopen(), and Fclose() consistently so the signal
handler close files.
2007-12-14 16:55:20 +00:00
lukem
82d7cb8306
Use a common function to generate the "MACHINE GENERATED" comment,
...
and ensure mkswap.c adds it too.
2007-12-12 00:03:33 +00:00
cjep
966c1a873b
sync with pkgsrc changes - reorder includes and add some casts
2007-12-06 20:33:48 +00:00
yamt
3a246441d8
add -C to usage.
2007-12-05 09:20:56 +00:00
lukem
7a69105995
DPRINTF() consistency tweaks
2007-12-05 03:46:33 +00:00
seanb
769f8347e5
Report ipsecstats.ips_spdcache_miss under FAST_IPSEC correctly.
2007-12-05 00:51:12 +00:00
lukem
d4aed48135
Rename HAVE_STRUCT_SOCKADDR_SA_LEN to HAVE_STRUCT_SOCKADDR_IN_SIN_LEN
...
to accurately reflect the structure member being used.
2007-12-05 00:15:25 +00:00
wiz
8ed18604e6
Drop trailing whitespace. Fix typo and casing.
2007-12-02 20:41:40 +00:00
wiz
8a3535d6b1
Add comma in enumeration.
2007-12-02 19:47:56 +00:00
wiz
a092695006
Sort options.
2007-12-02 19:40:54 +00:00
dsl
8222554340
Be more informative about duplicated device names.
2007-11-30 23:19:18 +00:00
jnemeth
f8660caf4c
fix not protecting variable length buffer warning
2007-11-28 08:20:29 +00:00
ginsbach
a3a3ad0162
Changes for standards compliance:
...
- Accept "-" for msgfile (STDIN) and catfile (STDOUT)
- Merge msgfile into formatted catfile. The catfile is created if
it does not exist (current behavior). If the catfile exists,
its messages are included in the new catfile. Collisions between
set and message numbers cause the msgfile message text to replace
the existing message text.
(The $delset directive now makes more sense.)
Standards: The Open Group Base Specifications Issue 6
IEEE Std 1003.1, 2004 Edition
- Replace corrupt()/nomem() with errx(). The replaced routines
called local error() -> warning() which prints an input file line
number. This probably makes no sense for these conditions (it
is not a syntax error in msgfile). Line numbers are completely
nonsense when dealing with reading a formatted catfile.
- Modify warning() to only print line number when reading from a
message file. Also print the current file being processed.
- Don't issue a warning when processing a line with only a message
number and no trailing space. This is valid and will delete any
existing message with that number from the current set.
- Reset lineno for each msgfile processed.
2007-11-21 13:40:09 +00:00
jmmv
02921c77c9
Make syntax checking for id(1), groups(1) and whoami(1) commands stronger so
...
that they conform to what the corresponding manual pages say. This makes all
the tests I recently introduced for these utilities pass.
pooka thinks this was time well spent ;-)
2007-11-16 18:09:50 +00:00
jmmv
cacc05fe11
Drop trailing whitespace. On behalf of me.
2007-11-16 17:31:13 +00:00
christos
7c16cc9e3b
From Anon Ymous
...
- Fix a stupid typo: sizeof(sizeof(a)) isn't very useful.
- Use emalloc(3) and erealloc(3) instead of malloc(3) and realloc(3),
resp.
2007-11-14 22:06:04 +00:00
jmmv
9d5a9c0d86
Add the atf tools
...
This adds reachover Makefiles to build and install the atf tools.
Some are public, thus installed in /usr/bin, and others are internal
and therefore installed in /usr/libexec.
2007-11-12 15:00:00 +00:00
cube
66a59dcc4f
Don't defattr machinearch if it's NULL. Pointed out by
...
Juergen Hannken-Illjes.
2007-11-11 17:35:27 +00:00
yamt
bea40b2aa3
don't bother to print unmaintained statistics. (m_drops, m_wait)
2007-11-10 12:05:08 +00:00
atatat
e1aff854df
Put back the NetBSD tag
2007-11-10 03:12:10 +00:00
cube
66796c65e4
Make the "machine" statement define attributes for `machine', `arch' and
...
all the `subarch' given as parameters. This is useful in combination with
ifdef...
2007-11-10 00:15:43 +00:00
cube
656cdcc8fb
Add support for "ifdef <attribute>" blocks. It goes like this:
...
ifdef <attr> / ifndef <attr>
elifdef <attr>
elifndef <attr>
else
endif
No indentation is possible for now, it will come later.
2007-11-09 23:41:08 +00:00
plunky
e5a7441d16
Add a new utility 'btkey' for managment of Bluetooth Link Keys stored
...
in the NetBSD key cache (/var/db/bthcid.keys) and Bluetooth controller
memory.
2007-11-09 21:18:22 +00:00
cube
baec5c01fc
Don't pollute fsopttab with duplicate options for the sake of a test that
...
has probably been gone for a very long time. Produces identical output.
2007-11-09 05:21:30 +00:00
cube
f51c36b80a
- Make include/cinclude/package eat up to the next new-line character.
...
- Fix casts in getincludepath() and re-work it to ignore the unused end of
the line.
2007-11-09 05:06:08 +00:00
christos
2668450a7f
include stdbool.h instead of typedefing bool to int
2007-11-09 04:11:47 +00:00
wiz
ed200f5855
Document the flags displayed by the default format, and mention their short
...
names. From espie@openbsd via jmc@openbsd.
2007-11-07 23:01:33 +00:00
wiz
e2d8a15c15
Make sentence easier to parse. From jsing@openbsd via jmc@openbsd.
2007-11-07 22:27:50 +00:00
dsl
bffcdd2c73
Apply the -N (show syscalls by number) to the system return trace.
...
Change 'USER' to 'MISC' since they get used for misc kernel traces as well.
2007-11-07 22:22:31 +00:00
dsl
1e4971a8ff
Verify that the system call is within the negative range before
...
deciding that it is a 'mach' system call.
XXX - shouldn't this translation only happen for certain emulations?
2007-11-07 22:20:20 +00:00
ad
9b336836df
Add -C option to display pool_cache info, eg:
...
Pool cache statistics.
Name Spin Full Empty PoolLayer CacheLayer Hit% CpuLayer Hit%
pipepl 0 1 3 385 42862 99.1 985780 95.7
fdescpl 0 0 2 310 31133 99.0 1029620 97.0
cwdipl 0 0 2 310 31227 99.0 1029714 97.0
filepl 0 1 4 680 141415 99.5 24011135 99.4
2007-11-07 00:24:18 +00:00
plunky
bbbbeb6a46
use stderr for printing usage messages
2007-11-06 21:35:52 +00:00