Commit Graph

3972 Commits

Author SHA1 Message Date
bouyer
7616130d51 Explicitely cast to (u_quad_t) calls to btodb() and dbtob() to avoid
int overflow. It's now possible to add/display quotas of more than
4G.
XXX I'm sure there is a PR open on this but I couln't find it with the
usual search engines. If someone knows it's number ...
1999-12-16 17:29:52 +00:00
jwise
30af11dbd4 Sigh... this is the missing part of last night's final commit -- perform
the same simplification on mode parsing for the command line as for user
commands.

My apologies to anyone who tried to build systat this morning.
1999-12-16 17:15:48 +00:00
jwise
099afa1959 End special-casing of start' and interval' global commands.
Vastly simplify handling of mode switches, and short-syntax interval
changes.  Substring matching of mode names and commands will come
shortly, however the previous method of substring matching modes (it was
not available for commands) is currently not working.

TODO: implement table lookups for mode-specific commands.
1999-12-16 06:16:16 +00:00
jwise
420c21c43c Handle arguments to global commands. Note that the `interval' and
`start' global commands are still special cased, which will change
1999-12-16 04:49:32 +00:00
jwise
b5f0c03b3a Backout unintended change 1999-12-16 04:41:49 +00:00
jwise
7fc29b6116 Add a file missed in last commit 1999-12-16 04:40:03 +00:00
jwise
06f376613f Rototill global command matching -- switch from ad-hoc tomfoolery to a
table lookup.  This will make prefix matching and so on easier.

Expect a similar change for mode-specific commands before too long.

While there, rename some structures with misleading names.

Watch this space for more changes soon.
1999-12-16 04:02:22 +00:00
thorpej
2b9d9a9499 Make this compile on the Alpha again. 1999-12-16 00:58:17 +00:00
bouyer
18e200396c Bump a static char array from 8 to 255. Avoids rpcgen core dumps on some
long struct name.
XXX There are a lot of static arrays in there, bounds should be checked
XXX more carrefuly. All of them seems big enouth (>100) for normal use, though.
1999-12-15 16:47:35 +00:00
itojun
033763d6c9 per-interface statistics.
bring in and enable KAME scopeid hack.
lots of cleanups.
(sync with latest KAME)
1999-12-13 15:22:55 +00:00
christos
51d639caed Enable hints processing so that we can see the mappings. 1999-12-13 09:10:16 +00:00
itojun
1e75e9ee55 remove setuid(getuid()). they are unnecessary as noone is going to
setuid telnet(1).

i'm not sure why it is here (maybe someone reused this code from
other setuid'ed program, or someone cut-and-pasted the code from
somewhere else?), it was from revision 1.1 (= 4.4BSD).

briefly discussed in: tech-net?
1999-12-13 04:52:20 +00:00
itojun
62b5e94d25 [host]:filename syntax for IPv6 case. 1999-12-13 04:44:55 +00:00
lukem
f442e9dbbd add dependency on version.h 1999-12-12 02:14:53 +00:00
lukem
eee70cc0f0 crank version 1999-12-12 02:12:29 +00:00
lukem
d30bdcd79c separate out the main `data pump' loop into two: one that supports
rate limiting and one that doesn't. simplifies the code, and speeds
up the latter case a bit, at the expense of duplicating a few lines...
1999-12-11 02:02:21 +00:00
lukem
3851d504a7 Fix chunked support; probably broke after rate limiting was added.
Problem noticed/debugging assisted by giles lean <giles@nemeton.com.au>.

XXX: rate limiting with chunked xfers might not limit correctly (i.e,
the limit may be too high or too low); fixing this is non trivial,
and will probably occur if i ever rototill fetch_url()
1999-12-11 00:56:13 +00:00
ad
0ac257319d Create link to newsyslog.conf.5. 1999-12-07 11:28:13 +00:00
aidan
5375ac8703 Made login continue without kerberos when there is no krb5.conf present
(and KERBEROS5 is defined).
1999-12-05 23:39:11 +00:00
lukem
ef03015b86 move version into separate file to reduce recompilation after version crank. 1999-12-05 22:54:35 +00:00
lukem
bcd625e612 crank version 1999-12-05 22:50:06 +00:00
lukem
e36391c2c9 * remove unnecessary freeaddrinfo(res), since res0 was changed to be
freed earlier in itojun's last commit. fixes [bin/8948].
* remove `const char *reason'; it was being assigned but not used.
1999-12-05 22:49:27 +00:00
fredb
2cfe71bc9a More fallout from CL* purge. 1999-12-05 18:54:34 +00:00
mason
02a7de3c63 Fixed wording error. 1999-12-03 15:09:24 +00:00
fair
b426e15b59 The never-sufficiently-damned Network Solutions has whacked around
the WHOIS service, again. New target: whois.networksolutions.com

