Commit Graph

6166 Commits

Author SHA1 Message Date
peter
60fad63fbf Kill references to netns in comment about how it conflicted with netipx so
it was ignored all this time.
2003-03-05 19:19:08 +00:00
fanf
d943cf7d51 Don't complain about an early end-of-file in the -r case rather than
the opposite. Does this pointy hat look good on me?
2003-03-04 21:22:05 +00:00
ru
74cf5d6de7 mdoc(7) police: Revision. 2003-03-03 11:51:30 +00:00
jmallett
c09c34bb73 Forgot to update the date field; from David Magda <dmagda@magda.ca>. 2003-03-01 23:43:53 +00:00
jmallett
a8d4a15be4 Add functionality to only list hosts specified on the command line. If none
are specified the old behaviour is old.  The submitted applied a much cleaner
diff to ruptime.c, however it did not cover cases like listing failures.  It
would probably be a good idea to move the printing from the ruptime function,
and have that function just be used to build the list, as that would unbreak
sorting, but this diff is intended to be clear, relative to the original
code.  As the sort order is the order specified on the command line, for now,
such is documented in the manual page accordingly.

Submitted by:	Edward J. M. Blocklesby <ejb@lythe.org.uk>
MFC after:	3 weeks
2003-03-01 23:09:26 +00:00
keramida
561a9d28ec The .Nm utility. 2003-02-28 21:04:17 +00:00
nectar
04024f5d74 Spellcheck. 2003-02-28 15:01:31 +00:00
obrien
35702bcc11 Update for version 3.41. 2003-02-28 05:31:47 +00:00
mux
b67c360759 Document the fact that VTY locking is easily bypassable when DDB
is compiled in the kernel.  Also add some useful xrefs to lock(1).
2003-02-27 18:25:26 +00:00
fanf
860333542f Pull some common uu/b64 code out into shared functions. Move some
end-of-file checks out of the inner base64 loop, and remove the
trailing whitespace stripper. The latter was added in rev 1.23 but
the actual fix for the problem was in 1.24 -- b64_pton doesn't mind
extra whitespace. (However there's a bogus comment in OpenSSH's
uuencode.c that also mentions problems with trailing whitespace and
b64_pton, but their real problem is the comment field in the key
file.)
2003-02-27 05:59:18 +00:00
fanf
dd5737a1e3 Document uudecode's new relaxed mode for handling raw data. 2003-02-27 03:32:37 +00:00
fanf
d90bc6c932 Add a relaxed mode for handling raw input which is missing the
initial and possibly the final framing lines. This is particularly
handy for dealing with broken files or fragments of MIME messages.
2003-02-27 03:28:29 +00:00
fanf
2e51ade059 Be POSIXly correct in the handling of /dev/stdout -- it's a "magic cookie"
not a special file.
2003-02-27 02:24:01 +00:00
jmallett
c350585bc9 Extend our -R extension which sets the number of arguments in which -I will
replace to support magic values less than zero, which mean to just go nuts
and expand as many as we want.

