Commit Graph

3534 Commits

Author SHA1 Message Date
ghelmer
a72527d3bf O_NONBLOCK was used as a command with a bogus arg to fcntl(2).
Change it to F_SETFD with an arg of 0 to clear O_NONBLOCK.

PR:		bin/8681
Submitted by:	koyama takahiro <tah@d1.dion.ne.jp>
Prompted by:	Nathan Ahlstrom <nrahlstr@winternet.com>
2000-06-09 19:38:28 +00:00
obrien
e3b254d993 Add links to "edit" to ease tech support's job. 2000-06-06 22:55:41 +00:00
asmodai
1e35822cae Fix example.
PR:		18953
Submitted by:	Mark Ovens <mark@ukug.uk.freebsd.org>
2000-06-04 09:11:22 +00:00
bde
4a2d3a8ea8 Fixed some style bugs. Apart from formatting bugs, MANDEPEND is deprecated
and $< and $@ are even documented as deprecated.
2000-06-03 11:39:38 +00:00
phk
07e8f18363 Duh! get the scaling right. 2000-06-01 08:49:46 +00:00
phk
e2408f6901 Rescale the IOstat bars, modern disks are faster than old disks. 2000-06-01 08:26:13 +00:00
ps
06827f9db7 Nuke more from the repository. 2000-05-29 13:31:51 +00:00
kris
8dea44a314 Silence warnings. 2000-05-27 22:38:03 +00:00
jake
5e208b0c18 Back out the previous change to the queue(3) interface.
It was not discussed and should probably not happen.

Requested by:		msmith and others
2000-05-26 02:09:24 +00:00
ume
41d30906dc Don't pass scope-id to EPRT command.
Reviewed by:	sumikawa
2000-05-25 15:27:31 +00:00
jake
1d685644e0 Change the way that the queue(3) structures are declared; don't assume that
the type argument to *_HEAD and *_ENTRY is a struct.

Suggested by:	phk
Reviewed by:	phk
Approved by:	mdodd
2000-05-23 20:41:01 +00:00
ps
5d978e8ba6 Install a manpage for more. 2000-05-23 08:26:15 +00:00
ps
82f157f433 Detach usr.bin/more and install a link from less. less will behave
like more if invoked as more.  The old more has not been removed.
2000-05-23 08:16:25 +00:00
ume
ac6f9db007 Replace isurl() with isipv6addr().
Reported by:	Koji Kondo <koji@jp.above.net>
Obtained from:	NetBSD
2000-05-22 17:18:38 +00:00
ps
3d66f15bc4 Dont use/install the formatted man file. 2000-05-22 10:43:56 +00:00
ps
cac6b504a7 bmake glue for less.
Reviewed by:	peter
2000-05-22 10:00:00 +00:00
green
c97fff709a In the modern world, things are much faster than when more(1) was created.
Scrolling sideways is fast, and a "...skipping..." message making everything
blink does much more harm than good.
2000-05-21 18:35:28 +00:00
kris
1f2890e1d2 fork() -> vfork()
This would have been commit #2 which was "Obtained from: BSD/OS" except
their code is buggy (they call err() if the execl() fails, which will
incorrectly call exit()), so instead this is:

