Peter Wemm [Mon, 11 Mar 1996 19:17:01 +0000 (19:17 +0000)]
Import 4.4BSD-Lite2 onto the vendor branch, note that in the kernel, all
files are off the vendor branch, so this should not change anything.
A "U" marker generally means that the file was not changed in between
the 4.4Lite and Lite-2 releases, and does not need a merge. "C" generally
means that there was a change.
Add FAILSAFE option for selecting extra conservativeness when such
is more practical (like during installation). Correspondingly, set the
option by default in GENERIC now.
Bill Fenner [Mon, 11 Mar 1996 17:11:23 +0000 (17:11 +0000)]
Cleaned up uninitialized 'rt' warning properly
Make a copy of the header of a packet that gets queued due to
lack of forwarding cache entry, so that nobody else can step
on it. Thanks to Mike Karels <karels@bsdi.com> for pointing
this one out.
David Greenman [Mon, 11 Mar 1996 15:37:44 +0000 (15:37 +0000)]
Changed socket code to use 4.4BSD queue macros. This includes removing
the obsolete soqinsque and soqremque functions as well as collapsing
so_q0len and so_qlen into a single queue length of unaccepted connections.
Now the queue of unaccepted & complete connections is checked directly
for queued sockets. The new code should be functionally equivilent to
the old while being substantially faster - especially in cases where
large numbers of connections are often queued for accept (e.g. http).
Mike Pritchard [Mon, 11 Mar 1996 03:09:00 +0000 (03:09 +0000)]
Change an incorrect reference to the "-n" flag to "-#".
Submitted by: Masanobu Saitoh <msaitoh@spa.is.uec.ac.jp>
Obtained from: NetBSD-bugs mailing list
Jeffrey Hsu [Mon, 11 Mar 1996 02:25:04 +0000 (02:25 +0000)]
Merge in Lite2: add whiteout flags to namei parameter descriptors
add function prototype for relookup()
Spruce up number formatting.
Reviewed by: davidg & bde
Jeffrey Hsu [Mon, 11 Mar 1996 02:24:39 +0000 (02:24 +0000)]
Merge in Lite2: buf fix with comparison of wrong field against EXTPROC.
Did not accept change of second argument to ioctl from int to u_long.
Reviewed by: davidg & bde
Jeffrey Hsu [Mon, 11 Mar 1996 02:23:33 +0000 (02:23 +0000)]
Merge in Lite2: add function prototype.
Note: Lite2 struct sysent changes need to go in FreeBSD sysent.h instead.
Leave out prototype for nosys() until convert makesyscalls.sh
over to Lite2 format, if we ever do so.
Reviewed by: davidg & bde
Jeffrey Hsu [Mon, 11 Mar 1996 02:21:04 +0000 (02:21 +0000)]
Merge in Lite2: add function prototypes
remove bogus function prototype for issig()---no such function
fix comment
Lite2 changed type of ps_code from int to long. We change it to u_long
to make it consistent w/ its usage in kern_sig.c.
Did not accept type change to ps_addr field. Delete it instead as it is
not used anywhere.
Reviewed by: davidg & bde
Jeffrey Hsu [Mon, 11 Mar 1996 02:20:13 +0000 (02:20 +0000)]
Merge in Lite2: cosmetic indentation change.
We already have the other Lite2 changes, which consists of additional
function prototypes.
Reviewed by: davidg & bde
Jeffrey Hsu [Mon, 11 Mar 1996 02:19:02 +0000 (02:19 +0000)]
Merge in Lite2: use fixed-width types.
Did not accept changes to types of off_t and pid_t. See
<machine/ansi.h> for explanation.
Did not accept changes to major and minor macros upon bde's review.
These changes are unnecessary.
Did not accept type change to fd_mask upon bde's review.
This change is unnecessary as long as sizeof(fd_mask) divides FD_SETSIZE.
Reviewed by: davidg & bde
Jeffrey Hsu [Mon, 11 Mar 1996 02:17:30 +0000 (02:17 +0000)]
Merge in Lite2: LIST replacement for f_filef, f_fileb, and filehead.
Did not accept change of second argument to ioctl from int to u_long.
Reviewed by: davidg & bde
Jeffrey Hsu [Mon, 11 Mar 1996 02:16:19 +0000 (02:16 +0000)]
Merge in Lite2: no changes required. Just update CSRG id.
Our changes since Lite1 include all the added functionality of Lite2.
Reviewed by: davidg & bde
Jeffrey Hsu [Mon, 11 Mar 1996 02:14:16 +0000 (02:14 +0000)]
Merge in Lite2: clean up casts for architectures where the size of addresses
are bigger than the size of ints
add function prototypes
reorder some fields
Did not add prototype for m_reclaim(). It's only used in kern/uipc_mbuf.c and
is declared static there.
Reviewed by: davidg & bde
Jeffrey Hsu [Mon, 11 Mar 1996 02:13:32 +0000 (02:13 +0000)]
Merge in Lite2: stylistic changes to function prototypes
add comments
Did not accept change of second argument of ioctl prototype from int to u_long.
Did not merge in changes to fields in bdevsw and cdevsw.
Reviewed by: davidg & bde
Jeffrey Hsu [Mon, 11 Mar 1996 02:12:57 +0000 (02:12 +0000)]
Merge in Lite2: add function prototypes.
Did not accept prototypes for unp_attach(), unp_bind(), unp_connect(),
unp_detach(), unp_discard(), unp_disconnect(), unp_drop(),
np_gc(), unp_mark(), unp_scan(), and unp_shutdown().
They are used only in uipc_usrreq.c and declared static there.
Reviewed by: davidg & bde
Jeffrey Hsu [Mon, 11 Mar 1996 02:08:50 +0000 (02:08 +0000)]
Merge in Lite2: resolve manifest constant numbering in favor of least
required changes and also add parentheses around BUCKETINDX macro body.
Reviewed by: davidg & bde
Jeffrey Hsu [Mon, 11 Mar 1996 02:08:16 +0000 (02:08 +0000)]
Merge in Lite2: only update CSRG id---the one change made in Lite2
to move the key_t typedef to types.h has already been made in a
previous commit.
Reviewed by: davidg & bde
Jeffrey Hsu [Mon, 11 Mar 1996 02:04:27 +0000 (02:04 +0000)]
Merge in Lite2: rename B_APPENDWRITE to B_NEEDCOMMIT.
The other change to b_pfcent is no longer pertinent, since we've
deleted that field.
Reviewed by: davidg & bde
Mike Pritchard [Mon, 11 Mar 1996 00:22:28 +0000 (00:22 +0000)]
Only restrict the user from doing something like "mount /mnt /mnt"
for file system types that actually cause a panic (ufs, msdos, cd9660).
This makes /proc mountable again.
Peter Wemm [Sun, 10 Mar 1996 23:25:17 +0000 (23:25 +0000)]
Fix the vm_map_remove and vm_map_protect calls.. Somewhere along the
line, these had got (start, length) arguments instead of (start, end)
args. This could be the cause of Robert Sanders lockups with ZMAGIC
binaries.
Peter Wemm [Sun, 10 Mar 1996 22:42:16 +0000 (22:42 +0000)]
Move the elf linux_interp structure from the lkm stub to here so that it
can be referenced when the linux emulator is statically compiled into the
kernel.
Peter Wemm [Sun, 10 Mar 1996 22:37:34 +0000 (22:37 +0000)]
Fix some rounding problems.. In some (fairly rare) situtaions it mapped
one page too many, which caused obreak() to fail in vm_map_find() with
ENOMEM because of the conflicting page.
Peter Wemm [Sun, 10 Mar 1996 22:30:53 +0000 (22:30 +0000)]
Implement rudumentry support for the linux TIOC[SG]ETSERIAL ioctl's.
To complete this, some extra state has to be kept somewhere so that the
B38400 flag in Linux can be correctly translated to/from either 38400,
57600 or 115200.
Submitted by: Robert Sanders <rsanders@mindspring.com>
Peter Wemm [Sun, 10 Mar 1996 22:27:51 +0000 (22:27 +0000)]
Fix the getdents() emulation, the Linux ELF libraries use this, and
this code was not quite right (linux has a readdir and getdents syscall,
with the same args. readdir only returns one entry and uses a mutant
dirent structure. This code was also returning the mutant form for
getdents as well. My fault for missing this before.)
Søren Schmidt [Sun, 10 Mar 1996 08:42:54 +0000 (08:42 +0000)]
First attempt at FreeBSD & Linux ELF support.
Compile and link a new kernel, that will give native ELF support, and
provide the hooks for other ELF interpreters as well.
To make native ELF binaries use John Polstras elf-kit-1.0.1..
For the time being also use his ld-elf.so.1 and put it in
/usr/libexec.
The Linux emulator has been enhanced to also run ELF binaries, it
is however in its very first incarnation.
Just get some Linux ELF libs (Slackware-3.0) and put them in the
prober place (/compat/linux/...).
I've ben able to run all the Slackware-3.0 binaries I've tried
so far.
(No it won't run quake yet :)
Satoshi Asami [Sun, 10 Mar 1996 08:26:21 +0000 (08:26 +0000)]
Replace PATCH_PRFX with a more generic DIST_SUBDIR. If it is set to
"foo", what this does is:
(1) Put all distfiles and patchfiles in /usr/ports/distfiles/foo
(2) Go to ftp://ftp.freebsd.org/pub/FreeBSD/distfiles/foo when the
master site is down
When your port has a lot of dist/patchfiles, or has a file that does
not have a very port-specific name (e.g., "Makefile"), set this
variable instead of redefining DISTDIR. (If you redefine DISTDIR, (1)
will work but (2) will not.)
Justin T. Gibbs [Sun, 10 Mar 1996 07:12:49 +0000 (07:12 +0000)]
aic7870.c, ncr.c:
Cleanse the SCSI subsystem of its internally defined types
u_int32, u_int16, u_int8, int32, int16, int8.
Use the system defined *_t types instead.
Justin T. Gibbs [Sun, 10 Mar 1996 07:11:45 +0000 (07:11 +0000)]
bt.c, aic7xxx.c:
Cleanse the SCSI subsystem of its internally defined types
u_int32, u_int16, u_int8, int32, int16, int8.
Use the system defined *_t types instead.
aic7xxx.c:
Fix the reset code.
Instead of queing up all of the SCBs that timeout during timeout
processing, we take the first and have it champion the effort.
Any other scbs that timeout during timeout handling are given
another lifetime to complete in the hopes that once timeout
handing is finished, they will complete normally. If one of
these SCBs times out a second time, we panic and Justin tries
again.
The other major change is to queue flag aborted SCBs during timeout
handling, and "ahc_done" them all at once as soon as we have the
controller back into a sane state. Calling ahc_done any earlier
will cause the SCSI subsystem to toss the command right back at
us and the attempt to queue the command will conflict with what
the timeout routine is trying to accomplish.
The aic7xxx driver will now respond to bus resets initiated by
other devices.
Justin T. Gibbs [Sun, 10 Mar 1996 07:04:27 +0000 (07:04 +0000)]
aha1742.c:
Cleanse the SCSI subsystem of its internally defined types
u_int32, u_int16, u_int8, int32, int16, int8.
Use the system defined *_t types instead.