chuck [Sat, 20 Jan 1996 02:53:22 +0000 (02:53 +0000)]
ypserv_xdr, as generated by rpcgen from yp.x with one major exception.
in xdr_ypresp_key_val() invert the order of loading the key and value
(rpcgen says [1] stat, [2] key, [3] value, but the data on the wire
comes in as [1] stat, [2] val, [3] key... you can't fix this in yp.x
because if you invert the ordr in yp.x not only does it invert the order
in ypserv_xdr.c, but it also inverts it in the structure in yp.h which
cancels out the inversion in ypserv_xdr.c. i guess this means it
is not possible to have a yp.x that descrives the YP protocol properly?).
***NOTE*** this file is also needed because some of the YP functions in
libc are broken. For example, compare src/lib/libc/yp/xdryp.c's version
of xdr_domainname() to the one in this file generated by rpcgen. Note
that xdryp.c calls:
if (!xdr_string(xdrs, &objp, YPMAXDOMAIN)) { /* xdryp.c */
while ypserv_xdr.c (generated by rpcgen) calls:
if (!xdr_string(xdrs, objp, YPMAXDOMAIN)) { /* rpcgen */
(note the lack of "&" in the second line). Clearly libc is wrong and
needs to be fixed (XXX). (Of course changing libc could break other
YP stuff, which is why I haven't attemped it... :) ) When libc is
fixed, it should be possible to phase out this file, I think.
chuck [Sat, 20 Jan 1996 02:42:19 +0000 (02:42 +0000)]
major revision and clean up by Chuck Cranor (i.e. me):
- convert to new yplog() function and clean up log message formats
- remove transp args from all _svc functions since you can get it
from rqstp->rq_xprt, and rpcgen seems to favor this format
- delete all the calls to svc_sendreply() and svc_freeargs() as
this can be done in one place in ypserv.c (except for the "all"
request which forks off a child process)
- avoid possible sprintf() buffer overflows by using snprintf()
- use MAXPATHLEN, rather than a hardcoded 255.
- eliminate un-needed static variables
- avoid possible off by one buffer overflow in tid/prog/port and use
snprintf() just to be sure.
- random code cleanup and simplification
chuck [Sat, 20 Jan 1996 00:47:01 +0000 (00:47 +0000)]
major cleanup by Chuck Cranor
- use queue.h rather than do by hand
- fix up logging to use new yplog
- fix a few off by one errors
- don't double malloc the DBM structure
- avoid possible sprintf buffer overflows
- random code cleanup
chuck [Sat, 20 Jan 1996 00:43:43 +0000 (00:43 +0000)]
Major reworking of ypserv.c by me: this program actually works now!!
highlights:
- fixed yp first call (uses ypreq_nokey rather than ypreq_key, despite
what yp.x says)
- cleanup of looging
- removed SVCXPRT args to "local" since you can get them from svc_req
and this makes it look more like rpcgen's output
- use new yplog()
- add call to db init
chuck [Sat, 20 Jan 1996 00:40:53 +0000 (00:40 +0000)]
new yp.h, as generated by rpcgen.
chuck [Sat, 20 Jan 1996 00:40:15 +0000 (00:40 +0000)]
minor clean up
chuck [Sat, 20 Jan 1996 00:38:49 +0000 (00:38 +0000)]
use new yplog function
chuck [Sat, 20 Jan 1996 00:37:58 +0000 (00:37 +0000)]
fixed string formatting, minor cleanup
chuck [Sat, 20 Jan 1996 00:36:24 +0000 (00:36 +0000)]
main makefile
chuck [Sat, 20 Jan 1996 00:35:27 +0000 (00:35 +0000)]
fixes: install Makefile.yp, Makefile.main
chuck [Sat, 20 Jan 1996 00:33:34 +0000 (00:33 +0000)]
various changes (from me):
- don't store null in the database
- use MAXPATHLEN
- avoid sprintf() buffer overflows
- minor cleanups
chuck [Sat, 20 Jan 1996 00:30:35 +0000 (00:30 +0000)]
Total re-write of yplog by Chuck Cranor
(made it more printf like)
chuck [Sat, 20 Jan 1996 00:29:39 +0000 (00:29 +0000)]
fix: adjust private keys to exclude the null in their size
(we don't store nulls in the db [any more])
chuck [Sat, 20 Jan 1996 00:28:57 +0000 (00:28 +0000)]
cleanup: use snprintf() to prevent buffer overflow
deraadt [Thu, 18 Jan 1996 01:44:38 +0000 (01:44 +0000)]
update from netbsd
hvozda [Tue, 16 Jan 1996 20:12:58 +0000 (20:12 +0000)]
Last of the glue and devices for for PCMCIA support from Stefan Grefen
<grefen@convex.com> with modifications by John Kohl <jtk@kolvir.blrc.ma.us>
deraadt [Tue, 16 Jan 1996 08:24:49 +0000 (08:24 +0000)]
add the freebsd joystick driver; converted by matthieu@abel.laas.fr;
netbsd pr#1916
deraadt [Tue, 16 Jan 1996 07:22:13 +0000 (07:22 +0000)]
the yppasswd command is not needed. the user should always let the
passwd command figure out where their password is located. if they
really need to change a specific one, they can use the flags - bet
noone ever needs to use that.
deraadt [Tue, 16 Jan 1996 01:25:38 +0000 (01:25 +0000)]
from netbsd:
Relax checking of minor version number in `findhint()'. Also use the
directories from the hints (v.2) file for directory traversing.
This should take care of PR#1146.
deraadt [Tue, 16 Jan 1996 01:22:20 +0000 (01:22 +0000)]
update from netbsd
deraadt [Tue, 16 Jan 1996 01:20:31 +0000 (01:20 +0000)]
from netbsd:
Honor cache request and add the SCSI tape device configuration page.
Fixes PRs 807, 1201, and 1705. From John Kohl <jtk@kolvir.blrc.ma.us>.
deraadt [Tue, 16 Jan 1996 01:01:06 +0000 (01:01 +0000)]
from netbsd; add doshutdownhooks()
deraadt [Tue, 16 Jan 1996 01:00:44 +0000 (01:00 +0000)]
add ahe support
deraadt [Tue, 16 Jan 1996 00:59:40 +0000 (00:59 +0000)]
sync with netbsd
deraadt [Tue, 16 Jan 1996 00:59:04 +0000 (00:59 +0000)]
from netbsd:
Use ${BINOWN} and ${BINGRP} per Arne H. Juul <arnej@ikke.idt.unit.no>
in PR #705. Also, clean up some stuff left over from HP-BSD.
deraadt [Tue, 16 Jan 1996 00:58:18 +0000 (00:58 +0000)]
from netbsd:
The changes frpm Paul Goyette with respect to the driver trace require
DBG_PID to be defined to an interger value....make it so.
deraadt [Tue, 16 Jan 1996 00:57:48 +0000 (00:57 +0000)]
from netbsd:
Correct the instructions regarding the password database in
~ftp/etc, from Rob Windsor <windsor@ksu.ksu.edu> in PR #544.
deraadt [Tue, 16 Jan 1996 00:57:11 +0000 (00:57 +0000)]
from netbsd; Use err() & warn()
niklas [Mon, 15 Jan 1996 22:15:13 +0000 (22:15 +0000)]
Don't feed ${DEBUG} to the assembler, it doesn't take those args
anyway.
hvozda [Mon, 15 Jan 1996 21:44:56 +0000 (21:44 +0000)]
Whoops! Need this file to make config happy...
niklas [Mon, 15 Jan 1996 21:40:37 +0000 (21:40 +0000)]
Fix typo so two -L options can be fed to rcsdiff.
deraadt [Mon, 15 Jan 1996 21:39:06 +0000 (21:39 +0000)]
remove dup vm86 defn
deraadt [Mon, 15 Jan 1996 21:34:08 +0000 (21:34 +0000)]
add aic7xxx driver
deraadt [Mon, 15 Jan 1996 20:12:13 +0000 (20:12 +0000)]
from netbsd; Add capability to read archives (from Thomas Eberhardt; PR#497)
deraadt [Mon, 15 Jan 1996 20:11:33 +0000 (20:11 +0000)]
from netbsd; More descriptive message for printer status. Addresses PR #509
deraadt [Mon, 15 Jan 1996 20:09:18 +0000 (20:09 +0000)]
from betbsd:
Allow override of nroff program, requested by Masanobu Saitoh
<msaitoh@spa.is.uec.ac.jp> in PR #1741.
deraadt [Mon, 15 Jan 1996 20:06:59 +0000 (20:06 +0000)]
from netbsd:
Document the EACCES errno value as returned by sendmsg(2), per
Ted Mellon <mellon@fugue.com>, PR #1093.
deraadt [Mon, 15 Jan 1996 20:04:48 +0000 (20:04 +0000)]
Remove vnode_if.[ch] during a "make clean", per PR#536 from
Dan Carosone <danielce@ee.mu.oz.au>.
briggs [Mon, 15 Jan 1996 12:30:11 +0000 (12:30 +0000)]
Updates from Kelly Campbell <camk@ksu.ksu.edu> for some ROM addresses.
hvozda [Mon, 15 Jan 1996 01:55:05 +0000 (01:55 +0000)]
define pcmciabus for PCMCIA support
hvozda [Mon, 15 Jan 1996 01:52:09 +0000 (01:52 +0000)]
config glue for PCMCIA support
deraadt [Mon, 15 Jan 1996 01:41:24 +0000 (01:41 +0000)]
from netbsd:
Use WTDBPRINT() instead of DEBUG() for driver debugging printf()s..
Fixes PR #1927, from Erik Bertelsen <erik@arhpc214.uni-c.dk>
deraadt [Mon, 15 Jan 1996 01:41:02 +0000 (01:41 +0000)]
update from netbsd
deraadt [Mon, 15 Jan 1996 01:39:42 +0000 (01:39 +0000)]
from netbsd:
Add the "ahe" driver, autoconfiguration support for the aic7xxx-based
Adaptec 2[78]4x SCSI controllers, from Michael Graff <explorer@flame.org>.
Fixes PR #1594 from Noriyuki Soda <soda@sra.co.jp> in a different way.
deraadt [Mon, 15 Jan 1996 01:13:45 +0000 (01:13 +0000)]
from netbsd:
Cross-reference fsinfo(8) and mk-amd-map(8), as per PR #1057.
From David Brownlee <abs@mono.city.ac.uk>.
deraadt [Mon, 15 Jan 1996 01:12:11 +0000 (01:12 +0000)]
from netbsd:
Handle multichar comment and quote delimiters (up to 5 characters, per the
manual page). Takes care of PR#485.
deraadt [Mon, 15 Jan 1996 01:11:16 +0000 (01:11 +0000)]
from netbsd:
Document the -follow option, per David Brownlee <abs@mono.city.ac.uk>
in PR #1113.
deraadt [Mon, 15 Jan 1996 01:10:17 +0000 (01:10 +0000)]
from netbsd:
Don't read the network address as an alias when there isn't whitespace
after the network address. Closes PR 1940.
deraadt [Mon, 15 Jan 1996 01:07:49 +0000 (01:07 +0000)]
atari specific libsa shrinkage is nasty
deraadt [Mon, 15 Jan 1996 01:07:15 +0000 (01:07 +0000)]
proto memcpy
deraadt [Mon, 15 Jan 1996 01:06:44 +0000 (01:06 +0000)]
from netbsd: The read_inode() function now returns the result of the
strategy function instead of success in all cases
deraadt [Mon, 15 Jan 1996 00:58:16 +0000 (00:58 +0000)]
from netbsd:
Balance calls to disk_busy() and disk_unbusy() properly to avoid
dk_busy < 0 panics. Count seeks.
deraadt [Mon, 15 Jan 1996 00:56:27 +0000 (00:56 +0000)]
from netbsd; Make a small attempt to deal better with VM86 mode in GDB
deraadt [Mon, 15 Jan 1996 00:16:32 +0000 (00:16 +0000)]
sync with netbsd
hvozda [Mon, 15 Jan 1996 00:08:50 +0000 (00:08 +0000)]
Register defs for Intel 82365 PCMCIA controller
hvozda [Mon, 15 Jan 1996 00:05:03 +0000 (00:05 +0000)]
ISA <-> PCMCIA glue for PCMCIA support.
hvozda [Sun, 14 Jan 1996 23:10:30 +0000 (23:10 +0000)]
New devices for PCMCIA support
briggs [Sun, 14 Jan 1996 21:44:26 +0000 (21:44 +0000)]
From NetBSD: (required for last change to scsi_base.c in case we get
"command aborted" status)
Handle cases like the following:
- controller calls scsi_done() with error XS_TIMEOUT
- scsi_done() calls sddone()
- sddone() calls disk_unbusy()
- scsi_done() calls controller to retry command (missing the
call to disk_busy())
- controller calls scsi_done()
- scsi_done() calls sddone()
- sddone() calls disk_busy(), which panics because of the imbalance.
Bug noticed by Leo Weppleman, who also suggested this fix; pass an additional
boolean argument ("complete") to the device's "done" routine, with a
value of `0' passed from the previous call to "done", and add an additional
call to "done" when the xfer resources are freed.
briggs [Sun, 14 Jan 1996 21:34:43 +0000 (21:34 +0000)]
Retry a command when we get a command aborted message for it.
This might be a transient error. Do complain about it, though.
briggs [Sun, 14 Jan 1996 21:29:28 +0000 (21:29 +0000)]
Preliminary cut at SONIC driver. Quadra only at this point.
Still apparently not getting interrupts for some reason, so this is more
or less just a checkpoint.
niklas [Sun, 14 Jan 1996 21:20:10 +0000 (21:20 +0000)]
Use dma_cachectl instead of cachectl when writing into the kernel text
segment. Ordinary cachectl is for userlevel virtual addresses.
briggs [Sun, 14 Jan 1996 21:15:21 +0000 (21:15 +0000)]
from netbsd: more of PR 1931. Fix code that's not compiled unless DEBUG.
briggs [Sun, 14 Jan 1996 21:11:46 +0000 (21:11 +0000)]
from netbsd -- remove some more dead code (PR #1931)
briggs [Sun, 14 Jan 1996 21:06:29 +0000 (21:06 +0000)]
from netbsd--remove bogus code.
briggs [Sun, 14 Jan 1996 20:58:54 +0000 (20:58 +0000)]
from netbsd: Fixes from PR #1931.
briggs [Sun, 14 Jan 1996 20:57:35 +0000 (20:57 +0000)]
from netbsd:
Patch to at least recognise FOCUS EtherLAN. From Erik Bertelson
<erik@sockdev.uni-c.dk>
briggs [Sun, 14 Jan 1996 20:51:08 +0000 (20:51 +0000)]
sync w/ netbsd: splzs -> spl4 from splhigh. Remove bogus DEBUG.
niklas [Sun, 14 Jan 1996 16:05:23 +0000 (16:05 +0000)]
Add hooks for custom audio players. This is the original untouched
kernel diffs from Tim Newsham <newsham@hookomo.aloha.net> found in his
well-known audio LKM kit.
niklas [Sun, 14 Jan 1996 12:21:33 +0000 (12:21 +0000)]
netbsd -> bsd
niklas [Sun, 14 Jan 1996 01:27:17 +0000 (01:27 +0000)]
Redid formatting with mandoc macros. Added an "ERRORS" section.
davem [Sun, 14 Jan 1996 00:39:18 +0000 (00:39 +0000)]
The sun mmu is very broken, and we all can thank crashme for
helping me find this bug. On execution of an atomic load/store instruction
the chip will only say that a read fault is happening, we then load up a
readonly translation to the accessed page, and we get the fault again still
showing a read-fault. We end up faulting in a loop forever and the process
appears to be completely stuck. The algorithm to fix this problem goes like
this. If we get a non-text fault, and the fault type is VM_PROT_READ, and
the SER_PROT bit is set in the syncronous fault error register, we take
a peek at the instruction at pc. If this instruction is indeed an ldstub
or a swap variant we or in VM_PROT_WRITE to the fault type.
niklas [Sun, 14 Jan 1996 00:17:18 +0000 (00:17 +0000)]
Fix typo
briggs [Sat, 13 Jan 1996 16:14:22 +0000 (16:14 +0000)]
Don't issue a linked command to check for a device's support of them.
Instead, check the inquiry_flag. Also allow enabling and disabling
linked command issuance on target-by-target basis.
chuck [Sat, 13 Jan 1996 03:52:44 +0000 (03:52 +0000)]
sync with sparc:
- move disk_attach() to before reading the disk label as per Jason.
otherwise we are reading into an unallocated buffer (oops!)
chuck [Sat, 13 Jan 1996 03:45:01 +0000 (03:45 +0000)]
- call mapiodev() with sizeof(struct xdc/xyc) rather than ra_len (which is
zero since xdcmatch/xycmatch no longer sets it). [if you call
mapiodev() with a zero size it will reuse the KVA it returns, swiping
the device out from under you!]
- make xdc/xyc->iopbase point in the kernels DVMA space rather than at the
normal malloc'd KVA. this isn't compatable with sun4m [doesn't
have a kernel DVMA space] and will need to be changed later (XXX).
- move disk_attach() to before reading the disk label as per Jason.
otherwise we are reading into an unallocated buffer (oops!)
chuck [Sat, 13 Jan 1996 03:12:12 +0000 (03:12 +0000)]
have mapdev() panic if size == 0 to be safe (catches config errors)
chuck [Fri, 12 Jan 1996 23:09:08 +0000 (23:09 +0000)]
we no longer need to add in the offset to the mapped VA to get the correct
device address (bus_tmp, bus_map, and mapiodev now do this for us).
also, we handle all our mappings, so don't have obio.c do any for us
(i.e. don't set ra->ra_len in xycmatch).
nuke uneeded variable in match function.
chuck [Fri, 12 Jan 1996 22:02:15 +0000 (22:02 +0000)]
dmamatch never added in the offset for the dma registers to the VA,
and thus probed the wrong address on the 4/300 (but it worked because
it was probing the esp0 registers!).
now that bus_tmp() adds the offset in for us [as of obio 1.15] i
discoved that a byte access to the dma registers is not allowed.
so, i've change probeget to use a word access.
chuck [Fri, 12 Jan 1996 21:43:09 +0000 (21:43 +0000)]
improved handling of mapping of devices who's registers do not reside on
page boundaries:
- change bus_tmp() to include the offset from the start of page in the
returned KVA [rather than forcing each driver to add it back in
individually]
- changed bus_map() to include the offset from the start of page in the
the returned value if a mapping is found in the PROM's KVA area
- clarified a few comments
chuck [Fri, 12 Jan 1996 21:21:54 +0000 (21:21 +0000)]
change mapdev() so that it includes the offset from the start of the
page in the virtual address it returns.
deraadt [Fri, 12 Jan 1996 21:15:05 +0000 (21:15 +0000)]
remove DEBUG
deraadt [Fri, 12 Jan 1996 21:13:41 +0000 (21:13 +0000)]
from netbsd:
Kludge around a case where a flaky HP-IB disk might be slow to respond
to the identification request in rdmatch(). Similar in spirit to a
patch from Jason Downs (written eons ago), but limited to the broken
device we're trying to reach. My patch tested (and fixed :-) by
Herb Peyerl.
deraadt [Fri, 12 Jan 1996 21:12:59 +0000 (21:12 +0000)]
from netbsd; Fix declaration of hilqfree(), from <hag@wizardz.com>,
PR #1918.
deraadt [Fri, 12 Jan 1996 21:11:52 +0000 (21:11 +0000)]
Correct some typo's, add some virtual consoles and the tun devices
deraadt [Fri, 12 Jan 1996 21:11:12 +0000 (21:11 +0000)]
from netbsd; Correct test for ECHONL (from der Mouse; PR#1922).
niklas [Fri, 12 Jan 1996 21:08:46 +0000 (21:08 +0000)]
Completed incomplete edit and corrected history
deraadt [Fri, 12 Jan 1996 21:02:45 +0000 (21:02 +0000)]
no luns on Tandberg 3600 w/ fake Archive Viper emulation roms; from
raeburn@raeburn.org; netbsd pr#1934
deraadt [Fri, 12 Jan 1996 20:19:48 +0000 (20:19 +0000)]
from netbsd;
New generic disk framework. Highlights:
New metrics handling. Metrics are now kept in the new `struct disk'.
Busy time is now stored as a timeval, and transfer count in bytes.
Storage for disklabels is now dynamically allocated, so that the size
of the disk structure is not machine-dependent.
Several new functions for attaching and detaching disks, and handling
metrics calculation.
Old-style instrumentation is still supported in drivers that did it
before. However, old-style instrumentation is being deprecated, and
will go away once the userland utilities are updated for the new
framework.
For usage and architectural details, see the forthcoming disk(9)
manual page.
deraadt [Fri, 12 Jan 1996 20:14:22 +0000 (20:14 +0000)]
update to new cdio.h
deraadt [Fri, 12 Jan 1996 20:00:43 +0000 (20:00 +0000)]
from netbsd; Document hint file v.2
deraadt [Fri, 12 Jan 1996 19:59:53 +0000 (19:59 +0000)]
from netbsd; Note search mechanism
deraadt [Fri, 12 Jan 1996 19:57:26 +0000 (19:57 +0000)]
from netbsd:
Make dlopen() search for libraries if given a name of the form
`lib<name>.so[.xx[.yy]]' (per Erik M. Theisen; PR#1763; patch from PR
used in simplified form).
Deal with v.2 hint files (hint srch dirs not yet used).
deraadt [Fri, 12 Jan 1996 19:56:20 +0000 (19:56 +0000)]
from netbsd:
Create v.2 hint files.
Note: don't bother to understand v.1 files..
hannken [Fri, 12 Jan 1996 17:52:48 +0000 (17:52 +0000)]
Remove CCB from hash list when it gets unmapped, not the first time looked up.
deraadt [Fri, 12 Jan 1996 16:55:47 +0000 (16:55 +0000)]
clean better
deraadt [Fri, 12 Jan 1996 16:45:00 +0000 (16:45 +0000)]
SIGBUS is an alignment fault. SIGSEGV is an access violation
deraadt [Fri, 12 Jan 1996 14:45:42 +0000 (14:45 +0000)]
proto rfork()
deraadt [Fri, 12 Jan 1996 03:13:42 +0000 (03:13 +0000)]
from netbsd
deraadt [Fri, 12 Jan 1996 02:08:49 +0000 (02:08 +0000)]
disable ddb, enable vnd
niklas [Thu, 11 Jan 1996 22:27:45 +0000 (22:27 +0000)]
Remove obsolete GCC