Obtained from:	NetBSD
2000-05-19 09:42:53 +00:00
hoek
eda0c9e975 Use different filenames.
Submitted by:   bin/16927, Mike Heffner
2000-05-17 22:46:47 +00:00
hoek
915eea1b76 Catchup with the times:
- Avoid use of word that Americans don't know how to spell
 - Avoid use of capital letters when referring to command names
 - Bookmarks do span files
 - Use .Qq where appropriate.  I didn't use .Sq or .Dq where `' and ``''
   appear, since it's not clear to me what modern usage of those two
   macros is.
 - Say simply: ``See .Xr xxx 1'' rather than ``See the .Xr xxx 1 command''.
   This former style has undoubtedly increased in popularity due to
   html and hyperlinks, but it's always been around (esp. for manpage
   sections other than section 1).
 - Use .St
 - Dedocument use of `-' to mean that `more` should read from its
   standard input.  The modern preferred way to read from standard
   input is by specifying /dev/stdin.  This is not a prelude to changing
   more's behaviour within the short term (ie. at least 3-4 years).
2000-05-16 17:19:32 +00:00
hoek
af747033d1 From PR submitter:
compress uses setfile() to make flags, ownership and mode of the output
 the same as those of the original. However, if the filesystem holding the
 output file doesn't support these operations, compress prints a warning.
 This bites a bit with NFS directories, which always fail the chflags()
 operation. If the file system doesn't support the operation, then the
 flags data wasn't valid on the original file anyway, so the warning is
 spurious.

Submitted by:	bin/16981 (Peter Edwards <peter.edwards@ireland.com>)
2000-05-16 04:58:34 +00:00
cpiazza
a4b34dc3fd Remove addition of -g to CFLAGS 2000-05-16 04:23:54 +00:00
hoek
1d07d4e965 I'm not sure what posessed me to initialize wraplines to FALSE in the prev
commit, but it's obviously supposed to be initialised to TRUE.
2000-05-15 16:39:58 +00:00
phk
3dc559cdc7 Oops, byte offset was as off_t. 2000-05-15 08:43:25 +00:00
phk
6d9d3152cc Let cmp(1) grow in -x option to print differences in contemporarry hex
format rather than the mixed decimal/octal format of -l.
2000-05-15 08:30:43 +00:00
will
e1b68efb94 Update make(1) manpage to include information about the new loud
debugging facility I introduced earlier today.
2000-05-14 23:03:45 +00:00
will
df492e3409 Add loud debugging facility (-dl option) which allows programmers/developers
to override @-prefixed commands in Makefiles.  It is especially useful for
debugging ports and/or complex Makefiles in such a manner that is basically
a last resort, but is quite effective if the output is well-handled.

I'll update the manpage after dinner.  ;-)

Better patch submitted by:	steve
Reviewed by:			phk, steve, chuckr, obrien,
				Lyndon Nerenberg <lyndon@orthanc.ab.ca>
2000-05-14 22:24:28 +00:00
obrien
73e8da8888 Fix minor style nits. 2000-05-14 21:13:57 +00:00
obrien
b272e31d7f Install otp-md{4,5} bits.
PR:		14911
Submitted-by:	Lyndon Nerenberg <lyndon@orthanc.ab.ca>
2000-05-14 21:13:10 +00:00
hoek
fedad18e70 Allow bookmarks to cross files. 2000-05-14 03:30:59 +00:00
hoek
48486a3efa Backout previous commit to this file: it dies in buildworld environment.
I probably forgot to put an ${.OBJDIR} somewhere.  I'll redo the change
later when I get a chance to test that thesis.
2000-05-12 18:10:17 +00:00
hoek
9a84256d1d Improve hack from previous commit to this file: exit if we get successive
EOFs from reading stderr (eg. not from argv[1]).
2000-05-12 04:04:27 +00:00
hoek
bce7108af6 Use termcap(5) function key sequences rather than hardcoding for syscons.
Now page-up/down work from xterms.
2000-05-12 04:02:13 +00:00
hoek
3dc4fe7c2f Create magic variables that return termcap(5) strings for function keys. 2000-05-12 04:00:23 +00:00
hoek
ea72947f70 Fix an uncommon bug that would cause us to stop accepting input if the
user entered a command that filled exactly the remaining screen width.
2000-05-12 03:53:38 +00:00
hoek
8f1303d4f7 Only main.c depends on defrc.h 2000-05-12 03:52:03 +00:00
nsayer
7d082e6fa4 Small style fix '=' -> ' = ' 2000-05-11 20:15:16 +00:00
nsayer
690822e335 Fix compatibility issue in sed. Do so by explicitely adding a
newline to the end of any -e argument.

PR: bin/18474
2000-05-11 17:01:52 +00:00
hoek
10e3e0242c Unwind state on malloc() failure more carefully: avoids memory leak. 2000-05-11 14:57:26 +00:00
hoek
d51ef8a4ca Make the TAB key tab. Under syscons, shift-TAB also performs a backtab. 2000-05-11 00:56:55 +00:00
hoek
54c9ce8091 Fix a comment and actually expand \t the way the comment suggests. 2000-05-11 00:46:50 +00:00
phantom
f1f07ee82b Corractly use .Nm and .An/.Aq macros. Replace FreeBSD with .Fx macro
e.
2000-05-10 15:46:27 +00:00
sheldonh
562daef86d The printenv(1) command is now a builtin(1) in csh(1). 2000-05-09 15:02:03 +00:00
sheldonh
5e0dc361bb Fix miscellaneous mdoc macro argument limit infringements.
PR:		18465
Reported by:	Kazu TAKAMUNE <takamune@avrl.mei.co.jp>
2000-05-09 14:02:06 +00:00
hoek
d1b413a71a Exit if we read two EOFs from the keyboard input stream. Why two and not
one?  Just 'cause.

PR:		misc/14932
2000-05-09 04:13:49 +00:00
hoek
6593caa99f Don't segv if viewing "#" and there is no prev-file (long-standing).
Staticize a variable that was meant to be static (broken in r.1.11).

PR:		bin/11370 Henry Whincup <henry@techiebod.com> (for the segv)
2000-05-09 03:53:13 +00:00
kris
19dc073881 Oops, revert previous commit 2000-05-07 09:23:37 +00:00
kris
18fe9e0d16 Update device references. 2000-05-07 09:23:36 +00:00
obrien
9492adb1a8 Add $FreeBSD$ (and test remote commits after the Freefall upgrade) 2000-05-06 01:38:24 +00:00
phk
8416275eed Remove unneeded #include <sys/buf.h> 2000-05-05 16:07:10 +00:00
phk
e28e1daa49 Don't include <sys/buf.h> 2000-05-05 15:41:22 +00:00
phantom
bb2dcb562a These files are located under usr.bin/calendar/calendars/ru_RU.KOI8-R now 2000-05-04 11:40:15 +00:00
phantom
e2481631f6 Rename calendars/ru_SU.KOI8-R to calendars/ru_RU.KOI8-R to reflect
locale name change (ru_SU.KOI8-R -> ru_RU.KOI8-R)

Not objected to by:	ache
2000-05-04 11:35:27 +00:00
phantom
b2f9397636 Correct comments and variable names left since repo-copy 2000-05-04 11:31:16 +00:00
phantom
aa1a92f6db Add missing $FreeBSD$ tags 2000-05-04 11:28:55 +00:00
obrien
d880b59ae2 Restore this file.
Requested by:	bde
2000-05-02 21:53:52 +00:00
obrien
d06d5a11a7 Add descriptions of the nm(1aout) keywords and their meanings.
PR:		docs/17269
Submitted by:	Oscar Bonilla <obonilla@fisicc-ufm.edu>
2000-05-02 20:21:49 +00:00
obrien
8d0e6f171f nm.1aout is used here now. 2000-05-02 20:17:01 +00:00
hoek
489550c667 Fix a long vs. int problem that was fatal on i386s with 64bit longs (but
not alphas with 64bit longs).

Submitted by:	bde (a while ago)
2000-05-02 02:36:03 +00:00
peter
7169716643 Remove the undocumented semconfig() system calls. These cause more trouble
than they are worth.
2000-05-01 10:49:41 +00:00
nik
15dbf2afaf Remove reference to bsd2dos command, refer to fconv and similar.
PR:             docs/17101
Submitted by:   Udo Erdelhoff <ue@nathan.ruhr.de>
2000-04-30 22:45:13 +00:00
nik
4cf32bbba4 Add descriptions of the nm(1) keywords and their meanings.
PR:             docs/17269
Submitted by:   Oscar Bonilla <obonilla@fisicc-ufm.edu>
2000-04-30 22:44:05 +00:00
obrien
3d8c847144 Default device not longer uses the "r" raw prefix. 2000-04-26 11:34:52 +00:00
sheldonh
f6a4f677a5 Add braces to avoid ambiguity in a nested conditional (silences a gcc
warning).
2000-04-26 10:38:19 +00:00
obrien
93b01ecac9 Unbreak for the case where ``make obj'' was run first. 2000-04-26 07:00:46 +00:00
wollman
258381ce7c Hello, getconf. This is a slight reinvention of the
wheel^H^H^H^H^HPOSIX.2 and X/Open utility, and rather
more complicated than necessary.
2000-04-26 02:36:54 +00:00
sheldonh
5d45efc044 Fix excessive use of parenthesis in previous commit.
Requested by:	bde
2000-04-25 08:59:51 +00:00
markm
224e8a8a17 Use Garrett's new (clearer) names. 2000-04-23 14:18:18 +00:00
cracauer
9c3513006c Remove redundat extern declaration 2000-04-20 09:31:54 +00:00
jlemon
94fea207f0 Change <event.h> --> <sys/event.h> 2000-04-18 16:56:55 +00:00
joerg
94233bc75d No such thing like `southamericarand' when Rand is the currency of ZA... 2000-04-18 16:37:43 +00:00
obrien
869b6d7c34 * I goofed and didn't break sentances the right way.
* Make the option arguments format better
* Fix mispelling

