Commit Graph

8333 Commits

Author SHA1 Message Date
cperciva
3b2e9eb59b Fic typo in previous commit.
MFC after:	3 days
2006-12-23 08:16:54 +00:00
cperciva
b13aff146b Add two checks for inappropriate options: -U only makes sense in "x"
mode, and --strip-components only makes sense in "x" and "t" modes.

MFC after:	3 days
2006-12-23 07:06:37 +00:00
cperciva
a5fb73ad66 Correct the names of some options.
MFC after:	3 days
2006-12-23 07:01:59 +00:00
imp
c8daf471f4 Avoid 'bogus' uninitialized warning by initializing rather than
playing cute games.  It is much simpler, clearer and easier to follow
and understand.  Besides, gcc4 likes it better.
2006-12-22 05:54:19 +00:00
rodrigc
6e71b264de The second argument (type) to socket(2) is an enum, not a bitmask, so parse
it as an enum.

If an SCTP SOCK_SEQPACKET socket was opened, kdump would display this
wrong output:
 socket(PF_INET,SOCK_STREAM|SOCK_RDM|SOCK_SEQPACKET,0x84)

instead of this correct output:
 socket(PF_INET,SOCK_SEQPACKET,0x84)

MFC after:	2 weeks
2006-12-22 05:07:21 +00:00
ru
54c3ccca4d Prevent a line from being broken on a line boundary. 2006-12-21 22:59:07 +00:00
ru
8a99132532 Improve markup. 2006-12-21 22:44:41 +00:00
ru
d9ff34ca5a Improve markup and do some minor wordsmithing. 2006-12-21 10:59:48 +00:00
ru
38f526ca48 Markup cosmetics. 2006-12-20 16:57:13 +00:00
ru
c3c62c2185 Document some details better, making it easier to translate. 2006-12-20 15:34:01 +00:00
ru
32424673a8 Be more accurate in the description of the -I option:
signaling to a process doesn't necessarily kill it.
2006-12-20 11:57:22 +00:00
cperciva
33a96f5f52 Remove -F option from getopts string -- this option has never done
anything apart from invoking usage(), and apparently slipped in by
accident.

Approved by:	kientzle
MFC after:	3 days
2006-12-20 06:56:25 +00:00
ru
73c3b50972 The -r option can also cause the files to be extended (not
necessarily truncated).
2006-12-19 11:20:34 +00:00
ru
b95ba6dd8d Refine markup and add the EXIT STATUS section where appropriate. 2006-12-19 10:34:14 +00:00
ru
b85b4a72c4 Improve markup. 2006-12-18 15:36:31 +00:00
dougb
64d068233d Fix the problem with the nsupdate(8) man page reported
in the PR by removing spurious .HP tags, thereby actually
allowing the commands to show up in the man page output,
and making the style consistent with the nslookup(1) man
page. [1]

While I'm here, fix the markup on the first command reference
in nslookup(1).

PR:		docs/98009 [1]
Submitted by:	Dmitry Kazarov <kazarov@ttk.ru>
2006-12-15 18:02:20 +00:00
ru
75044764a1 Fix the fix in rev. 1.15 so that we jump to the next column
instead of always skipping it.

MFC after:	3 days
2006-12-15 17:47:25 +00:00
ru
aeac2bd31e Fix markup. 2006-12-15 14:14:17 +00:00
ru
a1b968ead2 Fix one minor inaccuracy. 2006-12-15 13:40:53 +00:00
ru
e9575f7c7b Improve markup and grammar. 2006-12-15 13:37:49 +00:00
ru
8ec27d6b35 Mention what underlining is meant here. 2006-12-15 11:23:59 +00:00
ru
c18cdc85ca Fix markup. 2006-12-14 19:02:48 +00:00
ru
0f6441774b Polish markup and wording. 2006-12-14 00:02:44 +00:00
ru
f91f9bc30c Fix markup nits, add the EXIT STATUS section. 2006-12-13 20:15:49 +00:00
ru
154b86b1ef Fix the description of the -Btime primary.
Noticed by:	Vadim Goncharov <vadimnuclight tpu.ru>
2006-12-13 17:02:50 +00:00
ru
f57c769005 Refine the previous revision. 2006-12-13 12:09:41 +00:00
ru
26376028e8 "which -s" will return 0 only if all executables were found, not "any". 2006-12-13 12:07:49 +00:00
ru
f4831848ed It's `apply echo *'' that is similar to ls -1'', not `apply echo a*''.
Submitted by:	sat
2006-12-13 08:13:14 +00:00
csjp
1315da38ef Teach login(1) about the make.conf NO_AUDIT variable. This allows us to
conditionally build in audit support.

Submitted by:	bz
MFC after:	1 week
2006-12-13 06:13:32 +00:00
ru
164381741c Add missing markup bits. 2006-12-11 11:34:44 +00:00
delphij
ae1fcdf22f Use explicit braces to avoid ambiguous else. 2006-12-09 15:23:20 +00:00
mpp
f458d34cdf Do not exit without printing the id information if the uid of the
user executing the command cannot be looked up in the password file.
2006-12-09 12:58:14 +00:00
grog
8cd193c682 Change formatting to be more compliant with style(9). Doubtless
others will find more things to change.
2006-12-09 02:44:09 +00:00
grog
0c3cf23447 Change copyright notice to the FreeBSD 2 clause notice.
Approved by: John Wehle <john\@feith.com>
2006-12-09 02:33:26 +00:00
grog
85bdfaff80 Add copyright notice. 2006-12-09 02:31:24 +00:00
grog
ec0da9925e Set channel utility for Hauuapuge PVR-250 and PVR-350.
This s part of an import of the PVR-250 driver.  Originally it was
calleed pvr250-setchannel, but it seems better to improve this program
to work for any tuner card, so I'm starting with a more generic name.
That shouldn't mislead anybody: currently the program only works with
the (yet to be committed) cxm driver.

