Commit Graph

3817 Commits

Author SHA1 Message Date
tron 22cf28baac Fix wrong option string in call to getopt(3). Patch supplied by
Geoff C. Wing in PR bin/8475.
1999-09-23 08:47:47 +00:00
lukem 700e3c1ec7 * add support for `xferbuf', which sets both `sndbuf' and `rcvbuf'
* document the above three commands
* rototill the way the sndbuf and rcvbuf work. remove resetsockbufsize()
* use the appropriate socket buffer size as the size of the buffer that
  the read()/write() loops use. speeds up things in some cases.
1999-09-22 07:18:31 +00:00
lukem 5d3667b758 replace snprintf() with strlcpy(), strlcat(), or direct assignment
where appropriate. (strlc*() are easier to port to foriegn systems).

XXX; there's still a few snprintf's in the progress meter stuff to convert
1999-09-22 03:01:53 +00:00
lukem 84e2c387e7 * protect more of the AF_INET6 stuff with #ifdef INET6 (for portability)
* in the main data moving loops only call the initial gettimeofday() if
  rate throttling is enabled (saves a system call per loop when not
  throttling).
1999-09-21 13:17:22 +00:00
lukem 20a4d96576 reword EPSV status line 1999-09-21 13:10:16 +00:00
lukem 2ef7f5d71d add trailing . to message 1999-09-21 12:57:51 +00:00
lukem f7ead868c0 cast 4th arg to [gs]etsockopt() to (void *), to satisfy some foriegn systems 1999-09-21 11:18:27 +00:00
lukem 26738e38b8 only default to epsv4 if INET6 is defined 1999-09-21 10:11:56 +00:00
cgd 7132ce2fd3 RCS ID police (sigh) 1999-09-21 06:24:46 +00:00
tron ab40c54610 Use full hostnames when sorting rwho database entries. Fixes PR bin/8401
by John Darrow.
1999-09-20 20:35:43 +00:00
christos f6ae64deff Free the right thing. 1999-09-20 04:12:16 +00:00
ad a74cd67dcf Some cleanup [Fixes to follow as soon as I get a CD-ROM drive at home] 1999-09-18 21:15:23 +00:00
kim 6c6c0c0d5c Make this compile on Solaris... 1999-09-16 19:57:54 +00:00
mycroft 2500a4b975 Some minor cleanup of :: tests. 1999-09-16 00:54:14 +00:00
mycroft ce14db1fcd Fix a bug in the previous. In the `compat' case, we don't actually use the
list of target nodes returned by Make_ExpandUse().  We have to search the
cohorts explicitly while iterating through the tree.  So, tweak CompatMake()
to do this.
1999-09-16 00:49:48 +00:00
sommerfeld bcb141e5d0 Reuse the Hash_Entry `name' field to store the variable name when we
can (i.e., everything except environment variables, which aren't
stored in hash tables).

While we're here, inline the body of VarDelete into Var_Delete since
it's the only caller and it's just simpler that way when v->name can
share storage with the hash entry and may not need to be freed
separately.

Speeds up the infamous libc build benchhmark maybe 1% on PIII, 4% on
alpha pc164