Submitted by:	ru
2000-04-18 16:25:51 +00:00
obrien
70633e481c Change our ELF binary branding to something more acceptable to the Binutils
maintainers.

After we established our branding method of writing upto 8 characters of
the OS name into the ELF header in the padding; the Binutils maintainers
and/or SCO (as USL) decided that instead the ELF header should grow two new
fields -- EI_OSABI and EI_ABIVERSION.  Each of these are an 8-bit unsigned
integer.  SCO has assigned official values for the EI_OSABI field.  In
addition to this, the Binutils maintainers and NetBSD decided that a better
ELF branding method was to include ABI information in a ".note" ELF
section.

With this set of changes, we will now create ELF binaries branded using
both "official" methods.  Due to the complexity of adding a section to a
binary, binaries branded with ``brandelf'' will only brand using the
EI_OSABI method.  Also due to the complexity of pulling a section out of an
ELF file vs. poking around in the ELF header, our image activator only
looks at the EI_OSABI header field.

Note that a new kernel can still properly load old binaries except for
Linux static binaries branded in our old method.

  *
  * For a short period of time, ``ld'' will also brand ELF binaries
  * using our old method.  This is so people can still use kernel.old
  * with a new world.  This support will be removed before 5.0-RELEASE,
  * and may not last anywhere upto the actual release.  My expiration
  * time for this is about 6mo.
  *
2000-04-18 02:39:26 +00:00
jlemon
0c4b557463 Change tail to use kqueue/kevent to obtain a notification when
the file changes (when doing tail -{f|F}).
2000-04-16 19:04:49 +00:00
jlemon
a4fb136430 Do not pull in <sys/select.h>, it isn't required. 2000-04-16 17:34:33 +00:00
imp
8e96f07683 #include <errno.h> where needed. Kill extern int errno;.
Minor warnings in tip corrected.
2000-04-14 06:39:19 +00:00
sheldonh
4f679309d9 Do not issue a warning when chflags() fails with EOPNOTSUPP.
PR:		17875
Submitted by:	Bjoern Fischer <bfischer@Techfak.Uni-Bielefeld.DE>
2000-04-13 09:39:29 +00:00
sheldonh
95b98853f3 Use an MD5 checksum to test for file changes; the previous method
of using file mtimes could result in chpasss(1) erroneously
detecting that no changes were made for non-interactive edits.

