Commit Graph

4305 Commits

Author SHA1 Message Date
christos c097e3c5c2 Don't core-dump when the current working directory is not readable 2000-04-16 23:24:04 +00:00
christos c407ec1982 PR/9899: David A. Holland: multi-variable .for constructs in make 2000-04-16 22:08:06 +00:00
mrg d0ba087720 kill trailing blank line. 2000-04-16 04:57:55 +00:00
mrg 43aefadca4 reword slightly. 2000-04-15 18:11:00 +00:00
simonb d88dfea295 Don't declare 'extern opt*' getopt variables. 2000-04-14 06:11:07 +00:00
simonb 2c0eddaf19 Don't declare 'extern opt*' getopt variables.
Don't need to declare __progname in getmmdd() - it's already done earlier
in this file.
2000-04-14 06:07:14 +00:00
mrg 09b8a5a646 for NetBSD 1.4 and above, use <sys/swap.h> 2000-04-13 08:34:40 +00:00
mrg 90bc324a8d use <sys/swap.h>. should have happened years ago. 2000-04-13 08:29:56 +00:00
lukem 16ca0f7009 crank version 2000-04-13 08:23:52 +00:00
lukem d54eded2a0 fixes from cgd:
* sanity check a length (otherwise certain bogus responses can crash ftp)
* allow a transfer encoding type of `binary'; certain firewall vendors
  return this bogus type...
2000-04-13 08:17:56 +00:00
lukem 031f2ed4b1 s/strtoq/strtoll/ (the latter is standardised) 2000-04-13 08:13:30 +00:00
itohy 0af9894f2f [ktruss] Use fork(2), not vfork(2).
The child process of do_ktrace() does return and the stack is
changed by another function call (execvp()).
By using vfork() (my previous change), the execution of the parent
process resumes on the modified stack.  Oops.
We could use vfork() carefully, but for now use fork().

Problem reported and investigated by Ethan Solomita <ethan@geocast.com>.
Thanks.
2000-04-13 01:27:53 +00:00
simonb 91c0ba617c Make some columns and headers line up. 2000-04-12 15:37:14 +00:00
jwise 1a9ae67f41 Reorder two commands so that substring matching doesn't make one shadow
the other.
2000-04-11 01:18:35 +00:00
jwise ad285dbfbe Two UI changes:
a.) restore the capability to enter a substring of a mode or command
      name.  Pointed out by Soren Jorvang.

  b.) (capital) Q now exits systat immediately
2000-04-11 01:01:26 +00:00
jdolecek 98359af3d1 Convert to use setemul() stuff from kdump. This also fixes mapping to
syscalls names in dump when programs of different emulations are executed.

While here, convert to malloc/realloc power of 2 quantities.
2000-04-10 09:42:37 +00:00
jdolecek 2f5f8663c5 ectx_sanify(): if default_emul is not set, use netbsd emulation (may happen when user passes invalid
emulation name via -e argument)
2000-04-10 09:34:18 +00:00
jdolecek 0cdfde1cbc DTRT vs setemul() (for ktruss, similar to kdump.c) 2000-04-10 09:32:03 +00:00
jdolecek 103633896f remove prototype for setemul(), it's in kdump/setemul.h now 2000-04-10 09:30:26 +00:00
jdolecek 470e7fc568 put setemul(), ectx_* & appropriate structures to separate file, to make it
more easily sharable with ktruss(1)
2000-04-10 09:13:45 +00:00
jdolecek 646b216e52 add description for -e argument (for ktruss) 2000-04-10 08:11:01 +00:00
jdolecek d0dc3a7168 clarify -e usage 2000-04-10 08:05:25 +00:00
jdolecek 84c8f8889f update to setemul() changes 2000-04-10 07:59:22 +00:00
jdolecek 3d8f702c2b Keep track of what pid uses which emulation and ensure proper
structures are used when decoding the ktrace records. This makes
kdump of ktrace -i output of a process executing binaries of various
emulations actually useful - before, the code used emulation structures
appropriate for last recently executed process, which is bogus.
2000-04-10 07:58:30 +00:00
bad dc38443eae Catch up with changing size_t to ulong on sparc 10 months ago. 2000-04-09 01:08:17 +00:00
simonb 0b559da2d6 Include -r flag in usage message. 2000-04-02 12:46:04 +00:00
augustss 52bb6db3ff Make this compile again after several global structs where declared extern. 2000-03-28 23:36:11 +00:00
kleink a3c6c197a2 Cast timeval members to types we know the printf conversions of. 2000-03-27 17:03:25 +00:00
simonb a04e169a80 Include <string.h> to get a prototype for memset(). Fixes build
problems on alpha noted by Tim Rightnour on current-users.
2000-03-22 21:45:02 +00:00
garbled 36f447259d Make the STRIP env var a little more obvious in the documentation, and
clean up the bottom of this manpage just a tad.
2000-03-22 18:34:43 +00:00
tron 5c433a9864 - Add "/sbin" to path so that "sysctl" is found again. Problem noted
by Patrick Welche in PR bin/9658.
- Use "exec" to start "sysctl" so that we can a meaningful exit code.
2000-03-22 17:35:56 +00:00
garbled 86e14c4a11 Add parsing of the CC env variable, and a -Bpath flag (for /usr/libexec)
so cross-building of lint libraries can be made possible.  Tested
building a powerpc libc via make build on an alpha.
2000-03-22 01:09:34 +00:00
jdolecek 79176095e8 locate.bigram does all the bigram processing itself now; store it's result
in local variable and pass the value to locate.code directly instead
of using temporary file

always remove $filelist, even if an error is encountered
2000-03-20 19:22:55 +00:00
jdolecek e3f9e89eb9 the first args is expected to be the bigrams array, instead of name of
file holding it
2000-03-20 19:18:34 +00:00
jdolecek a46f4702f8 Do all bigram processing here, instead of in updatedb.csh; saves
a few cycles (it's runs like 2 seconds instead of 16) and the algorithm
is hopefully a bit more clear
2000-03-20 19:17:35 +00:00
kleink 0848e8913a * Hint MADV_SEQUENTIAL.
* -1 -> MAP_FAILED.
2000-03-20 18:23:26 +00:00
simonb 07146e66cb Redo previous again, so that the check for YY_USES_REJECT is after "%%"
but still included for c++ lexers.

Fixes libc:nslexer.c build failure reported by Matthias Scheler.
2000-03-17 23:21:45 +00:00
christos aab07b7582 Don't depend on BSD regexec extensions (REG_STARTEND)
Emulate it if it is not defined.
2000-03-17 02:23:17 +00:00
christos 32d43c9cf0 Make this work on SVR4 systems. 2000-03-17 02:22:27 +00:00
enami 2263e83df9 Fix typo. 2000-03-16 18:56:41 +00:00
enami 1ab3345f20 Compare the return value of getopt(3) against -1 rather than EOF.
(while i'm here, one more cosometic change is performed).
2000-03-16 18:47:48 +00:00
enami 7b4bdbc144 Cosmetic changes. 2000-03-16 18:44:29 +00:00
simonb 35803308dc Redo rev 1.10 so that the changed lines are back in their original
position in the file.  This allows c++ lexers to build.

Fixes PR 8258 from Nick Hudson (uses a slightly different fix than
the one Nick supplies) and problems with c++ lexers described on
tech-pkg by Berndt Josef Wulf.
2000-03-15 22:52:14 +00:00
itojun 46169e86bf inhibit too-noisy message for scoped address data transfer
(will be enabled in "debug" mode).
2000-03-14 16:36:05 +00:00
soren 89c5a767f8 Fix doubled 'the's. 2000-03-13 22:55:05 +00:00
itohy f1042d894e Add -s in usage. 2000-03-13 08:21:36 +00:00
jdolecek c3678e83f5 s/appears/appeared/ 2000-03-10 15:15:32 +00:00
kleink 41ab7b6729 Use strcoll() to sort directory entries. 2000-03-10 14:50:36 +00:00
itohy 34d0aa38df Use -s (sort) option of find(1) to reduce usage of temprary storage by sort(1). 2000-03-10 11:51:25 +00:00
itohy 4f844cd4ec Describe -s (sort) option.
Corrections are highly appreciated.
2000-03-10 11:49:14 +00:00
itohy 6baa6f27af Add -s (sort) option, which causes entries in each directory sorted.
Similar to FreeBSD's.
2000-03-10 11:46:04 +00:00
itojun 4a340575cc make debugging output unambiguous on IPv6 numeric addrs (don't use host:port) 2000-03-09 22:07:59 +00:00
itojun 3c079a0744 http://[::1]:8080/ is legal.
send Host: directive with RFC2732 bracket notation for IPv6 numeric,
otherwise "host:port" is ambiguous to servers (clarification will be submitted
as update to RFC2732).
2000-03-09 22:01:26 +00:00
jdolecek 7bcd049d31 Remove spurious ^L, as per bin/9574 by Thilo Manske.
While here, const poison a little.
2000-03-08 12:10:28 +00:00
enami 1d82270b8c - For root, if ignorenologin is set in login.conf, don't call
checknologin (previously, checknologin is called if ignorenologin is set).
- For non-root user, make ignorenologin take effect.
2000-03-07 14:11:22 +00:00
enami 6dccad067d Cosmetic changes. 2000-03-07 13:59:19 +00:00
tron 842860915e Use "/tmp" and not "/var/tmp" as default temporary directory as suggested
by Thilo Manske in PR bin/9535.
2000-03-06 11:24:55 +00:00
christos 7ccd2afae9 Teach the socket code a few things about this decade (should fix the
problem where COMPAT_43 was required for it to work)
2000-03-02 17:37:46 +00:00
joda d8c128f4a5 use NULL 2000-03-01 12:46:36 +00:00
sjg 90c80377e5 Fixed the oodate test to include the check of gn->cmtime == 0 without
breaking the original intent.

PR: 9503
2000-02-29 22:00:02 +00:00
itojun d74f882e9b sync comment for sourceroute() to reality 2000-02-29 19:36:43 +00:00
lukem 8575d2f491 only use IPTOS_ setsockopt()s if they're defined (e.g, SunOS doesn't).
from Havard.Eidnes@runit.sintef.no
2000-02-28 10:12:27 +00:00
mrg cfb5b8d545 honour -q (quiet) flag a bit more. 2000-02-27 08:20:01 +00:00
itojun 9da359bbec revise IPsec, pfkey, IPv6 multicast and IPv6 statistics. (sync with kame) 2000-02-26 09:55:24 +00:00
mycroft 15f8483562 Use LDSTATIC, not LDFLAGS. 2000-02-20 07:14:13 +00:00
augustss 6751cbc746 Add a -p flag to set the MIDI program. From lindroos@nls.fi. 2000-02-18 23:03:05 +00:00
sjg 14fcc9e86c Non-existent libs are always out of date.
This was not handled correctly on ELF where libs do not have T.O.C.

PR: 9393
Reviewed by: christos
2000-02-15 04:41:45 +00:00
lukem b5df4bcc84 only use getaddrinfo() et al if both NI_NUMERICHOST *and* INET6 are defined...
(allows --disable-ipv6 in lukemftp's configure script to disable this as
well, which is good for testing when it appears getaddrinfo() is borken)
2000-02-14 21:46:26 +00:00
soren bca6350a53 Prevent percentage overflows by keeping score in kilobytes. 2000-02-14 05:35:21 +00:00
aidan 919f6272de Modularize password changing mechanisms, as proposed in
<20000130122641.A8134@xanadu.kublai.com>:
Subject: PROPOSAL: making passwd pluggable (sort of)
Date: Sun, 30 Jan 2000 12:26:41 -0500
2000-02-14 04:36:20 +00:00
aidan d6bf7fdb89 Move include/kerberosIV/com_err.h to include/com_err.h. 2000-02-14 03:21:02 +00:00
aidan 0c25a9e4d1 Patch from assar@netbsd.org to make k5login.c work with both MIT and Heimdal
kerberos trees.
2000-02-14 03:17:43 +00:00
abs ddcdaa6b45 Set SU_FROM environment variable. This can be used to determine a 'su -'
shell from a real login shell (but only if you care).
2000-02-11 00:30:07 +00:00
tron baa67f49cc Rename send() to sendmessage() to avoid conflict with send(2) in "libc".
Patch supplied by Geoff Adams in PR bin/9385.
2000-02-10 12:34:42 +00:00
itojun 8b2de4271e use NI_WITHSCOPEID when printing multicast group with -inav. 2000-02-09 13:57:06 +00:00
briggs ec0bcc8e62 Add entry for birthday of John Towner Williams (08 Feb 1932). He's most
well-known for his movie scores, which include Star Wars, E.T., Close
Encounters of the Third Kind, Schindler's List, Indiana Jones (all
three), and many, many more.  He was also the 19th conductor of the
Boston Pops.
2000-02-09 13:05:55 +00:00
abs e7c902530e /appears/appeared/ 2000-02-08 23:48:54 +00:00
sjg 448f091254 Mention MAKEOBJDIRPREFIX and explain how it or MAKEOBJDIR are used.
Also fixed a typo in the .SUFFIXES bit.
2000-02-08 12:56:28 +00:00
sjg 49984c2f37 Make chdir_verify_path() do variable expansion on path in case
someone wants to do freaky stuff with $MAKEOBJDIR.
Initialize the Var system and set .CURDIR, MACHINE and MACHINE_ARCH
before chdir_verify_path() is called.
2000-02-08 12:43:25 +00:00
itojun e07bdd0262 use getnameinfo for "Trying ::1..." message, to enable printing of
IPv6 scopeid.
2000-02-05 17:44:11 +00:00
itojun 9fb53279e8 print IPv6 scopeid on -inv. with -in, scopeid is omitted due to insufficient
width.
2000-02-05 17:39:22 +00:00
jdolecek 1371d1b72d add support for msdosfs 2000-02-04 11:02:00 +00:00
jdolecek 0238a51cd0 use dprintf() instead of printf(), as other filesystem modules do 2000-02-04 10:43:34 +00:00
jdolecek 9200b8eabf move the mapping of vnode type to file type to separate function getftype()
and use it where appropriate
2000-02-04 10:35:46 +00:00
jdolecek 55fa2666be set mode accordingly to file type (similarily to what nfs_filestat() does)
file type is now viewed correctly for files on ntfs
2000-02-04 10:13:54 +00:00
jdolecek 5d9b6ac28b fix typo 2000-02-04 09:43:45 +00:00
mjl b3204d536b Add login_getpwclass to libutil as convenience function for
programs originally for FreeBSD.
Add parsing of "setenv" parameter which can be used to set
up an initial environment on login.
2000-02-04 02:17:14 +00:00
dmcmahill a0de3d7fa5 When no -e flag is used to specify the encoding, default to "ulaw". This
fixes PR bin/9329.  Thanks to Wolfgang Rupprecht (wolfgang@wsrcc.com)
for filing the PR and identifying the bug.  This change is slightly different
than the one provided in the PR.

Also, document the default encoding in the manpage.

This default is consistent with the default for audiorecord under solaris.
2000-02-02 05:02:25 +00:00
assar 0bb524cb22 (net_write): update prototype 2000-02-01 02:28:23 +00:00
assar a5499ad4dc (net_write): rename to telnet_net_write 2000-02-01 02:26:57 +00:00
lukem 0f9b481624 crank 2000-01-31 22:01:52 +00:00
lukem 7044ee274b define private type `sigfunc' as
typedef void (*sigfunc) __P((int));
and replace use of sig_t and void (*)(int).