Suggested by Perry Metzger.
1999-09-15 22:51:05 +00:00
is cef52aa203 Add -L option. netstat -r -L behaves like 4.3BSD netstat -r, that is, it
does not show route table entries pointing to link level addresses (ARP
entries or IPv6 neighbour discovery entries).
1999-09-15 20:12:18 +00:00
is 4d1abcb145 Netstat knows about "-f inet6". 1999-09-15 19:57:02 +00:00
mycroft b12871c6cb Rework how :: dependencies are handled.
Build a list of `cohorts' as before, but do *not* link each one into all the
parent nodes; instead, copy the `cohort' lists into the stream of targets to
be built inside Make_ExpandUse().  Also do the attribute propagation as a
separate pass after parsing.
This eliminates several O(n^2) algorithms.
1999-09-15 10:47:37 +00:00
mycroft c29ad80902 More cleanup code bites it. 1999-09-15 08:48:17 +00:00
mycroft dd291116bc Don't bother iterating through all the data structures to free(3) everything
right before exiting.
(The code is still present, `#ifdef CLEANUP', in case someone needs it...)
1999-09-15 08:43:21 +00:00
mycroft 441a442e46 Fix another case where we stat(2)ed .PHONY targets. 1999-09-15 05:56:33 +00:00
mycroft ff6341a190 Nuke Buf_{G,Ung}etByte{,s}(), since they aren't used, and make BufExpand do
power-of-2 allocation.
1999-09-15 04:16:31 +00:00
mycroft c33b6eca55 Avoid using Lst_Member() in SuffExpandChildren(), by avoiding Lst_ForEach() and
passing in the LstNode of the child being inspected.  Shaves off another few %,
particularly when there are long child lists containing $ expansions (e.g. in
libc).
1999-09-15 03:59:44 +00:00
mycroft d2ec8b0e26 Replace the linear variable list in the GNode with a hash table. Gives a
small (~10% on my machine) speedup building libc.
Changes by: perry (+ bug fix and minor change by me)
Reviewed by: mycroft sommerfeld
1999-09-15 02:56:34 +00:00
mycroft a502b0ee92 warn()->warnx() in a couple of places. 1999-09-14 22:49:14 +00:00
mrg 217279cb42 add a note about "audioctl encodings", to find available supported encodings. 1999-09-14 05:04:21 +00:00
tron ac79ed84db Name possible encodings for "-e" option and add an example provided by
Ben Wong in PR bin/8391. Thanks must go to Ross Harvey for helping me
with the "nroff" stuff.
1999-09-13 19:36:30 +00:00
tron feac6b2836 Use "NULL" instead of "0" for null pointer. 1999-09-13 17:35:33 +00:00
tron 5b011b57a2 Fix broken "-f" and "-P" options. Patches supplied by Ben Wong in
PR bin/8390.
1999-09-13 17:18:21 +00:00
kleink 03126e1c99 Use full month names with .Dd, as per mdoc.samples(7). 1999-09-12 18:47:10 +00:00
jdolecek 1a3b3e1f42 pull in <sys/mount.h> (with _KERNEL) to get definition of struct netexport,
used in struct ntfsmount
1999-09-12 16:47:42 +00:00
itojun 510eaf2f65 fix duplicated "leshort 42 Hitachi SH" (one of them should be "beshort").
(part of NetBSD/sh3 patches)
1999-09-12 16:38:16 +00:00
itojun bb41dd1eaa add "#ifdef __sh3__" section.
(part of NetBSD/sh3 patches)
1999-09-12 16:10:45 +00:00
dbj e1c216bcdf RTF_PROTO1 is indicated by the flag '1' and RTF_PROTO2 is indicated by the flag '2',
not the other way around
1999-09-12 02:33:43 +00:00
chs 21eedb0ec1 the PMAP_NEW option is gone as the new interface is no longer optional. 1999-09-12 01:19:23 +00:00
christos ab01074993 Add :O var modifier, that sorts the words in a variable. 1999-09-12 00:17:50 +00:00
simonb 1f7c79634d Fix inconsistancy at start of copyright message. 1999-09-10 04:05:28 +00:00
kleink 938ac456e0 Define __LINT__, per XCU5. 1999-09-09 09:34:25 +00:00
fredb 66635b21d1 Doc previously undocumented `-k' option, correctly note mutually exclusive
options, various stylistic changes.
Closes PR bin/8325.
1999-09-08 20:32:03 +00:00
jwise 75eb9e11a9 Slight improvement to last fix: don't need to reset the cpp tempfile for
files which don't need to be run through cpp.  Also, use vfork() instead of
fork().

Both from Anders Hjalmarsson (Anders.Hjalmarsson@economics.gu.se)
1999-09-07 02:36:57 +00:00
kleink 3b9e70a904 Pasto in previous; noticed by Perry. 1999-09-06 21:50:39 +00:00
kleink 4fe72c2fe5 Use NL_TEXTMAX to size the buffer passed to regerror(). 1999-09-06 09:37:29 +00:00
jwise 6c0498c892 Apply fix from PR bin/8328 by Anders Hjalmarsson (Anders.Hjalmarsson@economics.gu.se):
work properly again when passwd multiple files on the command line.
1999-09-06 06:45:20 +00:00
itojun 1f293daeb9 fix getaddrinfo() loop.
Approved by: seirios@iri.co.jp (submitter of IPv6 whois patch)
1999-09-06 06:23:08 +00:00
tron 4de1769208 Forgot to mention OpenBSD in history. 1999-09-04 20:53:05 +00:00
tron 16e75e8bbc Correct history for NetBSD and add RCS Id. 1999-09-04 20:36:15 +00:00
mycroft 3596f4a0cb Increase the default maxmagic. 1999-09-04 19:51:58 +00:00
mycroft bd10bffcd8 Make maxmagic always increase by a factor of 2. 1999-09-04 19:51:11 +00:00
perry 29c51c5557 fix a bug with terminal modes being badly set on exit 1999-09-04 18:02:58 +00:00