PR:		4238
Reported by:	Jens Schweikhardt <schweikh@noc.dfn.de>
Submitted by:	Daniel Hagan <dhagan@cs.vt.edu>
2000-04-12 08:49:14 +00:00
green
821751947c Add a new options: -m enables searching for memory-mapped files.
It is not default because it's an expensive option by nature, making the
search take 2-3 times as long.

PR:		17555
Submitted by:	Ian Dowse <iedowse@maths.tcd.ie>
2000-04-05 05:45:40 +00:00
bde
76860644ae Fixed prototype for setflags(). setflags() returns int, not u_long,
and "extern" in function prototypes is a style bug.  The type mismatch
broke chflags(1) on i386's with 64-bit longs and may have broken it on
alphas.
2000-04-04 14:12:35 +00:00
jdp
375ea71f6b Document that the flags can be specified as an octal number. 2000-04-03 22:10:58 +00:00
steve
8fbb60c672 The FreeBSD/Sparc64 port will also have an __ELF_WORD_SIZE of 64. 2000-04-02 20:22:04 +00:00
bsd
3207b91702 Fix a bug in rsh that caused the remote process to hang waiting on
input even if the '-n' flag to rsh is used.  The write side of the
socket should be closed to allow the remote process to see EOF.

Submitted by:  Brad Chisholm <sasblc@unx.sas.com>
2000-04-01 00:14:50 +00:00
nectar
c787860c51 Instead of checking for a non-zero return value from kvm_read, check
whether we read as many bytes as we expected.
2000-03-31 15:02:10 +00:00
sheldonh
ec09ee1d3d While I'm in here, remove an unused variable.
Submitted by:	Nathan Ahlstrom <nrahlstr@winternet.com>
2000-03-30 09:23:28 +00:00
sheldonh
f113dd4c72 Fix buffer overflow copying the ``kernel'' command-line argument into
buffers.  The buffers have been resized from the irrelevant BUFSIZ
to the more relevant MAXPATHLEN + 1.

Reported by:	Mike Heffner <spock@techfour.net>
2000-03-29 17:22:10 +00:00
sheldonh
d29dd664aa Cross-reference ldd(1) in rtld(1) and vice versa. 2000-03-28 09:01:04 +00:00
charnier
413a2af015 Get rid of hard sentence break
Asked by: Sheldon
2000-03-27 20:38:21 +00:00
charnier
63df84381b More rusers to .Nm convertion
Some of them found by: Sheldon
2000-03-27 20:36:55 +00:00
charnier
dbd155ce45 Quote with .Dq
Asked by: Sheldon
2000-03-27 20:33:32 +00:00
bde
e8821bdbec Fixed misspelling of DPADD as DPADDA.
Fixed some misformattings.
2000-03-27 16:37:32 +00:00
bde
d23fd55a30 Fixed LDADD. Using ${LIBM} instead of -lm gave the wrong libm in most
cases and broke the world in some cases.

Fixed style bugs for DPADD and LDADD (don't use += for variables defined
only once).
2000-03-27 15:02:59 +00:00
sheldonh
0fcb9e04d8 Do not overwrite files when the -i option is specified!
PR:		17476
Reported by:	Jonathan Chen <jon@spock.org>
2000-03-27 11:49:36 +00:00
sheldonh
6859da015e Fix a mistakenly broken sentence. The mistake was made easy by the
confusing use of a comma to separate two sentences. :-)

Reported by:	bp
2000-03-27 10:50:54 +00:00
sheldonh
6bb2379ad8 Y2K fix. at(1) would die with 'garbled time' when assign_date() was
pased a year > 99.  This change fixes the conversion of 2-digit years
into tm_year format.

This change is differs from the OpenBSD fix because of differences
in our assign_date().

