brian [Sat, 18 Aug 2001 19:07:13 +0000 (19:07 +0000)]
Back out the previous fix to deal with kernels that don't support IPv6,
and implement a far more subtle and correct fix.
The reason behind the infinite loop was that ppp was trying to make up
initial IPv6 numbers and wasn't giving up when it failed unexpectedly to
assign the addresses it just fabricated to it's interface (thinking that
the reason was because another interface was using the same address).
It now attempts this up to 100 times before just failing and trying to
muddle along (in reality, this should never happen more than a couple
of times unless our random number generator doesn't work).
Also, when IPv6 is not available, don't even try to assign the IPv6
interface address in the first place...
jake [Sat, 18 Aug 2001 18:11:13 +0000 (18:11 +0000)]
Increase the size of the phys_avail memory map. Implement pmap_dispose_proc.
Turn some more potentially import functions into nops so we can do stuff
until they matter.
jake [Sat, 18 Aug 2001 18:07:37 +0000 (18:07 +0000)]
Spell ta 1 correctly as ta %xcc, 1. Use %pil for critical enter/exit
instead of pstate.ie. Note that popc is not implemented in hardware
on certain ultras, so we can't use it for inline ffs (suck).
jhb [Sat, 18 Aug 2001 01:12:43 +0000 (01:12 +0000)]
Turn off SMP on Alpha for the time being. There are some memory ordering
issues that can result in panics and probably data corruption on SMP
systems right now. When they are fixed this can be turned back on.
obrien [Fri, 17 Aug 2001 22:54:26 +0000 (22:54 +0000)]
Re-initialize gp after a jsr.
When rtld runs the .fini section in a shared lib (C++), the code in
question from .../contrib/gdb/config/alpha/crtbegin.asm first calls
__do_globals_dtors_aux and then __do_frame_takedown. Unfortunately, the
value of gp after a jsr is undefined and in this case had changed from before
the call, probably as a result of calling code in some other shared library.
The normal calling convention for alpha is to re-initialize gp using
'ldgp gp,0(ra)' after a jsr instruction but in this case no such
re-initialization is done. This leads to a bogus value being read for the
address of __do_frame_takedown and a quick segfault.
dd [Fri, 17 Aug 2001 22:09:15 +0000 (22:09 +0000)]
Implement getpeereid(3), a front-end to the LOCAL_PEERCRED
socket option for the Unix domain. It's weaker than the
socket option (this only returns the uid and gid, while the
socket opt. can return the entire group list), and is
implemented mostly for compatibility with OpenBSD.
dd [Fri, 17 Aug 2001 22:01:18 +0000 (22:01 +0000)]
Implement a LOCAL_PEERCRED socket option which returns a
`struct xucred` with the credentials of the connected peer.
Obviously this only works (and makes sense) on SOCK_STREAM
sockets. This works for both the connect(2) and listen(2)
callers.
There is precise documentation of the semantics in unix(4).
dd [Fri, 17 Aug 2001 21:42:15 +0000 (21:42 +0000)]
When discussing optimization levels, don't put the compiler options in
.Op. None of the other manual pages do it when discussing options in
the main text, so this one shouldn't, either. Also, use .Pq instead
of another odd constructhyphenation isn't an issue here, since it's
desireable to have the contents of that digression appear together,
and it's already in another macro, anyway).
bmah [Fri, 17 Aug 2001 19:59:25 +0000 (19:59 +0000)]
Troll for MFCs that haven't been marked as such: KERNCONF, an(4)
support for Aironet 350, ed(4) support for Linksys cards, aac(4),
ssh(1) not SUID, passwd(1)/pw(8) support for passwd_format,
rc(8) deletes non-directories in /var/run and /var/spool/lock,
fmtcheck(3), sshd(8) X11Forwarding, sshd_config MaxStartups
deprecates ConnectionsPerPeriod.
Some of these MFCs are new, others were reflected in 4-STABLE's
release notes already, and still others were MFC-ed before prior
releases.
Relocate dgm->digi release note item to live next to digi.
Relocate an(4)/AIR350 note to be next to another an(4) entry.
Remove a duplicate entry documenting xargs(1) -J.
Port markup fixes: sysutils/cs9660_unicode, net/pim6dd, net/pim6sd.
ache [Fri, 17 Aug 2001 09:57:11 +0000 (09:57 +0000)]
fseek.c:
Resulting fseek() offset must fit in long, required by POSIX (pointed by bde),
so add LONG_MAX and final tests for it.
rewind.c:
1) add missing __sinit() as in fseek() it pretends to be.
2) use clearerr_unlocked() since we already lock stream before _fseeko()
3) don't zero errno at the end, it explicitely required by POSIX as the
only one method to test rewind() error condition.
4) don't clearerr() if error happens in _fseeko()
gibbs [Fri, 17 Aug 2001 04:22:50 +0000 (04:22 +0000)]
Restore initialization of ahc->unpause lost in rev 1.76. ahc->unpause
should be initialized to 0 for PCI adapters which was a side-effect of
the memset in ahc_alloc(). EISA/VL adapters require our unpause value to
include the "levelness" of our interrupt.
peter [Thu, 16 Aug 2001 20:18:43 +0000 (20:18 +0000)]
Remove redundant null-termination. The buffer is already explicitly
zeroed, and we intentionally leave -1 on the strncpy length to leave
the original \0.
wpaul [Thu, 16 Aug 2001 20:15:16 +0000 (20:15 +0000)]
After one more day of testing, make what I hope are the final tweaks to
prevent/workaround TX lockups in this driver. The secret seems to be to
not let the TX DMA queue become too full. If we have too many packets
in the queue, we should wait for them to drain a bit before trying to
queue more. This should prevent the lockup from occurring, and if it
does occur, there is special code in sf_start() to kick the NIC in the
head and get it going again.
Special thanks to Glen Neff for helping me test this fix.
imp [Thu, 16 Aug 2001 17:30:55 +0000 (17:30 +0000)]
Fix the so-called "half-baked-probe" code that I wrote a long time ago
to properly clear the interrupt register on the no error case. Also,
set the mcr register to zero when we find we can't support the chip.
This fixes the hang on sio driver attach problem in the new pci pccard
code that some people have reported. At least on my machine. I'd
like to get this into 4.4.
mjacob [Thu, 16 Aug 2001 17:25:08 +0000 (17:25 +0000)]
Enable LIP F8, LIP Reset async events.
Be more chatty about SNS failures. Fix
typo for skipped phase mesage. Correct
MBOX_GET_PORT_QUEUE_PARAMS options in
table.
mikeh [Thu, 16 Aug 2001 14:23:59 +0000 (14:23 +0000)]
Fix the @monthly and @weekly shortcuts so that they actually run
monthly and weekly, respectively. Also fix the @yearly shortcut so
that it doesn't execute daily during January. OpenBSD and NetBSD also
appear to have this bug.
sheldonh [Thu, 16 Aug 2001 09:14:09 +0000 (09:14 +0000)]
Document the sendmail_outbound_enable and sendmail_outbound_flags,
which were introduced 5 months ago. Looking at the descriptions,
these two look like the stupidest options to have arrived in a while,
but they must be documented now that they've been merged onto the
stable branch.
sheldonh [Thu, 16 Aug 2001 08:40:54 +0000 (08:40 +0000)]
* Update author's e-mail address.
* When the author of an utility also wrote its manual page (a rarety, I
know), it is not necessary to say that the utility "and this manual
page" were written by the author.
peter [Thu, 16 Aug 2001 08:35:51 +0000 (08:35 +0000)]
Use explicit sizes for the prpsinfo command length string so that
we dont have any more unexpected changes in core dumps. This gets us
back to the original core dump layout from a few days ago.
obrien [Thu, 16 Aug 2001 06:05:18 +0000 (06:05 +0000)]
Add the `WANT_FORCE_OPTIMIZATION_DOWNGRADE' knob. If set to an integer
value, it forces GCC to not optimize above this level. For intance, GCC
made with "WANT_FORCE_OPTIMIZATION_DOWNGRADE=1" is a good setting for the
Alpha platform when building ports.
dd [Thu, 16 Aug 2001 06:00:57 +0000 (06:00 +0000)]
Don't allocate a 512 byte buffer on the stack in snplwrite. It's
probably harmless in this case, since the latter is called on tty
input, which is usually a result of some system call, so we've got
plenty of stack left. It's still nice to fix these things, though, in
case somebody ever decides this driver is a good example of something
(perhaps "what you probably shouldn't do").