Commit Graph

11351 Commits

Author SHA1 Message Date
mrg c111245a78 apply some -Wno-error and/or -fno-strict-aliasing.
all of this should be looked at closer, but some of them are not
very trivial.
2011-06-22 02:49:41 +00:00
wiz 322aa1720c New sentence, new line. 2011-06-21 20:51:27 +00:00
kefren f881c97d31 add a sentence regarding multiple tags 2011-06-21 19:46:36 +00:00
kefren 214feb60c7 print multiple tags if exists, comma separated 2011-06-21 19:42:45 +00:00
joerg 8cba5925cb Add a few explicit casts for sign mismatches. 2011-06-21 13:25:45 +00:00
mrg 75e42fa7da remove most of the remaining HAVE_GCC tests that are always true in
the modern world.
2011-06-20 07:43:56 +00:00
christos b3e9080143 cross reference xz.1 2011-06-19 02:22:36 +00:00
christos 9593a36e94 make this work:
- forgot to account for prelen in the input length
- deal with EOF properly
2011-06-19 02:19:45 +00:00
christos 5708f444da recognize .xz suffix 2011-06-19 02:19:09 +00:00
christos 255ae88a08 - remove unused call
- read headers separately
- print error id.
2011-06-19 01:52:28 +00:00
tsutsui 7c8d31ee49 XZ_SUPPORT requires maybe_errx(). 2011-06-19 01:20:19 +00:00
christos 40b41259f0 Add lzma (.xz) support. Somehow this does not decode after the first read yet. 2011-06-19 00:43:54 +00:00
wiz ddcaed45e1 This is installed in section 1, so make internal section the same.
Also use name under which it is installed as main internal name.
Comment out reference to extattr(2) which doesn't exist on NetBSD
(a reference to extattr(3) still remains).
2011-06-17 18:19:58 +00:00
wiz 6d765c9977 Fix usage in man page and sync usage in executable with it. 2011-06-14 20:08:45 +00:00
joerg 2d9f8bf04f Add support for man -p to print the search path for manual pages (not
including cat page directories).

From Abhinav Upadhyay as part of Google's Summer of Code 2011
2011-06-14 18:53:48 +00:00
mrg 08d84f24b2 an_ref is now a uintptr_t. 2011-06-12 06:34:59 +00:00
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
dyoung 0d0dd0e146 Suppress whitespace at EOL to fix lib/librumphijack/t_tcpip. 2011-05-11 22:21:59 +00:00
drochner 4f6bdd19b5 use getmicrouptime(9) rather than microtime(9) for TIME_WAIT duration
calculation, because this doesn't get confused by system time changes,
and uses less CPU cycles
reviewed by dyoung
2011-05-11 15:08:59 +00:00
enami dd41556bdf Use ptrdiff_t to hold pointer difference to avoid coredump on LP64 system. 2011-05-10 04:40:16 +00:00
drochner 3e2a0f5f49 decode camellia-cbc in stats histogram 2011-05-05 17:49:47 +00:00
wiz 9e66d3e091 Remove trailing whitespace. 2011-05-04 21:24:59 +00:00
christos fc29dd21ad Document what I wrote for PR/40115 2011-05-04 21:14:56 +00:00
sjg 48587910e0 Add .MAKE.META.BAILIWICK - to identify the scope of make's control.
meta_oodate: if a file that was written or linked within our bailiwick,
but outside of .OBJDIR is missing, add it to missingFiles.
If we get to the end of the .meta file without seeing it [re]moved,
then consider the target out-of-date.
2011-05-04 20:38:31 +00:00
pgoyette 38b438f332 Use %zx for _both_ size_t formats! 2011-05-04 03:43:30 +00:00
dyoung fe23a102a6 On second thought, make a more conservative change: use %zx instead of
%x for size_t.
2011-05-04 01:31:40 +00:00
dyoung 6392073d00 Use %zu format for size_t instead of %x. 2011-05-04 01:30:01 +00:00
dyoung 7957556091 Always try to open kmem, do not always set use_sysctl to 1, and do not
fail if opening kmem fails unless !use_sysctl.  Fixes netstat(1) options
such as -s.
2011-05-04 01:13:35 +00:00
dyoung 7135b6c6f4 Access the kvm_t using get_kvmd(), only. 2011-05-04 01:11:29 +00:00
dyoung fea546afcb Don't use type qualifier 'register'. 2011-05-04 00:55:19 +00:00
dyoung 7f40ffb8aa Do not display expired or reclaimed vestigial TIME_WAIT entries. 2011-05-03 23:36:26 +00:00
dyoung c2e43be1c5 Reduces the resources demanded by TCP sessions in TIME_WAIT-state using
methods called Vestigial Time-Wait (VTW) and Maximum Segment Lifetime
Truncation (MSLT).