PR:		15872
Reported by:	"Crist J. Clark" <cjclark@home.com>
Submitted by:	"Sergey N. Voronkov" <serg@dor.zaural.ru>
Obtained from:	OpenBSD
2000-03-27 09:32:23 +00:00
charnier
1745d27ce1 Add DIAGNOSTICS section name. Spelling 2000-03-26 15:10:37 +00:00
charnier
ed17e2d488 Add DIAGNOSTICS section name 2000-03-26 15:06:46 +00:00
charnier
517a36f360 Use .Xr 2000-03-26 15:05:40 +00:00
charnier
36445da3d7 Add usage(). 2000-03-26 15:04:35 +00:00
charnier
e1069c675a Do not dot terminate list of references 2000-03-26 14:56:52 +00:00
charnier
fb2b0dadce remove unknown OPTIONS section name. Getopt returns -1. 2000-03-26 14:55:05 +00:00
charnier
bb26d230f3 Add section number to .Xr references. Enumerate flags the standard way. 2000-03-26 14:54:01 +00:00
charnier
6b66dac19a Put argument under .Ar. 2000-03-26 14:53:00 +00:00
charnier
3385c778b6 Add section number to .Xr. Put arguments under .Ar. 2000-03-26 14:52:02 +00:00
charnier
5b4eb65717 Do not dot terminate err() string. Cross reference using .Xr 2000-03-26 14:50:56 +00:00
charnier
e92d58141d Use .Pa 2000-03-26 14:49:49 +00:00
charnier
8c3eb2dfe0 Remove incorrect use of .Nm. Wrap long lines, Unwrap short lines
Options: -> The following options are available:
2000-03-26 14:48:46 +00:00
charnier
44eba3ec39 Put flags under .Fl. Add DIAGNOSTICS section name 2000-03-26 14:47:43 +00:00
charnier
87a722c658 Sync SYNOPSIS and usage() string. 2000-03-26 14:46:41 +00:00
charnier
65671010c6 Add missing dots 2000-03-26 14:45:38 +00:00
charnier
5a88fc66a0 Move RCS tags after copyright
Add DIAGNOSTICS section name
2000-03-26 14:43:25 +00:00
charnier
90314ec2f3 Add DIAGNOSTICS section name 2000-03-26 14:42:14 +00:00
charnier
49178ce1a2 .Nm changes 2000-03-26 14:41:07 +00:00
charnier
e5d4934e4a Add DIAGNOSTICS section name
Options: -> The following options are available:
2000-03-26 14:39:03 +00:00
charnier
8d46190561 Properly use .Nm, .Em, .Pa etc. Make usage() a simplier function. 2000-03-26 14:37:47 +00:00
charnier
9787e80b47 Add -d and -t flags to usage. Add usage(). 2000-03-26 14:30:51 +00:00
charnier
b3d943b711 Typo 2000-03-26 14:29:45 +00:00
charnier
662ccd10e4 Use errx(), remove unused #include. Correct SYNOPSIS 2000-03-26 14:28:31 +00:00
charnier
27385a06a9 Add .Nm.
Options: -> The following options are available:
2000-03-26 14:27:19 +00:00
charnier
552482d83c Add DIAGNOSTICS section name and section name to .Xr. 2000-03-26 14:25:51 +00:00
charnier
ee49ba4933 DIAGNOSTICS section name missing and .Nm changes 2000-03-26 14:24:40 +00:00
charnier
b09393ce42 Use errx(). .Nm fixes 2000-03-26 14:23:23 +00:00
charnier
bbacd6e9e3 Use warnx(), -Wall cleaning and remove unused #include
Better use of .Nm and .Ar
2000-03-26 14:21:57 +00:00
sheldonh
2fe4a20ac4 Correct grammar.
Rename and (where appropriate) re-order sections.
Put something useful in the BUGS section.
Clear the Os macro and add a HISTORY section.

Reviewed by:	bp
2000-03-24 07:37:02 +00:00
mharo
862afadc67 fix bug with du -hd
Submitted by: dcs
2000-03-24 06:25:32 +00:00
mpp
f05b4d5aba Change the usage of the .Nm macro in the NAME section to be
consistent with the rest of the system.
2000-03-24 00:30:30 +00:00
sheldonh
87ddfaadfe Clear the Os macro and provide an HISTORY section instead. 2000-03-23 12:05:10 +00:00
sheldonh
35aa104e1d Correct grammar.
Rename and (where appropriate) re-order sections:
        NOTES -> IMPLEMENTATION NOTES
        AUTHOR -> AUTHORS
Put something useful in the BUGS section.

Only the first gammar fix in the file comes was given in the
attributed PR.

PR:		17545
Submitted by:	Yoshihiro Ota <hiro@mail.advok.com>
2000-03-23 11:59:30 +00:00
green
b02ad8ebde Uncorrupt the SCCS id (s/ From: / /).
Put a tab before the comment for "rflags".

Submitted by:	bde
2000-03-20 21:31:30 +00:00
guido
035ac4cfe1 Add '-L' option to usage(). 2000-03-20 18:33:11 +00:00
green
5165403e4a Fix a couple hard sentence breaks I inadvertently introduced. Also,
update a bit of English into something easier to read.

Prompted by:	sheldonh (thanks!)
2000-03-20 16:21:53 +00:00
sheldonh
718959ef28 Revert the part of rev 1.5 that spammed rev 1.4; rev 1.4 correctly
removed an erroneous cross-reference to ld.so(1), which doesn't
exist in FreeBSD.

PR:		17468
Submitted by:	Randall Hopper <aa8vb@ipass.net>
2000-03-20 13:30:11 +00:00
green
abf590b91e Add a new flag: -E enables "extended" regular expressions. 2000-03-19 19:41:53 +00:00
green
2c08b7b7f3 Add $FreeBSD$. 2000-03-19 19:39:41 +00:00
kris
13ec8188a5 Add and document a NO_X knob to force disabling of X support in doscmd
Requested by:	sysop@silver.komanda.com.ua
2000-03-19 09:49:03 +00:00
sef
beea3953a2 Change the output of truss to more closely resemble SysV's. (Yes, it
really is much nicer looking.)

Submitted by:	"Matthew N. Dodd" <winter@jurai.net>
2000-03-18 08:49:41 +00:00
green
7dffb5b1b5 Support more filesystems in fstat(1): now you can use fstat(1) to
find out if files on msdosfs and cd9660 filestores are open.
There was also a movement of some common things to a header, a
small cleanup.

