elad
5d7aa1a613
Make netstat use sysctl when dumping routing tables/stats.
...
Heavily based on similar code from Claudio Jeker (at OpenBSD).
While here, fix inet/inet6 sysctl stuff commited previously to
actually work, and some other nits to make netstat more sysctl
friendly.
One step closer to losing setgid kmem on this one...
2006-05-28 16:51:40 +00:00
elad
48404677c4
be quiet if symbol not in namelist, nothing cares
2006-05-27 23:57:32 +00:00
simonb
7f2151a308
Fix previous Coverity "fix" so that it doesn't break vi completely.
2006-05-27 12:03:37 +00:00
agc
8b41108aee
Clean up after the last fix.
2006-05-27 11:10:55 +00:00
yamt
b1af57a6ba
remove __POOL_EXPOSE.
2006-05-27 09:14:03 +00:00
jnemeth
6222f021a3
Coverity CID 3684: memory leak
2006-05-27 04:55:14 +00:00
jnemeth
243d02dab5
Coverity CID 3135: memory leak
2006-05-27 04:15:42 +00:00
cube
ac24e16176
Introduce two new statements:
...
obsolete defflag <option> [, <option> [, ...]]
obsolete defparam <option> [, <option> [, ...]]
The two statements actually do the same thing (there could be only one),
but it makes things less cryptic that way. The optional ": deps" part of
a 'defflag' or 'defparam' still has to be dropped when it gets obsoleted.
When the user has 'options OBSOLETE_OPTION' in his configuration file, it
is ignored (that is, opt_*.h files are generated as if it wasn't there),
and the user gets a warning about it.
Bump version to 20060525.
When someone first uses that syntax in the tree, a "version 20060525"
statement should be added before its occurrence, preferably at the top
of sys/conf/files.
Suggested by Matt Thomas a few months ago.
2006-05-25 22:28:38 +00:00
christos
fc19b961ac
s/vax/__vax__/
2006-05-25 22:06:53 +00:00
jnemeth
0b1276d17c
Coverity annotation
2006-05-25 21:43:40 +00:00
christos
f81561404f
deal with the vax gcc that does not understand __attribute__ used.
2006-05-24 23:16:50 +00:00
christos
16aa23f5c3
sort static and non-static decls.
2006-05-24 18:06:58 +00:00
christos
8d1d34adc0
- ansi prototypes
...
- sprinkle static
No functional change (just smaller binary because of unused functions)
2006-05-24 18:01:43 +00:00
christos
42df83a697
Coverity CID 3337: Close file before returning.
2006-05-24 16:57:12 +00:00
christos
04e2c897d2
Coverity CID 3510: Don't leak memory.
2006-05-24 16:43:35 +00:00
christos
a740c3d0aa
Coverity CID 3204: The USE_SLEEP case can close the fp, and break does
...
not break from the loop, only from the switch. Make it break from the
loop to avoid a NULL pointer dereference.
2006-05-24 16:34:25 +00:00
christos
a52c240b50
Coverity CID 2285: in the dump and dumpshort case, don't trash head so that
...
we can free the memory later.
2006-05-24 16:04:03 +00:00
christos
cd2ccbaf94
Coverity CID 3212: Don't return, goto out in all cases so that cleanup
...
happens.
2006-05-24 15:59:06 +00:00
christos
4871d79cb7
Coverity CID 3318: Remove stray semicolon that caused close to be called
...
unintentionally.
2006-05-24 15:53:21 +00:00
jnemeth
c287edd2a0
Coverity CID 3610: derefencing NULL pointer.
2006-05-23 23:59:48 +00:00
rpaulo
f6e31a1aa2
Fix carp_stats() prototype location.
...
Noticed by Iain Hibbert.
2006-05-23 14:31:11 +00:00
christos
1fc5ea78ff
Coverity CID 3184: Don't dereference NULL
2006-05-23 01:11:12 +00:00
christos
d257792f4a
Coverity CID 3187: Fix memory leak
2006-05-23 01:07:16 +00:00
dan
450da78dd9
the intention of the whole tip-as-cu thing was to allow tip-as-cu and
...
have a cu command installed, even when the rest of uucp was removed
via MKUUCP=no. The old uucp-derived cu is no more, and is not
installed in either case.
make it so, by correcting some confusion that had made the non-uucp
tip-as-cu cu conditional on MKUUCP
2006-05-22 12:32:20 +00:00
liamjfoy
362a260c6d
check if malloc(3) failed
...
ok joerg@
2006-05-21 21:01:55 +00:00
dsl
35fde98d40
Reduce the field widths for the summary line of traps, system calls
...
and interrupts so that the numbers don't all run into one.
2006-05-21 20:22:34 +00:00
jnemeth
563d9df051
Victoria Day in Canada occurs on the Monday prior to May 25th
2006-05-20 22:31:02 +00:00
dsl
ded5cac581
Checkpoint this as 'WIP' before I break it again!
...
(Not complied by default.)
2006-05-20 20:07:35 +00:00
mrg
aa349aa646
s/0/NULL/ for execl*'s last argument.
2006-05-20 10:31:59 +00:00
rillig
2d158db9a6
Increased WARNS to 4.
2006-05-19 20:06:30 +00:00
rillig
902271403f
Typo.
2006-05-19 20:03:30 +00:00
christos
236f8aef2c
Coverity CI D3758: Plug memory leak.
2006-05-19 17:29:01 +00:00
christos
19d4b5c5e9
Coverity CID 3757: Plug memory leak.
2006-05-19 17:27:06 +00:00
christos
ffbb87954b
Coverity CID 3147: Plug memory leak.
2006-05-19 17:21:46 +00:00
christos
1245f2f0ca
Sprinkle static, pass lib, warns=4
2006-05-19 14:43:58 +00:00
riz
64cde4117b
Use PRIu64 to format uint64_t quantities, instead of %llu, in
...
newly-introduced code.
XXX more %llu cleanup is needed throughout netstat code.
2006-05-18 17:19:22 +00:00
liamjfoy
4876c304b1
Integrate Common Address Redundancy Procotol (CARP) from OpenBSD
...
'pseudo-device carp'
Thanks to: joerg@ christos@ riz@ and others who tested
Ok: core@
2006-05-18 09:05:49 +00:00
dogcow
5c02c41fc6
add missing prototypes
2006-05-16 02:37:24 +00:00
elad
04d63f90b5
Introduce PaX MPROTECT -- mprotect(2) restrictions used to strengthen
...
W^X mappings.
Disabled by default.
First proposed in:
http://mail-index.netbsd.org/tech-security/2005/12/18/0000.html
More information in:
http://pax.grsecurity.net/docs/mprotect.txt
Read relevant parts of options(4) and sysctl(3) before using!
Lots of thanks to the PaX author and Matt Thomas.
2006-05-16 00:08:24 +00:00
rillig
6e29471885
Changed the type of some size variables from int to size_t. Added const
...
qualifiers to some parameters. These changes allow WARNS to be raised to
4.
2006-05-15 21:12:21 +00:00
christos
00dd70ade5
WARNS=4, ansi pass lint.
2006-05-15 14:30:38 +00:00
christos
c3ec4b956d
Add the DRV lkm type. From David Boggs.
2006-05-15 12:51:19 +00:00
gson
9aca5a13df
Recording to standard output is specified by a file name of -,
...
not by omitting the file name.
2006-05-15 02:21:37 +00:00
christos
9a02ff9b42
gcc-4.0 needs attribute used. Variables with attribute unused get removed.
2006-05-14 23:47:34 +00:00
mlelstv
bad43188a8
restore elevated priority before launching command in
...
user context. Fixes PR 33479.
2006-05-14 21:18:31 +00:00
wiz
cc9f77ff20
Clarify location of `}'. Requested by joerg. Bump date.
2006-05-14 14:34:49 +00:00
christos
77d2f1cd19
XXX: GCC uninitialized
2006-05-14 03:05:47 +00:00
christos
a58e08b7cf
XXX: GCC uninitialized.
2006-05-14 03:00:45 +00:00
christos
abcf3383b8
Gcc 4 needs to have the enum declaration in scope to determine the enum size.
2006-05-14 02:56:27 +00:00
christos
7a029a3c6a
XXX: GCC uninitialized variables
2006-05-14 02:51:03 +00:00