Contributed by: John Wehle <john\@feith.com>
2006-12-09 02:27:45 +00:00
nivit
1555dc07f7 - Added my entry in calendar.freebsd
Approved by:	alexbl (mentor)
2006-12-08 23:12:28 +00:00
maxim
ee86f7872a o confstr(3) returns 0 on error. Check the return value accordingly.
PR:		misc/106414
MFC after:	1 week
2006-12-06 12:00:26 +00:00
gabor
d62f25b0b5 - Add myself to calendar.freebsd
Approved by:	erwin (mentor)
MFC after:	3 days
2006-12-05 22:22:02 +00:00
cperciva
adde1adac2 Portability fix for non-POSIX operating systems: Open files in binary mode.
PR:		bin/106358
Submitted by:	techtonik at php dot net
2006-12-05 20:22:14 +00:00
dds
af51ff2234 Prevent buffer overflow when forcibly terminating an escape character.
Obtained from:	OpenBSD
Note: In the case of a full buffer the OpenBSD implementation will
leave in the format string an invalid escape sequence.  This appears
to be harmless with our C library, but according to C99 this can
cause undefined behavior.

MFC after:      2 weeks
2006-12-03 17:50:21 +00:00
dds
552b6c0ead Correct handling of format strings with escaped % specifications.
Note: It would be nice to be able to implement getformat() using
fmtcheck(3), but fmtcheck does not distinguish between signed and
unsigned types, a facility jot needs to perform range checks on its
output.

Submitted by:   Per Kristian Hove
MFC after:	2 weeks
2006-12-03 17:05:04 +00:00
keramida
b9438a6636 The sigconv.awk script generates a sigdesc.h header file, which
contains a sigdec[] vector of structures, but the generated output is
missing braces around the initializer of each struct, which
triggers warnings in WARNS=3:

src/usr.bin/top/sigdesc.h:10: warning: missing braces around initializer
src/usr.bin/top/sigdesc.h:10: warning: (near initialization for `sigdesc[0]')

  * Fix the sigconv.awk script to generate a header with initializers
    which look better.

  * Add rules to usr.bin/top/Makefile that rebuilds a new sigconv.h
    header which matches the correct signal set from the build-time
    version of `${DESTDIR}/usr/include/signal.h' (so sigconv.h doesn't
    get stale once changes are made to the header).

  * Remove the old sigconv.h header, now that it is autoupdated at
    build time.

  * Various Makefile style fixes (the committed Makefile was kindly
    submitted by Ruslan):

    - Reorder .PATH, PROG, SRCS and CFLAGS to match style.Makefile(5)
    - Split off the generated sources (sigdesc.h top.local.h) in an
      SRCS+= line of their own.
    - Add entries to CLEANFILES near the rules that generate the
      respective files.
    - Move the explicit rule which builds top.1 after the implicit
      rules which generate its dependencies.

Reviewed by:	ru, bde
Submitted by:	ru (Makefile)
MFC after:	2 weeks
2006-12-01 07:01:19 +00:00
ru
3b8270a3d5 - Revert signedness type changes to "struct vmtotal"; by making
them unsigned I made the possible overflows hard to detect,
  and it only saved 1 bit which isn't principal, even less now
  that the underlying issue with the total of virtual memory has
  been fixed.  (For the record, it will overflow with >=2T of
  VM total, with 32-bit ints used to keep counters in pages.)

- While here, fix printing of other "struct vmtotal" members
  such as t_rq, t_dw, t_pw, and t_sw as they are also signed.

Reviewed by:	bde
MFC after:	3 days
2006-11-28 12:46:02 +00:00
yar
5e5ca34442 Back out rev. 1.17: arch-dependent WARNS level.
The policy is that the WARNS level should characterize the
quality of a piece of code irrespective of any conditions.
Otherwise the code doesn't deserve the WARNS level assigned.

Requested by:	ru
2006-11-27 21:30:38 +00:00
yar
b3c89a4948 Consistently mark percentage scales as such.
PR:		bin/101975
MFC after:	3 days
2006-11-27 20:19:05 +00:00
yar
97045cf6d0 Don't shadow globals.
Found by:       WARNS=6
MFC after:      3 days
2006-11-27 19:50:50 +00:00
yar
ac0fbebe4a We should return the name in cp, not printf it.
Found by:	WARNS=6
MFC after:	3 days
2006-11-27 19:48:45 +00:00
yar
e21ee77276 systat(1) reaches WARNS=6 on i386 and amd64. This is good
for catching general regressions in future.  Unfortunately,
it still displays some problems at WARNS=6 on architectures
with stricter alignment requirements, e.g., ia64.
2006-11-27 17:54:28 +00:00
yar
0ceaba73fc The logic of fetchnetstat_sysctl() isn't too complex: if idx is 0,
we set and use xtp; if idx is 1, we set and use xip; the other cases
are impossible.  However, GCC cannot see that xip and xtp are always
initialized before use because they are initialized and used in
different if/else blocks.  So setting them to NULL at the very
beginning won't hurt.
2006-11-27 17:34:40 +00:00