Commit Graph

11558 Commits

Author SHA1 Message Date
peter
0c52e3131d Update sysv_*.c to get their argument definitions from sysproto.h 1995-12-15 05:00:31 +00:00
peter
c381ba6f3f Regenerated from syscalls.master... 1995-12-15 04:46:32 +00:00
peter
08dbf8bf0e Add the direct sysv shm/sem/msg system calls, in the same way as NetBSD.
This costs very little, we gain prototypes for the calls from the linux
emulator, and this is one less thing in the way of NetBSD binary support.
1995-12-15 04:36:01 +00:00
peter
d50bcb6f79 move typedef for key_t from sys/ipc.h to sys/types.h, as suggested in the
comment in ipc.h.  This is so that prototypes for the sysv ipc functions
can be processed without having to #include <sys/ipc.h> in everything..
1995-12-15 04:22:42 +00:00
wpaul
8ac305aa1f More XDR routine cleanups. These three programs should be the only
ones that require this: the others call the yplib functions in libc.
1995-12-15 03:39:46 +00:00
peter
af871c6851 Silence a harmless warning... 1995-12-15 03:36:25 +00:00
peter
9d6192fef3 Initial attempt at getting Linux QMAGIC shared lib support. I have
successfully run linux netscape 2.0b3 with a QMAGIC ld.so and libc/libm
that I found on some linux machine that I _think_ is running slackware 3.0.

There are still problems..  ld.so claims the libraries are the wrong
format, but it still runs anyway.. :-/  The QMAGIC ld.so also screams
about needing ld.so.cache, and running a linux ldconfig is quite
educational.  You soon learn to run "chroot /compat/linux /bin/ldconfig"
where ldconfig is living in /compat/linux/bin. :-]

(Lets just say that it puts loads of symlinks in /usr/lib otherwise :-)
1995-12-15 03:28:38 +00:00
wpaul
f98905c343 Clean up a few things left dangling after the last commit. The new
XDR routines auto-generated by rpcgen don't quite match the format of
the original ones even though tey have the same names (that was one of
the things wrong with the old XDR routines).
1995-12-15 03:26:40 +00:00
peter
8050b72571 Clean up some warnings by using the generated structures in <sys/sysproto.h>
for passing to the bsd system calls, rather than inveninting our own
equivalent structures.
1995-12-15 03:06:57 +00:00
peter
224077960e Oops. I forgot the change to this file for supporting static configuration
of the linux emulator.
1995-12-15 02:57:40 +00:00
bde
91166d8cf2 Changed the maximum output queue count from (TTMAXHIWAT + 200) to
(TTMAXHIWAT + OBUFSIZ + 100) in case someone changes OBUFSIZ.  200
was to allow 100 above high water for ordinary writes and another
100 for kernel printfs.

Increased the reserved output queue count from 512 to the maximum
output queue count.  This prevents exhaustion of clists and increases
the output throughput for 8 cy lines by almost a factor of 2 (on
a system where there aren't many other open ttys so clists become
exhausted after about 4 active lines (or earlier if TTMAXHIWAT is
increased :-]).

ttwrite() behaves very badly when clists are exhausted:
(1) it sleeps on lbolt instead of on TSA_OLOWAT(tp).
    This could be fixed adequately by sleeping on TSA_OLOWAT(tp).
    The nonzero reserved count guaratees that space will become
    available independent of other ttys, and a reserved count
    of 512 is barely enough for efficiency.
(2) it drops output if space runs out in the middle of special
    output processing.  This is too hard to fix without hardening
    the reserved count.  The watermark processing guarantees that
    space doesn't run out only if the advertised space is guaranteed.

Increasing the reserved output queue count defeats the point of
dynamic allocation of clists.  Previously, about 2K of memory per
tty was reserved (the raw queue was already reserved).  Now, about
3.5K is reserved.  Reserving everything would take a whole 0.5K
more.
1995-12-15 02:18:06 +00:00
bde
dc86db9afc Disabled the sleep in ttyflush(). It can't work in general because
ttyflush() might be called from an interrupt handler.  This fixes
panics in IXOFF mode at the cost of more failures to send the START
character to exit from IXOFF mode.
1995-12-15 01:01:00 +00:00
bde
9d9332ea47 Completed function declarations and/or added prototypes and/or added
#includes to get prototypes.
1995-12-15 00:54:32 +00:00
bde
7a861ac077 Removed unused #includes. 1995-12-15 00:40:38 +00:00
bde
466436fc55 Removed duplicated #includes of <sys/conf.h> 1995-12-15 00:29:31 +00:00
bde
5efea6ee6a Completed function declarations and added prototypes. Sorted prototypes. 1995-12-15 00:11:27 +00:00
bde
ca97a3e99c Added a prototype. Merged prototype lists. 1995-12-14 23:59:04 +00:00
bde
2ea7fe5b03 Added a prototype. 1995-12-14 23:50:54 +00:00
bde
104fb3494b Moved some more prototypes outside of ifdefs and grouped them together. 1995-12-14 23:35:17 +00:00
bde
996884f2d5 Completed function declarations and added prototypes. Sorted prototypes. 1995-12-14 23:26:53 +00:00
bde
12d9c589ec Added a prototype. 1995-12-14 23:23:48 +00:00
bde
64aab4356c Restored formatting from the old printf/printf.c. 1995-12-14 23:19:36 +00:00
bde
29203d43e3 Fixed staticization of DDB functions. 1995-12-14 23:01:51 +00:00
bde
17e4e14428 Nuked ambiguous sleep message strings:
old:				new:
	netcls[] = "netcls"		"soclos"
	netcon[] = "netcon"		"accept", "connec"
	netio[] = "netio"		"sblock", "sbwait"
