Commit Graph

3648 Commits

Author SHA1 Message Date
tron 9e48344ed0 Make FTP downloads via HTTP proxy servers work again. 1999-07-06 22:11:37 +00:00
christos 4bcc4c73c4 pacify gcc-2.8 uninitialized variable warnings, and only use timespecs in
struct stat on BSD4_4 systems.
1999-07-06 14:45:31 +00:00
christos 80d9d7d175 Regular bourne shells don't have the -q option (from Chuck Cranor) 1999-07-06 14:02:56 +00:00
itojun 26c3d764fd add NetBSD RCS ID. 1999-07-06 13:14:54 +00:00
thorpej 0ecdd58add Define _RTLD_SOURCE so this builds again. PR 7927, itojun@itojun.org. 1999-07-06 08:04:31 +00:00
hubertf 057479d6da Add sidplay information, submitted in PR 7918 by Antti Kantee <pooka@iki.fi> 1999-07-05 21:38:21 +00:00
cgd 4515ccfe3e nuke msg_printf() and msg_printf_add(). 1999-07-04 22:55:48 +00:00
itojun 1a53711865 fix 'junk pointer free' issue. 1999-07-04 22:46:20 +00:00
cgd a70b70f98d const-ify strings as appropriate, and convert message 'numbers' from
ints to 'msg's.  'msg' is currently typedef'd as 'const char *', but it'll
become more complex eventually.
1999-07-04 21:30:14 +00:00
cgd efb4e0892c oops, forgot an _ 1999-07-04 10:39:40 +00:00
cgd 8b6866fc0b privatize msg_beep 1999-07-04 10:35:19 +00:00
cgd 4443f1b7ab nuke msg_{,no}echo, add msg_prompt_noecho 1999-07-04 10:29:30 +00:00
cgd ed2a9c9df9 nuke msg_prompt_str, msg_prompt_addstr, and msg_table (unused), and make
msg_vprintf private.
1999-07-04 10:13:12 +00:00
cgd e7861bf936 turn on automatic text layout for the printf and display fns 1999-07-04 09:37:18 +00:00
cgd e8b59e21bb provide APIs (currently mostly undocumented) to print pre-formatted
(table) text.
1999-07-04 07:40:51 +00:00
itojun 2091d363f0 free dynamically allocated storage on error. 1999-07-03 05:49:57 +00:00
itojun 81ed739f62 clearify socket/connect loop. 1999-07-03 05:44:11 +00:00
itojun e1b3627397 bark if mismatched address families are found on source route. 1999-07-02 15:11:53 +00:00
itojun 9bee021415 IPv6-ready telnet.
source route (telnet @localhost@localhost) works for IPv6 as well.
1999-07-02 15:09:10 +00:00
itojun d1a8e792f7 add dual-stack (IPv4/v6) support. hope I broke no other part... 1999-07-02 08:07:40 +00:00
itojun 5536a65571 IPv6 support. 1999-07-02 07:59:56 +00:00
itojun 98a141cc3f dual-stack finger.
% finger itojun@::1
% finger itojun@127.0.0.1
% finger itojun@localhost
	tries all addresses listed on DNS, uses first one with successful
	connect(2).
