Commit Graph

3472 Commits

Author SHA1 Message Date
sheldonh
12e84902bb Add a STANDARDS section to discourage the use of this utility
in environments where portability is a concern.
2000-07-21 13:05:15 +00:00
des
718bd18cbb Don't display a running count in quiet mode.
Don't add the offset to the size; it's libfetch's job to report the correct
size of the requested file.
2000-07-21 11:08:03 +00:00
ume
a96fe340ba Fix buffer size of ALIGNed buffer.
PR:		bin/20053
Submitted by:	Alex Kapranoff <alex@kapran.bitmcnit.bryansk.su>
2000-07-20 14:54:04 +00:00
sheldonh
e723f49b88 Rename the `name'' argument to `item'' and mark it up as an argument.
Make use of the marked up argument to clarify the text in the DESCRIPTION
section.
Insert a missing word: ``the''.
Make the phrase in the BUGS section a full sentence.
Sort the cross-references in the SEE ALSO section correctly.
2000-07-20 11:39:14 +00:00
des
d353957b7a Fix two bugs related to resumed transfers:
- if the dates didn't match, fetch would append the received file to the
    existing file instead of replacing it.

  - if the local file was complete and up-to-date, fetch would miscalculate
    the expected size and report a failure instead of a success, because it
    had no way of knowing that the server was actually resending the entire
    file since the requested offset was invalid.
2000-07-19 23:56:45 +00:00
des
4fe17b2e96 Braino: don't use passive mode unless the user requests it.
PR:		bin/20025
Submitted by:	HIYAMA Takeshi <th@cis.ibaraki.ac.jp>
2000-07-19 09:12:36 +00:00
ps
d8cd07a3c2 Oops. fsync(8) should have been fsync(1). (repo-copied by peter)
Change reference from update(4) to syncer(4).
2000-07-19 08:44:26 +00:00
ps
19bc9dcf7a Add fsync(8). This becomes useful with the advent of MAP_NOSYNC etc.
Reviewed by:	peter
2000-07-19 08:38:18 +00:00
ben
a3956e21a3 * Remove description of obsolete -t option.
* Insert newline before "and" in ".Fl c and".

Approved by:	des
2000-07-18 21:05:11 +00:00
jlemon
b3138232c0 Convert calls to match new kqueue API. 2000-07-18 19:38:38 +00:00
nik
d68da4c84c Correct the attribution for yes(1).
PR:		docs/19401
Submitted by:	s.c.sprong@student.utwente.nl
2000-07-18 18:32:08 +00:00
sheldonh
5d429160c1 Cross-reference mount_nfs(8) and showmount(8).
PR:		20008
Reported by:	Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2000-07-18 17:34:23 +00:00
sheldonh
99b09ec9f7 Import the new truncate(1) utility.
Approved by:	jdp
2000-07-18 17:03:58 +00:00
dwmalone
acc6f73529 Allow logger to send messages directly to a remote syslog. (This
only does IPv4 as our syslogd only does IPv4. I dunno if the KAME
people have any plans for syslogd).

PR:		19821
Submitted by:	Nick Hilliard <nick@iol.ie>
Reviewed by:	sheldonh
2000-07-18 08:56:54 +00:00
des
0b5aec4337 The description of the semantics of -v and -q has long since been OBE. 2000-07-17 22:44:36 +00:00
des
91e128c004 While I'm at it, break a line that was too long, remove a pointless diagnostic
and adjust the verbosity level of another.
2000-07-17 22:44:00 +00:00
des
66762edfcb Document the fact that -r and -m are mutually exclusive. 2000-07-17 21:51:48 +00:00
des
3dbc6d12fb Rearrange / rewrite large portions of fetch() to take advantage of new
libfetch features (fetchRestartCalls, fetchXGet()).

Since it doesn't make much sense to have m_flag and r_flag set at the same
time, and it can actually cause trouble in some cases, die if they're both
set.

Set the SA_RESETHAND flag for SIGINT so that when we've caught one, we can
kill ourselves with a second SIGINT (thus notifying our parent of our tragic
fate) instead of just exiting.

These changes fix several problems that would show up when fetching ports,
as well as speeding up HTTP transfers quite a bit (at least for relatively
small files).

Most of these changes were prompted by an interaction problem with an HTTP
server called SWS-1.0, which exhibited two bugs, the first of which prevented
fetch from working around the second (the first was not sending content-type
in reply to HEAD requests, the second was sending garbage after the end of
the requested file).
2000-07-17 21:49:01 +00:00
sheldonh
12bcad1ce3 Use pwd instead of cwd in backticks. cwd in backticks doesn't do
anything useful in a Bourne shell.

PR:		19980
Submitted by:	Alex Kapranoff <alex@kapran.bitmcnit.bryansk.su>
2000-07-17 17:31:59 +00:00
des
122aef9d8d Better signal handling.
Submitted by:   green
2000-07-16 00:47:00 +00:00
ache
4940525ebb Fix octal numbers parsing
PR:		19950
Submitted by:	Alexey Klimov <klim@unique.kiev.ua>
2000-07-15 17:17:33 +00:00
alfred
d09e508fe8 Fix systat to use the kern.ipc.mbtypes sysctl instead of referencing a
structure member that doesn't exist anymore.
Use getsysctlbyname for kern.ipc.mbstat instead of sysctl.
Use netstat's method of displaying values from mtnames.

