Commit Graph

11680 Commits

Author SHA1 Message Date
apb
f9135d4e36 The "-N" command line option means "include the terminating NUL byte",
so rename the corresponding flag from F_NO_NUL to F_INCLUDE_NUL to match
the behaviour.

This is the second half of the fix for PR 46035.
2012-02-17 11:37:33 +00:00
apb
5efc9deabf db(1) "-N" flag means "Include the NUL byte at the end of the key
or value".  (Previously, the description was reversed.)  Also expand
the description.

This is the first half of a fix for PR 46035.
2012-02-17 11:18:55 +00:00
matt
3dcb0b124a Avoid signed/unsigned comparision. 2012-02-17 08:28:36 +00:00
matt
02a2e7c81a MIPS uses a variable page size now.
(pulled up from matt-nb5-mips64)
2012-02-17 08:13:18 +00:00
matt
dfc6b54984 Let address/entry be 64bit if they are just sign-extended 32-bit values.
(change pulled up from matt-nb5-mips64).
2012-02-17 08:11:28 +00:00
skrll
d6c003a8de Correct LDOUBLE_SIZE 2012-02-16 16:27:15 +00:00
jmmv
7054f14003 Remove window(1).
window(1) was replaced by tmux(1) on March 2011.  The source code has
been reimported into othersrc/usr.bin/window and an up-to-date package
is available in pkgsrc/misc/window.

This removal was approved by core@, with the condition that it be done
once netbsd-6 had been brached.  And the branching has just happened!
2012-02-16 04:52:47 +00:00
dholland
7da608ca9c Update dangling references to quotactl(2), mostly now libquota(3), and to
quotactl(8), mostly now quotarestore(8). ok riz@
2012-02-13 19:53:24 +00:00
christos
0cdb0b2663 PR/44889: Yamamoto Takashi: netstat -d option is broken (from Elad) 2012-02-12 19:11:33 +00:00
joerg
410d0f4380 Import the new apropos/whatis.
This code has been developed by Abhinav Upadhyay as part of Google's Summer
of Code 2011. It uses libmandoc to parse man pages and builds a Full
Text Index in a SQLite database. The combination of indexing the full
manual page, filtering out stop words and ranking individual matches
based on the section gives a much improved user experience.

