Jilles Tjoelker
702b4f04ea
find: If a part of an expression is unknown, do not call it an option.
...
Although most of the primaries and operators start with "-", they are not
options.
Examples:
find . -xyz
find . -name xyz -or bad
MFC after: 1 week
2011-05-27 22:14:49 +00:00
Edward Tomasz Napierala
7e2548ae0a
Remove definitions for RACCT_FSIZE and RACCT_SBSIZE - these two are rather
...
performance-sensitive and not that useful, so I won't be merging them
before 9.0.
2011-05-27 19:57:58 +00:00
Aleksandr Rybalko
141fa00b5f
Added myself as src committer.
...
Approved by: adrian (mentor)
2011-05-26 13:54:07 +00:00
Xin LI
5106ce89d0
Fix a regression introduced with previous changeset: if output is stdout,
...
do not check for symbolic link.
2011-05-25 18:04:11 +00:00
Ruslan Ermilov
a6d11f7139
[mdoc] Fixed .Dt call.
2011-05-25 14:13:53 +00:00
David E. O'Brien
a23d1c70b3
Build and install a BSD licensed grep.
...
If WITH_BSD_GREP is not set, it will be 'bsdgrep' and GNUgrep will be
'[ef]grep'. Otherwise, BSD-grep will be the grep family, and GNUgrep
will be 'gnugrep'.
Discussed with: brooks
2011-05-25 01:04:12 +00:00
Robert Watson
8f092df025
Teach netstat(1) about the new global netisr policy sysctl,
...
net.isr.dispatch, and about per-protocol dispatch policies.
MFC after: 3 weeks
Reviewed by: bz
Sponsored by: Juniper Networks, Inc.
2011-05-24 12:38:00 +00:00
Ruslan Ermilov
71737f5a06
Ensure there is a whitespace after a mount point.
...
PR: 157286
Submitted by: Marcus Reid
MFC after: 3 days
2011-05-24 06:56:40 +00:00
Xin LI
fc26891004
Match symbolic link handling behavior with GNU gzip, bzip2 and xz:
...
When we are operating on a symbolic link pointing to an existing
file, bail out by default, but go ahead if -f is specified.
Submitted by: arundel
MFC after: 2 weeks
2011-05-23 09:40:21 +00:00
Xin LI
be07528c53
Diff reduction against NetBSD. The most notable change is to zdiff(1) to
...
handle more file formats including bzip2 and xz.
MFC after: 2 weeks
2011-05-23 09:02:44 +00:00
Sergey Kandaurov
d9b2153b4e
Add missing header file.
...
MFC after: 1 week
2011-05-20 17:03:23 +00:00
Benedict Reuschling
6bef5d2865
Correct typos in comments, no functional changes.
...
Found by: codespell
Reviewed by: kaiw
MFC after: 1 week
2011-05-20 11:29:09 +00:00
Benedict Reuschling
b2bf146e3e
Fix typos in comments, no functional changes.
...
Found by: codespell
Reviewed by: alfred
MFC after: 1 week
2011-05-19 20:35:40 +00:00
Ben Laurie
9bde021a87
Fix clang warnings.
...
Note: these were actually bugs (printf with no format string).
Approved by: philip (mentor)
2011-05-18 20:52:52 +00:00
Rick Macklem
1f3765902c
Change the sysctl naming for the old and new NFS clients
...
to vfs.oldnfs.xxx and vfs.nfs.xxx respectively. This makes
the default nfs client use vfs.nfs.xxx after r221124.
2011-05-15 20:52:43 +00:00
Stanislav Sedov
0d1d6d589b
- Fix several typos [1]
...
- fuser(1) writes usernames to stderr, not stdout [1]
- Add history section.
Submitted by: Pieter de Goeje <pieter@degoeje.nl> [1]
2011-05-14 04:02:56 +00:00
Xin LI
61382374d1
Constify a few string variables. While I'm there, also convert usage() to
...
use a prototype.
MFC after: 2 weeks
2011-05-13 22:35:06 +00:00
Ruslan Ermilov
22a2d42fa3
Fixed an embedded shell script.
...
Reviewed by: sobomax
2011-05-13 09:55:48 +00:00
Warner Losh
8d917b4b49
uintmax_t is a better type here...
...
Submitted by: avg@
2011-05-12 19:10:00 +00:00
Warner Losh
76db9ccfbe
Fix printf int mismatch on 32-bit architectures...
2011-05-12 17:02:56 +00:00
Stanislav Sedov
0daf62d9f5
- Commit work from libprocstat project. These patches add support for runtime
...
file and processes information retrieval from the running kernel via sysctl
in the form of new library, libprocstat. The library also supports KVM backend
for analyzing memory crash dumps. Both procstat(1) and fstat(1) utilities have
been modified to take advantage of the library (as the bonus point the fstat(1)
utility no longer need superuser privileges to operate), and the procstat(1)
utility is now able to display information from memory dumps as well.
The newly introduced fuser(1) utility also uses this library and able to operate
via sysctl and kvm backends.
The library is by no means complete (e.g. KVM backend is missing vnode name
resolution routines, and there're no manpages for the library itself) so I
plan to improve it further. I'm commiting it so it will get wider exposure
and review.
We won't be able to MFC this work as it relies on changes in HEAD, which
was introduced some time ago, that break kernel ABI. OTOH we may be able
to merge the library with KVM backend if we really need it there.
Discussed with: rwatson
2011-05-12 10:11:39 +00:00
Poul-Henning Kamp
9fc9ddee09
Flush the scriptfile whenever we see a non-graphical character to get
...
more real-time logging, without forcing a write(2) on every single
character.
2011-05-10 10:58:57 +00:00
Xin LI
5187751e00
Regenerated with latest configure script.
...
MFC after: 1 month
2011-05-10 01:05:41 +00:00
Ruslan Ermilov
6d0d87ca78
- Add a forgotten -o to usage().
...
- Sync usage() with manpage's SYNOPSIS.
2011-05-05 10:17:49 +00:00
Ruslan Ermilov
fe3ea03ad2
[mdoc] remove a hard sentence break.
2011-05-05 10:17:08 +00:00
Rick Macklem
f90f8f0098
Update nfsstat.1 to reflect the changes done to nfsstat(1)
...
by r221455. This includes a new "-o" option for displaying
statistics from the old NFS client/server and a slightly
different description for the "-e" option.
This is a content change.
2011-05-04 20:28:06 +00:00
Rick Macklem
e85b7d75a4
Modify nfsstat(1) so that it reports statistics for the
...
new NFS client/server by default, in a format compatible
with the old NFS client/server. Also add a "-o" flag that
forces nfsstat(1) to get statistics for the old NFS
client/server.
2011-05-04 20:13:26 +00:00
Rick Macklem
c01be3b713
Modify nfsstat(1) so that it prints out the buffer cache
...
stats in the same way for the new client as the old one.
MFC after: 2 weeks
2011-05-04 19:28:44 +00:00
Rick Macklem
0e8f7d1995
Fix nfsstat.c so that the "-z" option works for the new
...
NFS subsystem.
MFC after: 2 weeks
2011-05-04 13:50:37 +00:00
Rick Macklem
785b257239
Revert r221308, since it incorrectly zero'd both client and
...
server stats when "-c" or "-s" was specified.
2011-05-04 13:20:44 +00:00
Ruslan Ermilov
41af50287c
Fixed bad format and misorder.
2011-05-03 12:29:03 +00:00
Doug Rabson
ba675b4176
Call pam_setcred() before login_getpwclass to support home directories
...
on GSS-API authenticated NFS where the kerberos credentials need to be
saved so that the kernel can authenticate to the NFS server.
2011-05-03 10:18:27 +00:00
Edward Tomasz Napierala
a7ad07bff3
Change the way rctl interfaces with jails by introducing prison_racct
...
structure, which acts as a proxy between them. This makes jail rules
persistent, i.e. they can be added before jail gets created, and they
don't disappear when the jail gets destroyed.
2011-05-03 07:32:58 +00:00
Dimitry Andric
565a812648
Minor updates to the clang and tblgen manpages.
2011-05-02 21:10:13 +00:00
Dimitry Andric
3b0f406639
Upgrade our copy of llvm/clang to r130700, from upstream's trunk.
2011-05-02 21:04:37 +00:00
Rick Macklem
dd831c63e0
Fix nfsstat.1 to indicate that "-z" now works for
...
the new NFS subsystems after r221308.
This is a content change.
MFC after: 2 weeks
2011-05-01 23:55:56 +00:00
Rick Macklem
d380a59d3d
Fix nfsstat so that the "-z" option works for the
...
new NFS subsystem.
MFC after: 2 weeks
2011-05-01 23:41:35 +00:00
Ulrich Spörlein
aeea395e35
Let users' PATH decide which groff suite to pick up.
...
Let groff pass the -c flag to grotty, which will turn off ANSI
sequences. While these are not a problem for our more/less, they get
mangled by col(1) and this will result in garbage output.
This makes man(1) work together with textproc/groff, in case the
user decided to delete the old groff from base (-DWITHOUT_GROFF).
2011-05-01 19:47:34 +00:00
John Baldwin
a011c62e8b
Raise rlogin back to a WARNS level of 6.
...
Tested by: make universe
2011-04-27 17:36:37 +00:00
Doug Barton
46dccdb284
Revert r221053 by replacing WARNS?= 3 since it's breaking the build on
...
several arches.
2011-04-26 22:02:51 +00:00
John Baldwin
dc0a06319e
Generate the network byte order version of the window size structure in a
...
temporary variable on the stack and then copy that into the output buffer
so that the htons() conversions use aligned accesses.
MFC after: 1 month
2011-04-26 20:14:29 +00:00
David E. O'Brien
37508ef3eb
This builds OK using the parent dir's WARNS=6.
...
[built on both AMD64 and i386]
2011-04-26 04:09:20 +00:00
David E. O'Brien
5d46cc89b9
Catch up with r57841 which removed the possible linking against libutil
...
by not bothering to include its API.
2011-04-26 04:01:08 +00:00
Jilles Tjoelker
1792d820be
printf(1): Move non-bugs from the BUGS section to a new section CAVEATS.
2011-04-25 19:15:58 +00:00
Jilles Tjoelker
8a906b236a
printf(1): Mention effect of '#' modifier on other conversions.
2011-04-25 12:36:29 +00:00
Simon L. B. Nielsen
6e46c1cc7d
Check return code of setuid() and setgid() in finger.
...
While they will not fail in normal circumstances, better safe than
sorry.
MFC after: 1 week
2011-04-23 14:19:26 +00:00
Jilles Tjoelker
a4a1c5b11e
kdump: Show code for signals where the default action was taken.
...
This information is available as of kernel r220740. Trace files from older
kernels will always have 0.
MFC after: 1 week
2011-04-17 21:11:55 +00:00
Edward Tomasz Napierala
ee2509d1a2
Add manual page for rctl.conf(5).
2011-04-14 18:37:27 +00:00
Ruslan Ermilov
4898f742c7
Show client's access cache statistics.
2011-04-13 13:05:48 +00:00
Edward Tomasz Napierala
ae1fdbee9e
Add link to rctl(8).
2011-04-10 10:17:01 +00:00