dwmalone [Thu, 4 Oct 2001 13:11:48 +0000 (13:11 +0000)]
Hopefully improve control message passing over Unix domain sockets.
1) Allow the sending of more than one control message at a time
over a unix domain socket. This should cover the PR 29499.
2) This requires that unp_{ex,in}ternalize and unp_scan understand
mbufs with more than one control message at a time.
3) Internalize and externalize used to work on the mbuf in-place.
This made life quite complicated and the code for sizeof(int) <
sizeof(file *) could end up doing the wrong thing. The patch always
create a new mbuf/cluster now. This resulted in the change of the
prototype for the domain externalise function.
4) You can now send SCM_TIMESTAMP messages.
5) Always use CMSG_DATA(cm) to determine the start where the data
in unp_{ex,in}ternalize. It was using ((struct cmsghdr *)cm + 1)
in some places, which gives the wrong alignment on the alpha.
(NetBSD made this fix some time ago).
This results in an ABI change for discriptor passing and creds
passing on the alpha. (Probably on the IA64 and Spare ports too).
6) Fix userland programs to use CMSG_* macros too.
7) Be more careful about freeing mbufs containing (file *)s.
This is made possible by the prototype change of externalise.
roberto [Thu, 4 Oct 2001 12:24:18 +0000 (12:24 +0000)]
Forced commit to give more details on what the patch does (sorry).
Instead of using 22 as the default cylinders per cylinder group parameter
(the max. value for a 8k/1k FS), compute the maximum value allowed and use
it. It can be overridden by specifying -c of course. This allow for FS built
through the initial installation to have better values.
bde [Thu, 4 Oct 2001 10:34:30 +0000 (10:34 +0000)]
Fixed order of includes. <sys/cdefs.h> must be included before
<machine/ansi.h> for the definition of __signed, unless the compiler
is gcc.
Moved the declaration of socklen_t up together with the declaration of
size_t, and removed low-quality comment about this declaration. Declaring
socklen_t in this file is normal in POSIX-1.200x, unlike declaring size_t.
bde [Thu, 4 Oct 2001 09:46:01 +0000 (09:46 +0000)]
Removed garbage:
- bus_generic_map_intr.9. This has been undead for more than 3 years
following the changes in rev.1.4 of sys/bus.h.
- CONDSPLASSERT.9, SPLASSERT.9. These have been undead since SMPng.
They were even less useful than most section 9 man pages -- the
interfaces described in them have never been used in the FreeBSD
source tree.
bde [Thu, 4 Oct 2001 07:37:57 +0000 (07:37 +0000)]
Fixed namespace pollution:
- only declare the application symbols specified in Posix.1-200x drafts,
not everything in <sys/types.h> and <stddef.h>.
- don't use the application symbol 'm' for an arg name.
luigi [Thu, 4 Oct 2001 00:42:20 +0000 (00:42 +0000)]
Use @__CWD__@ as the magic string meaning "this directory"
in crunch.conf -- the previous choice, CWD, was too subject to false
matches (this string will be replaced by the absolute pathname
during the build process).
alfred [Wed, 3 Oct 2001 11:01:39 +0000 (11:01 +0000)]
Avoid getting stuck in system(3) when the internal call to wait4()
is interrupted by saving the pid.
The old code would assign the return value to pid which would trash
it, to fix the problem save a copy of the pid to be used as the
paramter to wait4().
bde [Wed, 3 Oct 2001 05:19:47 +0000 (05:19 +0000)]
Fixed syntax errors in synopsis. The restrict keyword doesn't exist yet.
The corresponding bugs in <wchar.h> have no effect because the function
prototypes there don't have args so the __restrict "keyword" is
misinterpreted as an arg.
bde [Wed, 3 Oct 2001 03:49:48 +0000 (03:49 +0000)]
Fixed bitrot in synopsis. The change of the return type of
Set_Boot_Blocks() from void to int had not reached here. Callers
still don't check the new return value.
mjacob [Tue, 2 Oct 2001 22:36:49 +0000 (22:36 +0000)]
Let's not kid ourselves- we don't *really* support jumbframes yet.
We only support the size of frame we are currently allocating, which
is MCLBYTES - sizeof (struct ether_header) usable, so don't set an
MTU that would go over this.
des [Tue, 2 Oct 2001 22:22:42 +0000 (22:22 +0000)]
Add a PFS_DISABLED flag; pfs_visible() automatically returns 0 if it is set
on the node in question. Also add two API functions for setting and clearing
this flag; setting it also reclaims all vnodes associated with the node.
luigi [Tue, 2 Oct 2001 17:06:51 +0000 (17:06 +0000)]
A somewhat large change of this script.
From the user's perspective:
* everything is now built outside the source tree (more precisely,
in `pwd`/builddir-${name}/ ) except for the kernel config file(s)
which still need to be copied into src/sys/i386/conf because of
"config" limitations. I am not sure if there is an easy way
to get away from this without changing "config" or replicating
some part of the source tree.
This is really the only change that most users should worry about,
but it is a good one.
* if you do cross-compiles (using "picobsd --src somedir/src [--init] ... ")
then the libraries and include directories etc. are searched/created
in "somedir/usr" ;
* you can do most things (basically build the kernel and the crunched
binary and the filesystem trees) without root privileges. You need
privileges to use mdconfig/vnconfig to create the actual MFS and
floppy image, unfortunately.
* the -v option now prints some diagnostic but does not stop for
user input at each step. You need to specify -v -v to have the
old behaviour.
Internally, the script has been reshuffled quite a bit to support
the above features. Many shell variables have been renamed or
made local in an effort to avoid undesired side effects. There is
a somewhat better error handling in case something goes wrong.
luigi [Tue, 2 Oct 2001 16:53:50 +0000 (16:53 +0000)]
Compile the kernel under ${BUILDDIR} instead of polluting the source
tree. Unfortunately the latter cannot be completely readonly, because
"config" still depends on the kernel config file being in sys/${ARCH}/conf
(it seems to derive other pathnames from that one).
- First shot at PIC emulation;
- better 8250 emulation;
- fake vertical retrace bit in Input Status #1 register
(this was lost in the VGA emu rewrite).
Submitted by: Igor Serikov <bt@turtle.pangeatech.com>
bmah [Tue, 2 Oct 2001 04:59:33 +0000 (04:59 +0000)]
Fix organizational nits: Move Cardbus/NEWCARD release note to PCCARD
section. Move release notes for tunneling-type drivers from network
protocol section to NICs section for consistency (tap(4) release notes
were combined).
dillon [Tue, 2 Oct 2001 04:26:58 +0000 (04:26 +0000)]
Backout the last commit. The problem is actually much worse then I
first thought and may require serious work to the VOP_RENAME() api itself.
Basically, by the time the VOP_RENAME() function is called, it's already
too late.
mjacob [Tue, 2 Oct 2001 00:13:44 +0000 (00:13 +0000)]
Remove all OpenBSD/NetBSD code. It was the right place to start from, but
it now really gets in the way.
This allows us to fix several problems- not least of which was problems
of ordering about when you'd have a device softc for an miibus child
available or not. Move some steps of things around.
Put the ifnet/arpcom structure at the head of the softc (PR 29249).
Don't do tx gc in the interrupt service routine- that seems to make
things a bit more efficient.
Enable jumbo support by default- but this version of 'jumbo' is broken
because it really is just using multiple tfd/rfd's to match a packet,
which will never be > CLSIZE anyway.
This should begin the first steps toward cleaning this driver up.
obrien [Mon, 1 Oct 2001 23:00:29 +0000 (23:00 +0000)]
Fix ID's after a total boch CVS merge due to multiple people making
commits to these files.
As I sing to CVS:
Have I told you lately that I hate your guts? Have I told you
all SCM's are above you? You fill my heart with pain, take away
all my merging joy, grow my troubles that's what you do."