The old makewhatis and friends are kept under MKMAKEMANDB=no for now.
2012-02-07 19:13:24 +00:00
dholland
430a952206 Remove unneeded #include. 2012-02-05 14:14:44 +00:00
sjg
367aa166aa Fix description of 'silent' in .MAKE.MODE
Also document 'env' in that context.
2012-02-03 21:39:25 +00:00
yamt
bfb50d59ee make the result stable.
releng@ ok
2012-02-03 05:06:08 +00:00
dholland
a577f74f5b libquota no longer requires libprop. Also remove some other no-longer-used
.PATH'd-in bits from repquota.
2012-02-01 17:53:01 +00:00
dholland
fb3f26c0cf Simplify elaborate calls to quota_check_limit(). 2012-02-01 17:48:10 +00:00
dholland
59b296daa7 Change the syscall API for quotas over to the new non-proplib one.
- struct vfs_quotactl_args -> struct quotactl_args
   - add sys/stdint.h to sys/quotactl.h for clean userland build
   - install sys/quotactl.h in /usr/include
   - update set lists for same
   - add new marshalling code in libquota
   - add new unmarshalling code in vfs_syscalls.c
   - discard proplib interpreter code in vfs_quotactl.c
   - add dispatching code for the 14 quotactl ops in vfs_quotactl.c
   - mark the proplib quotactl syscall obsolete
   - add a new syscall number for the new quotactl syscall
   - change the name of the syscall to __quotactl()
   - remove the decl of the old quotactl from quota/quotaprop.h
   - add a decl of the new quotactl to sys/quotactl.h
   - update the libc build
   - update ktruss
   - remove proplib marshalling code from libquota
   - update copy of syscall table in gdb ppc sources
   - hack rumphijack to accomodate new quotactl name (as I recall,
     pooka wanted such a name change to simplify something, but I
     don't really see what/how)

This change appears to require a kernel version bump for rumpish
reasons.
2012-02-01 05:34:38 +00:00
wiz
8599966dc6 Sync usage with man page. 2012-01-31 21:53:42 +00:00
christos
c966a89be8 PR/45897: Takahiro Kambe: Make default display < 80 characters and add -w flag
to display unlimited
2012-01-31 16:30:40 +00:00
dholland
bdf1946e25 Remove this material, which is no longer used. 2012-01-30 19:21:37 +00:00
dholland
cae8b79fca Remove unused include. 2012-01-30 16:46:30 +00:00
dholland
3db227b343 Remove stray p in identifier name. This has (as far as I can tell)
prevented quotacheck and other old-style quota bits from working since
last March. Use a correct declaration in the header file, so that if
something similar happens again affected programs will fail to link
instead of failing to work.

This kind of nonsense is why I like -Wl,-warn-common.
2012-01-30 06:14:43 +00:00
dholland
e4f0c6844a Don't strlcpy from a string buffer to itself; the behavior is not
defined.
2012-01-30 06:02:12 +00:00
dholland
e5e6acbd31 Remove an old, no longer necessary hack from libquota and handle the
relevant case properly in usr.bin/quota.
2012-01-30 06:00:49 +00:00
para
e62ee4d475 extending vmem(9) to be able to allocated resources for it's own needs.
simplifying uvm_map handling (no special kernel entries anymore no relocking)
make malloc(9) a thin wrapper around kmem(9)
(with private interface for interrupt safety reasons)

releng@ acknowledged
2012-01-27 19:48:38 +00:00
dholland
2d709bd6e8 Remove unnecessary include. 2012-01-25 01:24:07 +00:00
apb
56a90ee419 Fix the csh(1) example ("make ... |& error ...", not "make ... | error ..."),
and add a sh(1) example ("make ... 2>&1 | error ...").
2012-01-22 09:25:26 +00:00
joerg
0f5f511fae Remove code for CITRUS!=yes. 2012-01-20 16:31:29 +00:00
christos
7f5fd4a5cd PR/45842: Henning Petersen: compare fgets with NULL not 0 2012-01-16 17:38:16 +00:00
christos
24352c32b9 fix previous; use append instead of write. 2012-01-15 20:43:24 +00:00
christos
65445fb66d make -R work the same in ftp:// like it does for http:// (i.e. work if
there is no local file).
2012-01-15 03:58:28 +00:00
riz
dface83f37 MENU_name -> MSG_name 2012-01-11 00:30:56 +00:00
joerg
4c70cdf100 Use __dead 2012-01-10 23:39:11 +00:00
christos
06c8e120ad fix signed/unsigned comparison. 2012-01-10 13:49:32 +00:00
christos
fcdbba429b PR/45805: Borodin Oleg: telnet/telnetd with -DAUTHENTICATION -DENCRYPTION
(rfc2941)
- Minimal diffs to separate MKCRYPTO from USE_KERBEROS
2012-01-09 16:08:55 +00:00
dholland
c64bfb1c4d Clean up usr.bin/quota to use the new libquota API.
(with one relatively minor exception remaining)
2012-01-09 15:35:44 +00:00
drochner
892b9bad57 split the ipsec.c source file into the pfkey part which is shared
with FAST_IPSEC and KAME specific IPSEC statistics
2012-01-06 14:21:16 +00:00
drochner
47a381e15e more IPSEC header cleanup: don't install unneeded headers to userland,
and remove some differences berween KAME and FAST_IPSEC
2012-01-06 14:17:10 +00:00
drochner
86deb82572 kill ipsec support which hasn't been working for a long time
(neither for KAME nor for FAST_IPSEC)
2012-01-06 14:08:08 +00:00
drochner
a438c2d1f9 -make digital mode work in non-interactive mode (init sighandler
earlier, sleep(3) until playing finished)
-also switch to digital mode if an audio device is given on the
 cmd line, or the (new) "CDPLAY_DIGITAL" env var is set

