Commit Graph

7795 Commits

Author SHA1 Message Date
Gary Palmer b3b6adad1d *** empty log message *** 1995-04-28 22:23:19 +00:00
John Fieber f9e11b2a03 Move out of the obsolete FAQ directory into the handbook. 1995-04-28 19:48:56 +00:00
Andrey A. Chernov 0b51c95db2 Fix bugs:
cchars2 not used
can't set or report MIN or TIME == 255
TIOCSETD on wrong fd
PPPDISC is not reported
1995-04-28 19:29:30 +00:00
Peter Dufault 8312577eea Add ioctl calls for Freeze/Thaw. 1995-04-28 19:26:02 +00:00
Peter Dufault 72c59e2da5 Symoblic representation of mode pages 1995-04-28 19:25:17 +00:00
Peter Dufault 0d30b20ac9 Add "-m" command to read mode pages. Also add -z for freezing,
though the kernel changes aren't committed yet.
1995-04-28 19:24:39 +00:00
Peter Dufault c46c1a53eb Fix a few problems with the debugging output. Add a new "visit" function. 1995-04-28 19:23:51 +00:00
Andrey A. Chernov d86851edf5 Implement SLIOCSUNIT (set slip unit number) 1995-04-28 18:47:29 +00:00
Jordan K. Hubbard d9a50f903f Whoops! One of my automatics was initialized to garbage. Fix it. 1995-04-28 18:24:31 +00:00
Andrey A. Chernov d3cdb93dd8 Implement POSIX SAVED_IDS for setuid/setgid 1995-04-28 18:17:29 +00:00
Jordan K. Hubbard 790bacaa95 Remove piano. 1995-04-28 17:38:54 +00:00
Jordan K. Hubbard 79d5cc4044 Add piano. 1995-04-28 17:38:34 +00:00
Jordan K. Hubbard 943bfde5f9 Import the piano program again, except this time in the right location.
Submitted by:	Toshihiro Kanda <candy@kgc.co.jp>
1995-04-28 17:38:08 +00:00
Andrey A. Chernov 611d721e70 setre*(): simplify return scheme, pointed by Bruce 1995-04-28 17:00:27 +00:00
John Fieber 0a1195e737 The FAQ moves to its new home. 1995-04-28 16:36:02 +00:00
John Fieber dd8fd5aac1 The FreeBSD handbook finds a new home. 1995-04-28 16:19:59 +00:00
Jordan K. Hubbard 6db578a60b Pass X11BASE to all sub-makes. I need it for a port, and I daresay that
there are a lot of hardwired "/usr/X11R6" paths out there that could stand
to use it as well.
1995-04-28 15:40:37 +00:00
Peter Dufault a93d103fb4 Change to reflect new header file name. 1995-04-28 12:28:55 +00:00
Peter Dufault 62734e55e4 Rename "aio.h" to "dataacq.h" 1995-04-28 12:08:03 +00:00
Peter Dufault b74f75a231 Renamed "aio.h" as <sys/dataacq.h>. 1995-04-28 12:05:36 +00:00
Jordan K. Hubbard f8c191bd8e Add piano. 1995-04-28 09:30:54 +00:00
Søren Schmidt e5c5c58924 Added nsccons variable for use by pstat
Submitted by:	 ache
1995-04-28 09:10:56 +00:00
Søren Schmidt de4c8be3eb Corrected variable names for syscons support. 1995-04-28 09:08:18 +00:00
Bruce Evans af5b6e3f9d Remove chmod of pcaudio* to 666. Not everyone should be allowed to
play the speaker and consume 10-100% of the available cycles.