MFC after:	2 weeks
2003-02-26 22:44:32 +00:00
jmallett
9d4ea753fb De-typo usage string. 2003-02-26 22:36:55 +00:00
charnier
037412ba78 The usage string: renice [priority | [-n incr]] ... assumed that the part
`priority | [-n incr]' was optionnal which is wrong according to the code.
Add FreeBSD Id.
Reviewed by:	maxim
2003-02-26 20:27:24 +00:00
das
3fa6bd360f The cmp utility has the questionable feature of using mmap when
comparing regular files.  Add a SIGSEGV handler to make its
behavior less surprising when a read error occurs.  The handler
does not attempt to distinguish errors from file truncation, but
anyone actively modifying a file while trying to compare it
shouldn't even expect something sane to happen.

PR:		45391
Reviewed by:	mike (mentor)
2003-02-26 06:44:46 +00:00
ru
0dea541567 mdoc(7) police: Scheduled sweep. 2003-02-24 22:53:26 +00:00
mike
16b05986d0 Fix style bugs in previous commit. 2003-02-24 17:10:32 +00:00
das
eaf0456ef3 Let everyone know when to send the gifts.
Reviewed by:	mike (mentor)
2003-02-21 19:25:39 +00:00
tjr
e63d1e49ed Remove "sleeper" nonsense. 2003-02-21 08:46:44 +00:00
obrien
5fcbca2516 Some things don't build for PowerPC yet.
List from:	benno
2003-02-21 02:30:51 +00:00
ru
e4c356edeb Removed extra parentheses. 2003-02-20 15:09:52 +00:00
ru
b36c276cc5 Fixed comment. 2003-02-20 15:05:39 +00:00
bmilekic
26ba0eb55c o Allow "buckets" in mb_alloc to be differently sized (according to
compile-time constants).  That is, a "bucket" now is not necessarily
  a page-worth of mbufs or clusters, but it is MBUF_BUCK_SZ, CLUS_BUCK_SZ
  worth of mbufs, clusters.
o Rename {mbuf,clust}_limit to {mbuf,clust}_hiwm and introduce
  {mbuf,clust}_lowm, which currently has no effect but will be used
  to set the low watermarks.
o Fix netstat so that it can deal with the differently-sized buckets
  and teach it about the low watermarks too.
o Make sure the per-cpu stats for an absent CPU has mb_active set to 0,
  explicitly.
o Get rid of the allocate refcounts from mbuf map mess.  Instead,
  just malloc() the refcounts in one shot from mbuf_init()
o Clean up / update comments in subr_mbuf.c
2003-02-20 04:26:58 +00:00
ru
cd6022184c Back out the removal (here too) of the "custom" version of
<sys/endian.h>.  It is needed to cross-build sparc64 on
RELENG_4 and to build sparc64 on say 5.0-DP1 (on systems
without <sys/endian.h>).  This will be revisited when we
create RELENG_5.

Spotted by:	make universe
2003-02-19 15:25:07 +00:00
obrien
2c8f50670b chflags(1) repo copied, usr.bin->bin.
We've been installing chflags(1) into /bin since 2000-11-10, so this
shouldn't cause any problems.
2003-02-18 19:51:59 +00:00
des
8927a9197d Correctly alphabetize options[] so we don't stop at -nouser when searching
for -not.

PR:		bin/48423
Submitted by:	Matsumura Naoki <matsu@jp.FreeBSD.org>
MFC after:	3 days
2003-02-18 14:30:43 +00:00
phk
9948f76f41 Add #include <sys/resource.h>
My apologies for missing these #includes, I must have confused the
dependencies with a wrong timestamp or something.
2003-02-16 16:01:52 +00:00
phk
69de4d8f37 Add #include <sys/resource.h> 2003-02-16 15:46:25 +00:00
phk
4bfb37f22e Remove #include <sys/dkstat.h> 2003-02-16 14:13:23 +00:00
des
3fc8f67380 Back out previous commit, I wasn't thinking clearly. 2003-02-15 23:20:04 +00:00
des
56e06910f2 Set PAM_RHOST to "localhost" if no remote host was specified. This allows
pam_opieaccess() to work as expected for local logins.
2003-02-15 23:16:41 +00:00
obrien
f078dbeb01 Update for version 3.40.
* We have inttypes.h (yes, even in RELENG_4).
* We now have GNU getopt, so lets be the first thing in the tree to
  acutally use it...
2003-02-15 19:05:10 +00:00
seanc
ab4fbcec73 Add the Space Shuttle Columbia incident to calendar.history. While here
move LOTR "history" events into their own calendar file.  Link
calendar.lotr into calendar.world to preserve visibility of this pre-trendy
gem in BSD.
2003-02-15 10:57:20 +00:00
davidc
7df8d20337 Add __unused to the declaration of yyrcsid in a more portable way.
Discussed with: alfred, bde, jmallett, obrien
2003-02-12 18:03:55 +00:00
grog
46b1de6b73 Get Fox Talbot's birth year right. How could anybody have expected
photography in the 15th century?
2003-02-11 01:42:19 +00:00
robert
1932d78f6c - Determine the size of buffers with sizeof() instead of using
plain magic numbers - one of them was apparently wrong but unharmful.
 - Remove empty line.
2003-02-10 16:58:47 +00:00
tjr
a6fa833b15 Make this work without COMPAT_43 by using tcgetattr()/tcsetattr() instead
of ioctl TIOCGETP/TIOCSETP.
2003-02-10 02:08:49 +00:00
davidc
ff5d2916db Backout my previous commit as requested. This solution generates
parsers that are non-portable.
2003-02-08 17:23:22 +00:00
des
912192732e Use waitpid() instead of wait() since we know the pid of the process we
are waiting for, and we don't want to reap the wrong process.
2003-02-08 16:11:20 +00:00
chris
a7320c3c85 I seem to have never added myself to the FreeBSD birthday calendar. 2003-02-08 05:54:10 +00:00
davidc
583bf78cf8 Add __unused to the declaration of yyrcsid. 2003-02-07 03:39:27 +00:00
mike
e7fb1825df Fix singular/plural confusion in a printf.
PR:		47953
Submitted by:	Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
MFC after:	3 days
2003-02-06 22:39:44 +00:00
des
c4a7a7ecc1 Pass the correct, verified username to PAM instead of getlogin(). 2003-02-06 14:29:28 +00:00
charnier
f9143f2eab Do not start err(3) strings with uppercase nor dot terminate them.
Standard sccsid[] area according to style(9).
2003-02-05 14:25:43 +00:00
charnier
dd3bdff2f6 Header was included twice. Hardcode program name in usage string. 2003-02-05 14:20:27 +00:00
charnier
75de6b34e5 Wrap long line. Use .Ar instead of .Nm where appropriate. 2003-02-05 14:15:02 +00:00
trhodes
9b883f99f1 Remove 2 more unused doc Makefiles. 2003-02-04 18:26:08 +00:00
trhodes
639ca5a9ca Remove another unused Makefile. 2003-02-03 04:15:53 +00:00
obrien
d810ffe889 Add a man page. 2003-02-03 01:59:27 +00:00
obrien
f0ebe6996a Make WARNS=5 clean even on 64-bit platforms. 2003-02-03 01:30:47 +00:00
obrien
e2301bf008 Make WARNS=5 on i386, (WARNS=1 on 64-bit platforms).
Submitted by:	dwmalone (tweaked by me)
2003-02-03 01:22:58 +00:00
obrien
9746fdfdd8 Try to tighten up the types a little bit to help debugging with GDB. 2003-02-02 22:16:05 +00:00
rushani
b6a07e6e73 Add my birthday.
Approved by:	hrs (mentor)
2003-02-01 05:31:49 +00:00
roberto
63438f7ba7 The newly appointed .org registrar has a pecular output format so
whois doesn't follow the link to the authoritative registrar. Fix it.

PR:             bin/47770
Submitted by:   Alain Thivillon <at@rominet.net>
MFC after:	    7 days
2003-01-31 21:57:10 +00:00
trhodes
015f9bcecc A few changes for clarity.
PR:		47170
Submitted by:	Gary W. Swearingen <swear@attbi.com> (original version)
2003-01-27 18:16:36 +00:00
fenner
fd28d315c2 Don't try to fseek before the beginning of the file; POSIX requires that
this return an error.
This re-enables display of the first entry in /var/account/acct instead
 of the error "lastcomm: /var/account/acct: Invalid argument"
2003-01-27 18:16:32 +00:00
keramida
21c955a972 Add a reference to talkd(8) as a hint that talk(1) depends on a
service to work correctly.

Inspired by:	P. U. Kruppa <520023893678-0001@t-online.de>
2003-01-23 22:40:18 +00:00
des
d0a96d2181 Slight cleanup of the ETA / BPS code. Avoid a division by zero. 2003-01-23 13:06:13 +00:00
des
0c1d7b9b17 Document netrc support. 2003-01-22 18:35:20 +00:00
des
4a3e9f26cb Add -N option to specify a netrc file.
Fix handling of -v option.
Don't treat negative offsets as valid positive ones.
Clean up the ETA and transfer rate code.  Show transfer rate along with
ETA if the verbose level is higher than 1.
2003-01-22 18:33:39 +00:00
obrien
8115ffde7c kenv(1) has been repo copied from usr.bin to bin.
Sometimes we need kenv(1) in /etc/rc.diskless*.
2003-01-20 17:56:25 +00:00
fanf
d707a4320d Sync with upstream again:
* Be less strict about multi-line preprocessor directives (e.g. those
    with comments hanging off the right-hand end) since they're more
    of a problem in practise than I expected. Prompted by phk.

* Fix the handling of "ignore" symbols.

* Style pedantry from OpenBSD and Ted Unangst <tedu@stanford.edu>,
    including some whitespace fixes and removal of strcpy()
    (and not including excessively strict KNF enforcement).

* Fix some typos and terminological inconsistencies.
2003-01-20 12:41:41 +00:00
marcel
abee30eb68 If we're going to build and install this on ia64, we might as well
teach it about ia64 specific section types, dynamic tags and machine
type. This is a mostly insignificant change given the amount of
work that this tool obviously needs...
2003-01-18 02:33:49 +00:00
fanf
8a62aaa425 Style fixes: brackets around the argument of return, and removal of
excess space.

Obtained from: OpenBSD
2003-01-17 19:12:02 +00:00
fanf
fd01cb8163 Add a necessary cast, because ptrdiff_t isn't necessarily the same as int.
Obtained from: OpenBSD
2003-01-17 19:10:18 +00:00
mbr
f4b7d59385 Implement nonblocking tpc-connections. rpcgen -m does still
produce backcompatible code.

Reviewed by:	rwatson
Obtained from:	NetBSD
MFC after:	1 day
2003-01-16 07:27:30 +00:00
marcel
c97b10a2a8 Change the handling of non-anchored global substitutions of the empty
string from a silent implicit non-global substitution to a non-silent
explicit fatal error. Archored substitutions are those containing '^'
or '$'.
The problem with changing the substitution to prevent an infinite
number of matches is that it doesn't provide the necessary feedback
to the user that there's a bug in the/a makefile. Reporting the bug
without making the condition fatal makes the feedback mostly useless
due to the way that make fails to prefix the error with program name,
makefile file name and line number information.
Note that global substitutions of the empty string anchored with '^'
(start of string) or '$' (end of string) do not cause an infinite
number of matches and are therefore not reported and hence are non-
fatal.

Suggested by: bde
Tested with: buildworld
2003-01-15 22:36:15 +00:00
obrien
1917b354f1 Like sh_types, dt_tags just aren't in consecutive order, so we have to move
away from indexing into an array.  Also add Sun and GNU specific tags.
2003-01-15 21:24:05 +00:00
obrien
7b1874978c The defined sh_types's just aren't in consecutive order, so we have to move
away from indexing into an array.
2003-01-15 20:48:56 +00:00
obrien
cc2b1f1c63 Hookup elfdump. 2003-01-15 18:33:32 +00:00
obrien
5e4c11b5ba Add a BSDL'ed util that displays information about ELF files.
This is simular to readelf(1) and objdump(1).

Submitted by:	jake
2003-01-15 18:32:06 +00:00
mtm
2da153c5bb o Typo/Grammar fixes
o Added mini-function to correctly handle singular/plural
	  of words ending in 'ly'

Approved by: markm (mentor)
Not objected to by: -audit
2003-01-14 16:02:56 +00:00
brueffer
7b3ae400f0 Add my birthday
Approved by:	ceri (mentor)
2003-01-14 00:18:06 +00:00
marcel
f9f65ee8ce Prevent infinite substitution of the empty string by forcing non-
global substitution. In general it's a makefile bug to globally
substitute the empty string, but it's a bug in make(1) if a bug
in the makefile yields an infinite running time of make(1).

Not objected to by: arch@
2003-01-13 23:53:46 +00:00
dillon
ccd5574cc6 Bow to the whining masses and change a union back into void *. Retain
removal of unnecessary casts and throw in some minor cleanups to see if
anyone complains, just for the hell of it.
2003-01-13 00:33:17 +00:00
dillon
ddf9ef103e Change struct file f_data to un_data, a union of the correct struct
pointer types, and remove a huge number of casts from code using it.

Change struct xfile xf_data to xun_data (ABI is still compatible).

If we need to add a #define for f_data and xf_data we can, but I don't
think it will be necessary.  There are no operational changes in this
commit.
2003-01-12 01:37:13 +00:00
dillon
187e654d9a Make 'sysctl vm.vmtotal' work properly using updated patch from Hiten.
(the patch in the PR was stale).

PR:             kern/5689
Submitted by:   Hiten Pandya <hiten@unixdaemons.com>
2003-01-11 07:29:47 +00:00
mikeh
44c0edb0a0 The return-path is optional in a headline, therefore don't skip a
message if it is missing the return-path.

PR:		bin/40314 (slightly different patch)
MFC after:	2 weeks
2003-01-09 05:08:37 +00:00
mikeh
f4872a600d Correct a few more definitions, capitalize header fields consistently. 2003-01-09 03:36:47 +00:00
mikeh
8234c83805 Clarify ~. escape definition, remove duplicate entry, and shorten a
definition.
2003-01-09 01:14:54 +00:00
mikeh
139f1ec4fa Document the ~. and ~? command escapes. 2003-01-09 01:08:33 +00:00
phk
fdbb382f1c Add "ifstat" display:
ifstat      Display the network traffic going through active interfaces
                 on the system.  Idle interfaces will not be displayed until
                 they receive some traffic.

                 For each interface being displayed, the current, peak and
                 total statistics are displayed for incoming and outgoing
                 traffic.  By default, the ifstat display will automatically
                 scale the units being used so that they are in a human-read-
                 able format.  The scaling units used for the current and peak
                 traffic columns can be altered by the scale command.

Submitted by:	Trent Nelson <trent@arpa.com>
2003-01-04 22:07:24 +00:00
phk
4a03bcc47d When we close a display, mark it as not-initialized so that we will
properly open it again next time.

Submitted by:	Trent Nelson <trent@arpa.com>
2003-01-04 21:58:25 +00:00
peter
3668c296f2 Unifdef has got some crack-smoking exit values:
"The unifdef utility exits 0 if the output is an exact copy of the input,
    1 if not, and 2 if in trouble."

This causes an 'Error code 1 (ignored)' in the world output, which upsets
the whereintheworld scripts that the tinderboxes use.

However, this stuff here is a relic.  We do not enable HAVE_TCL_INTERP
nor HAVE_PERL_INTERP..  The Makefile hooks to turn them on have gone ages
ago, and this stuff was here for release building purposes only.  Rather
than fight with the tinderbox builds, clean house a bit and remove the
last remaining unused relics of this stuff.
2003-01-04 20:24:27 +00:00
obrien
ee59f38b2a Complete the bzip2 suite. 2003-01-04 17:09:27 +00:00
schweikh
d3367c5f5d Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,
especially in troff files.
2003-01-01 18:49:04 +00:00
schweikh
718a7892bc Fix typos; add FreeBSD Id where missing. 2003-01-01 18:13:45 +00:00
schweikh
86f7487fb6 Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/
Add FreeBSD Id tag where missing.
2002-12-30 21:18:15 +00:00
mike
2c840ea280 Back out rev 1.20; getbsize(3)'s original interface has been restored.
Approved by:	markm
2002-12-30 18:14:43 +00:00
mike
329cb09712 Back out rev 1.27; getbsize(3)'s original interface has been restored.
Approved by:	markm
2002-12-30 18:13:07 +00:00
obrien
b09fc872b2 Move elf2aout back to /usr/bin -- it is a general development tool, not
a sysadmin tool.
2002-12-30 10:01:26 +00:00
obrien
b7966b7e16 Use the offical sys/endian.h rather than reaching way over into another
binary's directory to use a private header.
2002-12-30 09:58:20 +00:00
obrien
63609ab941 Adjust path to crunchide. 2002-12-30 09:55:42 +00:00
obrien
dfc4091f22 Adjust max WARNs for sparc64. 2002-12-30 09:48:40 +00:00
obrien
59f9abfc7f Style cleanup. 2002-12-30 09:46:58 +00:00
obrien
3f503016bf Make WARNS=5 clean.
Tested on:	sparc64, Athlon[32]
2002-12-30 09:45:26 +00:00
obrien
0f60a19b2e This builds fine with WARNS.
Tested on:	sparc64, athlon[32]
2002-12-30 09:41:07 +00:00
markm
2257328643 Diff-reduction WRT crypto telnet; replace "#if 0" code removed by an
earlier invocation of unifdef(1).
2002-12-29 07:36:43 +00:00