(The latter can be used to make digital mode default per system.
As I see it, analog mode is not dead yet - two of three external
DVD drives I looked at have a speaker output.)
2012-01-04 17:26:21 +00:00
drochner
5923e578df kill unnecessary srandom() call which crept in in rev. 1.33 2012-01-04 17:07:20 +00:00
yamt
9753d46d1c install tprof related commands and man pages. 2012-01-04 16:25:13 +00:00
yamt
1f34562751 SEE ALSO and CAVEATS 2012-01-04 16:18:11 +00:00
drochner
8fd6dadaf8 include <netipsec/ipsec.h> rather than <netinet6/ipsec.h> from userland
where possible, for consistency and compatibility to FreeBSD
(exception: KAME specific statistics gathering in netstat(1) and systat(1))
2012-01-04 16:09:40 +00:00
yamt
f40ab0e98f install fincore. 2012-01-04 15:54:37 +00:00
joerg
c09f2f1d25 If the default path doesn't result in a match, bail out early instead of
running into a segmentation fault. Based on patch by Abhinav Upadhyay.
2012-01-03 17:49:57 +00:00
wiz
dafcaac4c0 Remove unnecessary quoting. From Abhinav Upadhyay. 2012-01-02 00:35:53 +00:00
wiz
e530d885c0 Make usage() match man page. 2011-12-29 22:58:27 +00:00
christos
6e1ec48784 Make msgfile optional like other OS's 2011-12-29 16:41:38 +00:00
apb
25998b2e56 Document the reality that the _build and _crunch commands should each
contain exactly one "%s".  The previous description allowed any number
of "%s" in the _build command, but that does not match the actual
behaviour of either man(1) or catman(8).
2011-12-27 13:15:55 +00:00
christos
2ebaa9112a kill the space so we can turn $Foo$ to Foo 2011-12-25 23:31:22 +00:00
christos
7ae009b5a7 fix the grammar conflict differently. 2011-12-25 20:11:22 +00:00
christos
8af1345344 correct debugging flags. 2011-12-25 01:05:44 +00:00
christos
1e73d755b4 PR/45666: Nicolas Joly: lint(1) wrong 'syntax error' message 2011-12-25 01:05:03 +00:00
christos
de766f5829 use the names from the include files. 2011-12-24 20:18:35 +00:00
sjg
25e3dfbf18 Mention limits of :P 2011-12-23 05:01:59 +00:00
njoly
def73a1f81 c99: do not warn about trailing comma in enum declaration. 2011-12-19 16:52:27 +00:00
sjg
3a4494dc38 The :@ example gives the impression that we encourage the ODE
convention of naming loop variables like .LINK., when in fact
single char variables are far more common in NetBSD.
2011-12-17 04:43:45 +00:00
agc
f8a6a8bef4 We usually refer to RCS keywords as "Ids", so make it obvious in the
synopsis that this script strips RCS Ids, and cross reference
ident(1) - makes it easier to find this utility with apropos(1).
2011-12-11 23:01:55 +00:00
lukem
2c9a7b42f6 Move determination of socket buffer sizes from startup to the first
time a socket is used, as the previous logic assumed AF_INET sockets
were available (which they may not be in an IPv6-only system).
Per discussion with Maxim Konovalov and the FreeBSD problem 162661.
2011-12-10 05:53:58 +00:00
wiz
7559f8d444 Fix typo. Use more markup. 2011-12-09 19:15:11 +00:00
yamt
6735245dce - fix the section
- fix a warning
2011-12-09 15:24:39 +00:00
yamt
d4e8773667 a utility to show in-core status of file pages 2011-12-09 15:17:34 +00:00
dholland
d1d45012e0 Adjust the quota-fetching code to allow more than two object types.
(as far as we can so far, at least)

Note that quota won't actually work fully with multiple object types
as it is, but this and the last change are a good start and do fold
together a lot of duplicated code.
2011-11-30 16:12:32 +00:00
dholland
ebec1aced8 Clean up the printout code to support more than the old fixed two
object types.
2011-11-30 16:09:29 +00:00
dholland
0cde282c93 Move a big chunk of code out of a loop into its own function. 2011-11-30 16:07:28 +00:00
wiz
8956200af2 Remove unused header. From Henning Petersen in PR 45658. 2011-11-28 10:10:10 +00:00
dholland
4a00a690f3 Use __dead, not attribute noreturn. 2011-11-27 13:24:32 +00:00
dholland
dc46435fc4 The proper type for a variable that can be either a uid or gid is id_t,
not uint32_t.
2011-11-27 13:23:50 +00:00
christos
338bfe9851 If the ioctl to play tracks returned EINVAL, switch to digital mode and
try again.
XXX: Should we do this for the other ioctls? Should we default to digital mode?
Definitely the error message is completely unfriendly and should be fixed.
2011-11-26 23:20:41 +00:00
wiz
336147a4cf Sort sections, remove line that must have crept in here from ls(1). 2011-11-26 22:47:39 +00:00
yamt
6f09a307e0 man page 2011-11-26 16:15:09 +00:00
yamt
0fc2ee88d2 try to speed up symbol lookup 2011-11-26 05:04:09 +00:00
dholland
51d1d7e7c4 Rename struct ufs_quota_entry -> struct quotaval. 2011-11-25 16:55:05 +00:00
jmcneill
26719ba336 - accept "midi0" as an alias for "0" to the -d flag
- verify that the requested unit exists before playing
- if the verbose flag is set, print the selected device name and unit #
2011-11-25 01:39:47 +00:00
dholland
9851fd89b4 Fix xref to the PSD; PR 45568 from Petri Laakso. 2011-11-13 18:18:35 +00:00
christos
fa19104dd8 compare the sed we just build with the installed one instead of bogus
paths.
2011-11-12 03:15:05 +00:00
gdt
c9bfbf1142 Move RTF_ANNOUNCE flag so that it no longer conflicts with RTF_PROTO2.
RTF_ANNOUNCE was defined as RTF_PROTO2.  The flag is used to indicated
that host should act as a proxy for a link level arp or ndp request.
(If RTF_PROTO2 is used as an experimental flag (as advertised),
various problems can occur.)

