Commit Graph

11568 Commits

Author SHA1 Message Date
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
chs
585f34003b fix rdev reporting for UFS2 and ext2fs. 2011-10-09 21:16:00 +00:00
jnemeth
e894be756a add an xref to fstat(2) 2011-10-08 22:16:03 +00:00
wiz
d2edac91a8 Fix Dt argument. Correct date. Some wording improvements. 2011-10-08 20:19:10 +00:00
christos
582bebaa0f fix markup 2011-10-08 19:20:50 +00:00
christos
07fb1a358e descend into cleantags 2011-10-08 19:16:54 +00:00
christos
830d5efd84 Small script used when importing 3rd party programs. The code in this
script is used in many foo2netbsd scripts, but none of them has the
complete list of keywords. I will make all those scripts use this one
instead.
2011-10-08 19:16:08 +00:00
christos
1dcb02d8c7 remove casts 2011-10-07 16:30:17 +00:00
mbalmer
947c965b88 Refer to X11R7. 2011-10-07 10:52:31 +00:00
joerg
26c79d78b3 Simplify 2011-10-07 10:14:22 +00:00
mrg
92461b24a3 enable building/installing audiocfg(1). ok jmcneill. 2011-10-06 07:38:54 +00:00
roy
47e1ece0c2 Use terminfo and the non-standard ttytype rather than termcap. 2011-10-05 10:48:54 +00:00
shattered
8836963d2f PR/43968 -- add 'segqlen' of TCPCB to 'netstat -P'.
OK by wiz@
2011-10-04 21:12:40 +00:00