Submitted by: Ian Dowse <iedowse@maths.tcd.ie>
Missed by PR: 19809
2000-07-15 16:24:21 +00:00
alfred
88d0a1dcfe Make mbstat.m_mtypes seperate and viewable via sysctl, also
expand the size from short to ulong

Submitted by: Ian Dowse <iedowse@maths.tcd.ie>
PR: kern/19809
2000-07-15 06:02:48 +00:00
brian
52aeebe4a8 Add the -z flag to check file sizes first
Correct the cmp.1 usage message
Correct the -l/-s incompatibility message

Submitted by: Mark Knight <markk@knigma.org>
2000-07-14 16:54:59 +00:00
ache
aa7ae634bf ncurses -> termcap 2000-07-14 16:17:42 +00:00
ps
1c8de8e68a Upgrade to less v358. 2000-07-14 09:59:37 +00:00
des
44f8d4bd9c Fix a bug in the stats display that showed up when resuming aborted transfers.
Submitted by:	green
2000-07-13 08:37:39 +00:00
des
c70a66dcdc Rework the stats code for the nth time. Much cleaner now.
Always display the completion percentage if stderr is a tty.
Drop the char-by-char transfer mode, it was based on an incorrect assumption
regarding the semantics of fread().
Finally (I hope) straighten out the business of setting the mtime, as well as
when to remove the output file and when not to.
Thanks are owed to the many who have provided nearly instantaneous and
highly constructive feedback and suggestions about these matters.
2000-07-12 20:53:07 +00:00
ben
e9f0198f4b "ls" is note the same as "nlist", but it is the same as "dir". Correct
this, and add a bit to the descriptions of "dir" and "nlist" to emphasize
the difference.

PR:		15408
Submitted by:	Joe Smith <inwap@best.com>
2000-07-12 19:00:50 +00:00
itojun
943fd065e5 remove m_pulldown related statistics, it is not for production system
(it belongs to kame experiment).
2000-07-12 16:13:02 +00:00
des
09424ec57b Now that the HTTP code supports timeouts, we don't need to use alarm()
around the call to fetchStat().
Catch SIGINT, and rework the signal handling so it doesn't skimp on the
cleanup after a timeout or interrupt. Also, don't just bail out after a
timeout; there may be more files to fetch.
2000-07-12 11:02:01 +00:00
asmodai
4f63f6aadf Backout previous commit.
(Mental note: don't forget -rRELENG_4 next time.)
2000-07-12 09:50:20 +00:00
asmodai
3aa9bb1c8a MFC: fix some output cosmetics so that the finger -s output is properly
lined up
2000-07-12 08:50:09 +00:00
des
59fdbdfe4d Rework the stats code to avoid code duplication.
Fix a bug where the stats code would print the expected size instead of the
number of bytes received.
Fix the reading code so it'll support partial reads.
2000-07-12 08:29:52 +00:00
dannyboy
da21d79a5b Spelling (embedd to embed) fix and change a comma to a semicolon. 2000-07-11 22:52:12 +00:00
asmodai
7773287308 Fix finger -s output on an user who never logged in.
This is purely a cosmetic patch.

PR:		9809
Submitted by:	se
Nagged about:	nrahlstr
2000-07-11 08:37:56 +00:00
ps
4f81558e41 Fix a bug when talking to non-freebsd machines where carriage return
was being interperated and displayed as ^M on the remote side.

Old curses used to change the behavior of the tty and how carriage
return was interperated via STDIN.  ncurses does this on a per-window
basis within the library rather than using the tty modes.  Since
talk is bypassing ncurses, it was missing the conversion.

Reviewed by:	peter
2000-07-11 01:31:39 +00:00
se
eb3e157353 Extend to deal with 64 bit numeric arguments. 2000-07-10 21:32:41 +00:00
kris
1bd6ae3627 Don't call warn() with no format string. 2000-07-10 09:18:19 +00:00
kris
5efc5ee6fb Don't call err() with no format string. 2000-07-10 09:14:15 +00:00
kris
f61e71f0f8 Oops, missed another printf() invocation with no format string. 2000-07-10 09:07:04 +00:00
kris
993bdb6bcd Don't call printf() with no format string. 2000-07-10 09:05:31 +00:00
kris
34b4111fb4 Don't call warn() with no format string. 2000-07-10 08:49:28 +00:00
kris
58b1006de6 Don't call err() with no format string. 2000-07-10 08:42:58 +00:00
kris
fd8b4f057c Don't call printf with no format string. 2000-07-10 06:02:13 +00:00
des
179880d3bc Don't segfault if given an invalid URL (doh!)
Submitted by:		green
2000-07-09 10:14:22 +00:00
ache
33733c1440 Fix assembler error messages - there is no \n allowed in __COPYRIGHT macro 2000-07-09 05:22:51 +00:00
wsanchez
e3f40bb4dc Use __RCSID() 2000-07-09 02:54:54 +00:00
wsanchez
e77c467c0d Use __RCSID() 2000-07-09 00:08:47 +00:00
wsanchez
139ba67576 Initialize variable 2000-07-09 00:05:09 +00:00