This commit provides a first-class definition with its own bit for
RTF_ANNOUNCE, removes the old aliasing definitions, and adds support
for the new RTF_ANNOUNCE flag to netstat(8) and route(8).,

Also, remove unused RTF_ flags that collide with RTF_PROTO1:
  netinet/icmp6.h defined RTF_PROBEMTU as RTF_PROTO1
  netinet/if_inarp.h defined RTF_USETRAILERS as RTF_PROTO1
  (Neither of these flags are used anywhere.  Both have been removed
  to reduce chances of collision with RTF_PROTO1.)

Figuring this out and the diff are the work of Beverly Schwartz of
BBN.

(Passed release build, boot in VM, with no apparently related atf
failures.)

Approved for Public Release, Distribution Unlimited
This material is based upon work supported by the Defense Advanced
Research Projects Agency and Space and Naval Warfare Systems Center,
Pacific, under Contract No. N66001-09-C-2073.
2011-11-11 15:09:32 +00:00
wiz
10532e0141 Sort sections, use Aq, add comma in enumeration. 2011-11-09 19:42:27 +00:00
christos
d656290c5d PR/45592: Greg A. Woods: changes to get time(1) to use CLOCK_MONOTONIC 2011-11-09 19:10:10 +00:00
roy
6a222e7196 Replace fgetln(3) with the more standard getline(3) 2011-11-09 07:40:27 +00:00
christos
e8514ab687 explain how to use .PARSEDIR and .PARSEFILE 2011-11-06 19:50:46 +00:00
christos
f0528cf595 add debugging for parsedir and parsefile 2011-11-06 19:46:56 +00:00
roy
ff10397929 Use memmove as we are effectively moving memory from left to right so
that the use=foo capability is removed when merging foo.
2011-11-03 10:12:57 +00:00
pgoyette
eb11ed074e Fix a couple of mis-spellings of "descriptions" 2011-11-02 19:21:49 +00:00
yamt
29af9462d1 annotate for lint 2011-10-31 13:27:51 +00:00
jym
16bd08511a Move getuid() out of the loop, uid should not change behind our back. KNF. 2011-10-25 23:45:19 +00:00
jym
a960d51308 kill(2) might not be a good test after all, users can send signals
to setuid binaries (like SIGINT for ping(8)). So apply the exact same
rights as procfs, and test uid against proc p_uid (real owner of process).

Bail out if we are not root and we attempt to print mappings of a process
that the user does not really own.
2011-10-25 22:13:22 +00:00
joerg
10769988ef Add support for build as part of the toolchain. Add option for
deterministic output (-p), which replaces the random seed with a
incremental counter.
2011-10-21 23:47:11 +00:00
christos
924cacedb8 Remove stale proc_compare code and use the shared one in libutil. 2011-10-21 02:26:09 +00:00
reed
08dba12376 patch from from Snader_LB via IRC.
- mention  "The following options are available:"

- improve grammar

- provide useful tip about -x
2011-10-19 00:27:40 +00:00
jym
9bea009cb1 Disallow printing of kernel mappings if we are not root.
pid 0 is a special case for kill(pid, 0), and unlikely to be the
correct test there. This follows the procfs "mem" rights changes that
happened some time ago.
2011-10-18 20:54:56 +00:00
mbalmer
2790b28f0e Fix typo in comment. 2011-10-17 16:31:14 +00:00
christos
81aad1d7e8 use warn instead of perror. 2011-10-15 21:59:48 +00:00
christos
76f57a76c2 unbreak -f -H -h, etc, part 1
- get nlist once in the beginning and fix the flags. Not each time! It is
not like the kernel will change it symbols in the middle of the run.
2011-10-15 21:06:05 +00:00
mbalmer
a51a64158b Add towns to dmr's dates. 2011-10-13 07:44:27 +00:00
mbalmer
67aae85cd8 Dennis "dmr" Ritchie R.I.P. 2011-10-13 07:41:32 +00:00
wiz
e6c49c32de More standard Dt/Nm. 2011-10-11 20:39:40 +00:00
christos
08c23328c8 make getcap a link to getent, since many of the databases we use are of the
"cap" format.
2011-10-11 19:25:07 +00:00
christos
5345ba7f3a fix usage formatting. 2011-10-11 19:24:43 +00:00
tsutsui
077be3445f Consistently use "%#"PRIxVADDR to print VA, not "0x%#"PRIxVADDR
or "0x%"PRIxVADDR etc.  Noticed by Y.Sugahara.
2011-10-11 12:25:56 +00:00