Remove chmods of sound devices to 666.  Use chmod to give the same security
holes.
1995-04-28 07:53:43 +00:00
Bruce Evans d45ae51059 Add cyclades serial devices cuac*, cuaic*, cualc*, ttyc*, ttyic* and ttylc*. 1995-04-28 07:39:21 +00:00
Satoshi Asami 2966c8b3da Japanese 106-keyboard.
Submitted by:	Nobuhiro Yasutomi <nobu@psrc.isac.co.jp>
1995-04-28 06:03:18 +00:00
Poul-Henning Kamp ca927fef5b Don't dereference NULL pointers. 1995-04-28 04:58:19 +00:00
Poul-Henning Kamp 4ccbee740d Told Makefile about manpage. 1995-04-28 04:52:33 +00:00
Poul-Henning Kamp f663de8187 Had a moment, wrote a manpage based on kprof's page. 1995-04-28 04:51:08 +00:00
Jordan K. Hubbard 2283d8e502 Use mtree -U instead of -u and put back error check. Thanks Rod! 1995-04-28 04:16:30 +00:00
Peter Dufault 657e73c4f5 Add National Instruments "LabPC" driver 1995-04-28 00:51:40 +00:00
Andrey A. Chernov 4843859879 Remove setr* hacks 1995-04-27 19:56:37 +00:00
Andrey A. Chernov b5c3f5e746 Remove setre* hacks, we have working thing now 1995-04-27 19:27:42 +00:00
Andrey A. Chernov 4bc8f31ff3 Implement setreuid/setregid according to SunOS manpage 1995-04-27 19:23:24 +00:00
Poul-Henning Kamp 886b0df400 New and improved version from the author.
Submitted by:	DI. Christian Gusenbauer <cg@fimp01.fim.uni-linz.ac.at>
1995-04-27 18:22:36 +00:00
John Fieber 7203d1e933 Silence -Wall. 1995-04-27 18:18:58 +00:00
Jordan K. Hubbard d0d3dac501 This will be the module that handles all media detection. 1995-04-27 18:05:10 +00:00
Jordan K. Hubbard ef42570d65 Latest raft of changes.
Added another couple of menu item types.