PR:	bin/16364 bin/7043
Submitted by:	Peter Edwards <peter.edwards@openet-telecom.com>
2000-03-16 02:02:34 +00:00
bsd
6201769200 Resurrect the 'cdelay' and 'ldelay' features of /usr/bin/tip. 2000-03-15 15:01:04 +00:00
archie
4eca0215a9 Identify timezone data files by their ``TZif'' magic number.
Add $FreeBSD$ tag.
2000-03-14 21:28:22 +00:00
shin
762b1f5c30 Don't suppress Flags and Refs info for IPv4 entries.
(They need to be suppressed by default for IPv6 entries to keep the column
size of each entries in 80.)
2000-03-14 17:18:43 +00:00
shin
98cfd2a46d Add a flag to the usage display.
There was a missing description for a new flags to netstat.
  I already added the fix to netstat man, but usage() change is
  also necessary.

Specified by: Ben Smithurst <ben@scientia.demon.co.uk>
Approved by: jkh
2000-03-11 20:14:08 +00:00
shin
e728199673 Add "-l" option description.
Noticed the necessity by Ben Smithurst <ben@scientia.demon.co.uk> message
on freebsd-current.
2000-03-11 14:33:13 +00:00
shin
5f17cc44e7 Prevent sockstat print out some empty entries related to IPv6.
Sockstat use netstat tcp/udp socket print, and fstat tcp/udp
  socket print, but it just specify all of IPPROTO_IP and
  IPPROTO_IPV6 sockets for fstat.
  Now IPv6 socket also use raw socket, but only netstat don't print it,
  so now they are printed as empty entries in sockstat output.

Approved by: jkh
2000-03-11 11:25:00 +00:00
sheldonh
47c2a6415e Fix whitepace in the arguments of two Xr macros. 2000-03-10 14:46:30 +00:00
sheldonh
0dab42fe46 Mark up the optional -c option with the Op macro.
PR:		17271
Submitted by:	David Malone <dwmalone@maths.tcd.ie>
2000-03-09 09:27:40 +00:00
kris
ff6d9a44ba Buildworld fixes for NO_OPENSSH and NO_OPENSSL
Approved by:	jkh
2000-03-09 06:29:05 +00:00
cracauer
f1c5a02a22 Print a warning and exit with != 0 when at least one downloaded file
is shorter than previously announced by the server.

Tested by asami.

Approved by:	jkh
2000-03-08 13:02:11 +00:00
nik
fd5b578306 ftp(1)'s default pager is "more", not "less", as documented.
PR:             docs/17099
Submitted by:   Udo Erdelhoff <ue@nathan.ruhr.de>
2000-03-07 14:03:16 +00:00
green
7dbfd3cdab Make a run-on sentence into two proper sentences, and clarify the meaning
a bit.
2000-03-06 23:06:11 +00:00
sheldonh
321f9316fa Remove more single-space hard sentence breaks. 2000-03-06 09:45:37 +00:00
shin
d72ee94428 CMSG_XXX macros alignment fixes to follow RFC2292.
Approved by: jkh

Submitted by: Partly from tech@openbsd
Reviewed by: itojun
2000-03-03 11:13:12 +00:00
obrien
97d7db61b9 Tell people how to look up NIC handle information these days (for the two
cases I know about -- Netsol and ARIN).
2000-03-02 22:51:17 +00:00
sheldonh
c0e8952a50 Remove more single-space hard sentence breaks. 2000-03-02 14:54:02 +00:00
sheldonh
d39e57413d Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.
2000-03-01 12:20:22 +00:00
nik
737d2463e5 Fix errors in .Xr usage.
PR:             docs/17057
Submitted by:   Submitted by:   Udo Erdelhoff <ue@nathan.ruhr.de>
2000-03-01 10:48:35 +00:00
nik
fcd1e20b1b s/curses/ncurses/
PR:             docs/17061
Submitted by:   Udo Erdelhoff <ue@nathan.ruhr.de>
2000-03-01 10:46:05 +00:00
nik
a2df4d973e Remove reference to nwfsrc(8), replace with reference to
/usr/share/examples/nwclient/dot.nwfsrc.

PR:             docs/17059
Submitted by:   Udo Erdelhoff <ue@nathan.ruhr.de>
2000-03-01 10:43:11 +00:00
gsutter
ca733e41ae underline "pattern" in the synopsis.
PR:		17042
Submitted by:	Edwin Groothuis <mavetju@chello.nl>
2000-02-28 21:23:27 +00:00
shin
d0c832b25f Previous fix was incomplete and has problem in reverse lookup failed dest,
so fix it.

Approved by: jkh

Submitted by: Ian West <ian@niw.com.au>
2000-02-28 18:37:07 +00:00
ache
7138d3cdf3 Fix diagnostic printing test condition (was always true)
Approved by:	jkh
2000-02-28 01:48:50 +00:00
ru
bbc4194bd0 Remove option's description that has gone with PAM. 2000-02-27 07:14:33 +00:00
shin
e469e98e24 Update sockstat to support INET6 socket printing.
Approved by: jkh

Submitted by: Ben Smithurst <ben@scientia.demon.co.uk>
Reviewed by: des
2000-02-26 02:56:16 +00:00
markm
2c4c950699 Use libcrypto in place of libdes. 2000-02-24 21:06:22 +00:00
shin
bb6df383d0 Correctly print out "Connected to" hostname.
Temporal buffer was used for the hostname and freed before actually used.

