Commit Graph

5062 Commits

Author SHA1 Message Date
fenner
e994b234d9 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.
1996-03-11 17:11:23 +00:00
dg
a30b0a83b7 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).
1996-03-11 15:37:44 +00:00
dg
3f0638f73b Move or add #include <queue.h> in preparation for upcoming struct socket
changes.
1996-03-11 15:13:58 +00:00
nate
878cd16481 Bring in most of Bruce's prot_to_real() changes into the APM BIOS
startup code.

Reviewed by:  bde
1996-03-11 06:48:57 +00:00
hsu
533f8b5daa From Lite2: proc LIST changes
call kern_proc.c:procinit() to initialize LISTs
	call to usrinfoinit() subsumed by procinit()
Reviewed by:	davidg & bde
1996-03-11 06:14:38 +00:00
hsu
0c2c8ab30d For Lite2: proc LIST changes.
Reviewed by:	davidg & bde
1996-03-11 06:13:09 +00:00
hsu
0bb5cd954d For Lite2: proc LIST changes.
Reviewed by:	 davidg & bde
1996-03-11 06:11:43 +00:00
hsu
0f91f4d404 Merge in Lite2: LIST changes
stylistic changes to function prototypes
Note: sizeof(struct proc) is now exactly 256 bytes, no room to spare.
1996-03-11 06:10:11 +00:00
hsu
3efcd29606 From Lite2: proc LIST changes.
Reviewed by:	david & bde
1996-03-11 06:05:03 +00:00
hsu
633fd1e2eb From Lite2: proc LIST changes
stylistic changes to function prototypes
Reviewed by:	david & bde
1996-03-11 06:04:20 +00:00
hsu
7530dffb8e For Lite2: proc LIST changes.
Reviewed by:	david & bde
1996-03-11 05:55:56 +00:00
hsu
2c9ab500e5 Merge in Lite2: proc LIST changes.
Reviewed by:	david & bde
1996-03-11 05:52:50 +00:00
hsu
6cb9410e27 Merge in Lite2: proc LIST changes
64-bit fix for alpha
		add debugging code for locking
Reviewed by:	david & bde
1996-03-11 05:48:57 +00:00
gibbs
dc7847c8b9 Be more careful in how we set SCSICONF. It was possible for a controller
set to a device id above 7 to screw up the data fifo setting.
1996-03-11 02:49:48 +00:00
gibbs
0df55375d5 Disable the selection hardware before acknowledging a SELTO interrupt.
It seems the 7880 gets confused if you don't do this.
1996-03-11 02:48:41 +00:00
hsu
874d9fcc3f From Lite2: moved acct_process() prototype over to acct.h.
Reviewed by:	davidg & bde
1996-03-11 02:27:53 +00:00
hsu
25970c67b6 Merge in Lite2: add whiteout flags to namei parameter descriptors
add function prototype for relookup()
Spruce up number formatting.
Reviewed by:	davidg & bde
1996-03-11 02:25:04 +00:00
hsu
75f96d9948 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
1996-03-11 02:24:39 +00:00
hsu
a7fca45c2d From NetBSD: add #include <sys/acct.h> for acct_process() prototype.
Reviewed by:	davidg & bde
1996-03-11 02:24:21 +00:00
hsu
01944a6e02 From Lite2: add typedef for register_t.
Reviewed by:	davidg & bde
1996-03-11 02:23:56 +00:00
hsu
7bbd31a1e5 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
1996-03-11 02:23:33 +00:00
hsu
d648d47629 Merge in Lite2: use machine-independent types
add kernel function prototype
Reviewed by:	davidg & bde
1996-03-11 02:22:58 +00:00
hsu
51f4af99a7 Merge in Lite2: use machine-independent types.
Reviewed by:	davidg & bde
1996-03-11 02:22:40 +00:00
hsu
c8955bb47d Merge in Lite2: clean up function prototypes.
Did not accept change of second argument to ioctl from int to u_long.
Reviewed by:	davidg & bde
1996-03-11 02:22:23 +00:00
hsu
bd04871d98 From Lite2: change code parameter to u_long and initialize ps_sig.
Reviewed by:	davidg & bde
1996-03-11 02:22:02 +00:00
hsu
9db657649c Change type of code argument to sendsig from unsigned to u_long to make it
consistent w/ signalvar.h and kern_sig.c.
Reviewed by:	davidg & bde
1996-03-11 02:21:42 +00:00
hsu
04b13a4ef1 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
1996-03-11 02:21:04 +00:00
hsu
dc429a1d6b Merge in Lite2: cosmetic indentation change.
We already have the other Lite2 changes, which consists of additional
  function prototypes.