MSLT and VTW were contributed by Coyote Point Systems, Inc.

Even after a TCP session enters the TIME_WAIT state, its corresponding
socket and protocol control blocks (PCBs) stick around until the TCP
Maximum Segment Lifetime (MSL) expires.  On a host whose workload
necessarily creates and closes down many TCP sockets, the sockets & PCBs
for TCP sessions in TIME_WAIT state amount to many megabytes of dead
weight in RAM.

Maximum Segment Lifetimes Truncation (MSLT) assigns each TCP session to
a class based on the nearness of the peer.  Corresponding to each class
is an MSL, and a session uses the MSL of its class.  The classes are
loopback (local host equals remote host), local (local host and remote
host are on the same link/subnet), and remote (local host and remote
host communicate via one or more gateways).  Classes corresponding to
nearer peers have lower MSLs by default: 2 seconds for loopback, 10
seconds for local, 60 seconds for remote.  Loopback and local sessions
expire more quickly when MSLT is used.

Vestigial Time-Wait (VTW) replaces a TIME_WAIT session's PCB/socket
dead weight with a compact representation of the session, called a
"vestigial PCB".  VTW data structures are designed to be very fast and
memory-efficient: for fast insertion and lookup of vestigial PCBs,
the PCBs are stored in a hash table that is designed to minimize the
number of cacheline visits per lookup/insertion.  The memory both
for vestigial PCBs and for elements of the PCB hashtable come from
fixed-size pools, and linked data structures exploit this to conserve
memory by representing references with a narrow index/offset from the
start of a pool instead of a pointer.  When space for new vestigial PCBs
runs out, VTW makes room by discarding old vestigial PCBs, oldest first.
VTW cooperates with MSLT.

It may help to think of VTW as a "FIN cache" by analogy to the SYN
cache.

A 2.8-GHz Pentium 4 running a test workload that creates TIME_WAIT
sessions as fast as it can is approximately 17% idle when VTW is active
versus 0% idle when VTW is inactive.  It has 103 megabytes more free RAM
when VTW is active (approximately 64k vestigial PCBs are created) than
when it is inactive.
2011-05-03 18:28:44 +00:00
wiz 610b889888 Sort options and option descriptions. Use more markup. 2011-04-29 09:23:29 +00:00
wiz c0e7cc216d New sentence, new line. 2011-04-28 17:14:45 +00:00
wiz 0b0f158833 New sentence, new line. Use more markup. 2011-04-28 14:59:27 +00:00
wiz ebdacac575 Punctuation nit, sendmail(8) -> (1). 2011-04-28 13:54:13 +00:00
mbalmer 44190c279c On december 16, 1991, Kazakhstan declared its independence from the USSR. 2011-04-28 07:42:20 +00:00
joerg 5e6a27ebbb Remove Mach specific trace points. 2011-04-27 00:00:46 +00:00
joerg 787e55aa29 Remove PECOFF/Win32 emulation. 2011-04-26 16:57:38 +00:00
joerg e958063324 Remove IRIX emulation 2011-04-26 16:36:40 +00:00
joerg 5aca2679d7 Remove Darwin, MACH and Mach-O support. 2011-04-26 15:51:22 +00:00
wiz 064134a9dd Improve description, based on OpenBSD v1.11. 2011-04-25 22:42:11 +00:00
elric 07b0c75a48 We no longer need -I/usr/include/krb5. 2011-04-24 21:42:06 +00:00
elric 89208b4ceb Stop using functions deprecated by Heimdal. Also, if krb5_init_context()
fails, we can't use Kerberos functions to grab error strings, we
resort to strerror(3) which is what Heimdal's deprecated function
does in this case.
2011-04-24 21:16:43 +00:00
joerg 0cef9f9563 Add MKBSDGREP switch for easy testing of the GNU grep
replacement/alternative.
2011-04-21 14:26:33 +00:00
drochner ab862eb3da fix some labels for ipcomp counters which didn't make sense at all 2011-04-19 18:34:39 +00:00
joerg 6a4bfecd54 Avoid C99 features. 2011-04-18 23:22:42 +00:00
joerg 34bdd27889 Add support for --null-data. Change -Z to behave like GNU grep's -Z. 2011-04-18 22:46:48 +00:00
joerg ff9dcf4380 Redo context printing so that adjourning contexts don't print the
separator, following GNU grep's behavior in this regard.
2011-04-18 17:18:03 +00:00
joerg 4bb7e7be1d Use the more portable getline. 2011-04-18 03:48:23 +00:00
joerg 4c78e1ea83 Fix memory leaks. 2011-04-18 03:47:40 +00:00