Specified by: ru
Approved by: jkh
2000-02-24 19:01:38 +00:00
bsd
5798e80bd0 Fix a 'tip' core dump caused by a null pointer dereference when
sending a file to the remote system.

PR:		bin/15660
Reviewed by:	jkh
Approved by:	jkh
2000-02-22 02:01:17 +00:00
ache
85e922cbc5 Fix several problems with EPSV (verbosity, one-per-session, missing place)
Approved by:	jkh
2000-02-21 18:18:41 +00:00
shin
d64251b6b7 Fixed a little bit strange INET6 output.
Specified by: Ben Smithurst <ben@scientia.demon.co.uk>
Approved by: jkh
2000-02-19 21:46:45 +00:00
shin
a8893d4efd Use static buffer to save source route hostnames.
Approved by: jkh
2000-02-19 16:33:14 +00:00
shin
9659fa5515 Print "Trying ..." for each host. Also cleanups for error printing.
Approved by: jkh

Submitted by: Ben Smithurst <ben@scientia.demon.co.uk>
2000-02-19 16:17:41 +00:00
shin
58ca0b4427 Removed bogus line.
Specified by: ache
Approved by: jkh
2000-02-19 16:13:03 +00:00
shin
d4643f8615 Added IPv6 name resolving support for utmp logging.
Approved by: jkh
2000-02-19 15:57:52 +00:00
shin
be2e48787d Don't try EPSV once it failed.
Specified by: Andrey A. Chernov" <ache@nagual.pp.ru>
Approved by: jkh
2000-02-18 07:02:48 +00:00
sef
d536f05aa7 Fix a leak. (Thanks Bruce, this was a bonehead mistake on my part :).)
Submitted by:	Bruce Evans
2000-02-15 20:25:47 +00:00
shin
d5883cc0eb Fix bugs in telnet.
Sorry there were still several bugs.
   -error retry at af missmatch was incomplete.
   -af matching for source addr option was wrong
   -socket was not freed at retry.

Approved by: jkh
2000-02-15 15:59:12 +00:00
shin
b2bfbd50c8 Add -4 and -6 options.
Current getaddrinfo() implemetation has a problem of too much resolving
 waiting time on INET6 enabled systems.
 -4 and -6 options can limit name resolving address family and is a possible
 workaround for the problem.

Approved by: jkh
2000-02-15 15:11:40 +00:00
unfurl
2de9bcb874 PR: 10850
Submitted by:	Scott Hazen Mueller <scott@zorch.sf-bay.org>
2000-02-15 03:00:47 +00:00
chris
d14aa9e3aa Remove the version information from `.Os FreeBSD' here. Not only
might it confuse people, but it causes a warning message with
nroff, and no version history mentions a 1.2 version of FreeBSD.

If anything, a ``HISTORY'' section should show which version this
appeared in.
2000-02-14 01:47:54 +00:00
chris
5049c6067c Reduce the number of args to .%T to an acceptable number by
removing the `Nm' command from the line.  This means that %T
will actually work.
2000-02-14 01:21:13 +00:00
shin
599469f8ef Add more dual stack consideration.
-Should retry as much as possible when dest addr and
   source addr(specified with -s option) address family
   missmatch happend

Approved by: jkh
2000-02-12 17:59:06 +00:00
shin
ae49c3e87a Fix parsing problems.
-"ftp hostname:/path" was not working.
 - IPv6 raw addr specification was not well supported, such as,
   "ftp http://\[1:2:3:4:5:6:7:8:\]/index.html"

Approved by: jkh
2000-02-12 15:16:59 +00:00
shin
c02d57bd22 Fix several bogus bugs
-Some address resolving related structures were not freed after use.
 -Some error messages were not printed out correctly.

Approved by: jkh
2000-02-12 15:03:05 +00:00
nik
2d4a9b9874 Teach passwd about a new "mixpasswordcase" login.conf parameter. If this
parameter is missing, or specified as above, then passwd behaves as normal
when the user enters an all lower case password -- i.e., it prompts them
to use mixed case, and will only grudgingly accept an all lower case
password.

If you negate this entry in login.conf, with "mixpasswordcase@", then
passwd will allow all lower case passwords without complaining.

Approved by:  jkh
2000-02-11 14:08:44 +00:00
nik
97daa304b2 Teach passwd about a new "mixpasswordcase" login.conf parameter. If this
parameter is missing, or specified as above, then passwd behaves as normal
when the user enters an all lower case password -- i.e., it prompts them
to use mixed case, and will only grudgingly accept an all lower case
password.

If you negate this entry in login.conf, with "mixpasswordcase@", then
passwd will allow all lower case passwords without complaining.

Approved by:	jkh
2000-02-11 13:45:51 +00:00
shin
68cae17428 Add more dual stack consideration.
-Should retry as much as possible when some of source
     routing intermediate hosts' address families missmatch
     happened.
     (such as when a host has only A record, and another host
     has each of A and AAAA record.)

    -Should retry as much as possible when dest addr and
     source addr(specified with -s option) address family
     missmatch happend