Reviewed by:	davidg & bde
1996-03-11 02:20:13 +00:00
hsu
cd28b440de 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
1996-03-11 02:19:02 +00:00
hsu
74c95b5d5b From Lite2: rename fs to vfs.
Reviewed by:	davidg & bde
1996-03-11 02:18:23 +00:00
hsu
5db5dfd0b6 Merge in Lite2: rename fs to vfs.
Reviewed by:	davidg & bde
1996-03-11 02:17:53 +00:00
hsu
4ce83d9416 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
1996-03-11 02:17:30 +00:00
hsu
986af46af9 Merge in Lite2: LIST replacement for f_filef, f_fileb, and filehead.
Reviewed by:	davidg & bde
1996-03-11 02:17:11 +00:00
hsu
0a73765170 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
1996-03-11 02:16:19 +00:00
hsu
0383f3291a Merge in Lite2: use fixed-width types.
Reviewed by:	davidg & bde
1996-03-11 02:15:32 +00:00
hsu
5f3df55ac5 Merge in Lite2: use fixed-width types
add POSIX compatibility
		add union fs defines
Reviewed by:	davidg & bde
1996-03-11 02:15:04 +00:00
hsu
c74a394f0f Merge in Lite2: fix comment
optimize TAILQ_INSERT_HEAD
Reviewed by:	davidg & bde
1996-03-11 02:14:38 +00:00
hsu
a5622ab030 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
1996-03-11 02:14:16 +00:00
hsu
19da57f42b 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
1996-03-11 02:13:32 +00:00
hsu
faf1845257 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
1996-03-11 02:12:57 +00:00
hsu
91ca84b595 Merge in Lite2: change manifest constant values for NOCRED and FSCRED
stylistic changes to function prototypes
Reviewed by:	davidg & bde
1996-03-11 02:11:48 +00:00
hsu
ec6f591451 Merge in Lite2: make timespec struct POSIX.4 compliant
stylistic changes to function prototypes
Reviewed by:	davidg & bde
1996-03-11 02:11:25 +00:00
hsu
34ab1838a5 Merge in Lite2: no changes necessary. Just update CSRG id.
Reviewed by:	davidg & bde
1996-03-11 02:10:41 +00:00
hsu
d467a785b9 Merge in Lite2: use fixed-width types.
Reviewed by:	davidg & bde
1996-03-11 02:10:14 +00:00
hsu
33fe412784 Merge in Lite2: remove u_long cast from B_MAGICMASK and B_DEVMAGIC
cosmetic changes to comments and number formatting
Reviewed by:	davidg & bde
1996-03-11 02:09:55 +00:00
hsu
ce9cd16aa4 Merge in Lite2: bump BSD date from 199306 to 199506.
Reviewed by:	davidg & bde
1996-03-11 02:09:24 +00:00
hsu
101cad8472 Merge in Lite2: sync up comments.
Reviewed by:	davidg & bde
1996-03-11 02:09:09 +00:00
hsu
a95231aa2e 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
1996-03-11 02:08:50 +00:00
hsu
cf9ae518ff 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
1996-03-11 02:08:16 +00:00
hsu
a678ba7c9f Merge in Lite2: use fixed-width types.
Reviewed by: davidg & bde
1996-03-11 02:07:37 +00:00