green [Sun, 19 Dec 1999 09:42:15 +0000 (09:42 +0000)]
Remove all vestiges of /usr programs (awk, sed, grep...) from MAKEDEV.
MAKEDEV can now run (with /sbin/chown and /bin/chgrp, still) without
any /usr. The default PATH for MAKEDEV is now "/sbin:/bin" to prevent
against further spammage of /usr programs in MAKEDEV. In the event
of an emergency, the variable "MAKEDEVPATH" can be used to replace
PATH, but I don't know what that emergency could be.
Let me know if you have any problems. I've tested it as well as
I could, which basically means everything except for RocketPorts.
imp [Sun, 19 Dec 1999 07:39:10 +0000 (07:39 +0000)]
o Hide pcic_chip functions inside file
o Attach children in a better way than before.
o Remove some dead code
o collapse the socket attach routines into pcic_attach
rwatson [Sun, 19 Dec 1999 06:08:07 +0000 (06:08 +0000)]
Second pass commit to introduce new ACL and Extended Attribute system
calls, vnops, vfsops, both in /kern, and to individual file systems that
require a vfsop_ array entry.
rwatson [Sun, 19 Dec 1999 05:54:46 +0000 (05:54 +0000)]
First pass commit to introduce new ACL and Extended Attribute system calls.
The second pass commit with all the supporting code will happen shortly
afterwards.
eivind [Sat, 18 Dec 1999 23:01:52 +0000 (23:01 +0000)]
Since VOP_LOCK can be used to up and downgrade locks, it is not possible
to say anything about the lockstate before and after it. Thus, change the
lockspec from U L U to ? ? ?.
eivind [Sat, 18 Dec 1999 20:50:48 +0000 (20:50 +0000)]
Correct the documentation of LOCKPARENT - it does not reliably result in the
parent being locked, but rather plays some hide and seek (does not lock if
dvp == vp).
Also add a BUGS section noting that this is undesired behaviour.
eivind [Sat, 18 Dec 1999 17:12:15 +0000 (17:12 +0000)]
Make NDFREE unlock VP if appropriate and not asked not to, as documented in
the manpage for namei(). This capability is not yet used attempted used
anywhere in the source tree.
peter [Sat, 18 Dec 1999 13:55:17 +0000 (13:55 +0000)]
Revert the libcrypt/libmd stuff back to how it was. This should not have
happened as it was working around problems elsewhere (ie: binutils/ld
not doing the right thing according to the ELF design). libcrypt has
been adjusted to not need the runtime -lmd. It's still not quite right
(ld is supposed to work damnit) but at least it doesn't impact all the
users of libcrypt in Marcel's cross-build model.
green [Sat, 18 Dec 1999 13:52:44 +0000 (13:52 +0000)]
I've been Bruceified! As penance, I've fixed my error (improper ordering,
moving #ifdefs to the non-historically-correct place, indentation bugs),
and I've also completely restyle(9)d mbuf.h. There shouldn't be any
KNF issues with it anymore, nor should there be any internal
discrepencies.
(Oh, I also fixed a small bug, but it was benign. The spl was not
released in MCLALLOC if M_NOWAIT and there were no free mclusters.)
imp [Sat, 18 Dec 1999 06:11:22 +0000 (06:11 +0000)]
Driver for the smc91xx series of ethernet chips. Ported from PAO to
3.3R and then to -current. The pccard support has been left in the
driver, but is presently non-functional because we are using the
isa_compat layer for the moment.
jkh [Sat, 18 Dec 1999 03:13:19 +0000 (03:13 +0000)]
Yet more cosmetic fixes (I have a little time to kill while waiting for
something else, so I might as well tweak 3.4's look-and-feel for the better
while I'm at it - final release build should be sometime later on tonite).
peter [Fri, 17 Dec 1999 22:07:43 +0000 (22:07 +0000)]
Be more consistant in using perl vs. perl5. We were using perl5 in the
kernel builds so as not to confuse with perl4 when bootstrapping from old
systems. I don't know if this is still applicable but it shouldn't hurt
to be consistant at least.
Also copy vnode_if.sh to vnode_if.pl. Doing a 'sh vnode_if.sh' when it
was a perl script was kinda silly.
peter [Fri, 17 Dec 1999 20:04:01 +0000 (20:04 +0000)]
Remove -lmd. Use dlopen() and dlsym() instead for calls to the MD5* and
SHA* routines so that callers of libcrypt are not exposed to the internal
implementation.
marcel [Fri, 17 Dec 1999 15:50:45 +0000 (15:50 +0000)]
s/MACHINE_ARCH/TARGET_ARCH/g
The target machine is represented by TARGET_ARCH. MACHINE_ARCH always
represents the host machine. When TARGET_ARCH is not defined, it is
assumed to be equal to MACHINE_ARCH. This means that we're building a
native toolset by default. We're creating cross-compilation tools when
MACHINE_ARCH != TARGET_ARCH.
TARGET_ARCH is defined when building binutils as part of the bootstrap
build and is set to reflect the architecture we're currently cross-
building. With this change binutils is ready for cross-building.
marcel [Fri, 17 Dec 1999 15:27:21 +0000 (15:27 +0000)]
o Don't use long for 64 bit variables. Use u_int64_t instead.
o Fix printf format specifiers on Alpha and add i386 version.
o Minor style fixes while there.
o Add -Wall compiler option.
deischen [Fri, 17 Dec 1999 11:46:55 +0000 (11:46 +0000)]
Change to work with recent signal changes. The signal being handled is
now added to the signal mask; this test failed because it didn't allow
for this.
imp [Fri, 17 Dec 1999 09:00:11 +0000 (09:00 +0000)]
o Separate out alloc/release from the activation
o minor formatting nits
o remove the bus_map/unmap calls. FreeBSD doesn't need them.
o Fix most of the compiler warnings remaining (some still remain, but they
are releated to calling functions that are going to change, so I did
not bother).
imp [Fri, 17 Dec 1999 06:46:07 +0000 (06:46 +0000)]
Two more fixes to if_detach. These are generic to all interfaces and
do not pollute the interface further.
o Run if_detach at splnet().
o Creatively swipe the relevant parts of the netatm atm_nif_detach
which will delete the relevant references to the interface going
away.
jkh [Fri, 17 Dec 1999 02:46:04 +0000 (02:46 +0000)]
In retrospect, msgNotify() should leave its contents on the screen
longer to give the user something to look at while things are happening.
Change it to do so and insert the appropriate screen saves elsewhere.
grog [Fri, 17 Dec 1999 01:18:44 +0000 (01:18 +0000)]
Change location of temporary file from /tmp to /var/tmp. This is a
repeat of an earlier commit which apparently got lost with the last
import. It helps solve the frequently reported problem
pid 4032 (mail.local), uid 0 on /: file system full
(though there appears to be a lot of space) caused by idiots sending
30 MB mail messages.
Most-recently-reported-by: jahanur <jahanur@jjsoft.com>
Add $FreeBSD$ so that I can check the file back in.
deischen [Fri, 17 Dec 1999 00:57:54 +0000 (00:57 +0000)]
Fix problems with cancellation while in critical regions.
o Cancellation flags were not getting properly set/cleared.
o Loops waiting for internal locks were not being exited
correctly by a cancelled thread.
o Minor spelling (cancelation -> cancellation) and formatting
corrections (missing tab).
deischen [Fri, 17 Dec 1999 00:56:36 +0000 (00:56 +0000)]
Fixes for signal handling:
o Don't call signal handlers with the signal handler access lock
held.
o Remove pending signals before calling signal handlers. If
pending signals were not removed prior to handling them,
invocation of the handler could cause the handler to be
called more than once for the same signal. Found by: JB
o When SIGCHLD arrives, wake up all threads in PS_WAIT_WAIT
(wait4).
mckusick [Thu, 16 Dec 1999 22:02:09 +0000 (22:02 +0000)]
The function request_cleanup() had a tsleep() with PCATCH. It is
quite dangerous, since the process may hold locks at the point,
and if it is stopped in that tsleep the machine may hang. Because
the sleep is so short, the PCATCH is not required here, so it has
been removed. For the future, the FreeBSD team needs to decide
whether it is still reasonable to stop a process in tsleep, as that
may affect any other code that uses PCATCH while holding kernel locks.
jasone [Thu, 16 Dec 1999 21:53:39 +0000 (21:53 +0000)]
Move POSIX feature constants from pthread.h to unistd.h, as required by
1003.1c-1995.
Undefine _POSIX_THREAD_SAFE_FUNCTIONS, since we do not implement all of the
necessary interfaces. At least getgrgid_r(), getrnam_r(), getpwuid_r(),
getpwnam_r(), getc_unlocked(), getchar_unlocked(), putc_unlocked(),
and putchar_unlocked() are missing. Due to a likely typo in 1003.1c-1995,
we are not technically allowed to define _POSIX_THREADS without defining
_POSIX_THREAD_SAFE_FUNCTIONS, but either way we're non-compliant, so I'm
leaving _POSIX_THREADS defined.
wpaul [Thu, 16 Dec 1999 18:33:57 +0000 (18:33 +0000)]
Update the xl driver to recognize yet another 3c905B/3c905C class NIC:
the 3c450-TX HomeConnect. Like the 3cSOHO100-TX OfficeConnect, this NIC
uses the same ASIC as the 3c905B/3c905C but is targeted for a particular
market segment (home users). It is somewhat less expensive than the
3c905B/3c905C ($49, according to the 3Com web site), comes with its
own custom driver kit and is bundled with various goofy Windows software
packages designed to demonstrate the niftyness of home networking (networked
game demos, etc...).
Changes are:
- Add PCI ID to list in if_xlreg.h.
- Update xl_devs table in if_xl.c.
- Update xl_choose_xcvr() to consider the HomeConnect the
same as all the other 10baseT/100baseTX cards.
marcel [Thu, 16 Dec 1999 17:25:01 +0000 (17:25 +0000)]
Don't build gensetdefs when we can use /usr/bin/gensetdefs. The latter
also creates setdef{0|1}.c so there's no need to have those in the
repository. Using /usr/bin/gensetdefs has no consequences for the
output.
dillon [Thu, 16 Dec 1999 17:01:32 +0000 (17:01 +0000)]
Have NFS use a snapshot of boottime instead of boottime itself to
generate the NFSv3 Version id. boottime itself may change, sometimes
once every tick if you are running xntpd, which really throws off
clients. Clients will tend to throw away what they believe to be
stale data too often, and can get into long loops rewriting the same
data over and over again because they believe the server has rebooted
over and over again due to the changing version id.
obrien [Thu, 16 Dec 1999 17:00:53 +0000 (17:00 +0000)]
* The C1010 stepping B0 (Rev 1) tested OK for DT transfers without the U3EN
broken bit work-around enabled.
* Fixed a bug that made MDP not work. (However, MDP is actually not tested
due to lack of hardware using this feature).
* Chip table changed to support the C1010 B0 w/o the U3EN bit work-around
enabled.
* Add the SYM_SETUP_MAX_LUN, SYM_SETUP_LP_PROBE_MAP (used to tell the
driver about chips that are to be claimed with lower priority than old
PCI bus based driver (typically the ncr)), SYM_SETUP_SCSI_DIFF, and
SYM_SETUP_PCI_PARITY options.
obrien [Thu, 16 Dec 1999 16:09:57 +0000 (16:09 +0000)]
Add options used by the `sym' (Symbios SCSI) driver.
SYM_SETUP_LP_PROBE_MAP Low Priority Probe Map (bits)
SYM_SETUP_SCSI_DIFF HVD support for 825a, 875, 885
SYM_SETUP_PCI_PARITY PCI parity checking
SYM_SETUP_MAX_LUN Number of LUNs supported
marcel [Thu, 16 Dec 1999 13:47:34 +0000 (13:47 +0000)]
o Add games/caesar to the list of bootstrap-tools so that a
buildworld doesn't break because the host doesn't have any
games installed,
o Add a new build stage: TMAKE. TMAKE builds all the build-tools
targets in the respective makefiles. Note that these targets
don't use the bootstrap tools,
o Add elf2exe to the bootstrap-tools when cross-building Alpha on
other platforms,
o Add ${WORLDTMP}/usr/games to TMPPATH,
o Remove ${WORLDTMP}/usr/bin even when NOCLEAN is defined. This
prevents using any bootstrap-tools previously installed. Most
importantly, it prevents using the cross-compiler when we still
need the native compiler.
The current stages are BMAKE, TMAKE, XMAKE and IMAKE in that order.
BMAKE builds bootstrap-tools that either solve compatibility problems
or are needed as cross-tools,
TMAKE builds the support tools necessary by some parts in the source
tree and also performs the cleandir and par-obj targets,
XMAKE builds the includes, libraries and everything (resp.), and
IMAKE installs the world. This stage needs further work if it's to be
used to install -current over -stable for example.
This is the last major update towards cross-building.