1999-07-02 06:01:22 +00:00
lukem a3f3aa25fd make a pointers static again (that were made automatic as part of the
xfer rate stuff, but i never completed the changes that didn't need it
set).
fixes a coredump noticed on current-users@ by Chan Yiu Wah <c5666305@hkstar.com>
1999-07-02 05:41:45 +00:00
itojun 414ee1ddfb make netstat IPv6-ready. 1999-07-01 18:40:35 +00:00
mjl d278ba3869 Enlarge disk names in labels from 3 to 7 to cater for things like raid0. 1999-06-29 18:14:15 +00:00
lukem d8df707b58 s/xfer/transfer/ 1999-06-29 12:41:22 +00:00
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
christos 516292d398 apply solaris fixes 1999-06-29 07:44:21 +00:00
tron 9fecbd5273 Avoid duplicate free() while reading system information.
Fixes PR bin/7873 by Mason Loring Bliss.
1999-06-28 22:13:04 +00:00
tron 9a312a997e Add new option "-n" to disable lock timeout. Patch supplied by "The Man"
in PR bin/7816.
1999-06-27 10:00:36 +00:00
simonb a1997f6cbe Add -b and -l options to generate big- or little-endian databases
regardless of host byte order.
1999-06-27 05:49:02 +00:00
lukem 3ba4ce083e don't search for trailing `;type=' in a NULL path...
fixes [bin/7800] by Mason Loring Bliss <mason@acheron.middleboro.ma.us>
1999-06-27 01:17:19 +00:00
hannken 3ca44ccb68 Handle variable page size on sparc. See libexec/ld.elf_so/rtld.h rev 1.13. 1999-06-26 11:28:26 +00:00
thorpej 61296f9b4d If we choose the mmap() method of copying the file, advise the VM
system that we'll be doing sequential access of the file.
1999-06-26 00:41:39 +00:00
lukem 9ab227cabb always compile in ptransfer() (and bits of progressmeter()), so that
transfer stats are printed when verbose is enabled even if ftp is compiled
with -DNO_PROGRESS/-DSMALL. this adds back some feedback that existed
in traditional ftp that was lost when i added the progress meter.  (noticed
when ftp-ing from the -DSMALL version of ftp that's on the 1.4 boot floppy)
1999-06-26 00:17:02 +00:00
christos 102c680023 Avoid free'ing junk. It pisses off gnumalloc. 1999-06-24 23:21:02 +00:00
tls 5cd98547a7 cast change needed to make gcc -Wall quiet down with new libdes 1999-06-24 22:43:35 +00:00
christos 7d1f6b3ac3 include <signal.h> explicitly! we use sig_t extern.h, and we cannot
depend on other headers fetching it on other OS's.
1999-06-24 14:54:28 +00:00
christos 35bc148b21 rework empty() to work with both select and poll and abstract it better. 1999-06-24 14:50:56 +00:00
christos bf00d14ab4 include time.h explicitly, don't depend on other include side-effects 1999-06-24 14:48:35 +00:00
christos af43552363 remove declaration for empty; it is only used in one file and hide
it's implementation.
1999-06-24 14:46:59 +00:00
kleink 7b67bca335 Add compile-time and run-time feature test knobs for the 1003.1 Mapped Files,
Process Memory Locking, Range Memory Locking and Memory Protection options.
1999-06-24 14:18:10 +00:00
tv 01a5ecacd3 Implement the very useful `-P' option from GNU's m4 (causes all builtin
macros to be prefixed with the string `m4_').
1999-06-23 19:09:35 +00:00
cgd b9b5f1fc26 implement word kill with control-W 1999-06-23 17:42:11 +00:00
cgd 3788a37507 add code to do dynamic message text layout, currently completely disabled. 1999-06-23 17:32:32 +00:00
cgd beba4bb3e5 replace lots of wclear()/wmove() calls with calls to msg_clear(). wmove()
to 0,0 was unnecessary because wclear() is documented to do that.  also,
the immediate wrefresh() done by msg_clear() means that if we can take
advantage of full screen clear sequence, we will.
1999-06-23 09:19:33 +00:00
cgd 82ecc5c4d7 don't bother calculated up MAXSTR, especially since the value calculated
is _bogus_ in the face of printf-like message formatting!  Instead,
calcuate the max size to format when the message window is set.  We know
that we'll never want to format more characters than can fit in the window.
1999-06-22 15:00:37 +00:00
cgd 7c91150061 put temporary file in /tmp, and cd into src dirs and make w/ "Makefile"
(rather than making w/ "srcdir/Makefile") so that relative path specs in
srcdirs work out correctly.
1999-06-21 05:57:10 +00:00
cgd d78b6bd31e split the "SMALL" #ifdefs into ones for NO_ABOUT, NO_EDITCOMPLETE, and
NO_PROGRESS.  -DSMALL still implies all of those.  progress meter support
isn't necessary for the smallest possible ftp client, but it adds very
little space and makes users' lives much better.  Therefore, it should
be enabled for installation media if at all possible.
1999-06-20 22:07:28 +00:00
cgd da4d528c80 need to provide an exit string for dynamic menus. hardcodes "Exit".
not pretty, but no worse than what the code did before.
1999-06-20 20:21:03 +00:00