Commit Graph

11285 Commits

Author SHA1 Message Date
sjg 0277db2f8c Use %zu rather than cast 2011-06-11 02:10:48 +00:00
sjg af8b888000 size_t on amd64 doesn't like %u, use a cast. 2011-06-10 23:57:39 +00:00
yamt bae8a3a858 mention combinations of flags 2011-06-08 13:54:16 +00:00
yamt 6f8a344413 err -> errx where appropriate 2011-06-08 13:51:13 +00:00
matt 6d32ef3fed When printing the header, convert values to names:
Use strlcpy to copy the name, not strncpy.

 magic:       0x27051956
 time:        Tue Jun  7 15:58:41 2011
 size:        2482203
 load addr:   0x00020000
 entry point: 0x00020000
 data crc:    0x700fdf53
 os:          2 (netbsd)
 arch:        7 (powerpc)
 type:        2 (kernel)
 comp:        1 (gz)
 name:        NetBSD/evbppc 5.99.52 (INSTALL_
 header crc:  0x94ea96cf
2011-06-08 05:54:38 +00:00
bouyer a3a7248ce7 Fix bad cut'n'paste in copyright. Pointed out by dyoung@ 2011-06-07 14:56:12 +00:00
sjg 873dae776d Some systems (eg. MirBSD) use a ksh, with an echo which cannot
be used for things containing \x: etc.
Check for print or printf as builtin and use if available.
Note that a builtin will fail, if make decides a shell is not needed.
2011-06-07 00:10:20 +00:00
jnemeth 86de657587 add an entry about the US nationalising gold to replace old confiscation entry 2011-06-06 03:15:14 +00:00
sjg 43c87c739c ApplyModifiers: if we parse a variable in the modifier list,
do not consider it a nested modifier set, unless it is followed by
endc, a ':' or end of string.
2011-06-03 21:10:42 +00:00
wiz 518b4753cf Bump date for previous. 2011-06-01 22:17:43 +00:00
alnsn a739efc5b5 kern/42030 - tracking of file descriptors by ktrace/kdump 2011-06-01 21:24:59 +00:00
enami 179c4640cc Don't touch before the mmap'ed region. 2011-05-31 02:34:32 +00:00
christos 856fae793d Handle the empty suffix properly. Convert suffix list to a list from an
array and don't have limits in the suffix length. Also don't require that
suffixes have a single dot.
2011-05-30 22:52:12 +00:00
manu ed3e0293c8 Document that localsocket may be of type SOCK_SEQPACKET 2011-05-29 04:54:45 +00:00
manu 1b0d8e317f Display SOCK_SEQPACKET local sockets in sockstat and netstat 2011-05-29 04:45:08 +00:00
rmind 8a0123cd33 - Prevent tmpfs.h from inclusion in userland.
- Clean up and KNF tmpfs.h a little bit.
2011-05-29 01:00:50 +00:00
cheusov a541b13903 fix bug in section .ORDER of make.1 2011-05-28 21:53:54 +00:00
drochner 0a8dabda40 pull in AES-GCM/GMAC support from OpenBSD
This is still somewhat experimental. Tested between 2 similar boxes
so far. There is much potential for performance improvement. For now,
I've changed the gmac code to accept any data alignment, as the "char *"
pointer suggests. As the code is practically used, 32-bit alignment
can be assumed, at the cost of data copies. I don't know whether
bytewise access or copies are worse performance-wise. For efficient
implementations using SSE2 instructions on x86, even stricter
alignment requirements might arise.
2011-05-26 21:50:02 +00:00
joerg 9411f274f4 Use CWARNFLAGS.clang and not CWARNFLAGS here 2011-05-26 14:20:22 +00:00
joerg a216da57a6 Default to -Wno-sign-compare -Wno-pointer-sign for clang.
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.
2011-05-26 12:56:24 +00:00
drochner ebc232a582 copy AES-XCBC-MAC support from KAME IPSEC to FAST_IPSEC
For this to fit, an API change in cryptosoft was adopted from OpenBSD
(addition of a "Setkey" method to hashes) which was done for GCM/GMAC
support there, so it might be useful in the future anyway.
tested against KAME IPSEC
AFAICT, FAST_IPSEC now supports as much as KAME.
2011-05-24 19:10:08 +00:00
spz 5f1fd2312c RA flood mitigation via a limit on accepted routes:
- introduce a limit for the routes accepted via IPv6 Router Advertisement:
  a common 2 interface client will have 6, the default limit is 100 and
  can be adjusted via sysctl
- report the current number of routes installed via RA via sysctl
- count discarded route additions. Note that one RA message is two routes.
  This is at present only across all interfaces even though per-interface
  would be more useful, since the per-interface structure complies to RFC2466
- bump kernel version due to the previous change
- adjust netstat to use the new value (with netstat -p icmp6)
2011-05-24 18:07:11 +00:00
joerg 1e608ad53f Fix format string usage 2011-05-24 12:49:11 +00:00
joerg de862ba918 Properly use format string 2011-05-24 12:46:16 +00:00
joerg 9f52716d37 Properly use format strings 2011-05-24 12:44:30 +00:00
joerg 6ff5354c03 Fix usage() to actually not return 2011-05-24 12:42:25 +00:00
joerg 80952d9f7f Properly use format strings. 2011-05-24 12:40:11 +00:00
joerg a3ba17a6a3 Properly use format string. 2011-05-24 12:35:36 +00:00
joerg a988c0e8be Properly use format string 2011-05-24 12:35:01 +00:00
joerg a5bcf1850f Use proper format strings. 2011-05-24 12:33:22 +00:00
joerg de7d5b1342 Doesn't need input. 2011-05-24 12:32:36 +00:00
joerg 20c68d4f2c Fix const issues 2011-05-24 12:31:56 +00:00
joerg 9a1e56f24b Fix sign compare 2011-05-24 12:27:29 +00:00
joerg 4dfc56bdfa Don't use user input as format string 2011-05-24 12:25:05 +00:00
joerg 48a413800a Simplify 2011-05-24 12:24:22 +00:00
joerg b794a0de4d Kill self assignment 2011-05-24 12:19:11 +00:00
drochner cfdc35650d report aes-ctr statistic counter by name 2011-05-23 14:29:55 +00:00
tsutsui 56683e6b6e Explicitly #include <time.h> for time(3) and strftime(3).
Fixes warnings on some non NetBSD hosts.
2011-05-21 07:30:42 +00:00
christos fdcc1029ab use warn/err. 2011-05-21 00:43:52 +00:00
christos 0364d1f4f2 - KNF
- more static
- fix argument parsing.
2011-05-21 00:43:42 +00:00
christos 8deae7b7cb remove unused. 2011-05-21 00:43:31 +00:00
wiz cc9481a1a2 Sync usage with man page. 2011-05-20 07:09:52 +00:00
wiz 33b9c78b3c Fix macro name in SYNOPSIS. 2011-05-20 07:08:24 +00:00
wiz 3ba25bec19 Sort options, merge single letter options in synopsis. 2011-05-20 07:07:37 +00:00
christos 0be029e699 counting was off, and setting things to themselves does not work very welll. 2011-05-20 02:00:45 +00:00
christos ec9611ac0f - use getopt
- use err
- add -p <filelevel> to chop levels like patch
- document all the options
2011-05-19 22:55:53 +00:00
dsl cf5ef24619 Back out a local change 2011-05-18 06:36:48 +00:00
dsl c5191c6734 If a makefile if a multiple of the page size and doesn't end with a
newline, then it all goes horribly wrong when make tries to terminate
the last input line.
This was all ok before the mmap changes (rev 1.169) because the last
32 bytes of the input buffer were never read into.
The non-mmap case has a similar problem.
Bug found because my .depend files don't have a newline at the end of
the .OPTIO|NAL line (don't know if that is a local change).
2011-05-17 21:56:51 +00:00
mrg 8169e46991 move and rename the uvm history code out of uvm_stat to "kernhist".
rename "UVMHIST" option to enable the uvm histories.

TODO:
- make UVMHIST properly depend upon KERNHIST
- enable dynamic registration of histories.  this is mostly just
  allocating something in a bitmap, and is only for viewing multiple
  histories in a merged form.


tested on amd64 and sparc64.
2011-05-17 04:18:05 +00:00
christos 7aac162c51 Make this produce proper ansi c and knf. 2011-05-15 21:28:51 +00:00