certain other OSes define sig_t differently to that (they add extra arguments),
and it causes problems due to function mismatches, etc...
2000-01-31 22:01:03 +00:00
itojun a58fc4d3b8 sync with latest libipsec/kernel. 2000-01-31 14:25:42 +00:00
itojun 309d0c990b IPv6 support. (I thought I've committed these but was not yet) 2000-01-31 14:19:34 +00:00
sjg f618973b5f You cannot meaningfully test if a non-existent file has a correct
archive header, so don't try - just believe gn->type & OP_LIB.
2000-01-31 13:21:20 +00:00
itojun 741f9b63b2 clarify reverse lookup and -N.
getaddrinfo(AI_CANONNAME) does not imply reverse lookup.
2000-01-27 19:20:49 +00:00
sommerfeld 48e4d07088 Fix some obvious bogons; still doesn't seem to work quite right, though. 2000-01-26 14:23:41 +00:00
lukem be8fac301a crank version 2000-01-26 11:37:12 +00:00
lukem 0ac52b3131 roll back to using sscanf() instead of strptime() to parse `yyyymmddhhmmss'
strings, since the latter technically can't parse dates without non
alphanumerics between the elements (even though netbsd's strptime() copes).
2000-01-26 11:31:55 +00:00
lukem d2196602e3 put spaces between the % specifiers in the strptime format string 2000-01-26 10:15:40 +00:00
aidan b817536785 Separate kerberos5 implementation from kerberos4. 2000-01-26 01:18:48 +00:00
itojun 4978f056f6 better sync with #ifdef notdef part (in -i for AF_INET). 2000-01-25 16:07:13 +00:00
itojun 5fa65dbb58 don't truncate IPv4 entries on -i (with -v). it is mainly for
"Network" column (13 digits, it will be 18 digits in maximum).
2000-01-25 15:56:55 +00:00
lukem dfee5c0f62 crank version 2000-01-25 07:14:11 +00:00
lukem 61d86056a0 work around bug in apache 1.3.9 which incorrectly puts a trailing
space after the chunksize.
noted by Jun-ichiro itojun Hagino <itojun@itojun.org> in [bin/9096]
2000-01-25 07:13:45 +00:00
lukem ec9eefea83 be harsher about workaround 2000-01-25 06:45:18 +00:00
lukem 852392d00d work around lame ftpd's that don't return a correct post-Y2K date in
the output of `MDTM'.

obviously the programmer of aforementioned lame ftpd's did something like
	"19%02d", tm->tm_year
instead of
	"%04d", tm->tm_year + TM_YEAR_BASE

fixes [bin/9289] by jbernard@mines.edu
2000-01-25 06:11:00 +00:00
mjl 8cb2edab13 Removed code that would squash root's path when suing to root,
restores old behaviour of su.
2000-01-25 02:19:19 +00:00
mycroft 5086341bbf Don't try to use /tmp/Makefile... 2000-01-24 18:07:54 +00:00
mycroft c2c3950608 More .mk file fallout. *sigh* 2000-01-23 20:59:11 +00:00
mycroft 9561c66413 More .mk file fallout. 2000-01-23 18:26:14 +00:00
mycroft 5cc7cec6d9 More .mk file fallout. 2000-01-23 18:00:38 +00:00
mycroft 4e558e01fa Don't apply suffix rules for .PHONY targets. (gmake doesn't do this either.) 2000-01-22 19:28:11 +00:00
mjl 8e380b472c Removed some fallback cases since that is now done in libutil. 2000-01-22 09:48:52 +00:00
mycroft f5d7100e26 Nuke `extern int errno;' in code we compile with -Wstrict-prototypes. We get
the correct definition from errno.h.
2000-01-21 17:08:33 +00:00
lukem b5a4e862d8 complete_ambiguous(): be consistent about completing unambiguous matches; if
the word is already complete then return CC_REFRESH so that the higher layer
may append a suffix if necessary.  Fix from Launey Thomas <ljt@alum.mit.edu>.
2000-01-20 13:19:46 +00:00
enami 3ff6bc9f03 Default value for -s option is ARG_MAX - 4096, not - 2048. 2000-01-20 04:22:05 +00:00
christos 4cd25afac7 Create temporary files carefully, to avoid security problems. Idea borrowed
from the botched FreeBSD implementation...
2000-01-19 23:39:37 +00:00
itojun e30f445f00 print IPv6 multicast group on -ia (-iav will avoid truncation) 2000-01-17 18:24:37 +00:00
itojun 08de376ec3 fix default route determination for inet6. 2000-01-17 18:03:51 +00:00
itojun ccef23e54a mask addresses properly on netstat -inv.
From: Matt Thomas <matt@3am-software.com>
2000-01-17 17:54:56 +00:00
itojun 65d8ab7ea0 IPv6 support.
NetBSD PR: 9199 (with minor changes)
2000-01-17 16:14:39 +00:00
hubertf e27fbcf4a2 Properly print the "B"(lackhole) flag (as documented :).
Patch submitted in PR 9190 by URA Hiroshi <ura@hiru.aoba.yokohama.jp>
2000-01-15 01:39:54 +00:00
christos b41faac27c don't bitch if madvise returns EOPNOTSUPP 2000-01-15 01:10:12 +00:00
mjl ec1d133cd3 Eliminate hard coded buffer sizes in fgets() statements, use
strlcpy() to avoid buffer overflows, increase filename buffer
to MAXPATHLEN. (from OpenBSD)
2000-01-14 06:53:48 +00:00
mjl 9dff294326 Fix off by one error in string length calculation (from OpenBSD rev 1.6) 2000-01-14 06:21:25 +00:00
mjl e6ac440ed4 Implement login_cap capability lookup. 2000-01-14 02:39:14 +00:00
mjl eb1d660e28 Clean up changes a bit. 2000-01-13 12:43:19 +00:00
ad b7de5e4494 Two tiny formatting nits in each file. 2000-01-13 12:39:04 +00:00
mjl 07053cf7c1 Re-enable login_cap processing, now that a non-existing login.conf
won't make it crash. Also make it less noisy in that case.
2000-01-13 06:52:47 +00:00
mjl cfdb7e0720 Ack. Disable login caps, until problems are fixed. 2000-01-13 06:30:31 +00:00
mjl 4863ee6f07 Add login.conf capability setting. 2000-01-13 06:17:56 +00:00
mjl 4b9294447c Wrap login.conf database access in ifdef LOGIN_CAP. 2000-01-12 05:13:32 +00:00
mjl e8a1b04582 Changes to passwd(1) for login.conf. Supported capabilities are
minpasswordlen and passwordtime (expiry time).
2000-01-12 05:04:41 +00:00
is 05af6871fb new symbol names for former Elf_xxx 2000-01-11 20:33:21 +00:00
itojun f70b9a5724 don't choke on non-INET6 kernel, or non-IPSEC kernel.
cleanup error handling on mode change failure.

TODO: non-IPv4 kernel support should be improved.  "netstat" should be okay,
"inet.ip" and "inet.icmp" needs more trick.

NetBSD PR: 9157
2000-01-10 21:06:15 +00:00
sommerfeld dd51978a5a Make rules for finding object directory match those used by make:
obj.${MACHINE} takes precedence over obj.
the generated makefile should probably just use the print-objdir hack instead.
2000-01-09 16:37:28 +00:00
is ee9bf4dc7c Make this also work for PowerPC targets. 2000-01-09 11:26:01 +00:00
tsutsui 5cb06e6456 Use uname(3) to determine MACHINE type. 2000-01-09 04:54:53 +00:00
itojun 4bed540017 oops, avoid duplicate free(). 2000-01-08 23:34:17 +00:00
itojun d7b4ec9207 - implement layered help.
Suggested by: Andy Doran <ad@mr-magoo.sports.gov.uk>
- inet6.ip6 and ipsec menu
- u_quad_t printing fix
- #ifdefs to allow compilation on 1.4.x
2000-01-08 23:12:36 +00:00
msaitoh 049ad0d982 machine/exec_coff.h -> sys/exec_coff.h 2000-01-07 09:40:33 +00:00
sommerfeld c657ebbc95 Pay attention to the netmask of routes to 0.0.0.0;
e.g., a route to 0.0.0.0/1 is *not* a default route.

Inspired by a patch by Rodney Grimes sent to the zebra list.
2000-01-07 04:49:11 +00:00
itojun 96a8bc922e add command line -n flag, which is same as "netstat numbers".
without it, we can't disable name resolution before the resolution starts.
2000-01-07 04:47:23 +00:00
billc 7ad9ba975f copyright year change (thanks cgd) so we emit , 2000 now. 2000-01-07 00:00:37 +00:00
wrstuden f21e998aad Add a few little changes needed to get this to compile on IRIX 6.4. 2000-01-06 22:23:20 +00:00
tron ca8245133c Add timebase (1900 years) to system time before passing it to date time
parser. Fixes PR y2k/9122 by Lars-Johan Liman.
2000-01-06 00:44:09 +00:00
tron 4c5ce0e4da Unix system time starts in 1970 and not in 1969. 2000-01-06 00:34:38 +00:00
ad 26966d13f4 - ntohl() -> be32toh().
- Dispence with some of the idiocy in run().
- Couple of nits.
2000-01-05 18:15:20 +00:00
itojun 7b5dfc58ad support IPv6. commands under "netstat" are IPv6 ready.
IPv6 is supported by filters (":ignore ssh") as well.
TODO: do something about line truncation?
TODO: inet6.icmp6?  ":help" will not fit into single line...
2000-01-05 11:59:12 +00:00
itojun 88ac9b1712 remove dupplicated prototype defs for file static funcs. 2000-01-05 11:50:21 +00:00
itojun 5784d552dd avoid null pointer access on ":show". 2000-01-05 11:48:21 +00:00
msaitoh dad5b69f37 fix printf format for inet.ip
(because the entries in struct ipstat is u_quad_t)
2000-01-04 15:17:00 +00:00
itojun 0b66a621f9 bring in latter half of PR 9080 (host table allocation error check). 2000-01-04 15:12:42 +00:00
eeh 5fc5fe98a8 Add COMPAT_NETBSD32 support. 1999-12-31 22:27:59 +00:00
tron 3f173f204a Increase default size of magic entries array to 4096 because NetBSD's
magic(5) has more than 2048 entries already.
1999-12-31 13:09:20 +00:00
tron 6f563995b5 Do reallaction of magic entries array carefully to avoid possible memory
leak. Patch based on PR bin/9081 by Jun-ichiro itojun Hagino.
1999-12-31 13:07:59 +00:00
tron a3045c188e Add missing memory check in port table handling. Patch based on
PR bin/9080 by Jun-ichiro itojun Hagino
1999-12-31 12:58:12 +00:00
garbled faa0b30255 Add FILES and EVIRONMENT sections detailing what files these programs use,
where they live, and how to modify that behavior.
1999-12-31 04:03:18 +00:00
itojun e8834c8cd2 avoid memory leak on realloc() failure. 1999-12-30 09:52:03 +00:00
cgd 1fa77b6d55 Use:
.Sh SEE ALSO
rather than:
	.Sh "SEE ALSO"
The former is the correct form, and it makes a (barely persceptible)
difference in formatting for some output devices (e.g. 'ps').
1999-12-29 06:54:00 +00:00
aidan 1cda1876da Fixed 'login in free' warning in kdestroy(). 1999-12-26 17:47:18 +00:00
jwise 2a1f30e2df GC now-spurious prototype 1999-12-25 01:49:25 +00:00
mjl 4f10733450 Fix yppasswd part of passwd. This has never worked since the
password map was split and master.passwd.byname was introduced.

XXX This is a temporary fix until luke finds some time to add
the necessary support glue to libc for TRT.
1999-12-23 01:02:52 +00:00
kleink c23c312a55 * Fix a display buglet: if the process list is exhausted before the window's
bottom is reached, clear the remaining lines, lest there be stale process
  entries if the process list shrinks.
* Implement a top(1)-like `user' command in the ps display.
1999-12-22 14:46:14 +00:00
kleink 1a2a0445fa Implement XCU5 prompt mode (-p). 1999-12-22 14:41:00 +00:00
kleink 4ce1b28f8c Initialize locale on startup. 1999-12-22 14:39:18 +00:00
lukem 80b66e48af change references from draft-ietf-ipngwg-url-literal-01.txt to RFC 2732 1999-12-21 13:00:18 +00:00
fair 37d4a35950 A gencat(1) manual page, which satisfies PR 4749 1999-12-21 09:25:43 +00:00
jwise 850fb37f89 Fix error handling throughout. First off, it is not true as claimed in swap.c
that `systat doesn't handle errors'.  Second off, errx should not be used directly, since
the terminal should be cleaned up before bailing.  Third off, whatever we do we need
to be consistent.

There, I feel better now.
1999-12-20 23:11:50 +00:00
fair aff3242363 fix trivial nroff source bug, per PR 8724 1999-12-20 22:53:44 +00:00
jwise bc8f4e2f46 Be consistent about whether to block SIGALRM before calling command() -- don't
ever do so, as the first thing command() does is block SIGALRM.
1999-12-20 21:59:29 +00:00
lukem 00a4e0e7ce need <string.h> for strlen() 1999-12-20 21:49:11 +00:00
jwise 24b9ee353a Nuke assignment unneeded after last commit 1999-12-20 21:46:10 +00:00
jwise b037ddd3b7 More cleanup -- use strtok() rather than rolling our own not-quite-correct version. 1999-12-20 21:42:50 +00:00
jwise 5a69f1bd85 Block alarm signals while displaying -- there's no reason to allow recursive
display at all.
1999-12-20 21:04:41 +00:00
jwise d0e3cec262 1.) Clean up keystroke processing
2.)  Add the all-time most requested feature:  hitting space or CR while
     not in command mode now causes an instant refresh
1999-12-20 20:49:06 +00:00
jwise 299c3534d3 TNF copyright -- I will do the paperwork to give these over asap. 1999-12-20 19:31:47 +00:00
itojun 8471c4a69a fix "netstat numbers". 1999-12-20 17:26:50 +00:00
jwise 81ed25dba3 Knee-jerk snprintf()-ism. 1999-12-20 17:08:52 +00:00
kleink ece19a5225 Report disabled control characters as <undef> (like stty(1) does); fixes
PR bin/9019 from SAKAI Atsushi <a-sakai@echo.nuee.nagoya-u.ac.jp>.
1999-12-20 14:36:11 +00:00
jwise be9a446256 G/C function used in old command parsing 1999-12-20 04:06:25 +00:00
jwise 4c0fbd4c92 Two things:
1.) fix a bug which caused coredumps when starting with no mode arguments
  2.) move to table-lookup for mode-specific command parsing as well.
      all command matching is now table-driven.
1999-12-20 03:45:01 +00:00
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