Approved by: jkh
2000-02-10 20:06:36 +00:00
shin
68e9f5dddb Let ftp command use only PORT(no EPRT) for IPv4 destination.
Because if ftpd is invoked with -R option, and EPRT is used via firewal
  or NAT which don't understand EPRT, then the data connection from ftpd
  to ftp client will fail.

Reported By: ume@mahoroba.org
Approved by: jkh
2000-02-09 00:27:40 +00:00
obrien
1f09ee9f64 There is a problem in that one cannot use ctype.h at the same time as parts
of the C++ stdlib.  Our ctype.h uses symbols of the form _<X> to denote the
various character classes.  Our ctype.h also extends the usual ctype.h
offering by adding the "_T" (special) class.  Problem is parts of the STL
also use the symbol "_T" as its parameterized type.  These two uses are
incompatible.

Thus change the form of the symbols used in ctype to something that fixes
the current problem and is less likely to cause conflicts in the future.

Requested by:	Tomoaki NISHIYAMA <tomoaki@biol.s.u-tokyo.ac.jp>
Ok'ed by:	JKH
2000-02-08 07:43:26 +00:00
shin
969f5cb6ff Fix telnet core dump at invalid service name specified.
Added an error check to avoid it.

Approved by: jkh

Submitted by: Robert Muir <rmuir@gibralter.net>
2000-02-07 00:52:49 +00:00
obrien
a658c9099d Move brandelf from being i386 specific to the MI area -- Linux emulation
is comming to the Alpha.
2000-02-06 19:15:10 +00:00
joe
bb1bbb6d1f Revert part of the last commit, remove {g|s}etflags from the libc
interface, and statically link them to the programs using them.
These functions, upon reflection and discussion, are too generically
named for a library interface with such specific functionality.
Also the api that they use, whilst ok for private use, isn't good
enough for a libc function.

Additionally there were complications with the build/install-world
process.  It depends heavily upon xinstall, which got broken by
the change in api, and caused bootstrap problems and general mayhem.

There is work in progress to address future problems that may be
caused by changes in install-chain tools, and better names for
{g|s}etflags can be derived when some future program requires them.
For now the code has been left in src/lib/libc/gen (it started off
in src/bin/ls).

It's important to provide library functions for manipulating file
flag strings if we ever want this interface to be adopted outside
of the source tree, but now isn't necessarily the right moment
with 4.0-release just around the corner.

Approved:	jkh
2000-02-05 18:42:36 +00:00
shin
f3aa8fcf5d Add NI_NAMEREQD flag to getnameinfo() call. Without this flag,
getnameinfo() don't return error at name resolving failure.
But it is used at doaddrlookup(-N) case in telnet, error need to be
returned to correctly initialize hostname buffer.

Discovered at checking recent KAME repository change, noticed by itojun.
2000-01-29 18:21:05 +00:00
shin
d8a1d93dbc fix breakage of make release.
Confirmed by: German Tischler <tanis@gaspode.franken.de>
2000-01-29 13:45:44 +00:00
asmodai
7602545cb7 Fix typo's.
PR:		16430
Submitted by:	Adam.Kranzel@teru.dyndns.org (shade@dnai.com)
2000-01-28 20:20:28 +00:00
shin
927a0a3d01 IPv6 multicast routing.
kernel IPv6 multicast routing support.
  pim6 dense mode daemon
  pim6 sparse mode daemon
  netstat support of IPv6 multicast routing statistics

  Merging to the current and testing with other existing multicast routers
  is done by Tatsuya Jinmei <jinmei@kame.net>, who writes and maintainances
  the base code in KAME distribution.

  Make world check and kernel build check was also successful.
2000-01-28 05:10:56 +00:00
joe
a3a381812b Historically file flags (schg, uschg, etc) have been converted from
string to u_long and back using two functions, flags_to_string and
string_to_flags, which co-existed with 'ls'.  As time has progressed
more and more other tools have used these private functions to
manipulate the file flags.

Recently I moved these functions from /usr/src/bin/ls to libutil,
but after some discussion with bde it's been decided that they
really ought to go in libc.

There are two already existing libc functions for manipulating file
modes:  setmode and getmode.  In keeping with these flags_to_string
has been renamed getflags and string_to_flags to setflags.

The manual page could probably be improved upon ;)
2000-01-27 21:17:01 +00:00
mharo
84c0b8e756 cleanup using suggestions from bde 2000-01-27 20:55:09 +00:00
mjacob
54f085a6b0 Style change and comment difference per bde.
Obtained from:bde@freebsd.org
Marionette by:mjacob@freebsd.org
2000-01-27 16:15:51 +00:00
shin
d0fbbcbc0f another tcp apps IPv6 updates.(should be make world safe)
ftp, telnet, ftpd, faithd
  also telnet related sync with crypto, secure, kerberosIV

Obtained from: KAME project
2000-01-27 09:28:38 +00:00
obrien
aee07f4e3f Fixes for my mandoc braindamage.
Submitted by:	sheldonh
2000-01-27 09:00:51 +00:00
mjacob
1ce40ec10e A cleaner fix to previous.
Obtained from:bde@freebsd.org
2000-01-27 07:58:27 +00:00
mjacob
ab75a8d68b Fix ctags from core dumping on alpha. Let the diffs out to review,
but I timed out. Added FreeBSD CVS header.
2000-01-27 05:46:58 +00:00