Reshuffled the menus and added a few more.  Sure wish I could figure out
how to initialize a menu with _one_ initializer rather than two! :(
1995-04-27 18:03:55 +00:00
John Fieber bc8b14f125 Added sgmls 1995-04-27 18:03:29 +00:00
Justin T. Gibbs a52deb6d1e Additions to support the WAITING_SCB list that the sequencer maintains.
It is the kernel driver's responsibility to do the list manipulation whenever
a selection timeout or a request sense occurs.

Print out the interrupt type that the device has been set to.  It seems that
one of the Asus motherboards botches this and David thought a diagnostic would
be nice.

Fix a bug in my diagnostic code that David found.

Reviewed by: Wcarchive and David Greenman
1995-04-27 17:47:17 +00:00
Justin T. Gibbs c28447da4c Restructure the arbitration loop to allow for reselections that win out over
the adapter's selections.  Many fast periferals were getting upset when
the sequencer decided to rearbitrate after the device had already won
arbitration.  This also forced the creation of a list threaded through
the SCBs (since we don't have enough space anywhere else) of commands that
are awaiting reselection.  This list is run down before any new transactions
from the input queue are allowed.  The list is appened to whenever we begin
a selection (simple case since the selecting device is always at the head)
and by the kernel driver whenever a request sense occurs.  In the common
case, the list is only one element long, but when a reselection wins out
over a selection and that reselection generates a request sense, the
outstanding selection required for the retreval of the sense code grows
the list.  On machines with many targets, this might cause the list to grow
large, so this solution, which will allow up to the maximum number of I/O
requests capible of the card elements in the list, was chosen.  The list
manipulation is trivial and adds three sequencer instructions of overhead
to the selection phase.

This fixes the "target busy" errors from micropolis drives and the bursty
I/O problem when performing I/O between a Quantum Grand Prix and any other
device.  I anticipate that this will correct many of the problems that
have been reported with this driver.

Reviewed by: Wcarchive and David Greenman
1995-04-27 17:44:27 +00:00
Garrett Wollman 003d29986d No sense in copying the hex[] array in each call to MDXEnd(), it's a
constant.  (There probably ought to be a single libc version of it.)
1995-04-27 16:05:51 +00:00
John Fieber 61614fe0ad The sgmls SGML parser. Support for our hypertext documents.
Reviewed by:	Paul Richards, Garrett Wollman
1995-04-27 16:03:47 +00:00
Jordan K. Hubbard 4e278bdb76 Here is my first "framework" commit of the new sysinstall. There is a LOT
more to come in the next 24 hours, this is just the first stable result of
8 hours of hacking so far.  The specification format for menus is pretty
much hammered out and the beginnings (very humble) of the doc hierarchy
are present for an example.  It should be quite easy to add a lot more
menus quickly to this since I did go somewhat out of my way to make the
framework easy to work with.  This is NOT the glorious semi-graphical
sysinstall (or whatever its name will be) that the install-geeks are working
on, this is simply the "son of sysinstall" I've been promising to write in
the interim for 2.0.5 and 2.1R (super install doesn't come until 2.2R).
1995-04-27 12:50:35 +00:00
Jordan K. Hubbard 278ea7ecee Don't bother checking the return status of the mtree command - it returns
non-zero stats when it changes things, too.
1995-04-27 11:33:08 +00:00
Jordan K. Hubbard 639fb258f9 Add libftp to list of beforeinstall targets in the include rule.
Submitted by:	John Hay <jhay@mikom.csir.co.za>
1995-04-27 11:25:48 +00:00
Jordan K. Hubbard 9d69574dbc Close PR:
>Number:         368
>Category:       bin
>Synopsis:       Lpd doesn't log errors after failed exec
>Description:

If an exec done by lpd fails, nothing is sent to the system log
indicating what went wrong.  This is because lpd closes all of
the file descriptors before doing the exec, thus closing the syslog
file descriptor in the process.
[Fix applied]
Submitted by:	pritc003@maroon.tc.umn.edu
1995-04-27 04:56:10 +00:00
Andrey A. Chernov d3e6b9f393 Fix bug:
When hostname len > 8, name replaced with dot notation when -u flag
not specified (default case).
Use _PATH_* for utmp/wtmp.
1995-04-26 22:33:15 +00:00
Paul Traina 5e052869fc Add queue.h include file to all the TPIP code. 1995-04-26 21:32:42 +00:00
Bill Paul 456ebbf8f5 ypbind.c: Major overhaul.
- Moved to a more client-driven model. We aggressively attempt to keep
the default domain bound (as before) but we give up on non-default
domains if we lose contact with a server and fail to get a response
after one round of broadcasting. This helps drastically reduce the
amount of network bandwitdh that ypbind consumes: if a client references
the secondary domain at some later point, this will prod ypbind into
establishing a new binding anyway, so continuously broadcasting without
need is pointless.

Note that we still actively seek out a binding for our default domain
even if no client program has queried us yet. I'm not exactly sure if
this matches SunOS's behavior or not, but I decided to do it this way
since we can get into all sorts of trouble if our default domain comes
unbound. Even so, we're still much quieter than we used to be.

- Removed a bunch of no-longer pertinent comments and a couple of
chunks of #ifdef 0'ed code that no longer fit in to the new layout.

- Theo deRaadt must have become frustrated with the callback mechanism
in clnt_broadcast(), because he shamelessly stole the clnt_broadcast()
code right out of the RPC library and hacked it up to suit his needs.
(Comments and all! :)

I can understand why: clnt_broadcast() blocks while awaiting replies.
Changing this behavior requires surgery. However, you can work around
this: fork the broadcast into a child process and relay the results
back to the parent via a pipe. (Careful obervation has shown that the
SunOS ypbind forks children for broadcasting too, though I can only
guess what sort of interprocess communication it uses. pipe() seems to
do the job well enough.)

This may seem like the long way around, but it's not really that
hard to implement, and I'd prefer to use documented RPC library functions
wherever possible. We're careful to limit the number of simultaneous
broadcasters to avoid swamping the system (the current limit is 5).
Each clnt_broadcast() call only sends out a small number of packets
at increasing intervals. We're also careful not to spawn more than one
bradcaster for a given domain.

- Used clntudp_bufcreate() and clnt_call() to implement a ping()
function for directly querying a particular server so that we can
check if it's still alive. This lets me completely remove the old
bradcasting code and use actual RPC library calls instead, at the
cost of more than a few handfulls of torn-out hair. (Make no mistake
folks: I *HATE* RPC.) Currently, the ping interval is one minute.

- Fixed another potential 'nfds too big for select()' bug: use
_rpc_dtablesize() instead of getdtablesize().

- Quieted gcc -Wall a bit.

- Probably a bunch of other stuff that I've forgotten.

ypbind.8:

- Updated man page to reflect modifications.

ypwhich.c:

- Small mind-o fix from last time: decode error results from
ypbind correctly (*groan*)

yplib.c:

- same as above

- Change behavior of _yp_dobind() a little: if we get back a 'Domain
not bound' error for a given domain, retry a few times before giving
up and passing the error back to the caller. We have to sleep for a
few seconds between tries since the 'Domain not bound' error comes
back immediately (by repeatedly looping, we end up pounding on ypbind).
We retry at most 20 times at 5 second intervals. This gives us a full
minute to get a response. This seems to deviate a bit from SunOS
behavior -- it appears to wait forever -- but I don't like the idea
of perpetually hanging inside a library call.

Note that this should fix the problems some people have with bindings
not being established fast enough at boot time; sometimes amd is started
in /etc/rc after ypbind has run but before it gets a binding set up. The
automounter gets annoyed at this and tends to exit. By pausing ther YP
calls until a binding is ready, we avoid this situation.

- Another _yp_dobind() change: if we determine that our binding files
are unlocked or nonexistent, jump directly to code that pokes ypbind
into restablishing the binding. Again, if it fails, we'll time out
eventually and return.
1995-04-26 19:03:16 +00:00