Ignore environment variables that are set but empty.
Sort out the size / length confusion. Always try to report the *real* file
size in the url_stat structure, no matter how much of it is actually being
sent, and try to detect inconsistencies between sizes.
Rearrange the request loop to avoid having to add meaningless code just to
silence compiler warnings.
Switch to a more sensible and consistent interface for the _http_parse*()
functions.
Call _thread_init() from pthread_once() if it has not already been called.
This fixes a segfault in some C++ programs which use exceptions before
main() has been called (i.e. from global constructors).
cons:
Simplify "rs" (\Ec will be fixed later in syscons, so this is intermedia step)
Remove "mh" - termcap must describe what device _actually_ have end left
emulation upon upper level program. "mh" is also conflicting with colors.
Don't remove "md" for mono consoles
dosansi:
Wrong "mh" -> good "mr"
Bill Paul [Thu, 20 Jul 2000 22:24:43 +0000 (22:24 +0000)]
Update the Tigon driver to support 1000baseTX gigE over copper AceNIC
cards. This basically involves switching to the 12.4.13 firmware, plus
a couple of minor tweaks to the driver.
Also changed the jumbo buffer allocation scheme just a little to avoid
'failed to allocate jumbo buffer' conditions in certain cases.
David E. O'Brien [Thu, 20 Jul 2000 20:11:36 +0000 (20:11 +0000)]
Fix problem where original author thought `unsigned long' was the best
32-bit type (rather than define his own type based on the type of box
being compiled on).
Submitted by: Mark Abene <phiber@radicalmedia.com>
(however I applied a slightly different fix)
David E. O'Brien [Thu, 20 Jul 2000 19:51:37 +0000 (19:51 +0000)]
Fix vendor bogon where one of dhcp_option_ev_name()'s formal parameter
types did not match the prototype.
(Note: this is one bug that an Ada compiler would have found as when you
typedef a new type, the new type is not assignment compatabile with the
type used to make it up. C should only be so featureful.)
Nick Sayer [Thu, 20 Jul 2000 17:07:06 +0000 (17:07 +0000)]
Add sysctl to perform bridge refresh. This is required if bridged
configurations include loadable interfaces. After loading new
interface drivers, perform a 'sysctl -w net.link.ether.bridge_refresh=1'
and the bridge code will reinitialize itself.
Nick Sayer [Thu, 20 Jul 2000 17:01:10 +0000 (17:01 +0000)]
Add the tap driver.
The tap driver is used to present a virtual Ethernet interface to the
system. Packets presented by the network stack to the interface are
made available to a character device in /dev. With tap and the bridge
code, you can make remote bridge configurations where both sides of
the bridge are separated by userland daemons.
This driver also has a special naming hack to allow it to serve a similar
purpose to the vmware port.
Rename the ``name'' argument to ``item'' and mark it up as an argument.
Make use of the marked up argument to clarify the text in the DESCRIPTION
section.
Insert a missing word: ``the''.
Make the phrase in the BUGS section a full sentence.
Sort the cross-references in the SEE ALSO section correctly.
Add support for the PC87303 chipset (found on Miata alphas) and add
support for relocating the port address if the isa hints specify a
different address from the address the chipset currently has.
Brian Somers [Thu, 20 Jul 2000 09:05:15 +0000 (09:05 +0000)]
Alocate rcmd{,_af}()'s *ahost argument using malloc() (well
strdup()) rather than pointing it at something that's free()d
(via freeaddrinfo(res)) before the function returns.
I appreciate that this is an API change, but it's the only way
(AFAIK) of doing this without breaking existing code that uses
rcmd{,_af}().
David Nugent [Thu, 20 Jul 2000 05:11:56 +0000 (05:11 +0000)]
Move test for -w flag outside of the code dealing with -D (defaults).
This should cause -w's argument not to be ignored in the usermod case,
so it will affect modification of the user's password instead of using
the pw.conf (or internal default=no '*') password method.
PR: bin/11168
David Nugent [Thu, 20 Jul 2000 04:37:00 +0000 (04:37 +0000)]
Allow -g with an empty argument in the -D case. This allows -g "" to set
no default group (and thus fall back to user-based groups instead).
PR: bin/5717
John Baldwin [Thu, 20 Jul 2000 03:07:29 +0000 (03:07 +0000)]
- Don't use quotes for the MD_ROOT_SIZE option when generating the BOOTMFS
kernel config file.
- Add WORLD_FLAGS and KERNEL_FLAGS so you can build world and kernel with
extra make options such as -jX to speed up release builds.
- When building kernels, allow their hints to tag along, and use this to
install hints onto the boot floppy. Since the boot floppy doesn't load
loader.4th, we have to change device.hints to strip comments and change
each line to an explicit set command.
David Nugent [Thu, 20 Jul 2000 00:09:29 +0000 (00:09 +0000)]
Fix another missed case where usermod would not set the "modified" flag:
-h - to set no password. But only mark modified if the account is not
already locked (i.e. first char of crypt password field is '*').
PR: bin/19999
- if the dates didn't match, fetch would append the received file to the
existing file instead of replacing it.
- if the local file was complete and up-to-date, fetch would miscalculate
the expected size and report a failure instead of a success, because it
had no way of knowing that the server was actually resending the entire
file since the requested offset was invalid.
Don't try to skip to the requested offset if the server returns more data
than requested. Instead, inform the caller of the real offset by modifying
the offset field in the original struct url, and let him decide how to handle
the situation.
Remove node's name reference when the interface is detached;
otherwise, the ng_ether.ko KLD will never be unloadable after
all Ethernet interfaces are detached, as it should be, because
of the lingering extra reference.
Submitted by: "Yevmenkin, Maksim N, CSCIO" <myevmenkin@att.com>