This program should be replaced with one that does WHOIS++ so that it
can hit all the registries for data.
1999-12-03 08:22:09 +00:00
itojun
6ceceb260b clarify getaddrinfo() loop. try to contact all possible addresses
unless we experience fatal error.
XXX changed location of setuid(getuid()), may need someone's review.
1999-12-03 06:52:13 +00:00
itojun
4b402f1483 clarify reverse address lookup (-N). AI_NUMERICHOST is for forward lookup.
XXX RFC2553 does not say that AI_CANONNAME means reverse lookup.
we need to check if getaddrinfo(3) implementation is correct.
1999-12-03 06:34:24 +00:00
itojun
05e574f6a9 fix memory leak in fetch_url (no freeaddrinfo was there).
sync with recent KAME.
1999-12-03 06:10:01 +00:00
tron
b11e523694 Define "_KERNEL" not "KERNEL" before including "netinet6/ip6_mroute.h". 1999-12-02 14:31:22 +00:00
lukem
0826be2b88 cleanup formatting, improve example 1999-12-01 12:03:16 +00:00
ad
22ee5fa9d2 Shiny new manpage for newsyslog(8), based on that from FreeBSD. 1999-11-30 12:04:14 +00:00
ad
604db10508 - Add '-F' option which forces rotation of logs (from FreeBSD).
- Add 'sigtype' field specifying signal to be sent (from FreeBSD).
- Add 'N' flag which specifies that no signal should be sent.
- Fix some breakage.
1999-11-30 12:03:24 +00:00
pk
9c865e3e82 No need for <machine/cpu.h> here. 1999-11-29 11:15:13 +00:00
lukem
d0090fb777 * implement xsl_init() and xsl_add(); error checking forms of sl_{init,add}()
* fix bug where the second press of <TAB> on an empty word (i.e, list
  all options) may have resulted in an strncmp() against NULL.  (detected
  by _DIAGASSERT())
1999-11-28 06:32:04 +00:00
mrg
ef2d33cbd1 add some percentages in here. 1999-11-27 05:58:04 +00:00
soren
819a9c5fd3 Print Internet6 header properly without -f. 1999-11-27 02:19:34 +00:00
lukem
21da08ce70 in cleanuppeer(), reset username to NULL after free()ing it.
fixes [bin/8870] by Wolfgang Rupprecht <wolfgang@wsrcc.com>
1999-11-27 01:00:06 +00:00
lukem
7047fe4a36 bump version 1999-11-26 23:26:05 +00:00
lukem
f25449279d * complete_remote(): use remglob("", ...) instead of remglob(".", ...),
for listings of the current working directory; some ftp servers don't
  like `NLST .'.
  [noted by Giles Lean <giles@nemeton.com.au>]
* recvrequest(): treat remote=="" as remote==NULL when calling command().
  (to support the above change)
* support `[user@]' in `[user@]host' and `[user@]host[:][path]'.
  [based on idea (and initial code) from David Maxwell <david@fundy.ca>]
* `idle' may be invoked without any args
* reformat some comments
* reformat usage string in program and man page
* call updateremotepwd() after successful login, not after successful connect
* always call setsockopt(, IPPROTO_IP, IP_TOS, ) (et al); using #if
  defined(IPPROTO_IP) doesn't work on certain foreign systems where
  enums instead of #defines are used...
  [noted by Matthias Pfaller <leo@dachau.marco.de>]
1999-11-26 21:41:55 +00:00
msaitoh
6f52aeb8d1 cdplay now uses libedit! 1999-11-26 18:34:58 +00:00
msaitoh
17b68982ad crunchide for coff (COFF executables not currently supported!) 1999-11-26 13:47:52 +00:00
msaitoh
44181778bd fix following sequence:
telnet localhost
	cat (no argument)
	control-C
	(not returned to the shell prompt)
	(push enter key)
	(returned to prompt)
1999-11-26 07:33:52 +00:00
mrg
f22d12ed49 back out rev 1.23 (don't stat PHONY targets). it broken the libcrypto
build by causing everything to be remade everytime.  this fixes PR#8419.
1999-11-25 22:34:16 +00:00
itojun
d8470360b1 more clarification to field width of netstat -rn -f inet6. 1999-11-24 08:45:43 +00:00
itojun
22758aaba3 use old WID_{DST,GW} value (field width for netstat -rn) for non-INET6
address families (see tech-net discussion).
1999-11-22 14:13:53 +00:00
chopps
13232a2f19 Don't restore the tag file name's trailing '/' until after the length
is taken.  This fixes relative paths in tags files.
1999-11-22 05:53:58 +00:00
kristerw
e71aea426d Typos (from OpenBSD) 1999-11-19 22:29:24 +00:00
bouyer
f7e8e4aebd Change printf formats for 64bit counters. 1999-11-19 10:44:33 +00:00
enami
82d7115cf2 Don't pass so many args to .Nd macro. It just overflows. 1999-11-19 01:12:39 +00:00
simonb
7f7397e603 Don't free "buf" in closebufcache() - initbufcache() only gets called
once per systat invocation, not each time we switch to the bufcache
display.

Fixes core dump noted by Andy Doran when switching back and forth to
bufcache display.
1999-11-15 23:39:33 +00:00