Compare commits

...

900 Commits

Author SHA1 Message Date
cvs 37118499fd Creating branch ws-code 1993-05-20 16:23:01 +00:00
cgd 641e18ca51 add rcs ids as necessary, and also clean up headers 1993-05-20 16:21:42 +00:00
cgd 02b1516728 multiple-inclusion-protect and fix version string problem. 1993-05-20 16:20:49 +00:00
cgd 925eec6fbf the id strings are now made immutable by rcs. 1993-05-20 16:20:12 +00:00
cgd 532ee6b18a do something better with version strings for created files,
also inclusion protect syscall.h
1993-05-20 16:17:38 +00:00
cgd cffbe49f0a hack on the uname "machine name" stuff for hopefully the last time.
now it uses MACHINE, as defined in param.h
1993-05-20 15:36:20 +00:00
cgd a647ea9765 require MATH_EMUALATE to be defined if you want to use the emulator 1993-05-20 14:35:11 +00:00
cgd f07e92f704 clean up for new cpu stuff 1993-05-20 14:34:43 +00:00
cgd 7bf6a619bf do the correct thing for the "cpu" config definition, and require
options "MATH_EMULATE" for math emulation
1993-05-20 14:33:41 +00:00
mycroft 669ab1ecc9 Clean up deleted files. 1993-05-20 14:32:45 +00:00
cgd 0935d5cd5c update config files for correct "cpu" usage 1993-05-20 14:32:17 +00:00
cgd 82c5629709 add rcsid 1993-05-20 12:19:00 +00:00
cgd f6182d0e1a get rid of explicit select.h inclusion, and clean headers more 1993-05-20 12:05:02 +00:00
cgd fea8ef83ca get rid of select.h inclusion, and clean up headers *more*. 1993-05-20 12:03:49 +00:00
cgd 5f821e2d31 don't explicitly include select.h, but keep header cleanup 1993-05-20 11:54:51 +00:00
cgd e896b69412 don't inlude select.h, but keep header cleanups 1993-05-20 11:53:04 +00:00
cgd d00baf1837 have proc.h, socketvar.h, tty.h include select.h automatically 1993-05-20 11:48:50 +00:00
cgd a370685cb5 update to use select.h 1993-05-20 11:26:10 +00:00
cgd da722aa548 fix for new select & clean up headers 1993-05-20 10:40:48 +00:00
deraadt be5469b175 we driver prints same ethernet address message as other drivers 1993-05-20 10:40:47 +00:00
cgd 47ee49ee0b fix for new select & clean up headers 1993-05-20 10:40:41 +00:00
cgd bb32b9356e give it an rcsid rather than an sccsid 1993-05-20 10:37:33 +00:00
deraadt 64b4de951f "slave" -> "targ"
consistant at least..
1993-05-20 10:36:45 +00:00
cgd e330ee6185 fix for new select stuff 1993-05-20 10:30:40 +00:00
cgd bd05225c25 fix new select stuff 1993-05-20 10:30:31 +00:00
cgd 5dc07182b3 kill me; stupid typo 1993-05-20 10:26:36 +00:00
mycroft d6d7249a5c Clean up deleted files. 1993-05-20 10:20:41 +00:00
mycroft b79d1555b2 Clean up deleted files. 1993-05-20 10:10:07 +00:00
cgd 21191976ac file header cleanup and rcsid additions 1993-05-20 05:26:42 +00:00
cgd f90c0a05fc header cleanup & id string addition 1993-05-20 04:35:46 +00:00
cgd 29bd341991 add rcsids & clean up headers... 1993-05-20 04:12:01 +00:00
cgd cc5f8bfc88 header cleanup 1993-05-20 04:01:30 +00:00
cgd e778153115 add rcs ids and clean up headers 1993-05-20 03:59:08 +00:00
cgd 2013e1b988 define functions only if in kernel 1993-05-20 03:54:37 +00:00
cgd bccddc1c96 add rcs ids, and clean up headers where necessary 1993-05-20 03:53:21 +00:00
cgd f084425317 more rcsid additions and file header cleanups 1993-05-20 03:49:51 +00:00
cgd b5d72b58e5 add rcsids and clean up file headers 1993-05-20 03:46:09 +00:00
cgd 78289b1165 add explicit rcs id 1993-05-20 03:39:04 +00:00
cgd d79d5cd205 clean up headers a bit... 1993-05-20 03:34:02 +00:00
cgd 4d9b3a3827 add rcsids and header cleanup 1993-05-20 03:30:41 +00:00
cgd 019cd476a9 fixed rcsids and cleaned up headers 1993-05-20 03:29:36 +00:00
cgd 20d50aa998 more rcs id adding and header cleanup. i like vi macros! 1993-05-20 03:18:35 +00:00
alm 4663948bc1 fixed regex bug s/[[:digit:][]// incorrectly reported unbalanced brackets 1993-05-20 03:15:26 +00:00
cgd 9de8f02485 add rcs ids to everything, and clean up headers 1993-05-20 03:05:46 +00:00
cgd 0288b1dc71 fix for new syscalls.master versioning 1993-05-20 02:59:55 +00:00
cgd 6178fe7800 kill the "chmod 444" of the syscall-dependent files. makes running
makesyscalls.sh again somewhat more difficult than necessary, sometimes.
1993-05-20 02:57:57 +00:00
cgd fb3c977406 add $Id$ strings, and clean up file headers where necessary 1993-05-20 02:54:09 +00:00
cgd 026914fe4b get rid of the word Pentium. i hate laywers. 1993-05-20 02:14:49 +00:00
cgd 4c22d6165c make uname stuff in init_main machine independent 1993-05-20 02:05:39 +00:00
cgd b9370baad0 file header cleanup 1993-05-20 01:42:26 +00:00
cgd 51d6951764 fix -I for csu change. 1993-05-20 01:24:27 +00:00
cgd 0d2658b81b patch from john brezak (brezak@osf.org) to print target of symlinks 1993-05-19 06:21:23 +00:00
cgd 966327fccc make kernel select interface be one-stop shopping & clean it all up. 1993-05-18 18:18:40 +00:00
cgd e6fe9c8445 if no irq, that is, intenally, d_irq == -2, don't output a vector... 1993-05-18 18:02:05 +00:00
cgd cbecbf6823 clean up comment/rcsid... 1993-05-18 15:38:35 +00:00
cgd b74de43a96 fix "swap generic" support. 1993-05-18 12:42:44 +00:00
cgd 4370a5ce1a last of the "arch" changes 1993-05-18 11:51:52 +00:00
cgd bee874b8c3 add isa_subdev to the list of device tables... 1993-05-18 11:22:34 +00:00
cgd 97f033b75b pseudo-update for new config changes 1993-05-18 10:36:06 +00:00
cgd 7c474ddbf6 oops; last time i moved stuff, was to the wrong place...
don't use csu.* any more, just use *...
1993-05-18 10:08:43 +00:00
cgd 08af1080aa change for 'arch' 1993-05-18 09:58:39 +00:00
cgd 37ffe0b605 update man page for 'arch' changes 1993-05-18 09:10:27 +00:00
cgd 5c8f18ddcc add changes for 'arch' 1993-05-18 08:56:31 +00:00
cgd 17be6c748f changes for 'arch' 1993-05-18 08:54:21 +00:00
deraadt f5f48cfc75 Latest patch to copyout family of functions from <chmr@edvz.tu-graz.ac.at>
> >If you want to use my code, be warned that there is a bug in the code that
> >calculates the number of pages involved in the copy: the page count is
> >too high if the copy begins on a page boundary and len is a multiple of
> >NBPG. Guido van Rooij pointed this out to me.
1993-05-18 07:49:52 +00:00
cgd 118c4769d4 move csu.${MACHINE} into a "csu" subdirectory. 1993-05-18 07:48:34 +00:00
cgd 53490df597 bring in getcap routines, supplied by CSRG, from 4.4... 1993-05-18 07:37:51 +00:00
cgd a0a272d71d fix from David Burren <davidb@otto.bf.rmit.oz.au> to print address families
more nicely, and to print host names when showing routes w/o -n.
1993-05-18 07:15:59 +00:00
cgd 5da49d6a1d fix pg() for halt again, because theo killed my change... 1993-05-17 22:31:21 +00:00
deraadt bdba09532b nothing important 1993-05-17 20:41:55 +00:00
cgd 826f6b856f make sure hp300/compile stays in the distribution 1993-05-17 09:20:49 +00:00
cgd 50a0e0b65f make config use a /sys/${machine}/compile directory, rather than
/sys/compile
1993-05-17 09:10:06 +00:00
cgd ba76479605 have makedev create /dev/zero 1993-05-17 08:53:06 +00:00
cgd 2a0b872289 add serial ports and lpt 1993-05-17 06:17:41 +00:00
cgd a057def081 make sys point to /usr/src/sys 1993-05-17 06:01:15 +00:00
cgd d22e715522 fix broken patchkit patch for pty stuff... 1993-05-17 05:43:16 +00:00
cgd 08c34e039a add a ;; to make sh parse it, and add acct to the list of devs to remove
for "std"
1993-05-17 05:42:44 +00:00
cgd 85a936c957 add kernel config for other 486-50, and make theo happy 1993-05-17 05:25:01 +00:00
davidb 66203bef45 Changed named of ECNTRL_THIN to ECNTRL_ONBOARD as the name isn't as
applicable to the UTP version of the card.
1993-05-16 15:20:38 +00:00
davidb 6bd3368721 Changed named of ECNTRL_THIN to ECNTRL_ONBOARD as the name isn't as
applicable to the UTP version of the card.
Fixed selection of the internal/external transceiver to use the driver flags.
1993-05-16 15:18:34 +00:00
cgd 7bf615a74f patch from James Jegers <jimj@miller.cs.uwm.edu> to allow NFS-mounting
of ISO 9660 (isofs) filesystems, and other minor isofs fixes.
1993-05-16 03:55:54 +00:00
cgd 622df103fa patch from Guido van Rooij <guido@gvr.win.tue.nl> to make ioports
work "normally," i.e. not randomly, and only when /dev/mem is opened.
1993-05-16 03:42:46 +00:00
deraadt 0293a22272 more self efacement 1993-05-16 02:55:27 +00:00
deraadt e7fcb0c1fe added my copyright.. how self efacing of me 1993-05-16 02:47:20 +00:00
cgd 4f63017648 getpgrp actually takes void. ask the IEEE... 1993-05-16 01:51:51 +00:00
cgd 449bbc122f fix bad prototype for getpgrp() 1993-05-15 09:44:34 +00:00
cgd 9cc0d4ec9a fix the fact that p_wmesg was in the wrong section of the proc struct 1993-05-15 02:39:53 +00:00
cgd 560c3dfba1 fix M_LAST off-by-one error. if you don't understand, look in kern_malloc.c 1993-05-15 01:19:38 +00:00
davidb 9c3be18ac3 Updated to support MIPS processors 1993-05-14 15:27:49 +00:00
deraadt d4ba1cc76b copyin/copyout should now work.
ref: bugfiler 386BSD-0.1.2.3/sys.386bsd/5
1993-05-13 21:39:34 +00:00
deraadt 2acad21ba9 various 8-bit patches from Andrew Chernov <ache@astral.msk.su>
tty_compat.c is cleaned up, as is STOP+TIOCSTI in tty.c
1993-05-13 20:58:26 +00:00
deraadt 330e12194e error message reporting fixed. patch from Gordon Burditt <gordon@sneaky.lonestar.org>
see also 386BSD-0.1.2.3/sys.386bsd/8.
1993-05-13 20:55:47 +00:00
cgd 6cda9d21b8 add from net2. was symlink to ../../tahoe/tahoe/ns_cksum.c 1993-05-13 20:36:25 +00:00
cgd 25b2d58336 add from net2. were symlinks to ../../vax/include/* 1993-05-13 20:35:11 +00:00
cgd c744c46838 add from net/2 sources. was symlink to ../../tahoe/include/endian.h 1993-05-13 20:34:47 +00:00
cgd 8660008d1b add gas config files from net/2 1993-05-13 14:48:19 +00:00
cgd 3c4c03af01 add missing gdb config files from net/2 1993-05-13 14:11:13 +00:00
mycroft 7cd539af11 Clean up deleted files. 1993-05-13 14:06:10 +00:00
cgd a672f67592 add hp300 kernel files. generic kernel files might need some help... 1993-05-13 13:56:20 +00:00
cgd a5ae5b7bea add files for /usr/src/etc for the hp300 1993-05-13 13:53:04 +00:00
cgd fd3eaf3b62 add hp300-specific libc files 1993-05-13 13:51:52 +00:00
cgd 7ce88cdffb add hp300 crt0 files 1993-05-13 13:50:54 +00:00
cgd 42aa91af90 add hp300 man page 1993-05-13 13:49:13 +00:00
cgd 862edfdbd0 add rule for hp300 cksum routine. yes, i know it points to cksum.tahoe.c.
net2 did it that way!!!
1993-05-13 13:47:33 +00:00
cgd 89a26593b5 now when halting, use printf()/cngetc() rather than pg(). 1993-05-13 08:08:49 +00:00
cgd 139f8ed816 from Luke Mewburn <zak@rmit.edu.au>:
add TIOCSTAT ioctl to give load average stats if requested (for tcsh)
1993-05-13 06:42:56 +00:00
cgd ff5d5e4e29 update with pc3 termcap entry posted to comp.unix.bsd on Mon, 22 Feb 1993
by "Alex R.N. Wetmore" <aw2t+@andrew.cmu.edu>
1993-05-13 06:37:47 +00:00
cgd 476ed8f46d fix kernel printf %b format.
from Gordon Burditt <gordon@sneaky.lonestar.org>
1993-05-13 06:17:51 +00:00
cgd 768bd75406 include a "To:" line in the message passsed to sendmail.
from Gordon Burditt <gordon@sneaky.lonestar.org>
1993-05-13 06:15:23 +00:00
cgd 7225621c0f from J.T. Conklin <conklin@kaleida.com>:
When the -mandoc macros encounter a .TH, it loads the old -man macros,
slices up a new .TH, and hands off.

But the .TH arguments are not quoted in the new .TH invokation.
Dates, section names, etc., are split up and scattered across the
headers and footers of the manpage.

Very ugly.

Fix:
The following patch to /usr/share/tmac/tmac.andoc quotes the arguments
before they are (re)interpreted by .TH.
1993-05-13 06:08:36 +00:00
alm 55d2b9cef9 Fixed regex bug: a character class of the form [IC[],
where IC is of the form [::] , [..], or [==], would incorrectly
report an error.
Fixed input mode bug: a literal ^J(i.e., ^V^J) would discard text
following it.  Now, a literal ^J is treated as an ordinary ^J - i.e, it
splits a line in two.
1993-05-12 08:22:03 +00:00
deraadt 1af8650e27 The xdr_float() and xdr_double routines from the xdr/rpc library were
not ported to the '386 (xdr_float.c was excluded in the makefile).
Since the '386, like the 68k and sparc, uses IEEE floating point, all
that was needed was to take word ordering into account for
xdr_double().

patch from J.T. Conklin <conklin@talisman.kaleida.com>
hacked to use BYTE_ORDER macros from machine/endian.h
1993-05-11 23:56:10 +00:00
deraadt c7cc64aa4a didn't work as advertized when not given an argument.
(hello, i've come for an argument. <core dumped>
1993-05-11 23:19:51 +00:00
proven 5cba37b241 Prototype now matches declaration. 1993-05-11 17:08:08 +00:00
deraadt 6e4c00bc55 dangling pointer patch for lockf. From pk@cs.few.eur.nl
patch dated Apr 26.
1993-05-11 09:39:52 +00:00
glass 88ee395391 cron.info now logs to /var/cron/log; the circle is complete
particularly since syslog does complain about non-existent log files
1993-05-11 08:24:23 +00:00
glass 97a8d0f6a9 following changes:
no longer compiled with debugging turned on.
	uses syslog and not /var/cron/log directly for logging stuff
	fixed missing ifdef
1993-05-11 08:16:01 +00:00
cgd 606be0528f fix stupid line transposition (from John Brezak <brezak@osf.org>) 1993-05-11 08:07:50 +00:00
glass 522fdd60c6 calling sequence was totally wrong. documented calling sequence (basically
the types).  real documentation is a waste as nothing but nfsd(8) calls
it and the interface changes a great deal in 4.4
1993-05-11 07:36:48 +00:00
glass 765f0da4b7 now you too can partake in this offense against any higher being there
may be.  basically to find out whether nfsserver support is in the kernel
earlier and thus avoid the loop problem, call nfssvc() with a bogus fd and
see whether you get a -1 return value or a SIGSYS...
1993-05-11 07:14:24 +00:00
cgd 4f136b2316 fix from Bakul Shah <bvs@BitBlocks.com> to make tip not dump core
when courier acu routines are used with a non-USR Courier modem.
1993-05-11 06:58:03 +00:00
cgd be46d0630d fix problem where kvm_getprocs(), ..., kvm_freeprocs(), kvm_getprocs()
would get no processes.
1993-05-11 06:44:54 +00:00
deraadt f109e742fd Whoops. One more 0x0ffff to expunge.. 1993-05-11 04:15:22 +00:00
deraadt 661d8fe894 1. id_irq is a u_short
2. "irq ?" sets it to (u_short)-1
3. "irq #" sets it to (1<<#)
4. not specifying an interrupt sets it to 0.

Until someone else comes up with a better scheme, that's the way it is.
If you have a driver that turns the interrupt off, set it to ZERO.

If, after calling XXprobe(), id_irq is still (u_short)-1, that is the same
as if  probe() failed.
1993-05-11 04:06:23 +00:00
deraadt 1745b26c81 1. id_irq is a u_short
2. "irq ?" sets it to (u_short)-1
3. "irq #" sets it to (1<<#)
4. not specifying an interrupt sets it to 0.

Until someone else comes up with a better scheme, that's the way it is.
If you have a driver that turns the interrupt off, set it to ZERO.

If, after calling XXprobe(), id_irq is still (u_short)-1, that is the same
as if  XXprobe() failed.
1993-05-11 04:04:57 +00:00
deraadt 6d91087fc0 ring buffer now uses rbchar's (shorts) instead of chars. 1993-05-10 23:15:37 +00:00
deraadt ba121ff055 ring buffer code now uses rbchar's (shorts) instead of chars. 1993-05-10 23:14:54 +00:00
deraadt 7ee8819e68 interrupt counters increasted from 16 to 18. 1993-05-10 20:33:44 +00:00
deraadt 82133d064c Floppy drives now print the same information as wd controllers
and scsi disks. See?
fd0 at fdc0 slave 0: 1.44MB 80 cyl, 2 head, 18 sec
Also, added a define for 720K disks, probably incorrect..
Note: the CMOS is used to find out what type the drive is.
1993-05-10 06:45:16 +00:00
deraadt a7e9341151 This patch allows the wd device driver to tell how big the disks are on
WD1007-derived controllers. In this example, wdc0 is a WD1007-clone,
and wdc1 is a WD1003-clone. WD1007 controllers are generally ESDI
and IDE controllers.
wdc0 at 0x1f0-0x1f7 irq 14 on isa
wd0 at wdc0 targ 0: 322MB 1224 cyl, 15 head, 36 sec <disktype>
wdc1 at 0x170-0x17f irq 7 on isa
wd2 at wdc1 targ 0: (unknown size) <disktype>
1993-05-10 05:53:22 +00:00
mycroft f3b3eef1da Correct checking of setsid() return value (from bvs@bitblocks.com). 1993-05-10 03:59:43 +00:00
deraadt 413b2eabc8 npx patches from Bruce Evans. patchkit 10002 1993-05-09 23:02:34 +00:00
deraadt e204101adb i thought i deleted this line before! 1993-05-09 04:25:48 +00:00
alm 136970a233 added support for lines of arbitrary length
added support for 8-bit data, including NULs
1993-05-08 10:49:52 +00:00
alm 6f1813b1de fixed HS initialization bug; swapping HS (`x') before a hold (`h')
command set the pattern space to NULL
1993-05-08 10:08:44 +00:00
glass dd522489b0 added some missing MLINKS 1993-05-08 05:27:01 +00:00
deraadt d7aa77c8bb multiple master controllers would probe tthe first one N times instead of
once each. never mind not worth worrying about what i;m talking about.
1993-05-08 00:50:10 +00:00
cgd 28271da41f no irq == -1, or, actually, 0x0ffff (f*ing unsigned short...).
this would break devices w/o interrupts (like lpa).
1993-05-07 10:38:04 +00:00
cgd 89b84a277d patch for multiple loopback interfaces (via "pseudo-device loop 2", etc.)
from David Burren <davidb@otto.bf.rmit.oz.au>
1993-05-07 09:27:52 +00:00
cgd f9ea54b166 expand DDB's db_symtab array size 1993-05-07 09:22:40 +00:00
cgd 9410ddef80 make SYMTAB_SPACE user-definable, as an "option" 1993-05-07 09:13:53 +00:00
cgd 3967750b47 make it match GENERICISA, minus SCSI 1993-05-07 09:04:56 +00:00
cgd 7b8ebafec1 add rcsid, and kernel description where necessary 1993-05-07 08:33:00 +00:00
cgd cff43cae81 add PC speaker driver pseudo-device 1993-05-07 08:32:23 +00:00
cgd 217c9d793b fix typo on if_ix line, and add rcs id 1993-05-07 08:26:13 +00:00
cgd 47a564355b update with new files from Chris Torek 1993-05-07 07:40:27 +00:00
cgd 713860010e add dcfclock support from patchkit patch 113 1993-05-07 07:15:19 +00:00
cgd 650761e27b add counters for vmstat 1993-05-07 07:12:43 +00:00
cgd 55acdd7985 add counter for vmstat, and fix for bde's changes. from pk patch 137 1993-05-07 07:10:59 +00:00
cgd 22a6def4a1 update for bde's useracc changes. from patchkit patch 137. 1993-05-07 07:06:42 +00:00
cgd 43f24f27cd add bruce evans's useracc fixes, from patchkit patch 137. 1993-05-07 07:03:50 +00:00
cgd 1874c15bdf fix free page count determination 1993-05-07 06:59:45 +00:00
cgd af99260dda add PC speaker driver. from 386bsd patchkit patch 135 1993-05-07 06:50:18 +00:00
cgd a1aefd4657 add defs for com3 and com4, and add device sizes 1993-05-07 06:47:47 +00:00
cgd 675de1900d add entries for speaker and dcfclock, and clean up. 1993-05-07 06:42:13 +00:00
cgd 1cc2eef5da add entries for dcfclock, ix ethernet, and speaker 1993-05-07 06:33:34 +00:00
cgd 99de35cd10 update for speaker, lpt, lpa, and new serial ports. from patch 135 1993-05-07 06:31:03 +00:00
cgd 6144fca678 cleaned up, added support for various devices. hacked, from patch 135 1993-05-07 06:26:41 +00:00
cgd a02cd3b872 fix lpt driver and add lpa driver. from 386bsd pk patch 133 1993-05-07 05:38:55 +00:00
cgd d5d9420b06 add spkr "pc speaker driver" man page. from 386bsd pk patch 101 1993-05-07 05:26:13 +00:00
cgd 00ad0bad8d add some explanatory comments from 386bsd patchkit patch 113 1993-05-07 05:22:14 +00:00
cgd 1ba29becab fixe for uninitialized variables, from 386bsd patchkit patch #111 1993-05-07 05:16:15 +00:00
cgd 4c99dd2b8d undo the last change; our sort has -T... 1993-05-07 05:08:59 +00:00
cgd 713c20322e fix uname initialization 1993-05-07 04:09:18 +00:00
cgd a7e9341848 add assembly language version of index, rindex, strchr, and strrchr
supplied by J.T. Conklin <conklin@kaleida.com>
1993-05-07 03:01:27 +00:00
cgd 186dc3c944 patch from Pete Chown <pc123@cus.cam.ac.uk> to fix mmap
modes vs. read/write permissions problem.
1993-05-07 01:58:11 +00:00
proven 56cf91b8f1 ftp put doesn't cleanly truncate and overwrite a file. 1993-05-06 13:28:41 +00:00
cgd 00e0264dd1 make kernel name a bit less confusing... 1993-05-06 12:17:06 +00:00
cgd 9978bccd4b diffs for uname (posix!) system call, provided by John Brezak <brezak@osf.org> 1993-05-06 10:46:12 +00:00
proven 507c2a09ba Fixed dependency problem. 1993-05-06 02:23:15 +00:00
proven 82f1a8d86c rpc directory installs now. 1993-05-06 02:22:41 +00:00
proven 952ae94477 Set permissions and ownership all at once. (No more directories mode 0777) 1993-05-05 18:45:25 +00:00
glass 41521c96b6 missed three config files going from pseudo-device DDB to options DDB 1993-05-05 13:56:25 +00:00
deraadt 44cacedae1 fixed bug from last commit 1993-05-05 00:29:38 +00:00
mycroft 38532742fd Use global value of CFLAGS for optimization. 1993-05-04 14:05:32 +00:00
mycroft 2a78eac337 Make sure init.c is touched so it doesn't get rebuilt if we
make again.  (Okay, so I did reproduce it.)
1993-05-04 13:56:27 +00:00
deraadt 49bc3d2b7d if we timeout asking for kernel name, print a \n before proceeding.
Funny how one character can bug ya so much, eh?
1993-05-04 10:22:39 +00:00
deraadt 633c742f85 Added another sunos-ism: ifconfig -a 1993-05-04 09:26:52 +00:00
deraadt 506f2302f6 support for making dev->id_alive be set, this is for iostat to
find disk devices. wee bit of a kludge. sub-device attach()
routines must now return 1 for successful attach(), 0 otherwise.
Other bsd's do this too..
1993-05-04 08:27:29 +00:00
cgd b080a4ca6d have compile use the scan.c, y.tab.h, and bc.c files as distributed,
rather than lex/yaccing them ourselves.  still don't know why these don't
get flexed right...
1993-05-04 07:49:22 +00:00
cgd a20d8cbc6a update for flex-2.3.8 from prep 1993-05-04 07:44:39 +00:00
deraadt ceca0cf40f iostat and vmstat being taught about drives.. 1993-05-04 07:38:29 +00:00
glass cea565fddf GNU dd torched, also gnu/bin since there was no longer anything in it 1993-05-04 07:11:19 +00:00
glass 6c9f3726d9 added dd(1) from ftp.uu.net:bsd-sources; torching GNU dd 1993-05-04 07:08:38 +00:00
mycroft 91de7f0c00 Previous patch was incorrect. 1993-05-04 05:50:21 +00:00
cgd b0170f3c4b oops, forgot a c! 1993-05-04 05:48:17 +00:00
cgd 3cc0f4c9ec add pg_wait, which must be set if you want pg() to actually wait for keybd
input.  this one is way useful...
1993-05-04 05:47:50 +00:00
cgd 14a0e0538d add a friggin' serial port... the machine has one... 1993-05-04 05:45:26 +00:00
cgd 9e4eba1de7 make ip_input recursion checking be for -DPARANOID, and make it panic 1993-05-04 05:41:18 +00:00
cgd 14fe0dfbbc make serial ports have right numbers, and add slip to generic kernels 1993-05-04 05:37:50 +00:00
deraadt d622addd5e I was horrified to find these had not been commited with the YP changes. 1993-05-04 05:10:45 +00:00
mycroft 73576de95d Don't autorepeat locking keys. (Can someone test this with X?) 1993-05-04 05:00:26 +00:00
cgd fd51fef713 fixed loopback == nuke problem.
This fix is probably not optimal, but it works.
1993-05-04 02:37:27 +00:00
sef a49d4cb6a3 Fix a NULL-dereferencing, that caused a segfault with QMAGIC (yay). 1993-05-03 20:51:56 +00:00
cgd 3e5141adb0 add bugfiler 1993-05-03 19:49:55 +00:00
cgd 304fe1ccc5 prune dirs rm'd when cleaning tmp 1993-05-03 10:52:21 +00:00
glass ff29577c5c necesssary fix before the ISO, and NS stuff has even a prayer of working.
Jolitz while garbage-collecting the ISO shit, also garbage collected the
DO_NET(NETISR_XXX.... support for them.  CCITT is still broken, i think
because this snapshot's version is hosed.
1993-05-03 08:44:06 +00:00
mycroft 2abd4505b3 Clean up deleted files. 1993-05-03 07:46:10 +00:00
deraadt 89ee0b0f25 moved rpc include files 1993-05-03 07:43:41 +00:00
deraadt 1af40713d9 rpc include files moved into /usr/src/include. Makes more sense and
lets YP and libc compile cleanly.
1993-05-03 07:42:45 +00:00
cgd 60d743190a notate the fact that it creates /var/run/accountant.pid 1993-05-03 04:30:10 +00:00
cgd b7f1758274 turn on accounting if /var/account exists 1993-05-03 04:19:40 +00:00
cgd 839c828d99 make the sleep time/min on/max off numbers settable via options, and
notate this appropriately.
1993-05-03 04:08:16 +00:00
cgd 8aefdc40a1 added random stuff, including checking to make sure we don't fill the disk. 1993-05-03 03:06:32 +00:00
cgd 7b961b07d0 fix accidental 2dd, and fix comm handling for debug 1993-05-03 02:49:27 +00:00
cgd 684e53617b add accountant 1993-05-03 01:53:53 +00:00
cgd 645e8b993b change accton to work w/NWO 1993-05-03 01:53:21 +00:00
cgd d8eb2983d7 make man page install in cat8 1993-05-03 01:52:34 +00:00
mycroft 7ca3ea4448 s/\\(lq/``/;s/\\(rq/''/ 1993-05-03 01:46:22 +00:00
cgd 270503c742 accton is in section 8. 1993-05-03 01:45:34 +00:00
cgd 65230099c0 add the accountant program. 1993-05-03 01:02:50 +00:00
cgd c7f9df39e8 change UNIX to NetBSD (EEK!), and add NetBSD OS names 1993-05-03 00:56:32 +00:00
mycroft b5bbb0e9c7 Fix typos. 1993-05-03 00:28:56 +00:00
mycroft cbc1930d5e Use global value of CFLAGS for optimization. 1993-05-02 23:16:42 +00:00
mycroft e5edaba6c7 Fix typo. 1993-05-02 23:08:42 +00:00
cgd fd70c4e80e add starting, elapsed, user, and system times, and clean up a bit 1993-05-02 20:40:31 +00:00
deraadt 11e7e85963 fixed silly typo. 1993-05-02 20:14:48 +00:00
cgd 66ec38cf29 add barebones accounting, enabled w/"options ACCOUNTING", via /dev/acct 1993-05-02 09:22:31 +00:00
cgd 9dd928cc49 make /dev/acct as a standard device 1993-05-02 09:18:17 +00:00
mycroft ccc5723ba9 Clean up deleted files. 1993-05-02 09:14:24 +00:00
sef a2256fdb77 Jim "wilson@moria.cygnus.com" Wilson's patches to make C News (and other
things) work.
1993-05-02 01:28:40 +00:00
mycroft 6a21663c33 Fix error in last change. B-P 1993-05-01 19:12:45 +00:00
mycroft adbdf9b9ab s/__dead/volatile/ 1993-05-01 16:53:03 +00:00
mycroft af0118f516 Reenable NS and ISO code. 1993-05-01 16:26:52 +00:00
mycroft 123d87d25d Fix typo. 1993-05-01 16:25:04 +00:00
mycroft f7687b8ccd Use global value of CFLAGS for optimization. 1993-05-01 15:19:45 +00:00
mycroft 01b23e631c s/__dead/volatile/ 1993-05-01 15:18:57 +00:00
mycroft 03153e458a Don't forget to install err.h. 1993-05-01 15:18:25 +00:00
mycroft 37bb919ab2 Cleanup for GCC 2...
s/__dead/volatile/  (Does the format really exist in GCC 1?)
s/va_list/_VA_LIST_/  (to match prototypes)
1993-05-01 15:17:00 +00:00
glass cb654d0390 oops 1993-04-30 23:57:07 +00:00
mycroft 8b71675671 Move bpfattach() call into weattach(). 1993-04-30 23:48:35 +00:00
mycroft 41c6cc4b4e Move bpfattach() call into hpattach(). 1993-04-30 23:44:03 +00:00
glass 427b045af3 added some support new err(3) shit needs 1993-04-30 23:09:06 +00:00
glass 7228d25342 new err stuff 1993-04-30 23:08:23 +00:00
glass c15f157192 new touch 1993-04-30 23:07:07 +00:00
glass 87c924e493 gnu tail and join removed 1993-04-30 08:09:46 +00:00
glass e34820cd2d tail from ftp.uu.net:bsd-sources integrated 1993-04-30 08:04:52 +00:00
glass 3d71c3719c join from ftp.uu.net:bsd-sources integrated 1993-04-30 08:04:31 +00:00
glass b42ba8013c tail, and join from ftp.uu.net:bsd-sources integrated 1993-04-30 08:04:14 +00:00
cgd 562d723b81 build datfiles at make time, not at install time 1993-04-30 05:24:57 +00:00
cgd c3a1fd2a6d make /usr/obj and /var/db/locate.database when making distribtion 1993-04-30 05:18:53 +00:00
cgd 7ae1b9de6b GENERICAHA_DDB was too big, so got rid of wd support in it.
moved it to GENERCISA_DDB, which has no SCSI support
1993-04-29 23:38:21 +00:00
cgd 4480ad2eb6 changes from Ralf Friedl <friedl@informatik.uni-kl.de>.
These changes fix the following problems (in his words):
- When a direcrory was extended, it's size was not updated.
- Moving directories didn't work.
- I had removed brelse() call after an error from bread(), because I
thought bread() would already free them, but it doesn't, so I have
reinserted the brelse() calls.
- I have changed pcfs_setattr to silently ignore attempts to change
uid, gid or access time of a file. This allows 'cp -p' without errors.
1993-04-29 22:54:28 +00:00
cgd 2557bce918 add egrep 1993-04-29 21:25:09 +00:00
cgd 11c4b94512 fix definition of swapmap; rlist.h used to declare it, now defines it as
extern...
1993-04-29 21:13:25 +00:00
cgd 4512f39188 move egrep into /usr/src/gnu/usr.bin 1993-04-29 20:52:21 +00:00
cgd 4eb6cbe6a4 generic kernel w/aha1542 and debugging support 1993-04-29 13:01:52 +00:00
cgd dc14016992 deal with gnu program subdirs 1993-04-29 12:42:53 +00:00
cgd 4b549767b9 put all of the gnu stuff in one place 1993-04-29 12:42:00 +00:00
cgd c94f543006 ld groff grep g++ -> usr.gnubin 1993-04-29 12:39:24 +00:00
cgd 16e6ce6695 dd is gnu software 1993-04-29 12:38:00 +00:00
cgd f3e74425a1 moved from usr.bin:
ld groff grep g++
1993-04-29 12:35:28 +00:00
cgd 53b83ac96b added gnulibexec gnugames 1993-04-29 11:48:50 +00:00
cgd 27554e9855 moved libg++ into /usr/gnulib 1993-04-29 11:40:16 +00:00
cgd c58e55d96b add Makefiles for gnulibexec 1993-04-29 11:38:55 +00:00
cgd 5f4db93340 moved libg++ into gnulib 1993-04-29 11:37:12 +00:00
cgd 83d0f95cc1 makefiles for gnugames 1993-04-29 11:35:25 +00:00
cgd 4570ba27ed moved chess into /usr/src/gnugames, fixed "Missing" -- shold have been
comment
1993-04-29 11:33:40 +00:00
cgd 422e3c4849 tar tail sort pr lex join gdb gcc gas fgrep diff3 diff awk
migrated into /usr/gnubin
1993-04-29 11:30:15 +00:00
cgd f128b78de8 update for stuff moved to usr.gnubin:
tar tail sort pr lex join gdb gcc gas fgrep diff3 diff awk
1993-04-29 11:24:58 +00:00
cgd d8e5b3c8b3 make sure to rm before ln -s 1993-04-29 11:05:59 +00:00
cgd 1e430e7f3c fix other half of the text file busy problem:
don't allow user to exec a file if it's open for writing
1993-04-29 10:12:42 +00:00
mycroft 2f243ce36a Fix total bogosity in the receiver code. 1993-04-29 09:33:21 +00:00
cgd 5f1448d9be make it panic, like i thought it did, for mb_map too small. 1993-04-29 08:57:02 +00:00
glass 43e212ea56 ugh. i was right after all. 1993-04-29 06:28:39 +00:00
cgd 7162751b69 JOLITZ MANGLED MY PROFILING PATCH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
get the i386 profiling assembly in the right ifdef...
1993-04-29 05:38:52 +00:00
cgd 8189c41d54 make sure you can't include ahb or bt when you've got an aha 1993-04-29 03:33:36 +00:00
cgd a5e94862c5 use ed instead of ex. the script to use is identical, and we might
want to switch back to using ex when our ex supports -.
1993-04-29 03:27:39 +00:00
mycroft b73213d005 Fix utter inanity I committed last night. 1993-04-29 00:46:21 +00:00
mycroft 74361fcf4d HP cards use 32 I/O ports, not 16. 1993-04-28 23:57:42 +00:00
mycroft b3840f696f Fix silly compilation error. 1993-04-28 23:39:37 +00:00
cgd 2cc9ec60a8 version 0.8a -- gonna export some new kernels... 1993-04-28 23:21:03 +00:00
cgd 0c27aa1085 fixed:
SLATTACH hangs up on connect to modem port
reported by: bugs@rafal.slip.uiuc.edu
1993-04-28 23:13:37 +00:00
proven cb3fdb49e2 Applied John Kohl's patch to syscall.s Stack pointer was off by 4 bytes on
return.
1993-04-28 18:33:01 +00:00
deraadt d111734061 Ensure the rmaouthdr shell script is executable before running it! 1993-04-28 08:45:51 +00:00
mycroft 54396be7ac Fix NULL pointer reference. 1993-04-28 07:17:18 +00:00
cgd a477732ff8 bsd->netbsd 1993-04-28 06:37:52 +00:00
cgd a347f0e13b got rid of __386BSDREL__ symbol; it was useless.
added NetBSD symbol (date+rel number) and NetBSD0_8 symbol.
1993-04-28 05:54:21 +00:00
cgd 975b63e94a i don't think we're in sys.386bsd any more... 1993-04-28 05:43:55 +00:00
cgd 25f5341548 kernel name is /bsd 1993-04-28 05:43:16 +00:00
cgd cf1a8ab7dd kernel name is bsd... 1993-04-28 05:40:43 +00:00
cgd 03cbba27b9 new kernel is bsd 1993-04-28 05:39:57 +00:00
cgd cd260548e4 386bsd -> bsd for kernel name, and kill weird binary... 1993-04-28 05:38:44 +00:00
cgd 4cc2e6793e new kernel name is "bsd" also, add "o*" to list of kernels to boot. 1993-04-28 05:32:55 +00:00
cgd 03af593ec8 get rid of the silly quotes 1993-04-28 05:31:03 +00:00
cgd 3073b25a35 new kernel name is bsd 1993-04-28 05:28:56 +00:00
cgd 8fc1eb24ab 386BSD -> NetBSD 1993-04-28 05:19:50 +00:00
cgd 446115f2d6 386bsd -> NetBSD 1993-04-28 05:16:15 +00:00
cgd f5d613aac4 changed sys.386bsd to sys 1993-04-28 05:14:02 +00:00
cgd b891b03e5e 386BSD -> NetBSD 1993-04-28 05:08:19 +00:00
mycroft 6ab1f0058c Give processes 0 and 2 more appropriate names (`scheduler' and `swapper', respectively). 1993-04-28 04:19:25 +00:00
mycroft 17edb42d9e Implement previous change more cleanly. 1993-04-28 04:00:49 +00:00
alm 5611dcf9eb rearranged headers to compile cleanly
minor corrections in man page
1993-04-28 03:37:34 +00:00
mycroft 90af61bfd1 Make swapmap extern; it is defined in vm_swap.c. 1993-04-28 03:06:15 +00:00
mycroft 4382297dc2 Introduce a new panic() condition in case I missed something. 1993-04-28 03:04:57 +00:00
mycroft 749f2effd9 Don't use first block of swap area. 1993-04-28 03:04:25 +00:00
mycroft 7761ff3927 Fix memory leak. 1993-04-27 20:58:44 +00:00
glass 2603de639a bostic was right, and i was wrong.. boo. 1993-04-27 17:09:01 +00:00
deraadt 1da6db47c4 changed the documentation on what -DYP really means. 1993-04-27 10:11:24 +00:00
cgd 8d0e0d7a9d fix several off-by-one errors in hostname setting/reading 1993-04-27 10:06:10 +00:00
cgd 7403558582 fixed after-depend dependency loops 1993-04-27 09:51:52 +00:00
mycroft 7d73f30a62 Use EPERM when write permission is denied, not EBADF. 1993-04-27 07:21:37 +00:00
cgd ac841dab33 oops. space vs. tab thing 1993-04-27 07:00:41 +00:00
cgd d0cab22786 fixed make depend, and added rcs headers to makefiles 1993-04-27 06:47:28 +00:00
glass 55e94a56d1 improved error handling from ftp.uu.net:bsd-sources 1993-04-27 05:51:11 +00:00
deraadt 4896eaba73 386bsd 0.1 --> netbsd 0.8 1993-04-27 05:39:38 +00:00
deraadt 2380f69ac7 A manual page for YP which explains that there are no other manual pages.. :-) 1993-04-27 05:10:23 +00:00
deraadt c944b5dbf6 add man page 1993-04-27 05:05:11 +00:00
glass 398adcd104 adding man page that was in ftp.uu.net:bsd-sources 1993-04-27 05:00:32 +00:00
glass ef33cac1a7 integrated updated 'tr' from ftp.uu.net:bsd-sources 1993-04-27 04:52:26 +00:00
cgd 9380549840 always compile in YP. theo hasn't given me a reason we can't do this, so... 1993-04-27 03:25:47 +00:00
deraadt c9345d610e YP functions are always in libc. They just might not be called by getpwent()
and friends.
1993-04-27 02:14:43 +00:00
glass dc871f554a new 'test' from ftp.uu.net:/systems/unix/bsd-sources, got rid of GNU thing 1993-04-26 23:30:42 +00:00
cgd 251fb4eb2e update to new version from uunet 1993-04-26 23:13:43 +00:00
dpassage c029d55bd4 Fixed incorrect calls to longjmp. 1993-04-26 22:07:46 +00:00
mycroft ff32b815a7 Fix typo. (troff makes me ill.) 1993-04-26 19:59:33 +00:00
mycroft e8922d4a8a Oops. sgetc() is used elsewhere, so should not be static. 1993-04-26 19:12:06 +00:00
deraadt 4f74255280 cosmetic change 1993-04-26 18:45:49 +00:00
proven 9df03e3b09 Merged Charles's enhancements to SWAP macros into new db.h 1993-04-26 17:15:31 +00:00
glass 0c56fbd6eb print out more of the gathered udp stats (actually all of them) 1993-04-26 16:54:54 +00:00
mycroft 372404c0eb The tools have no man pages. 1993-04-26 16:31:58 +00:00
mycroft 7db58878ac Don't segv if no process found on tty. 1993-04-26 15:50:34 +00:00
mycroft ece8f4cf5b Fix NULL pointer reference. 1993-04-26 15:03:05 +00:00
cgd 8112aee5b1 changed to use new libcrypt scheme. 1993-04-26 14:54:38 +00:00
mycroft 0bb98bd63e Fix NULL pointer reference. 1993-04-26 14:43:24 +00:00
cgd f6bd604ee4 changed to use new libcrypt scheme. 1993-04-26 14:42:34 +00:00
mycroft 57db57e21d Fix NULL pointer reference and don't drop character when wrapping. 1993-04-26 14:37:49 +00:00
cgd 14698de120 changed to use new libcrypt scheme. 1993-04-26 14:33:28 +00:00
mycroft c16f93524e tn3270 works now. 1993-04-26 14:13:28 +00:00
mycroft aef18533c1 Add tn3270 with correct Makefiles. 1993-04-26 14:02:21 +00:00
cgd c0e743ad13 got rid of "CFLAGS+=-DDES" -- it was irrelevant 1993-04-26 13:53:04 +00:00
cgd 3379316c13 added definition for DPADD library variable LIBCRYPT. 1993-04-26 13:07:57 +00:00
cgd 684352ec57 make crypt in libc back into a dummy, but a full-featured dummy.
to get crypt now, use -lcrypt, or LIBCRYPT as part of LDADD.
1993-04-26 13:02:16 +00:00
cgd 021f886a63 made libcrypt, so exportable vs. non-exportable packages can be
handled easliy.
1993-04-26 12:45:00 +00:00
cgd b5b9cca365 added "libcrypt" to list of subdirs. 1993-04-26 12:44:21 +00:00
cgd 51513faba3 id for scsi_attach must be an int. 1993-04-26 11:54:23 +00:00
deraadt 48e9139174 Add instructions for compiling YP to the Makefile 1993-04-26 08:25:13 +00:00
deraadt 32b7091e09 parts of YP inside libc.. 1993-04-26 08:23:39 +00:00
deraadt 2afa69f2fe cruel hack to get librpc contents into libc (for yp) 1993-04-26 08:22:34 +00:00
deraadt 849426fac3 initial rev
I don't like this program. passwd -y should do it's job (and it tries to)
1993-04-26 08:13:39 +00:00
deraadt 733a90d9bd initial rev 1993-04-26 08:09:02 +00:00
deraadt c006ad65f1 yp utilities directory Makefile 1993-04-26 08:07:30 +00:00
deraadt a956563956 compile usr.sbin/yp 1993-04-26 08:06:33 +00:00
cgd 0920327e35 fix from Jim Jegers which makes PCFS work... 1993-04-26 06:52:39 +00:00
deraadt de13667da0 this file used to try to generate a "struct passwd". Nope, won't work.. 1993-04-26 06:33:39 +00:00
dpassage 9e3a939cac Removed a cast that was causing another stoopid compile error. 1993-04-26 06:09:17 +00:00
deraadt 2d9e6ac1aa Allow include/rpcsvc to have .h files that are not generated from .x files 1993-04-26 05:04:58 +00:00
mycroft 4a2a74a8c7 Define `realinstall' target, not `install', and let bsd.prog.mk do dependencies. 1993-04-26 03:55:58 +00:00
mycroft 23ee17c337 Once more, don't make `all' depend on man page; bsd.prog.mk does this. 1993-04-26 03:49:25 +00:00
mycroft 9815d6109f Use global value of CFLAGS for optimization. 1993-04-26 03:43:48 +00:00
mycroft 5e252be518 Once more, don't make `all' depend on man page; bsd.prog.mk does this. 1993-04-26 03:42:07 +00:00
mycroft 830c94e58e Define `realinstall' target, not `install', and let bsd.prog.mk do dependencies. 1993-04-26 03:35:05 +00:00
mycroft db5e47ac30 Don't try to install man pages if NOMAN set. 1993-04-26 03:33:41 +00:00
mycroft 39426f54dc Don't try to install man page if NOMAN set. 1993-04-26 03:29:31 +00:00
mycroft f0e1d17314 Define `realinstall' target, not `install', and let bsd.prog.mk do dependencies. 1993-04-26 03:26:55 +00:00
mycroft 2a87587710 Don't redefine `realinstall' target if already defined. 1993-04-26 03:26:17 +00:00
mycroft b68b744964 Don't try to install man page if NOMAN set. 1993-04-26 03:24:05 +00:00
mycroft bff0604f68 Once more, don't make `all' depend on man page; bsd.prog.mk does this. 1993-04-26 02:36:21 +00:00
mycroft 7808465e26 RCS is no longer broken (I think). 1993-04-26 02:22:13 +00:00
mycroft 84319c027b Remove -I; include files are now in /usr/include. 1993-04-26 02:14:20 +00:00
mycroft d44e841e09 Clean up deleted files. 1993-04-26 02:13:17 +00:00
mycroft 32c1c5108b Install mpool.h. 1993-04-26 02:10:42 +00:00
mycroft f8f66fcdc6 s/R_PUT/0/ 1993-04-26 02:02:47 +00:00
mycroft bb0a71b1b3 Oops. Remove some more cruft. 1993-04-26 01:54:30 +00:00
mycroft b9e1817af1 Don't make `all' target depend on man page; bsd.prog.mk takes care of this. 1993-04-26 01:53:05 +00:00
deraadt 26cfabd20c fixed multiple inclusion problem 1993-04-26 01:48:05 +00:00
cgd 01bebb40c6 fix to allow multiple inclusion of sys/errno.h. whoever did this to begin
with was sick...
1993-04-26 01:36:53 +00:00
mycroft b8c3a6fb51 Convert hash_open() call to dbopen(). 1993-04-25 08:51:22 +00:00
mycroft 39e97b4706 Convert btree_open() calls to dbopen(). 1993-04-25 08:44:51 +00:00
mycroft 3cdb94e7fa Use global value of CFLAGS. 1993-04-25 08:13:28 +00:00
mycroft 28a5272382 Clean up deleted files. 1993-04-25 07:50:58 +00:00
mycroft e28d92fdf9 Reenable building keywords.h dynamically. 1993-04-25 07:50:56 +00:00
mycroft c7ebcd89cc Compile X.25, OSI, and NS code. 1993-04-25 07:26:40 +00:00
mycroft f6fd35f01e Compile {iso,ns}_{addr,ntoa}. 1993-04-25 07:24:14 +00:00
mycroft 1d4d2a11ef Don't build man page if NOMAN set. 1993-04-25 06:58:16 +00:00
mycroft 0f95922c94 Link with LDFLAGS even if one source module. 1993-04-25 05:53:48 +00:00
mycroft 518780592e Don't lose if we include bsd.prog.mk only to build man pages. 1993-04-25 05:36:13 +00:00
mycroft bb0c7cf33c Add afterinstall and make maninstall not lose if bsd.man.mk not included (i.e. NOMAN set). 1993-04-25 05:21:08 +00:00
mycroft ea18672074 `all' target should not depend on man pages; bsd.prog.mk takes care of that. 1993-04-25 05:13:41 +00:00
mycroft a8c5cfce79 Fix error in last change. (Oops.) 1993-04-25 04:55:52 +00:00
mycroft a039d62041 Don't build man pages if NOMAN set. 1993-04-25 04:15:26 +00:00
mycroft d24329b143 Don't build man pages if NOMAN set. 1993-04-25 02:51:01 +00:00
mycroft ced3579f3c Add directory that CAP forgot. 1993-04-25 01:31:38 +00:00
mycroft 8bf15ce316 Add missing -I in CFLAGS. 1993-04-25 00:54:43 +00:00
mycroft adc58a437a Use global value of CFLAGS. 1993-04-24 22:48:30 +00:00
mycroft 36e835d796 Don't dereference NULL pointer. 1993-04-23 08:46:46 +00:00
mycroft ced75305e6 Make fillw faster in the usual case. 1993-04-23 06:33:20 +00:00
mycroft 6d802d4105 Make tabs actually work. 1993-04-23 03:42:45 +00:00
mycroft dfa1b5ad1e Make CTRL() ANSI-compliant. 1993-04-23 03:34:42 +00:00
mycroft cfb3d88ce1 Enhance pc3 termcap. 1993-04-23 03:10:43 +00:00
alm 1960ef9c9d added more tests 1993-04-23 02:09:38 +00:00
mycroft 6e63076bd3 Clean up deleted files. 1993-04-23 02:09:22 +00:00
alm 64c8f3fa99 added man page (draft)
fixed `!' command
final code cleanup
1993-04-23 02:08:48 +00:00
mycroft 05b8b30c8f Rename sput to sputc and make it and sgetc static. 1993-04-22 20:20:56 +00:00
mycroft 8af3dbac53 Use rb_read to gather output; do exactly 4 spl calls, and don't hold the
interrupts locked very long, lest we overrun our serial port FIFOs.
1993-04-22 07:56:23 +00:00
mycroft 52808da645 Add rb_read, to read part of a ring buffer into an ordinary buffer. 1993-04-22 07:49:18 +00:00
mycroft 5cfd26d2ed Round to nearest when generating 8259 clock frequency (from 386BSD path 113). 1993-04-22 04:30:53 +00:00
mycroft 71715bdc77 Don't output `extern 0();' for interruptless driver. 1993-04-22 04:15:18 +00:00
mycroft cf4d465cbb Make mbuf sizes tunable from config file (from 386BSD path 134). 1993-04-22 03:54:17 +00:00
mycroft 3853f00223 Cleanup for GCC 2. 1993-04-22 03:45:05 +00:00
mycroft 81118e6cd3 Don't build profiling libs if NOPROFILE (from 386BSD patch 138). 1993-04-22 03:38:45 +00:00
mycroft 56584b69ad Don't use -T option to sort(1) (from 386BSD patch 132). 1993-04-22 03:35:56 +00:00
mycroft e18e40c4d4 Fix various bugs in man pages (from 386BSD patch 130). 1993-04-22 03:32:02 +00:00
mycroft f7975dbb16 Fix various bugs in man pages (from 386BSD patch 130). 1993-04-22 03:27:28 +00:00
mycroft 5a626fc380 Fix up error messages and return values. 1993-04-22 00:35:02 +00:00
mycroft c2b244c26d Don't forget to clean new targets. 1993-04-21 08:57:26 +00:00
mycroft 69408076a8 Make Makefile closer to Berkeley style, and add targets which were missing. 1993-04-21 08:49:37 +00:00
mycroft 36d64d4299 Use ANSI vfprintf() rather than outdated _doprnt(). 1993-04-21 08:48:48 +00:00
proven ce2b85b398 Changed hash_open to dbopen. 1993-04-21 08:26:54 +00:00
proven a6cff69254 Changed hash_open to dbopen. 1993-04-21 08:14:39 +00:00
proven 2fce5138ca Changed pwd_mkdb to use dbopen. 1993-04-21 07:54:40 +00:00
mycroft 817163a199 Cleanup for GCC 2. 1993-04-21 06:00:35 +00:00
proven bd669de58f This is the latest libdb from vangogh. Messaged so it compiles into
libc. Put in DB so if there is a problem people can back it out quickly
and compile the old db code.
1993-04-21 04:51:09 +00:00
proven 9f9548344e New db stuff is in DB now. Makefile reflects change. 1993-04-21 04:48:07 +00:00
proven fb198707d5 Opps, dbopen doesn't have an underscore. Fixed. 1993-04-21 04:26:21 +00:00
proven 7741d2f06f Fixed these twon files to use db_open instead of hash_open. 1993-04-21 04:21:06 +00:00
proven 121a20ce26 Took out an include line. Libc should compile now. 1993-04-21 04:12:55 +00:00
mycroft cd15061ca1 Huge performance improvement (not so bloody many spl calls)! 1993-04-21 00:04:14 +00:00
mycroft 02036429ba Slight performance improvement. 1993-04-20 23:45:21 +00:00
mycroft 07404f6b4a Fix typo in last change. 1993-04-20 23:09:36 +00:00
mycroft 791bd5c36a Don't output NULs. 1993-04-20 23:03:41 +00:00
mycroft 4137dfb5fc Don't dereference NULL pointer. 1993-04-20 22:05:34 +00:00
mycroft a42b9cde53 Don't modify string constants. 1993-04-20 22:00:26 +00:00
mycroft 55f0664ac6 Don't modify string constants. 1993-04-20 21:27:31 +00:00
mycroft 4eed028dae Add consistent multiple-inclusion protection (repeat). 1993-04-20 11:44:36 +00:00
mycroft 81fa8463a4 Restore files lost during crash. 1993-04-20 11:32:23 +00:00
mycroft bfdc0787e5 Add consistent multiple-inclusion protection (repeat). 1993-04-20 11:25:21 +00:00
mycroft 6ba0a5f833 Restore files lost during crash. 1993-04-20 11:20:47 +00:00
mycroft 812959c3bc Display more meaningful message on SCSI `unit attention'. 1993-04-20 10:51:51 +00:00
mycroft 3b7c434a2a Don't dereference NULL pointer. 1993-04-20 10:16:17 +00:00
mycroft 92bfba70b2 Fix message. 1993-04-20 10:05:22 +00:00
mycroft dad3d1f0c5 Don't dereference NULL pointer. 1993-04-20 09:30:45 +00:00
mycroft 1e5306a4a4 Don't overrun end of argv. 1993-04-20 09:07:41 +00:00
deraadt 0898058e1c a test for mycroft.. 1993-04-20 08:38:03 +00:00
deraadt 39de3fa7b2 Added two include files for YP 1993-04-20 06:03:55 +00:00
mycroft 1902243e9a Fix compilation error I introduced. 1993-04-20 04:43:23 +00:00
cgd f91ba7658e added undocumented +force and +only options, for creating and
installing distributions.

+force unlinks files before extracting them, +only adds *only*
the specified files to an archive (i.e. doesn't descend into
subdirectories).
1993-04-20 04:38:28 +00:00
mycroft 85a3dbeb8f Fix compilation error I introduced. 1993-04-20 04:23:07 +00:00
mycroft 54668dd818 Fix compilation error I introduced. 1993-04-20 04:12:13 +00:00
cgd 24fcd24cd9 get make clean[dir] to work right. fixes /bin/sh: not found problem 1993-04-20 03:29:36 +00:00
deraadt a34ceb83df deleted old comments at behest of original author :-) 1993-04-20 02:45:58 +00:00
cgd 2a9eddb179 re-merged include file changes which got eaten by crash 1993-04-20 01:00:44 +00:00
cgd 2309b598f0 compile needs to be kept in the distribution 1993-04-19 23:30:06 +00:00
mycroft 41ba73689b Don't overwrite global kernel version string. 1993-04-19 21:20:46 +00:00
mycroft 7f4b8ee6f9 Add config for Mycroft's 386 box. 1993-04-19 12:46:10 +00:00
mycroft 656ab7f977 Don't try to copy in from NULL pointer. 1993-04-19 12:42:39 +00:00
mycroft d2bc929b40 Don't overrun end of argument list. 1993-04-19 11:35:37 +00:00
mycroft 6cacf92707 Remove bogus option so as not to confuse bsearch(). 1993-04-19 11:25:41 +00:00
mycroft 32734f2430 Initialize locations before checking wizard mode. 1993-04-19 11:10:01 +00:00
mycroft 3f29ae8614 Fix bug I introduced. 1993-04-19 10:27:26 +00:00
mycroft 24ea534327 Use POSIX RAND_MAX rather than guessing. 1993-04-19 10:19:41 +00:00
mycroft 00ac5fff3f Cleanup for GCC 2. 1993-04-19 08:00:58 +00:00
mycroft abe115cd90 Cleanup for GCC 2. 1993-04-19 07:39:27 +00:00
mycroft 67dc9247fd Cleanup for GCC 2. 1993-04-19 07:28:01 +00:00
mycroft e3838b66a4 Cleanup for GCC 2. 1993-04-19 07:03:56 +00:00
mycroft 8e406824cf Cleanup for GCC 2 and make copyright notice look better. 1993-04-19 07:02:13 +00:00
mycroft ea1e659a02 Cleanup for GCC 2. 1993-04-19 06:59:19 +00:00
mycroft cf251e1757 Fix subtle word-size error. 1993-04-19 06:02:16 +00:00
cgd cd5b4fb2bc bt can't coexist with aha 1993-04-19 04:27:53 +00:00
mycroft 6656da79a3 Add consistent multiple-inclusion protection. 1993-04-19 03:45:34 +00:00
mycroft 0214777b1e Fix typo. 1993-04-19 01:35:01 +00:00
mycroft 1ec9f8f165 Add consistent multiple-inclusion protection. 1993-04-19 01:22:17 +00:00
mycroft 4a456b7f78 Add reinclusion protection. 1993-04-19 00:38:48 +00:00
mycroft 956b3da0ac Cleanup for GCC 2. 1993-04-19 00:28:50 +00:00
mycroft 7c3893694a Cleanup for GCC 2. 1993-04-19 00:03:40 +00:00
mycroft 1ee584f466 Cleanup for GCC 2. 1993-04-18 23:30:57 +00:00
mycroft bd85f11f64 Cleanup for GCC 2. 1993-04-18 23:19:47 +00:00
mycroft fb7a08205e Cleanup for GCC 2. 1993-04-18 21:52:18 +00:00
proven 3c8cf81241 Removed references to db in the Makefile. 1993-04-18 21:50:28 +00:00
proven 3ce4f83bb1 Updated header files for libdb. 1993-04-18 21:48:37 +00:00
proven 1783885f52 Added SSIZE_MAX, the POSIX macro for max of ssize_t. 1993-04-18 21:38:47 +00:00
mycroft 969666f6b6 Cleanup for GCC 2. 1993-04-18 20:50:22 +00:00
mycroft 2f4d616147 Cleanup for GCC 2 (and fix a small bogosity). 1993-04-18 20:40:35 +00:00
mycroft d834816976 Cleanup for GCC 2. 1993-04-18 20:22:09 +00:00
mycroft e83f4a1b5d Define default byte order for i386. 1993-04-18 20:18:21 +00:00
mycroft 08e7667749 Cleanup for GCC 2. 1993-04-18 20:01:35 +00:00
mycroft 88e7dfb57e Cleanup for GCC 2. 1993-04-18 19:27:06 +00:00
mycroft dc69f2c56f Cleanup for GCC 2. 1993-04-18 19:02:31 +00:00
mycroft de40d4ec4f Okay, so I was confused (but only a little). 1993-04-18 18:56:24 +00:00
mycroft 6088ce0311 Make rrestore target match normal program target.
(This should be in a separate directory, no?)
1993-04-18 18:52:48 +00:00
mycroft 81dcf658a9 Don't mix ANSI and pre-ANSI varargs. 1993-04-18 18:46:43 +00:00
mycroft 2296f00b71 Make rdump target match normal program target.
(This should probably be in a separate directory, no?)
1993-04-18 18:39:26 +00:00
mycroft 5d93b1086c Cleanup for GCC 2. 1993-04-18 18:14:35 +00:00
mycroft 24e253e223 Don't lose if obj dir not present. 1993-04-18 17:37:21 +00:00
mycroft f4db4d47b0 Return correct value for new probe sequence. 1993-04-18 10:24:56 +00:00
mycroft 3222ba6c9b Return correct value for new probe sequence. 1993-04-18 10:14:15 +00:00
deraadt 5d4f1a5fa4 slight code quality improvement. not related to the bug with very
old controllers or disks! :-)
1993-04-18 10:03:20 +00:00
mycroft a2cf976e44 Eliminate GCC 2 warning due to prototype not being in scope. 1993-04-18 09:22:35 +00:00
mycroft e2b392cead Fix error in last patch. 1993-04-18 09:21:15 +00:00
mycroft 106969a023 Make arguments match prototypes. 1993-04-18 09:19:56 +00:00
mycroft df43d1c146 Rewrite. Add support for GCC 2. 1993-04-18 08:47:09 +00:00
mycroft 90d56e641d Map QMAGIC execs at correct address. 1993-04-18 07:34:34 +00:00
mycroft d13a1ff6ff Add N_RELOFF(). 1993-04-17 20:07:05 +00:00
mycroft 6fa469409f Fix egregious stupidity which caused QMAGIC execs to be 32 bytes too long.
(Also occurs in BSDI's version, apparently.)
1993-04-17 20:06:31 +00:00
sef 97f28459fa NCCS is required by POSIX, so not defining it if _POSIX_SOURCE is
defined is *really* silly.
1993-04-17 18:04:18 +00:00
mycroft 17a4bade2e Allow argument to `#!' (i.e. `#!/bin/foo -argument'). 1993-04-17 08:07:03 +00:00
mycroft ab2215ba86 Enlarge MAXINTERP to make room for argument. 1993-04-17 08:06:33 +00:00
glass 271c07c44b this file is never compiled, nor included in 'files' because it is adapted
for the particular architecture.  However, it never would've compiled either
as it had the old '../h/foo.h' stuff in it.
1993-04-17 05:20:54 +00:00
mycroft 1cebf25c42 Use new format for attach message. 1993-04-17 04:46:12 +00:00
sef 9357b9fd48 `inline' is not present in gcc when -ansi is given; use __inline instead. 1993-04-17 02:13:22 +00:00
mycroft 1dfd2c7471 Fix silly typo. 1993-04-17 01:40:36 +00:00
mycroft bd72c04981 Add entry for HP ethernet driver. 1993-04-17 01:40:10 +00:00
mycroft 505befa1f0 Add driver for HP ISA and EISA ethernet adapters. 1993-04-17 01:39:27 +00:00
mycroft 0dc9849d08 Add proper cast. 1993-04-17 01:38:51 +00:00
mycroft 143a08d677 Add config for Mycroft's 486. 1993-04-17 01:22:04 +00:00
sef cb59b312ff Allow 'su foo -c command'. MAY BE BUGGY! (So sayeth Keith Bostic.)
I have noticed no problems yet, however.  Since Keith never did it
"properly" ...
1993-04-17 01:10:19 +00:00
mycroft 3cf4ffefb7 Add support for QMAGIC. 1993-04-16 13:44:34 +00:00
mycroft 8627e2fb36 Pick up QMAGIC stuff from BSDI and remove -screwballmode. 1993-04-16 13:33:02 +00:00
mycroft f85f3527e4 Add QMAGIC support. 1993-04-16 13:18:52 +00:00
mycroft e69cf2d63e Add support for QMAGIC. 1993-04-16 12:09:18 +00:00
alm 2b7e250215 Removed getrange() hack from undo() 1993-04-16 08:38:44 +00:00
deraadt 186b4ea6f9 Changed the files referenced in this manual page 1993-04-15 23:16:27 +00:00
deraadt 916a569299 ioconf changes, see previous cvs's that dumped core 1993-04-15 07:57:50 +00:00
deraadt 79947d74a5 Once more: some changes to the ioconf.c structure. It will now handle
devices hanging off controllers, any kind of controller.
A device on isa0 is called at probe(self), then attach(self)
A controller on isa0 is called at probe(self), then all it's children with
    defined unit numbers are initialized by calling attach(subdev); next all
    subdevices with unit ? are initialized by calling attach(sundev).
Almost all device entry points is now like the vax/sun model (intr being
the weird one)
1993-04-15 07:52:08 +00:00
glass 8d428f8321 i hate NDDB...... 1993-04-15 07:15:25 +00:00
glass 5d471896c6 NDDB made a re-appearance.... 1993-04-15 07:11:01 +00:00
deraadt a314fc8291 ooops. DDB instead of NDDB. A typo, i swear 1993-04-15 07:09:23 +00:00
deraadt 12fbc352f8 #ifdef DDB fix 1993-04-15 07:01:16 +00:00
deraadt a43fdf4e91 wd driver would fail on calling wdgetctlr() for older drives and
controllers. New behaviour is that if the standard method fails, try
to recalibrate the drive. Success means the drive exists.  patch by
hpeyerl@novatel.cuc.ab.ca (who owns several of these historical
artifacts)
1993-04-15 06:39:00 +00:00
sef b8ec9004b7 Added QMAGIC, which is a "compact demand load" format: first page is
unmapped, and the a.out header is inside the text section.
1993-04-15 05:48:22 +00:00
alm 4f7032ec1a added an efficient and relatively clean move (`m' command)
added ustack checking
1993-04-15 04:58:32 +00:00
deraadt e4561cefb0 Because so much stuff expects it.. 1993-04-15 01:04:14 +00:00
sef 62698405a0 Bloody stupid misspelled name caused me grief, so I'm changing it
wherever I can.  (Function is getgrnam, documentation says getgrnam*e*!)
1993-04-14 21:31:58 +00:00
alm 2c6e33ffe1 cleaned up docs 1993-04-14 12:22:59 +00:00
alm 01fa80912c implemented line marks as pointers
marks to lines that are moved, deleted or otherwise changed are cleared
undo restores cleared marks
added strerror diagnostics
1993-04-14 12:22:14 +00:00
alm 49d1994686 added tests for the `k' and `w' commands 1993-04-14 12:05:05 +00:00
alm 252593ff6f added Berkeley sed with mods to use GNU regex 1993-04-13 23:49:12 +00:00
alm 275627b900 moved Makefile -> Makefile.bsd
(cvs add ../Makefile doesn't work otherwise)
1993-04-13 23:48:12 +00:00
mycroft 11da4bc6cb Clean up deleted files. 1993-04-13 23:21:46 +00:00
cgd 00fd25ea1c should be looking in /usr/include/sys/syscall.h 1993-04-13 16:33:31 +00:00
cgd 2ce47ef504 forgot a \... 1993-04-13 16:17:59 +00:00
cgd 2319d4ba25 oops. screwed that up... 1993-04-13 16:15:29 +00:00
cgd d1019296f4 make /var/spool/output and /kern, and disable example printer 1993-04-13 16:12:56 +00:00
alm 92ca670719 cleaned up mkscripts.sh and ckscripts.sh 1993-04-13 09:29:21 +00:00
alm 0a3cfcaa6e Added tests: \n[12].[drt] [ik]3.err 1993-04-13 08:35:55 +00:00
cgd 0b6b478b03 got rid of sf entry for cp3100, and added new cp3100 layout, for testing
on boat anchor
1993-04-12 20:40:20 +00:00
sef 7025ea05ab Print spaces instead of '0' for a non-idle user. Looks nicer. 1993-04-12 19:40:01 +00:00
cgd 68da83e928 added -DNFSSERVER to makefile. another point for glass. 1993-04-12 19:31:40 +00:00
cgd a3a5e2ebc9 got rid of options for hacked com driver; it's not in this tree,
they shouldn't be in the config file.  not that SUN_LAMP has
com ports anyway...
1993-04-12 19:25:38 +00:00
cgd ee9b66fe20 fixed NFSCLIENT problem. 1993-04-12 18:22:27 +00:00
deraadt d3572756ef fixed various bugs like cdattach() returning garbage. 1993-04-12 12:10:28 +00:00
deraadt 69dbd456da kernel config files that know the new scsi system 1993-04-12 11:39:53 +00:00
mycroft 152f617bbf Ignore forged ICMP_UNREACH with dport==0 and sport==0. 1993-04-12 11:07:57 +00:00
deraadt 5025c5a803 small fixes 1993-04-12 10:15:21 +00:00
cgd 955b7e04f5 needed -f on that rm... 1993-04-12 09:44:53 +00:00
deraadt c3ca5d6d70 new scsi subsystem.
changes also in config/mkioconf.c
	i386/isa/wd.c, fd.c, and all scsi drivers.
1993-04-12 08:19:28 +00:00
deraadt e776d31344 new scsi subsystem.
changes also in /sys/scsi/* i386/isa/wd.c, fd.c, and all scsi drivers.
1993-04-12 08:18:09 +00:00
deraadt 27d2f9012b new scsi subsystem.
changes also in config/mkioconf.c & sys/scsi/*
1993-04-12 08:17:23 +00:00
cgd 3ae29e93a0 need com[01] rather than com[12] 1993-04-11 20:42:46 +00:00
cgd 666f7167ff give 1.2M floppies an "a" partition 1993-04-11 20:30:41 +00:00
cgd ed60e07b34 changed ident 1993-04-11 18:56:21 +00:00
cgd 8adbcd592e NFS not properly defined. glass gets another point. 1993-04-11 18:29:46 +00:00
cgd 423e6b1af5 forgot semicolon => syntax error. stupid error, glass... 1993-04-11 17:33:43 +00:00
deraadt 051219e049 Whoops. vidio card io space is 16 bytes large, not 8 bytes large. probe
now returns the right thing
1993-04-11 10:16:54 +00:00
deraadt 0b764b7838 nay, pccons.c still did not return the right thing from probe.. --> 8 1993-04-11 07:09:29 +00:00
cgd 20b25d1a3c name of root device for new scsi system is 'sd'. duly noted. 1993-04-10 21:58:52 +00:00
cgd 41317f600b aha (aha1542) and ahb (aha1742) conflict; can't put them in the same
config file
1993-04-10 21:55:49 +00:00
cgd a7a720a956 made it appropriately generic, and added PCFS and KERNFS support 1993-04-10 21:21:33 +00:00
cgd c67e2b95e6 was saying "not responding" on failed probe. that's bogus. 1993-04-10 21:09:13 +00:00
cgd 760d173c2f changed titles from elvrec to elvisrecover 1993-04-10 21:02:56 +00:00
cgd 9797867722 give boat-anchor a PCFS 1993-04-10 20:46:46 +00:00
cgd 706c659a76 version's not supposed to be printed here; it's supposed to be printed
in machdep.c
1993-04-10 20:46:16 +00:00
cgd 4877d3b136 make sure /usr/share/misc exists before installing into it. 1993-04-10 20:39:06 +00:00
glass 0eba6567e8 forgot to update syscalls.master. the makesyscalls.sh generated stuff
is now updated
1993-04-10 20:27:10 +00:00
cgd 3c53596edc get rid of /sys before you try to make the symlink... 1993-04-10 20:20:21 +00:00
glass f541c0d7a1 fixed an #ifdef NFS 1993-04-10 20:19:59 +00:00
glass ec39ed2cb6 migrated code to make split possible 1993-04-10 20:19:19 +00:00
glass 59b207edae fixed '#ifdef NFS' appropriately. 1993-04-10 20:18:57 +00:00
glass e875147a3d Added NFSSERVER,NFSCLIENT where appropriate. 1993-04-10 20:17:43 +00:00
cgd dd2c9acd59 make user the cat5 dir exists before trying to install man page there. 1993-04-10 20:17:42 +00:00
glass 2d7edae649 Added NFSSERVER,NFSCLIENT where appropriate. 1993-04-10 20:17:28 +00:00
glass 246a0e232b made appropriate changes for separate inclusion of nfsclient and nfsserver support 1993-04-10 20:17:08 +00:00
glass 58daf81e2a doesn't core when nfsclient support is not in kernel 1993-04-10 20:16:13 +00:00
glass 470c7aede4 doesn't core when nfsserver support is not in kernel 1993-04-10 20:16:04 +00:00
glass 8cebfdf78e fixes for nfs_client, nfs_server division. 1993-04-10 20:15:30 +00:00
cgd 32030e7965 forgot to get rid of a \... 1993-04-10 20:11:57 +00:00
cgd 8b5b47cd42 make chmods explicit 1993-04-10 20:08:35 +00:00
cgd 0c7b8414c5 always run portmap 1993-04-10 18:01:31 +00:00
cgd 23865d49d3 fix rwalld so that it goes into daemon mode properly. 1993-04-10 17:59:27 +00:00
cgd c4bcf7536b subdir is librpc; somebody was a moron... 1993-04-10 17:27:23 +00:00
cgd ba606c386d ignore exit status from ex when building termcap. don't know
why it returns 1...
1993-04-10 16:47:39 +00:00
cgd 26fc951501 fixed LINKS entries... 1993-04-10 16:16:18 +00:00
cgd bab4c707b8 fixed makefile bogons 1993-04-10 16:09:10 +00:00
glass 702df89fe4 got rid of various sundry warnings. rgrimes should've fixed this crap 1993-04-10 16:00:39 +00:00
cgd 6b5cfc0efc gnu zip. necessary to unpack the distribution 1993-04-10 15:59:43 +00:00
glass 073c019797 fixed missing include to avoid warning 1993-04-10 15:59:30 +00:00
cgd b150a32439 gnu zip. necessary to unpack the distribution 1993-04-10 15:58:58 +00:00
glass 673049393c Fixed so they are useable when compiled with options NS. Not that I know
anyone who will.....
1993-04-10 15:58:56 +00:00
cgd 6cfc83137b gnu zip. necessary to unpack the distribution 1993-04-10 15:58:55 +00:00
glass 3e385e5a2d Fixed so they are useable when compiled with options NS. Not that I know
anyone who will.....
1993-04-10 15:58:53 +00:00
cgd 5228a1c934 gnu zip. necessary to unpack the distribution 1993-04-10 15:58:49 +00:00
glass 2c14b45fc1 Fixed so they are useable when compiled with options NS. Not that I know
anyone who will.....
1993-04-10 15:58:48 +00:00
cgd 56cf4bf3ea gnu zip. necessary to unpack the distribution 1993-04-10 15:58:46 +00:00
glass 70641a7ded Fixed so they are useable when compiled with options NS. Not that I know
anyone who will.....
1993-04-10 15:58:45 +00:00
glass 1f3e9e5acf Added support for NS checksums by stealing portable code from net2. would
need to be optimized to use.
1993-04-10 15:57:22 +00:00
cgd c5c4096802 gnu zip. necessary to unpack the distribution 1993-04-10 15:55:19 +00:00
glass a964a08814 Added ISO,CITTT,NS stuff. still missing a few things. up to 798k 1993-04-10 15:55:16 +00:00
cgd 566904868a gnu zip. necessary to unpack the distribution 1993-04-10 15:55:03 +00:00
cgd 9c9489dbd0 gnu bc. necessary to compile the distribution 1993-04-10 15:54:16 +00:00
glass c328e7fb68 imp support is not present and is therefor 'requires broken' 1993-04-10 15:54:14 +00:00
cgd 7b0611c4f2 gnu bc. necessary to compile the distribution 1993-04-10 15:51:24 +00:00
cgd 3b7c040211 makefiles for usr.gnubin. initial programs are bc and gzip,
both of which are necessary for the distribution.
1993-04-10 15:50:59 +00:00
cgd 6160efda1f added `usr.gnubin' for new gnu binaries necessary for the distribution. 1993-04-10 15:49:55 +00:00
cgd 63ff4a20b8 isntall regex.h under ${DESTDIR} 1993-04-10 15:24:44 +00:00
glass 6021760d1d Prevents you from creating double faults and such mmaping stuff on top
of the kernel, etc. Tested.  Derived from BSDI public patches
1993-04-10 15:06:01 +00:00
cgd 198fd6c1c0 From: pk@cs.few.eur.nl (Paul Kranenburg)
patch which allows ps(1) and w(1) to lay
their hands on process command line arguments.
1993-04-10 15:02:41 +00:00
cgd 0b8e85328f from "Andrew A. Chernov, Black Mage" <ache@astral.msk.su>
When sh tried to find_command() for execution (without full path),
it checked ONLY ONE current effective group execution permissions,
but didn't check another valid groups from /etc/group.
1993-04-10 14:55:52 +00:00
cgd 48a79e3d21 print out useful information on boot, and do something
a bit more intelligent with the extended memory size...
1993-04-10 13:47:49 +00:00
cgd e50dda6048 we don't config as0 in, let alone swap on it... 1993-04-10 12:50:17 +00:00
cgd 279e13a0f4 ed core dumped on blank lines. 1993-04-10 12:47:09 +00:00
cgd d510d13daa bump number of ptys up to 16, and maxusers to 24... 1993-04-10 12:30:35 +00:00
cgd 01710d6ebb added swapinfo from Kevin Lahey <kml@rokkaku.atl.ga.us> 1993-04-10 12:16:52 +00:00
glass 37145b2939 oops..left in -g 1993-04-10 12:16:42 +00:00
cgd fb4cba50e1 added swapinfo from Kevin Lahey <kml@rokkaku.atl.ga.us> 1993-04-10 12:16:41 +00:00
glass a0b5913b35 Welcome to the new order. config(8)'s code for reading files, files.i386,
and files.kernel has now been completely replaced.
features supported: not nearly as broken as the stuff before
		    expression support for dependencies
		    support for 'requires'
		    no longer generates lots of stupid unnecessary .h files
		    broke lots of broken stuff, and forced fixing it.
(docs to arrive later)
		    added '-k' option for continue even after error
		    documented '-g'
1993-04-10 12:11:55 +00:00
glass 1cc06f5797 fixed to be compliant, subservient, and to take advantage of the newly
hacked config(8)
1993-04-10 12:04:35 +00:00
glass dab7332d0a fixed to be compliant, subservient, and to take advantage of the newly
hacked config(8)
ALL config file should gradually get all the configurable options,drivers,etc
1993-04-10 12:03:30 +00:00
glass 14535e5bda fixed to be compliant, subservient, and to take advantage of the newly
hacked config(8)
1993-04-10 12:02:29 +00:00
cgd 5296f15222 updated from elvis-1.7 1993-04-10 11:52:38 +00:00
mycroft d427f0b9d8 Clean up deleted files. 1993-04-10 11:50:01 +00:00
cgd 49a26c0a42 updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
cgd 24ce49822b goddamned v macro added rcsid... 1993-04-10 11:46:28 +00:00
glass effedf01b9 rexecd was on in the default installation. rexecd is not your a secure friend.
those who want it should have to turn it on explicitly
1993-04-10 11:30:05 +00:00
cgd 4635f98136 make rwalld default to on... 1993-04-10 11:28:16 +00:00
glass 9d4884b8bc mountd's log of who has what filesystem mounted should not persist across
reboots.
1993-04-10 11:24:37 +00:00
cgd 1c4d7902e5 added distrib-dirs (which distribution depends on) to make the
dirs necessary for a distribution (e.g. /root, /tmp, /var/*, etc.)
1993-04-10 11:11:40 +00:00
cgd f5b9c354d7 get rid of damned "d"foo 1993-04-10 06:26:15 +00:00
mycroft 9bcf039c91 Back out previous change. 1993-04-10 03:26:18 +00:00
mycroft f71cf4776b Changes for PCFS. 1993-04-10 03:20:59 +00:00
mycroft 3b9c835e33 Reverse sense of fnmatch() to match POSIX. 1993-04-10 01:32:25 +00:00
mycroft 16f4e4a599 Reverse sense of fnmatch() to match POSIX. 1993-04-10 01:10:27 +00:00
mycroft 3f6b1e9b0f Be silent if -f specified. 1993-04-10 00:57:03 +00:00
mycroft cad29773d5 Check for malloc() failure in pmap_enter(). 1993-04-10 00:52:34 +00:00
mycroft 0d35e2256c Make return status match POSIX and man page. 1993-04-10 00:25:35 +00:00
cgd b9391bf2d7 datfiles need obj made, too. 1993-04-09 23:56:18 +00:00
cgd 75eeb2176f fixed typo 1993-04-09 23:28:42 +00:00
cgd 2a0b98269d fixed bug that i created when updating for new entries 1993-04-09 23:13:38 +00:00
proven e897e2b03d Fixed problem where users with a blank password field can't change their
password.
1993-04-09 21:37:55 +00:00
proven 542723d115 Fixed minor bug where a ^D at the terminal type prompt caused an infinite loop. 1993-04-09 21:36:14 +00:00
cgd 0da1be3552 oops; got rid of obj target -- that wasn't sensible! 1993-04-09 21:01:12 +00:00
cgd d5dfa99350 get open.o out of the sources list, and replace it with open.cc 1993-04-09 20:57:54 +00:00
cgd 7d04f9d0c6 bump slip MTU back down to 296... 1993-04-09 20:42:06 +00:00
cgd cd01c196b6 added man page for pcfs, the MS-DOS filesystem 1993-04-09 20:24:59 +00:00
cgd 7e005f45af fixed epsilon problem in tp man page, added bpf man page. 1993-04-09 20:24:12 +00:00
cgd 19c410adf5 various changes to default make rules. from patch 101.
note that only the "sensible" changes in patch 101 are implemented.
1993-04-09 20:05:56 +00:00
cgd 677f690a53 add support for PCFS, the MSDOS filesystem.
written by Paul Popelka (paulp@uts.amdahl.com) (patch 129)

invoke w/"options PCFS" in kernel config file.
1993-04-09 19:37:49 +00:00
cgd 4f7d91990d ported from Net/2. (patch 111) 1993-04-09 19:25:07 +00:00
cgd eaeed9cf01 written by Paul Popelka. mounts pcfs MS-DOS filesystem. (patch 111) 1993-04-09 19:24:39 +00:00
cgd cc0adaf190 added a 386bsd fdisk program, by julian elischer. (patch 111) 1993-04-09 19:23:56 +00:00
cgd a1b6b7658c added mount_pcfs, quotacheck, and fdisk. fdisk is i386 specific.
(patch 111)
1993-04-09 19:23:22 +00:00
cgd a61c514f29 rwalld should be run *after* the portmapper. 1993-04-09 19:13:21 +00:00
cgd 7c7b3299b9 fixed stupid typo (missing comma) in hand-applied diff 1993-04-09 17:19:02 +00:00
cgd a45f1e8fe4 From: Guido van Rooij <guido@gvr.win.tue.nl>
when mmapping a file, permissions are checked as it should be. When
mprotect()-ing the address range afterwards, no protection was checked
regarding the protection of the file originally opened. So
when you open /usr/bin/su RDONLY and SHARED you could afterwards change
the mmapped region to READ|WRITE. This gave the possibility to obtain
root privs obviously.
1993-04-09 17:16:30 +00:00
cgd fe01dec137 changes, running on sef's machine to good effect, likely contributed
by torek.  (sef told me to get them, and their origin...)
1993-04-09 17:13:17 +00:00
cgd 9d6d3ca863 From: andrew@werple.apana.org.au (Andrew Herbert)
Here are some fixes I derived from the mach 3.0 VM system a couple of months
ago.  At the time, I was giving the memory object routines a good looking
at, trying to fix the long-standing problem where vm_object_collapse()
sometimes fails to collapse objects left over from the exit of a forked
child.  As bde has noted, the problem seems to occur when portions of the
parent are paged out.  These "lost" memory objects, which can eat up a huge
amount of swap space, are reclaimed when the parent responsible for the
fork()s is killed.
1993-04-09 16:53:46 +00:00
cgd 06285a581c have probe return size of io space on successful return, rather
than simply 1.
1993-04-09 16:43:56 +00:00
cgd 55673829c1 have probe return size of io space on successful return, rather
than simply 1.
1993-04-09 16:25:07 +00:00
cgd 900a3239c7 make printing of i/o addresses a bit prettier, and fix off-by-one error. 1993-04-09 16:24:26 +00:00
cgd f4e4c57db0 from sean eric fagan:
it seems to keep the vm system from deadlocking the system when it runs
out of swap + physical memory.
prevents the system from giving the last page(s) to anything but the
referenced "processes" (especially important is the pager process,
which should never have to wait for a free page).
1993-04-09 15:54:56 +00:00
cgd eabef6221e from Rodney W. Grimes (rgrimes@agora.rain.com) (patchkit patch 117):
This patch adds the symbol names to icu.s that vmstat expects
the interrupt counters to be called.  It also adds code to config
so that the names of the interrupts are written at the end of vectors.s
so vmstat can report real device names.  It also cleans up and enables
the logging of stray interrupts.  The counters for false interrupts
are added but the fix for them is not (the fix I have is not done
very good.) A false interrupt is when a device asserts it's interrupt
signal, then removes it before the 8259 can latch it.  This is the number
one cause of stray IRQ7's and IRQ15's.

        Additional device probe information is now printed.  This includes
ending I/O address (many drivers do not return the correct value from a
probe this still needs to be fixed), memory address and size, driver
flags passed in by config.
1993-04-09 13:43:40 +00:00
cgd 7581fb9129 from Rodney W. Grimes (rgrimes@agora.rain.com) (patchkit patch 117):
This patch adds the symbol names to icu.s that vmstat expects
the interrupt counters to be called.  It also adds code to config
so that the names of the interrupts are written at the end of vectors.s
so vmstat can report real device names.  It also cleans up and enables
the logging of stray interrupts.  The counters for false interrupts
are added but the fix for them is not (the fix I have is not done
very good.) A false interrupt is when a device asserts it's interrupt
signal, then removes it before the 8259 can latch it.  This is the number
one cause of stray IRQ7's and IRQ15's.

	Additional device probe information is now printed.  This includes
ending I/O address (many drivers do not return the correct value from a
probe this still needs to be fixed), memory address and size, driver
flags passed in by config.
1993-04-09 13:27:46 +00:00
cgd 09c312bb73 patch from rodney grimes (patch 118):
added CFLAGS so that include files could be found by mkdep,
and so that make depend would invoke the g++ version of cpp.
1993-04-09 13:13:30 +00:00
cgd 5322c7a513 from rodney grimes (patch 120):
added depend and tags targets (no-ops).
1993-04-09 13:10:30 +00:00
cgd 034583a694 added, from net/2 (patch 124). 1993-04-09 12:58:42 +00:00
cgd f64e872852 added, from net/2 (patch 119). 1993-04-09 12:58:06 +00:00
cgd cfd4ff279a added the following dirs from net/2 (patch 119):
error	fpr	fsplit	indent	lastcomm
	look	quota	sccs	tcopy	tset
	vgrind	vmstat	window
1993-04-09 12:57:44 +00:00
cgd 8ac427f6b5 from patch 110, by bostic:
dump not mapping last inode in fs
1993-04-09 12:29:06 +00:00
cgd 9c00f416cb from patch 108, by jordan hubbard:
The value of endp returned by strtod() was off by one.  There was also a
const char * vs char * assignment that I took the opportunity to fix.
1993-04-09 12:27:23 +00:00
cgd 07db08d6a2 from patch 107:
This is a patch for ar(1) and ranlib(1) which fixes a problem for object
modules names longer than 16 characters and odd in length.  The problem
was that such records are padded to make sure the next record started on
an even byte boundary, but during reads the padding character was forgotten,
resulting in an "Inappropriate file type or format" error.
1993-04-09 12:25:43 +00:00
cgd 9618d7e2cc doesn't need -lcompat 1993-04-09 12:22:07 +00:00
cgd dd7266b596 added msgs 1993-04-09 12:21:10 +00:00
cgd 15a209713d fix from Chris Torek (patch 106):
386BSD inherits a bug from the 4.3 Reno port for contiguous block allocation.
1993-04-09 12:19:12 +00:00
cgd 71d90cb087 added accton, edquota, flcopy, gettable, htable, iostat, quotaon,
repquota, trpt, and trsp, per (currently alpha) patch 125.
1993-04-09 12:15:37 +00:00
cgd a86141d84e added netccitt, netiso, and netns support, from (currently
alpha) patch 126
1993-04-09 12:00:07 +00:00
cgd 562a073214 patch 2.0.12u8, from prep.ai.mit.edu. this is not under the GPL. 1993-04-09 11:33:50 +00:00
cgd 7266bf8b47 added entry for `patch' 1993-04-09 11:33:20 +00:00
glass eaa2c1ec57 fixes stupid piece of bpf code that duplicates cdefs.h's handling of
'inline' in such a way as to cause stupid warnings.
1993-04-09 11:02:51 +00:00
cgd b74250cc21 make sure directory for calendar files exists before installing them 1993-04-09 10:26:42 +00:00
cgd 0cd6e6c68d fix find & deletion of old files so that it doesn't look in kernfs
or fdesc fs
1993-04-09 10:25:02 +00:00
cgd 087b982e68 make install copy, rather than move, the binary. 1993-04-09 09:47:42 +00:00
cgd 3f6bac1391 add y.tab.h to CLEANFILES. 1993-04-09 09:46:14 +00:00
cgd d4c9e9bc51 make sure directories to install stuff exist before installing 1993-04-09 09:43:43 +00:00
cgd 30db0aacbb term manpage is missing 1993-04-09 09:43:20 +00:00
cgd 6db0570eb1 actually do subdirs; they aren't missing! 1993-04-09 09:43:03 +00:00
cgd 35319ac3c1 make sure directory to install stuff exists before installing 1993-04-09 09:39:59 +00:00
cgd 15b6a3b062 make sure directory to install stuff exists before installing,
and copy libs rather than mv'ing them, on install
1993-04-09 09:39:34 +00:00
cgd 70305c5802 make sure directory to install stuff exists before installing 1993-04-09 09:38:47 +00:00
cgd d4572ed512 copy deck of cards, rather than moving it, on install 1993-04-09 09:38:35 +00:00
cgd 2c3828ecf8 make sure directory to install stuff exists before installing 1993-04-09 09:38:08 +00:00
cgd 7494dbbee1 fix various install problems. 1993-04-09 09:37:17 +00:00
cgd 8ad346573e add man page to CLEANFILES (because of strange way man page
is generated).
1993-04-09 09:36:09 +00:00
cgd 23a0d8331f make sure directory to install stuff exists before installing 1993-04-09 09:35:33 +00:00
cgd 59ee310876 try to do the right thing, in terms making directories before we
install into them, and get the manpage cleans _OUT_ of "clean".
they don't belong there, only in cleandir, WFJ be damned.
1993-04-08 17:18:42 +00:00
cgd ea67b0e2a3 stop removing when done 1993-04-08 14:31:36 +00:00
cgd aab31c596e make it copy when installing 1993-04-08 14:13:46 +00:00
cgd 2fe0e3cfe0 fixed typos... 1993-04-08 14:10:30 +00:00
cgd d76d98fe1c (silently) make sure we have directories before installing 1993-04-08 14:02:00 +00:00
cgd 8b40025a75 make install copy 1993-04-08 13:53:28 +00:00
deraadt ca9d5ae91d dmesg output at boottime now tries to print out information as
soon as it is available. The output looks much more like Sunos.
1993-04-08 08:26:46 +00:00
cgd f9aef3ea25 patched w/changes from blymn@mulga.awadi.com.AU (Brett Lymn) to
fix things like flow control support, SLIP option support etc.
1993-04-08 04:15:41 +00:00
cgd 010e06de9f to get scsi system, you now use "options SCSI" rather
than "controller scbus0" -- makes more sense
1993-04-08 04:08:00 +00:00
cgd 147ebd634e put scsi system file list in the right place (finally) 1993-04-08 04:05:33 +00:00
cgd 00fe45db60 added -DBSD to CFLAGS, so it realizes we're not minix. 1993-04-08 03:02:20 +00:00
cgd b4ee3e18a4 fixed usr vs. var problems, and made it say "elvisrecover" 1993-04-08 02:47:40 +00:00
cgd ccacfe85d7 fixed var vs. usr in man page, and made it say "elvispreserve" 1993-04-08 02:46:10 +00:00
cgd fd3153fe70 incorporated alm's update of elvis to 1.7 1993-04-08 02:22:57 +00:00
cgd dc98551120 gnu regex 0.12 1993-04-08 01:12:23 +00:00
cgd 8d117f4700 gnulib == libraries under the GPL which need to go in the main tree.
starting out, this is regex-0.12
1993-04-08 01:10:47 +00:00
cgd 3498f48669 added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
cgd 040d6d8633 added gnulib, for gnu libraries that for whatever reason need to go
into the main tree
1993-04-08 01:05:57 +00:00
glass 34100d9dcb attempting to open an already opened tape drive should get you EBUSY, not
ENXIO.
1993-04-08 00:20:02 +00:00
deraadt 45f679c586 /* ... /* ... */ problem in an include file 1993-04-07 09:15:28 +00:00
deraadt 9378c209ee wd7000 entry 1993-04-06 20:59:57 +00:00
deraadt 35c0142bfc wd7000 device driver, put in IO_WDS entry in isa.h. You can now build a
kernel with it. Hope your dma works better than mine <grr>
1993-04-06 20:58:01 +00:00
cgd 7227b802d4 added console security, if SECURE_CONSOLE defined in makefile,
and console not secure in ttys
1993-04-06 19:33:33 +00:00
cgd 435973b201 changed order of copyright/version notice (to match 4.4 boot string)... 1993-04-06 14:23:00 +00:00
deraadt d91ae21deb ripped out a message 1993-04-06 12:09:55 +00:00
deraadt bb20ba017d <no drive> message gone. 1993-04-06 12:04:04 +00:00
deraadt 24368ed535 fd.c -- changed type=0 to correspond to "drive not found" 1993-04-06 11:52:35 +00:00
deraadt 38031e9665 Modified floppy and WD enties for mod-barsoom controller type. 1993-04-06 10:49:30 +00:00
glass 532de73ea8 used by makesyscalls.sh to produce init_sysent.c, syscalls.c ../sys/syscall.h
edit this to add/delete/ifdef system calls
1993-04-06 10:39:51 +00:00
glass 73fc0296bb added 'makesyscalls.sh' from BNR/2. Edit only 'syscalls.master'
recreates init_sysent.c syscalls.c ../sys/syscall.h which should
then be checked back in.
1993-04-06 10:37:09 +00:00
deraadt f598d9ff42 deraadt@fsa.ca's kernel config file 1993-04-06 10:08:17 +00:00
deraadt 2f9d57fa75 Mod-barsoom wd additions. config program + kernel config files changed too.
fd support had to change slightly too.
1993-04-06 10:06:28 +00:00
deraadt d20f5ccf06 added: incomplete wd7000-asc scsi controller device driver. 1993-04-06 10:04:46 +00:00
deraadt 2984b216c5 config will now deal with wdc and fdc in "barsoom" fashion. This patch is
not identical to barsoom's patch, but I think it's an easier patch.
Check out compile/KERN/ioconf.c to see the effect. (On e kernel with wd and/or
fd of course)
1993-04-06 09:53:49 +00:00
deraadt 9280e75029 commit damnit! 1993-04-06 06:50:20 +00:00
deraadt 40d8c38153 selwakeup() takes a "pid_t" rather than "struct proc *" now. 1993-04-05 22:04:09 +00:00
cgd 87631fe1b1 screwed it up again... = vs ==. 1993-04-05 04:01:06 +00:00
cgd 67fe058ef5 screwed up comparison for rwalld and rwhod... 1993-04-05 03:55:14 +00:00
cgd 0f5f18cfb8 made link to chgrp relative 1993-04-05 03:42:43 +00:00
cgd 463cb653ff moved chown into sbin from usr.sbin 1993-04-05 03:40:06 +00:00
cgd e7178b8c1f rwall, mostly-original by cgd.
code snarfed from rwalld (from cgd), and wall (from UCB).
1993-04-04 20:15:30 +00:00
cgd 6569d4a6f1 added support for rwall 1993-04-04 20:14:43 +00:00
cgd 9e7df9426a now that we have subdirs, need to do them on install, too... 1993-04-04 19:17:10 +00:00
cgd d7702904d5 rwall RPC definition. original, by cgd, but numbers gleaned
from headers+portmap on other machines.
1993-04-04 19:02:36 +00:00
cgd 71d70bcf8a original, by cgd 1993-04-04 19:01:05 +00:00
cgd a6bf3c60b6 updated for addition of rwalld 1993-04-04 19:00:49 +00:00
cgd d89b682182 from SUNRPC 4.0 1993-04-04 19:00:06 +00:00
cgd a5c3a2c399 updated for addition of rpcsvc 1993-04-04 18:59:30 +00:00
cgd 68f53ef1c8 updated for addition of rwalld 1993-04-04 18:59:11 +00:00
cgd 0ac91c5eca added support for uid `nobody' running wall with -n option (no banner),
for rwalld support.
1993-04-04 16:10:33 +00:00
cgd 1db7fe572d make `install' of libraries copy rather than move. 1993-04-04 15:31:38 +00:00
cgd aa70fbc6e6 make LIBRPC point to the right place 1993-04-04 15:30:16 +00:00
cgd 7044722b27 made CPP point to the right place. should check these things before commit. 1993-04-04 12:37:24 +00:00
cgd bb264ac730 quick makefile for rpc man page master dir 1993-04-04 12:21:18 +00:00
cgd 3de1753d47 fixed bug where space in a line had "priority" over a tab in finding
the end of the current field, even if the space came after a tab...
1993-04-04 12:06:31 +00:00
cgd 141acb369f added quiz from net-2 1993-04-04 10:49:24 +00:00
cgd 140ed43c2e added banner from net-2 1993-04-04 10:48:54 +00:00
cgd 0f3081027b added banner and quiz from net-2 1993-04-04 10:48:35 +00:00
cgd 5f982e7a6e fixed makefile so it doesn't need to write to dir on install and doesn't
need symlink
1993-04-04 10:37:27 +00:00
cgd 6992ca434a move prototype fstab files into /etc rather than / 1993-04-04 06:14:47 +00:00
cgd 1a7504ebc8 now can config `maxfdescs number', similar to `maxusers' to set
the max. number of fd's a user is limited to.
1993-04-04 04:33:03 +00:00
cgd 038949eeab now uses `maxfdescs' to bound `openfiles' resource limit. 1993-04-04 04:32:14 +00:00
cgd f4637f30d8 added maxfdescs definition 1993-04-04 04:31:05 +00:00
glass 22a72b29ce wildcard mx support is flakey, distributed config file now defaults to no
special handling for wildcard MX case.
no longer tries to close getdtablesize() file descriptors.
1993-04-03 23:39:27 +00:00
cgd 4183eee2d7 got rid of accidental extra newline 1993-04-03 11:19:42 +00:00
cgd 601a303f5f added `options KTRACE' 1993-04-03 07:33:10 +00:00
cgd 48d82b64da converted date in kernel version to standard date output format. 1993-04-03 03:53:00 +00:00
cgd 5d03fbf11b added changes from Steven Reiz <sreiz@aie.nl> (based on
those by Poul-Henning Kamp <phk@data.fls.dk>) to get the kernel
to compile properly when gcc2.* is cc.  (should still work
when gcc1.39 is in use.)
1993-04-03 02:15:18 +00:00
cgd 562df678c3 change from make tinguely (tinguely@hookie.cs.ndsu.NoDak.edu) to make
opening running programs for writing return ETXTBUSY.
1993-04-03 01:56:45 +00:00
cgd 039e3432f5 fixed wfj's trampling on UCB copyright notices. 1993-04-03 01:42:13 +00:00
cgd 0c79803a35 now just prints out version. also, got rid of kernel_version,
and fixed wfj's trampling on UCB copyright notices.
1993-04-03 01:41:32 +00:00
cgd 97b1559840 added various things, to make kernel version info more useful 1993-04-03 01:40:55 +00:00
cgd f6c5a40431 get version from /kern/version, if exists, else ??? 1993-04-03 01:40:29 +00:00
glass 589c277072 Added /etc/rpc for librpc support
fixed crontab so it works (oops)
fixed /etc/daily whatis.db support
1993-04-03 01:12:21 +00:00
glass 71b53023ca Now installs man pages 1993-04-03 00:59:48 +00:00
glass 03464bc015 Now just a subdir.mk 1993-04-03 00:59:16 +00:00
glass dc9e107e5e now installs flexdoc(1) too. 1993-04-03 00:53:37 +00:00
glass 5c7def06b0 Added rpcinfo(8) 1993-04-03 00:52:27 +00:00
glass 2f1f099520 Added rpcgen(1) 1993-04-03 00:51:49 +00:00
glass 20b3ce3e8c Added rpcinfo(8), rpcgen(1) 1993-04-03 00:51:30 +00:00
glass f4961784f3 Now installs zic(8) man page 1993-04-03 00:37:53 +00:00
deraadt e38677c2db getdomainname fix. had to declare get/setdomainname() implicitly extern. 1993-04-02 20:38:22 +00:00
cgd 215867354d Simon J. Gerraty <sjg@zen.void.oz.au>:
cut -f1 outputs a field separator before the first field.
1993-04-02 20:21:47 +00:00
cgd b8543ac7ca Jay Fenlason <hack@datacube.com>:
1: the fi_readers and fi_writers fields of the fifoinfo structure were not
being initialized to 0.  This caused the driver to not sleep the first
process to open the fifo--it thought there was already another process to
talk to (most of the time.)

2: fifo_open() was calling tsleep() without unlocking the inode of the fifo
file.  This caused *any* subsequent access to the file (even an ls (!)) to
hang forever.  Note that this bug was usually masked by bug #1 above.
1993-04-02 20:19:48 +00:00
deraadt 984403aa50 learn to type theo.. spelling error, whoops 1993-04-02 13:15:31 +00:00
deraadt a6e6f0a437 automagically set the domainname using /etc/defaultdomainname, an
start ypbind if it exists  and should be running. (future's so bright,
gotta wear shades..)
1993-04-02 13:11:42 +00:00
deraadt 4685268322 Build domainname binary for us. 1993-04-02 12:44:25 +00:00
cgd 672df77e6f fixed problem with 2 `/' chars back to back in temp files, which kills emacs 1993-04-02 12:31:56 +00:00
deraadt 768c7c09b9 added: the entire domainanme set. domainmame(1), domainname(2), and a spiffy
man page.
1993-04-02 12:24:21 +00:00
cgd f5c87d0452 make when PARANOID wouldn't work, for mis-remembered field name 1993-04-02 12:20:13 +00:00
cgd 79e4351464 the whois database moved 1993-04-02 12:08:44 +00:00
cgd 300891747a changes by rod grimes for 386bsd 1993-04-02 10:51:19 +00:00
cgd fbeb721eb0 bugfiler, brought in from net/2... 1993-04-02 10:49:34 +00:00
glass 6839818c39 automagically build the 'whatis.db' including `machine` pages 1993-04-02 09:43:41 +00:00
cgd 0330795cf6 updated for current setup, and to compress logs 1993-04-02 08:07:11 +00:00
cgd c4d4ab67b7 changed `console' to `vga' 1993-04-02 08:05:12 +00:00
cgd e3902cf211 to allow users to configure hostname easily 1993-04-02 08:04:56 +00:00
cgd 480e26c62d updated to reflect the fact that we don't have an ncheck 1993-04-02 08:00:48 +00:00
cgd 1f8780e1d6 got rid of damned highlight characters, and changed
method to turn on rwhod.
1993-04-02 08:00:07 +00:00
cgd f5dac4d2a8 added better interface configuration, comments, and support
for better hostname and gateway configuration.
1993-04-02 07:59:12 +00:00
cgd 2059fa4868 made motd "more standard" 1993-04-02 07:58:27 +00:00
cgd 5fd3e727b1 updated for current setup, and made logs compress 1993-04-02 07:58:02 +00:00
cgd 1d739e0c80 got rid of bill, lynne, ken, and dmr 1993-04-02 07:57:23 +00:00
cgd 52d9f00c5f removed bill and lynne from wheel 1993-04-02 07:57:00 +00:00
cgd 3d0634c6d4 updated for current system setup, and made logs compressed 1993-04-02 07:56:43 +00:00
cgd 9f2f5a3ce4 cleaned up header 1993-04-02 07:55:49 +00:00
cgd 98b13bdcdd got rid of unused entries, and explained others 1993-04-02 07:54:44 +00:00
cgd 7ee0128a71 added `myname' to list of things to install (in support of
"better netstart")
1993-04-02 07:54:01 +00:00
glass 5c9687cd97 installs crontab in right place 1993-04-02 07:18:23 +00:00
cgd 63aafa9fd7 added rcs to the "old and broken" list 1993-04-01 22:42:34 +00:00
cgd 9be5eafd1d added 'ed' 1993-04-01 01:01:02 +00:00
cgd a00cebea53 changed value of NKMEMCLUSTERS, to help avoid kmem_map too small problem 1993-04-01 00:06:43 +00:00
cgd 6e078a624c changed value of bufpages, to avoid kmem_map too small problem 1993-04-01 00:06:04 +00:00
cgd 7d1128a5a5 install of include subdirs from sys.386bsd now done relative to current
dir, rather than from /sys.
1993-03-31 23:53:28 +00:00
cgd 7ff922cae8 broke out panics for *_map too small, and tried to coalesce the maps more
often.
1993-03-31 21:53:56 +00:00
cgd 1d7d39671e added support for kgmon 1993-03-31 18:06:59 +00:00
cgd 91d3699534 added support for gprof 1993-03-31 18:06:52 +00:00
cgd fdcd5041c7 pulled in from net/2. should work fine -- profiling support exists. 1993-03-31 17:24:07 +00:00
cgd 2f4d2f5134 added kgmon, from net-2. should work fine, because kernel does profiling
support correctly of config'd w/"-p"
1993-03-31 17:19:52 +00:00
cgd 0fa3e2b33a added . and .. 1993-03-30 05:16:56 +00:00
cgd 32089d6cfb moved tmac.doc.old in from the distribution /usr/share tree, and fixed
the makefile...  another place where the original source tree
was insonsistent w/the binary dist.
1993-03-30 04:16:18 +00:00
cgd ef0d928519 fixed so that "tmac.an.old" is installed, so old man pages can be made,
on a fresh distribution.
1993-03-30 01:57:00 +00:00
cgd b9745bcbf4 now symlinks /etc/localtime to the right thing, rather than making
a copy (or trying to).
1993-03-30 00:31:52 +00:00
cgd 477c5cd636 pointed to tmac.n to the right place; it was a symlink and CVS ate it. 1993-03-30 00:23:02 +00:00
cgd 078b696e22 make passwd db right on "distribution" 1993-03-30 00:07:40 +00:00
cgd d341e28807 guess which genius forgot this file when they made their distribution... 1993-03-29 22:46:21 +00:00
cgd 8ab66ed2f8 added prompt for floppy root disk. 1993-03-29 22:30:55 +00:00
cgd 40287fb5c3 added ISOFS 1993-03-28 21:33:28 +00:00
glass 371dfa02ad cleaned up such that it compiles quietly
now installs with right permissions
now installs both man pages properly
1993-03-28 17:27:04 +00:00
glass 6e47e02fdc cleanup so that crond compiles quietly 1993-03-28 17:24:43 +00:00
cgd 4327cd5858 if PANICWAIT defined, will always wait for a key press before reboot
after panic.  (note that this only makes a difference if DDB is not
installed.)
1993-03-28 08:40:33 +00:00
cgd 9b195edc41 fixed strip.sed symlink problem, and moved "tmac.doc.old" into list of
things to not install
1993-03-28 03:27:09 +00:00
cgd 742fb2c2e3 merged version of mount_fdesc and mount_kernfs 1993-03-28 03:19:38 +00:00
cgd 897a9d5e8f merged mount_fdesc and mount_kernfs into mount_miscfs 1993-03-28 03:17:02 +00:00
nate 40700a51fc Fixed the doc macros to call troff, eqn,and tbl instead of ditroff,
deqn, and dtbl.
Fixed make clean to remove the man pages (Bill fixed this in the distribution,
but not in the original source)
Changed install to leave the original file around, by using 'cp' instead of
'mv'. "install -c ..."
1993-03-27 12:17:32 +00:00
cgd 71876e6b63 moved closing #endif to include comselect 1993-03-27 09:24:42 +00:00
cgd 43d0546bcb added cdevvp (after taking it out of vfs_subr.c) because realized
that it was only needed here.
1993-03-27 02:00:45 +00:00
cgd 5dfa904f9b added ".." and support for "rrootdev" 1993-03-27 00:37:08 +00:00
cgd 1e55e1756e added default addresses for SCSI board I/O ports 1993-03-26 23:47:23 +00:00
cgd 65c99d9e30 fixed typo (in a comment) 1993-03-26 23:40:42 +00:00
glass bb3d95a21b removed unnecessary #ifdefing, fixed conf/files appropriately 1993-03-26 22:16:30 +00:00
glass ebdb176811 test kernel config for 'options KTRACE' 1993-03-26 22:15:53 +00:00
glass 08dc985ab2 ktrace is now optional 1993-03-26 22:15:25 +00:00
cgd 3f1341574c fixed problem where you couldn't unmount after looking... 1993-03-25 17:34:52 +00:00
cgd 4b479f295a added bpfilter pseudo-device, and FDESC and KERNFS options 1993-03-25 10:58:20 +00:00
cgd 1f2997773b one line got botched during bpf patch installation 1993-03-25 10:08:55 +00:00
cgd dae7d94aa6 added mt to SUBDIRS 1993-03-25 08:04:03 +00:00
cgd db4caa70be added mt from net-2 sources, with added rcs header.
note that it's in /bin rather than /usr/bin.  wouldn't want to be
screwed trying to restore a backup...
1993-03-25 08:01:33 +00:00
cgd 3051899058 changed copyright notice thanks to following statement:
Return-Path: jsp@compnews.co.uk
Received: from ben.uknet.ac.uk by postgres.Berkeley.EDU (5.61/1.29)
	id AA25983; Thu, 25 Mar 93 05:37:37 -0800
Received: from fennel.compnews.co.uk by ben.uknet.ac.uk via UKIP with SMTP (PP)
          id <g.05640-0@ben.uknet.ac.uk>; Thu, 25 Mar 1993 13:37:19 +0000
Received: from sage.compnews.co.uk by fennel.compnews.co.uk;
          Thu, 25 Mar 93 13:37:08 GMT
Message-Id: <28109.9303251337@sage.compnews.co.uk>
From: jsp@compnews.co.uk (Jan-Simon Pendry)
Date: Thu, 25 Mar 1993 13:37:05 +0100
In-Reply-To: cgd@postgres.berkeley.edu's message as of Mar 25, 5:32am.
Phone-Number-1: +44 430 432450
Phone-Number-2: +44 430 432480 x20
Fax-Number: +44 430 432022
X-Mailer: Mail User's Shell (7.2.5 10/14/92)
To: cgd@postgres.berkeley.edu
Subject: Re: fdesc/kernfs/etc code...

You may put this copyright message on the source code:

/*
 * Copyright (c) 1990, 1992 Jan-Simon Pendry
 * All rights reserved.
 *
 * This code is derived from software contributed to Berkeley by
 * Jan-Simon Pendry.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. All advertising materials mentioning features or use of this software
 *    must display the following acknowledgement:
 *      This product includes software developed by the University of
 *      California, Berkeley and its contributors.
 * 4. Neither the name of the University nor the names of its contributors
 *    may be used to endorse or promote products derived from this software
 *    without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 *
 */
1993-03-25 06:00:17 +00:00
cgd cbe8f73304 patch from rich murphy (rich@rice.edu) to fix alloca prototype 1993-03-25 05:51:03 +00:00
cgd 89ae714bc0 added SCO Console termcap entry 1993-03-25 05:45:48 +00:00
cgd 2ed28ecb60 restore didn't understand dirs which spanned more than one volume.
fixed by patch from Gene Stark (gene@stark.uucp).
1993-03-25 05:41:59 +00:00
cgd bc23fcbbd4 added BPF support, as provided by David Greenman (davidg@implode.rain.com) 1993-03-25 00:27:49 +00:00
cgd b5d3268338 added config file for the boat-anchor.cs.berkeley.edu,
a 386-20 with a 387 math coprocessor
1993-03-25 00:19:33 +00:00
cgd 6c8f1ac99e changes made by David Greenman's (davidg@implode.rain.com) BPF package. 1993-03-24 23:55:29 +00:00
cgd 45b90884c5 brought in drivers from David Greenman's (davidg@implode.rain.com)
BPF package
1993-03-24 23:54:19 +00:00
cgd 0f31ead1d8 no longer searches through kernfs and fdesc filesystems...
it was looking through /kern/root/kern/....
1993-03-24 23:15:52 +00:00
cgd ae3978a7dc added support for "kernfs" and "fdesc" to -fstype 1993-03-24 22:56:32 +00:00
cgd e94236e099 fixed fact that "rdonly" wasn't supported by -fstype, but the man
page said it was.  also fixed multiple fstype checks on the same
partition
1993-03-24 22:54:22 +00:00
sef a51071ce20 Oops. Inserted at the wrong place. 1993-03-24 20:22:51 +00:00
sef eb1022f07e Handle one-word cases in word-erase. 1993-03-24 19:41:48 +00:00
glass ce483e7b57 Added signal handler for SIGSYS, so not having a kernel w/KTRACE compiled in
doesn't result in a core.
1993-03-24 19:26:20 +00:00
glass c659cbc2b1 Once again generates 'ioctl.c' via an awk script, ioctl.c removed from repos. 1993-03-24 19:24:48 +00:00
cgd 4c3deb408e now use absolute path for dbsym 1993-03-24 18:48:57 +00:00
cgd ed8ca25add added mount types for kernfs and fdesc fs. 1993-03-23 23:57:32 +00:00
cgd 0e72a8356f files which implement the kern filesystem. from Jan-Simon Pendry,
pendry@vangogh.cs.berkeley.edu
1993-03-23 23:56:50 +00:00
cgd c542932bf8 files which implement the fdesc filesystem. from Jan-Simon Pendry,
pendry@vangogh.cs.berkeley.edu
1993-03-23 23:56:31 +00:00
cgd 1c197cb9b1 modified files to support kernfs and fdesc fs 1993-03-23 23:56:07 +00:00
cgd 7d5f2da1c9 config file for filesystem testing kernel (on boat-anchor) 1993-03-23 23:55:35 +00:00
cgd d0e21affab added support for kernfs and fdesc filsystem files 1993-03-23 23:55:02 +00:00
cgd 9aaa2bcda1 added support for mount_kernfs and mount_fdesc 1993-03-23 23:53:04 +00:00
cgd 8f71351da9 got rid of hightlighted test, and changed copyright/kernel version
string delcarations
1993-03-23 22:16:43 +00:00
cgd b3b46a5ffe added J.T. Conklin's changes to get parens working fine, etc. 1993-03-23 20:19:35 +00:00
nate be5bc2c268 Changed Makefile to include the new regex.c package 1993-03-23 19:20:18 +00:00
cgd 9354331d50 marked dirs netimp, netiso, and netns as "missing" from LDIRS 1993-03-23 16:36:35 +00:00
nate 9566093c84 From BSDI Mailing list. regex.c uses the regcomp routines to emulate
the regex routines.
1993-03-23 10:49:38 +00:00
cgd 7b1abf883e added libcompat for compatibility routines, like ftime, etc. 1993-03-23 10:14:55 +00:00
cgd a819c43c27 turned off option for WD8013. 1993-03-23 10:08:44 +00:00
cgd b16a6f270d fixed stupid extra space in kernel name 1993-03-23 08:59:30 +00:00
cgd 5f77c9d93e initial creation of kernel config for sun-lamp.cs.berkeley.edu,
a 486-50 EISA machine.
1993-03-23 08:50:03 +00:00
cgd 866f7f1ad4 automatically run dbsym on kernel 1993-03-23 08:22:28 +00:00
cgd 2615021ca0 added kernel ident to version string 1993-03-23 08:21:22 +00:00
cgd 096f0baa00 added secure init patch 1993-03-23 08:17:35 +00:00
cgd 97a1bca86f added -T option to specify temp. dir. to make locate.updatedb happy 1993-03-23 08:13:57 +00:00
cgd ab26aa6301 added support for microtime routines by Steve McCanne (mccanne@ee.lbl.gov) 1993-03-23 08:12:09 +00:00
cgd eeed8efa39 made .CURDIR be absolute, not relative, thereby eliminating
the need for some of the makefile trickery when making objects,
and fixing a few .PATH bugs
1993-03-23 07:26:38 +00:00
cgd d154cef8e7 beautified makefile output-- now looks like everything else 1993-03-23 04:05:20 +00:00
cgd d32925ecfd adjusted to take into acct. changes to ../timed/Makefile, which
resolved the cksum.i386.c problem.
1993-03-23 03:50:32 +00:00
cgd f3da55edcf fixed CVS's fight with a cksum.i386.c (a symlink to cksum.tahoe.c). 1993-03-23 03:47:07 +00:00
cgd 8ebc765d9c added obj target so that docs make (well, actually don't make) obj dirs 1993-03-23 03:01:41 +00:00
cgd 4fc904ca7d got rid of unnecessary -lcompat and associated dependency 1993-03-23 02:44:38 +00:00
cgd 5b67d04cb1 got rid of -lcompat, and fixed it so that the man page works properly
with CVS.
1993-03-23 02:36:44 +00:00
cgd e964c1faa9 noted tn3270 as broken, because its makefile doesn't work. 1993-03-23 02:05:06 +00:00
cgd a6936b92c2 changed "Id" to "Header" for rcsids 1993-03-23 00:22:59 +00:00
cgd 4ca534a7ea added support for using real crypt 1993-03-22 23:27:33 +00:00
cgd c80516b3c6 added crypt.c and deleted crypt_dummy.c 1993-03-22 23:25:02 +00:00
cgd d58dc0ea4c added "vm" to list of subdirs of /usr/include, and made a minor
cleanup so /usr/include/machine is handled right w/different types
of installs (links vs. copies).
1993-03-22 23:02:52 +00:00
cgd cc1af8db80 added ntp (network time protocol) at 123/udp 1993-03-22 20:28:42 +00:00
cgd 3c5caaf29d added -lresolv to LDADD so we can get resolver debugging info 1993-03-22 18:58:09 +00:00
cgd b1eb268ecb fixed inclusion of Makefile.dev vs. whether or not and obj dir exists
problem.
1993-03-22 09:09:25 +00:00
cgd ed2f284ae0 change "Id" to "Header" in rcsid, and noted why etc was not in subdirs 1993-03-22 08:43:59 +00:00
cgd 0d20db7499 added obj target 1993-03-22 08:14:53 +00:00
cgd 86b0a21a5d fixed "make obj" for cases when sources not in /usr/src/...
if sources not there, it now mkdirs obj, but some trickery
is necessary, to avoid deleting cwd.
1993-03-22 08:09:36 +00:00
cgd 5b59b12f3a made install copy, rather than symlink includes 1993-03-22 08:07:15 +00:00
cgd 08664cea7f added rcs ids to all files 1993-03-22 08:04:00 +00:00
cgd 8c9c726dc8 after 0.2.2 "stable" patches applied 1993-03-21 18:04:42 +00:00
cgd 516da8a02f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00
mrg 4b1f1e6509 4.4BSD-Lite2 1992-07-13 16:18:25 +00:00
2 changed files with 231 additions and 0 deletions

191
sys/kern/subr_rlist.c Normal file
View File

@ -0,0 +1,191 @@
/*
* Copyright (c) 1992 William F. Jolitz, TeleMuse
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This software is a component of "386BSD" developed by
William F. Jolitz, TeleMuse.
* 4. Neither the name of the developer nor the name "386BSD"
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS A COMPONENT OF 386BSD DEVELOPED BY WILLIAM F. JOLITZ
* AND IS INTENDED FOR RESEARCH AND EDUCATIONAL PURPOSES ONLY. THIS
* SOFTWARE SHOULD NOT BE CONSIDERED TO BE A COMMERCIAL PRODUCT.
* THE DEVELOPER URGES THAT USERS WHO REQUIRE A COMMERCIAL PRODUCT
* NOT MAKE USE THIS WORK.
*
* FOR USERS WHO WISH TO UNDERSTAND THE 386BSD SYSTEM DEVELOPED
* BY WILLIAM F. JOLITZ, WE RECOMMEND THE USER STUDY WRITTEN
* REFERENCES SUCH AS THE "PORTING UNIX TO THE 386" SERIES
* (BEGINNING JANUARY 1991 "DR. DOBBS JOURNAL", USA AND BEGINNING
* JUNE 1991 "UNIX MAGAZIN", GERMANY) BY WILLIAM F. JOLITZ AND
* LYNNE GREER JOLITZ, AS WELL AS OTHER BOOKS ON UNIX AND THE
* ON-LINE 386BSD USER MANUAL BEFORE USE. A BOOK DISCUSSING THE INTERNALS
* OF 386BSD ENTITLED "386BSD FROM THE INSIDE OUT" WILL BE AVAILABLE LATE 1992.
*
* THIS SOFTWARE IS PROVIDED BY THE DEVELOPER ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE DEVELOPER BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: subr_rlist.c,v 1.2 1993/05/20 02:55:01 cgd Exp $
*/
#include "sys/param.h"
#include "sys/cdefs.h"
#include "sys/malloc.h"
#include "rlist.h"
/*
* Resource lists.
*/
/*
* Add space to a resource list. Used to either
* initialize a list or return free space to it.
*/
rlist_free (rlp, start, end)
register struct rlist **rlp; unsigned start, end; {
struct rlist *head;
head = *rlp;
loop:
/* if nothing here, insert (tail of list) */
if (*rlp == 0) {
*rlp = (struct rlist *)malloc(sizeof(**rlp), M_TEMP, M_NOWAIT);
(*rlp)->rl_start = start;
(*rlp)->rl_end = end;
(*rlp)->rl_next = 0;
return;
}
/* if new region overlaps something currently present, panic */
if (start >= (*rlp)->rl_start && start <= (*rlp)->rl_end) {
printf("Frag %d:%d, ent %d:%d ", start, end,
(*rlp)->rl_start, (*rlp)->rl_end);
panic("overlapping front rlist_free: freed twice?");
}
if (end >= (*rlp)->rl_start && end <= (*rlp)->rl_end) {
printf("Frag %d:%d, ent %d:%d ", start, end,
(*rlp)->rl_start, (*rlp)->rl_end);
panic("overlapping tail rlist_free: freed twice?");
}
/* are we adjacent to this element? (in front) */
if (end+1 == (*rlp)->rl_start) {
/* coalesce */
(*rlp)->rl_start = start;
goto scan;
}
/* are we before this element? */
if (end < (*rlp)->rl_start) {
register struct rlist *nlp;
nlp = (struct rlist *)malloc(sizeof(*nlp), M_TEMP, M_NOWAIT);
nlp->rl_start = start;
nlp->rl_end = end;
nlp->rl_next = *rlp;
*rlp = nlp;
return;
}
/* are we adjacent to this element? (at tail) */
if ((*rlp)->rl_end + 1 == start) {
/* coalesce */
(*rlp)->rl_end = end;
goto scan;
}
/* are we after this element */
if (start > (*rlp)->rl_end) {
rlp = &((*rlp)->rl_next);
goto loop;
} else
panic("rlist_free: can't happen");
scan:
/* can we coalesce list now that we've filled a void? */
{
register struct rlist *lp, *lpn;
for (lp = head; lp->rl_next ;) {
lpn = lp->rl_next;
/* coalesce ? */
if (lp->rl_end + 1 == lpn->rl_start) {
lp->rl_end = lpn->rl_end;
lp->rl_next = lpn->rl_next;
free(lpn, M_TEMP);
} else
lp = lp->rl_next;
}
}
}
/*
* Obtain a region of desired size from a resource list.
* If nothing available of that size, return 0. Otherwise,
* return a value of 1 and set resource start location with
* "*loc". (Note: loc can be zero if we don't wish the value)
*/
int rlist_alloc (rlp, size, loc)
struct rlist **rlp; unsigned size, *loc; {
register struct rlist *lp;
/* walk list, allocating first thing that's big enough (first fit) */
for (; *rlp; rlp = &((*rlp)->rl_next))
if(size <= (*rlp)->rl_end - (*rlp)->rl_start + 1) {
/* hand it to the caller */
if (loc) *loc = (*rlp)->rl_start;
(*rlp)->rl_start += size;
/* did we eat this element entirely? */
if ((*rlp)->rl_start > (*rlp)->rl_end) {
lp = (*rlp)->rl_next;
free (*rlp, M_TEMP);
*rlp = lp;
}
return (1);
}
/* nothing in list that's big enough */
return (0);
}
/*
* Finished with this resource list, reclaim all space and
* mark it as being empty.
*/
rlist_destroy (rlp)
struct rlist **rlp; {
struct rlist *lp, *nlp;
lp = *rlp;
*rlp = 0;
for (; lp; lp = nlp) {
nlp = lp->rl_next;
free (lp, M_TEMP);
}
}

40
sys/sys/rlist.h Normal file
View File

@ -0,0 +1,40 @@
/*
* Copyright (c) 1992 William Jolitz. All rights reserved.
* Written by William Jolitz 1/92
*
* Redistribution and use in source and binary forms are freely permitted
* provided that the above copyright notice and attribution and date of work
* and this paragraph are duplicated in all such forms.
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* Resource lists.
*
* Usage:
* rlist_free(&swapmap, 100, 200); add space to swapmap
* rlist_alloc(&swapmap, 100, &loc); obtain 100 sectors from swap
*
* $Id: rlist.h,v 1.4 1993/05/20 16:23:00 cgd Exp $
*/
#ifndef _SYS_RLIST_H_
#define _SYS_RLIST_H_
/* A resource list element. */
struct rlist {
unsigned rl_start; /* boundaries of extent - inclusive */
unsigned rl_end; /* boundaries of extent - inclusive */
struct rlist *rl_next; /* next list entry, if present */
};
/* Functions to manipulate resource lists. */
extern rlist_free __P((struct rlist **, unsigned, unsigned));
int rlist_alloc __P((struct rlist **, unsigned, unsigned *));
extern rlist_destroy __P((struct rlist **));
/* heads of lists */
extern struct rlist *swapmap;
#endif /* !_SYS_RLIST_H_ */