Go to file
lukem e25749a582 [fear this; more ftp hacking from lukem :-]
features:
---------
* transfer rate throttling with the new `rate' command. syntax:
	rate direction [max [incr]]
  where direction is `all', `get' or `put'.
  if max is not supplied, the current settings are displayed.
  if max is supplied, then transfers in the given direction will
  be throttled to this value.
  if incr is supplied, the increment for the `on-the-fly' scaling
  will be set to that, otherwise `1024' is used.
  currently implemented for binary get, binary put, and url fetches.
  not yet supported for ascii get or put, or local file copies.
* on-the-fly scaling of the throttle based on signals:
    - SIGUSR1 raises the throttle rate by the increment for that direction
    - SIGUSR2 lowers the throttle rate by the increment for that direction
* -T dir,max[,incr] option to set rate from the command line
* `k', `m', `g' suffix support for bytecounts in the `hash', `rate',
  `rcvbuf' and `sndbuf' commands)

bug fixes and code mods:
------------------------
* fix up ftp_login() so that ruserpass() is always called, even for
  command-line url fetches.
* implement strsuftoi(), which parses a given number into a int with
  suffix support. replaces getsockbufsize()
* implement parserate(), which does the argv parsing for -T and rate
* save and restore errno in signal handlers (may not be necessary, but
  it doesn't hurt)

notes:
------
the rate command has had reasonable testing, but I'd like feedback
if it doesn't do the right thing, especially from people on slower
(i.e, modem) links.
I haven't tested the rate throttle against a http server which does
`transfer-encoding: chunked' because I couldn't find a server to
test against.
1999-06-29 10:43:16 +00:00
bin PR/7814: Matthias Scheler: shell does not fork for builtins in backquotes, 1999-06-26 16:31:47 +00:00
distrib FPU is not required now. 1999-06-29 03:07:01 +00:00
etc Move 'random*' before 'ra*'. Now 'MAKEDEV all' works. 1999-06-27 20:06:48 +00:00
games man page rewritten into -mandoc by dholland@eecs.harvard.edu; from PR7861 1999-06-27 04:35:42 +00:00
gnu Deal with the strlen() problem in this program which apparently can't just 1999-06-27 06:14:51 +00:00
include - provide forward struct declarations for all functions. 1999-06-12 18:06:19 +00:00
lib Get rid of the evil trailing spaces and tabs. 1999-06-28 13:32:43 +00:00
libexec Make longjmp work with dynamic linking. From Matt Thomas. 1999-06-28 17:28:56 +00:00
regress Compensate for fix to PR7761; kernel now clips overly large length 1999-06-19 18:02:06 +00:00
sbin Flesh out the manual page, add an examples section, and correct some of the 1999-06-28 21:48:13 +00:00
share Fixes and updates (most from Noriyuki Soda <soda@sra.co.jp>) 1999-06-29 02:06:40 +00:00
sys Minor Tsunami-related changes. 1999-06-29 07:22:25 +00:00
usr.bin [fear this; more ftp hacking from lukem :-] 1999-06-29 10:43:16 +00:00
usr.sbin Add special methods for hw.serial and hw.srammode. 1999-06-28 08:49:15 +00:00
Makefile Handle crypto-us just like domestic 1999-05-27 21:03:31 +00:00