1995-12-14 22:51:13 +00:00
bde
000052aa20 Restored a vm #include. 1995-12-14 22:35:45 +00:00
bde
72a113a4d5 Restored unused function ttrstrt(). It would be used if the low level
drivers supported inter-character delays.
1995-12-14 22:32:52 +00:00
bde
ee0784f15b Removed my devsw access functions [un]register_cdev() and
getmajorbyname() which were a better (sigh) temporary interface to
the going-away devswitches.

Note that SYSINIT()s to initialize the devswitches would be fatal
in syscons.c and pcvt_drv.c (and are bogus elsewhere) because they
get called independently of whether the device is attached; thus
devices that share a major clobber each other's devswitch entries
until the last one wins.

conf.c:
Removed stale #includes and comments.
1995-12-14 22:03:12 +00:00
bde
3aac17aa50 Fixed the type of some sysinit functions. 1995-12-14 20:21:58 +00:00
bde
8ae93048b2 Included <sys/conf.h> and updated to indirect devswitches so that
this compiles again, and added a prototype.
1995-12-14 20:16:15 +00:00
bde
964118393b Moved prototypes to better places.
Fixed indentation of some function headers.
1995-12-14 19:51:15 +00:00
bde
a1da7ed79e Added prototypes. 1995-12-14 19:44:29 +00:00
jfieber
8a9992dc18 Small formatting glitch in basic.sgml.
Removed ftp.cybernetics.net from mirrors, added ftp.cs.uncc.edu.
1995-12-14 19:42:35 +00:00
bde
8547a87e7f Declared functions as static in their definitions as well as in their
prototypes.
1995-12-14 19:38:40 +00:00
bde
fbbd7b144b The change of [cb]devsw was missed here. 1995-12-14 19:13:36 +00:00
bde
bbec6cd258 Restored lost prototypes. 1995-12-14 19:04:09 +00:00
julian
c6619fedf2 another case where cdevsw becoming a pointer makes it neccesary to
check if it's NULL
1995-12-14 18:26:55 +00:00
bde
9dbfe2cd63 Don't use the normal `.Sh' indentation of 5 for the style guide. It
screws up the indentation and the style guide is half about indentation.
1995-12-14 18:26:31 +00:00
bde
045f2b0539 Fixed manual section number. 1995-12-14 18:19:40 +00:00
bde
979e2e5a0b Added `9' to ${SECTIONS}. 1995-12-14 18:13:14 +00:00
peter
ae7714f542 GENERIC/LINT: Remove redundant quoting on some option lines.
LINT: add a couple of new/missing/undocumented options
files.i386: add linux code so that you can compile a kernel with static
linux emulation ("options LINUX")
i386/*: use #if defined(COMPAT_LINUX) || defined(LINUX) to enable static
support of linux emulation (just like "IBCS2" makes ibcs2 static)

The main thing this is going to make obvious, is that the LINUX code
(when compiled from LINT) has a lot of warnings, some of which dont look
too pleasant..
1995-12-14 14:35:36 +00:00
peter
b5de650a4b Update the skeleton DEVFS code to match reality a little closer.. :-) 1995-12-14 14:29:10 +00:00
peter
b257e21ac4 *hack alert*! :-) This adds an option to the MFS_ROOT code so that it
is possible to boot a kernel with an empty in-core MFS image, and have
it load the image from floppy directly.  This is admittedly a hack and
would be better replaced by a self-loading ram-disk.
1995-12-14 14:25:03 +00:00
peter
993f341fb5 Change the generic "btintr" function's name to "bt_intr" - the same as
all the other bt_XXX() functions in i386/scsi/bt*.

This the important effect of forcing a link error if the user is
still using the old "vector btintr" which is dangerously wrong
after Justin's updates to the driver.

The correct isa vector line for the bt driver is "vector bt_isa_intr".
Justin mentioned this in the commit message and updated LINT and
GENERIC.  This change is to enforce that.. :-)
1995-12-14 14:19:19 +00:00
phk
4076d9c378 Add a slightly edited version of the style document. 1995-12-14 10:50:27 +00:00
phk
784e009797 Add man9 to trees. 1995-12-14 10:11:24 +00:00
phk
6fefb7c92d Add a section 9 about the kernel to out man pages.
Please help fill this out !
1995-12-14 10:08:31 +00:00
phk
50d195499f Another mega commit to staticize things. 1995-12-14 09:55:16 +00:00
phk
c16e905bcf A Major staticize sweep. Generates a couple of warnings that I'll deal
with later.
A number of unused vars removed.
A number of unused procs removed or #ifdefed.
1995-12-14 08:32:45 +00:00
phk
b983e4b613 Two x87 emulators as LKMs.
If somebody with the right HW would make the change to /etc/rc to use
this, we could rip MATH_EMULATE from GENERIC...
1995-12-14 08:26:14 +00:00
phk
4f5f364765 Make math_emulators LKMable. 1995-12-14 08:21:33 +00:00