unix-history/.git
30 years agoMitsumi cd rom driver from Holger Viet as fixed up by Gary Clark II.
Rod Grimes [Tue, 12 Oct 1993 06:08:31 +0000 (06:08 +0000)]
Mitsumi cd rom driver from Holger Viet as fixed up by Gary Clark II.

Still a little rought, but it seems to be working.

30 years agoFix kvm_mkdb for real. Kernels can be linked at any address and the
David Greenman [Tue, 12 Oct 1993 06:01:54 +0000 (06:01 +0000)]
Fix kvm_mkdb for real. Kernels can be linked at any address and the
offset calculation will still work.

30 years agoRemove patch kit header, add $Id$
Rod Grimes [Tue, 12 Oct 1993 04:57:33 +0000 (04:57 +0000)]
Remove patch kit header, add $Id$

Add new line discs from Terry Lambert and other places, fix some formatting.

30 years agoUse fix from NetBSD for loading at 1MB, remove patch kit headers, disable
Rod Grimes [Tue, 12 Oct 1993 04:22:04 +0000 (04:22 +0000)]
Use fix from NetBSD for loading at 1MB, remove patch kit headers, disable
old sccsids, add rcsids.  Add back a piece of the manual page that was
deleted.

30 years agoFrom: "Andrew A. Chernov, Black Mage" <ache@astral.msk.su>
Jordan K. Hubbard [Mon, 11 Oct 1993 21:54:37 +0000 (21:54 +0000)]
From: "Andrew A. Chernov, Black Mage" <ache@astral.msk.su>

This hv's patch is missing, without it kvm_mkdb don't works for large kernels:

30 years agoFrom: Charles Hannum <mycroft@duality.gnu.ai.mit.edu>
Jordan K. Hubbard [Mon, 11 Oct 1993 21:47:50 +0000 (21:47 +0000)]
From: Charles Hannum <mycroft@duality.gnu.ai.mit.edu>
           There seems to be a memory error in inetd.  Adding a blank line
           at the end of /etc/inetd.conf causes a core dump.

The following patch will stop inetd from core dumping on blank lines.
There are still other parse errors that will probably cause a core
dump, though.

30 years agoAdd support for Holger Viets mitsumi cd rom driver as prepared by Gary
Rod Grimes [Mon, 11 Oct 1993 07:39:13 +0000 (07:39 +0000)]
Add support for Holger Viets mitsumi cd rom driver as prepared by Gary
Clark II.

30 years agoAdd support for mitsumi cd rom driver from Holger Viet, as fixed up by
Rod Grimes [Mon, 11 Oct 1993 06:19:40 +0000 (06:19 +0000)]
Add support for mitsumi cd rom driver from Holger Viet, as fixed up by
Gary Clark II.

30 years agoAdded kernel config options information, it just a start, but it helps
Rod Grimes [Mon, 11 Oct 1993 05:46:29 +0000 (05:46 +0000)]
Added kernel config options information, it just a start, but it helps

30 years agooptions PANICWAIT will add a 20 secound delay before calling the boot
Rod Grimes [Mon, 11 Oct 1993 05:16:04 +0000 (05:16 +0000)]
options PANICWAIT will add a 20 secound delay before calling the boot
code.

>From: Gary Clark II <gclarkii@freefall.cdrom.com>
Date: Sun, 10 Oct 1993 22:08:07 -0700
Here is my patch to allow the system to delay after a panic.  This is for those
people who do not have enough swap space to allow for a system dump.  Otherwise
it will just fly right on by and you can't see the message...

30 years ago>From: Julian Elischer <julian@jules.DIALix.oz.au>
Rod Grimes [Mon, 11 Oct 1993 04:53:23 +0000 (04:53 +0000)]
>From: Julian Elischer <julian@jules.DIALix.oz.au>
Subject: Re: Error reading from DAT (fwd)
Date: Mon, 11 Oct 1993 03:02:39 -40962758 (WST)

Some tapes won't do anything until you tell them to load.
Other tapes think that being asked to load is a great excuse to
make the next command return a "unit attention" (media changed) error.
Since we need to do the load, throw in a dummy instruction to cop the
error.

specifically for DEC DAT drives.

30 years ago>From: stark!gene@newsserv.cs.sunysb.edu (Gene Stark)
Rod Grimes [Mon, 11 Oct 1993 04:19:22 +0000 (04:19 +0000)]
>From: stark!gene@newsserv.cs.sunysb.edu (Gene Stark)
Subject: Bug in lpd causing -w0 arg to pr
Index: usr.sbin/lpr/lpd/printjob.c FreeBSD-1.0

Description:
The "pr" filter is always being called by lpd with argument -w0,
regardless of what it says in /etc/printcap.
Repeat-By:
Queue a file with "lpr -p"

Fix:
Comment out the strcpy({width,indent}+2, "0"); so that the printcap
values are kept (This comment added by rgrimes)

>From: j@tcd-dresden.de (J Wunsch)
Message-Id: <9310081929.AA18396@bonnie.tcd-dresden.de>
Subject: Bugfix fuer lpd

The lpd didn't recognize the pw and px capabilities properly, since
they became nullified after the printcap has been read in.
[rgrimes: this is the one from Gene Stark above]

The second change ain't a fix, it's more a convenience hack: since
today's pr commands all have a -f option to use formfeeds, this keeps
the printer better in sync if some of the printed lines wrapped.

30 years agoThis is just numbers for now, it is so I can fix all the constants in the
Rod Grimes [Mon, 11 Oct 1993 03:54:01 +0000 (03:54 +0000)]
This is just numbers for now, it is so I can fix all the constants in the
locore.s and related areas, and document the virtual and phsical layout
of memory.

30 years agoCorrection from Sascha Wildner to fix bug in last version, add PAGES?= 1-
Rod Grimes [Mon, 11 Oct 1993 03:48:05 +0000 (03:48 +0000)]
Correction from Sascha Wildner to fix bug in last version, add PAGES?= 1-
groff is much happier now!

And I asked for a log of the other changes and got this, too bad I didn't
do that before my commit!  Sorry :-(

>From: Sascha Wildner <swildner@channelz.gun.de>
Subject: Re: Problems with the bsd.doc.mk changes...

Sorry for being so sparse in documenting my changes.  Here's the missing
comments:

ps1
---
o 06.sysman/a.t: Moved a footnote to the end of a table.

o 08.ipc/5.t: Those three dots are part of the program and no troff command.

o 13.rcs/Makefile: Added 13.rcs.man.${PRINTER} (I had to change the macro
                   stuff b/c man needed the mandoc macros)
  13.rcs/man/co.1: Commented out a section which was meant to be commented
                   out but was not.

o 14.sccs/Makefile: Added ${COMPAT} (see bsd.doc.mk) to silence warnings.

o 18.curses/Makefile: Master is the lone source file which includes (.so)
                      all other files.  This solution not the best because
                      make will not notice changes in the other source
                      files anymore.
                      Added ${COMPAT}.
  18.curses/appen.B: Fixed a typo.
  18.curses/doc.III: Fixed a typo.
  18.curses/intro.5: .ta needs a space separated list.
  18.curses/macros: Commented out a defunct .hy command.

o Makefile: Added 00.contents to FILES.
            Added 18.curses to SUBDIR.
            Removed 07.ipctut from SUBDIR (because GREMLIN [grn]) is missing.

smm
---
o 01.setup/Makefile: This should be a subdir-Makefile and no prog-Makefile.
                     Fixed this.
  01.setup/common/4.t: Fixed two typos.
  01.setup/common/renohints.t: Fixed four typos.
  01.setup/tahoe/1.t: Fixed a typo.
  01.setup/tahoe/Makefile: Fixed Makefile so that the setup and renohints
                           documents are created.
  01.setup/vax/Makefile: Fixed Makefile so that the setup, renohints and
                         vaxhints documents are created.

o 02.config/6.t: .BR doesn't exist in -ms.  Use .B instead.

o 07.sendmailop/Makefile: Added ${COMPAT}.

o 10.newsop/Makefile: Changed Makefile so that 10.newsop.${PRINTER} and
                      10.newsop.standard.${PRINTER} are created.

o 11.named/Makefile: Added ${COMPAT}.

o 15.net/7.t: .IR doesn't exist in -ms.  Use .I instead.
  15.net/a.t: Same here.

o 16.sendmail/Makefile: Added ${COMPAT}.

o 20.termdesc/Makefile: Added ${COMPAT}.

usd
---
o 07.Mail/Makefile: Added ${COMPAT}.

o 09.newsread/Makefile: Changed so that ${DOC}.copyright.${PRINTER} is
                        created, too.

o 11.notes/0.long: Inserted a necessary (for groff) space.
  11.notes/Makefile: Fixed.  Note that only the long version of the
                     manual is built.  The old Makefile could build a
                     short version, too.

o 14.edit/Makefile: The editvindex document now has the correct prefix.
                    CLEANFILES is no longer necessary.
  14.edit/edittut.ms: Inserted some necessary spaces.

o 15.vi/Makefile: Should be DOC instead of DIR.
                  Changed name of vi.apwh document.
                  CLEANFILES is not necessary.
  15.vi/vi.chars: That's one dot too much, Gringo.
                  Fixed some typos.
  15.vi/vi.summary: Fixed a typo.

o 16.ex/Makefile: CLEANFILES is not necessary.

o 22.memacros/Makefile: Added ${COMPAT}.

o 23.meref/Makefile: Added ${COMPAT}.

o 33.rogue/Makefile: Added ${COMPAT}.

o 34.trek/Makefile: Added ${COMPAT}.

o Makefile: 11.notes is no longer broken.

30 years agoAdded MOUSEDISC so when ever we get around to doing it we won't have to
Rod Grimes [Mon, 11 Oct 1993 03:38:42 +0000 (03:38 +0000)]
Added MOUSEDISC so when ever we get around to doing it we won't have to
hassle with header files.

30 years agoSimplified echo flag expression so that future kernel hacker wanabies
David Greenman [Mon, 11 Oct 1993 03:12:59 +0000 (03:12 +0000)]
Simplified echo flag expression so that future kernel hacker wanabies
can make sense of it, and fixed a bug in handling of ECHONL at the same
time.

30 years agoFixed the options hd(1,... to be more accurate (removed word options it
Rod Grimes [Mon, 11 Oct 1993 02:43:42 +0000 (02:43 +0000)]
Fixed the options hd(1,... to be more accurate (removed word options it
now reads:

printf("use hd(1,a)/386bsd to boot sd0 when wd0 is also installed\n");

I know the person wanted more explination, but there is little room in
the boot blocks for verbose text!

30 years agoChange sccsid to have from: and comment it out, change rcsid from
Rod Grimes [Mon, 11 Oct 1993 02:28:09 +0000 (02:28 +0000)]
Change sccsid to have from: and comment it out, change rcsid from
$Header$ to $Id$.

30 years agoSmall change to list of core members.
Jordan K. Hubbard [Sun, 10 Oct 1993 21:43:07 +0000 (21:43 +0000)]
Small change to list of core members.

30 years agoFrom: Bruce Evans <bde@kralizec.zeta.org.au>
Jordan K. Hubbard [Sun, 10 Oct 1993 20:37:18 +0000 (20:37 +0000)]
From: Bruce Evans <bde@kralizec.zeta.org.au>
Message-Id: <9310100212.AA18434@kralizec.zeta.org.au>
To: FreeBSD-hackers@freefall.cdrom.com
Subject: fsck bug

Yesterday I created some file names with nulls in them and found that fsck
was completely unable to fix them.  Fixing of damaged directories was
completely broken.  Fixing of a directory entry is supposed to be done by
adjusting the d_reclen value of the previous or current entry to skip all
remaining entries in the block.  (This is conservative; errors not
involving bad d_reclen's could be fixed without losing the remaining
entries.)  However,

1) The wrong directory entries were adjusted.
2) Recursion caused multiple adjustments.

30 years ago>From: Sascha Wildner <swildner@channelz.gun.de>
Rod Grimes [Sun, 10 Oct 1993 18:50:58 +0000 (18:50 +0000)]
>From: Sascha Wildner <swildner@channelz.gun.de>
Date: Sun, 10 Oct 1993 17:18:41 +0100
Subject: Patches for /usr/src/share/doc, /usr/src/share/me and /usr/src/share/mk

Description:
/usr/src/share/doc is broken in FreeBSD-1.0-EPSILON.  The following
set of patches fix a great number of bugs and warnings.

Repeat-By:
cd /usr/src/share/doc
make

30 years ago>From: Sascha Wildner <swildner@channelz.gun.de>
Rod Grimes [Sun, 10 Oct 1993 18:38:03 +0000 (18:38 +0000)]
>From: Sascha Wildner <swildner@channelz.gun.de>
Date: Sun, 10 Oct 1993 17:18:41 +0100
Subject: Patches for /usr/src/share/doc, /usr/src/share/me and /usr/src/share/mk

Description:
/usr/src/share/doc is broken in FreeBSD-1.0-EPSILON.  The following
set of patches fix a great number of bugs and warnings.

Repeat-By:
cd /usr/src/share/doc
make

30 years ago>From: Sascha Wildner <swildner@channelz.gun.de>
Rod Grimes [Sun, 10 Oct 1993 17:56:30 +0000 (17:56 +0000)]
>From: Sascha Wildner <swildner@channelz.gun.de>
Date: Sun, 10 Oct 1993 17:18:41 +0100
Subject: Patches for /usr/src/share/doc, /usr/src/share/me and /usr/src/share/mk

Description:
/usr/src/share/doc is broken in FreeBSD-1.0-EPSILON.  The following
set of patches fix a great number of bugs and warnings.

Repeat-By:
cd /usr/src/share/doc
make

footnote.me:
Add missing \\n( to a .nr command

30 years agoRemoved old endian cruft and added
Paul Richards [Sun, 10 Oct 1993 17:35:27 +0000 (17:35 +0000)]
Removed old endian cruft and added
#include <machine/endian.h>

Also added missing
#define T_UNSPECA 104      /* Unspecified format (ASCII) */

30 years agoAdded if_ie entry for Garett Wollmans ATT driver, the drives will be imported
Rod Grimes [Sun, 10 Oct 1993 16:25:13 +0000 (16:25 +0000)]
Added if_ie entry for Garett Wollmans ATT driver, the drives will be imported
soon.

30 years agoFixed SYSV shared memory routine arguments to match shm.h, that now
Rod Grimes [Sun, 10 Oct 1993 12:01:29 +0000 (12:01 +0000)]
Fixed SYSV shared memory routine arguments to match shm.h, that now
matches SYSV.

30 years agoSYSPDROFF and SYSPDREND are now calculated using KERNBASE, KERNSIZE and
Rod Grimes [Sun, 10 Oct 1993 06:07:57 +0000 (06:07 +0000)]
SYSPDROFF and SYSPDREND are now calculated using KERNBASE, KERNSIZE and
PDRSHIFT.

The SYSTEM constant that was defined in this file has been replaced
with KERNBASE from param.h.

Changed almost all # style comments to /* */ C style comments.  Several
comments cleaned up so that they make a little more since.

In the comments that describe C calling conventions to assembler routines
used a comma space sequence to seperate arguments and removed the space
between the function name and the argument list.

Removed useless comments like /* clr eax */.

Changed all comma space sequences on assemble instructions to just be comma.

Removed spaces after $ operators to make the file consistent, this may need
to change again (ie: $KERNBASE should probably be $(KERNBASE), but for now
it all seems to work just fine.)  This may become a problem with the C
pre-processor.

Changed several double blank lines to single blank lines that where used
to seperate the I/O routines, these routines are blocked enough that we
don't need double blank lines between them.

Changed sequence of I/O routines to be all input functions, all output
functions instead of just the opposite.

Moved the SHOW_A_LOT debug stuff to near the end of the file.

Changed two occurances of the constant 0xfff to NBPG-1.

30 years agoAdded a compile time #error so that if the user does not specify on of
Rod Grimes [Sun, 10 Oct 1993 06:01:44 +0000 (06:01 +0000)]
Added a compile time #error so that if the user does not specify on of
the proper I_X86CPU in the config file the following error will occur
while building the kernel: (had to line wrap the error for this message)

../../i386/i386/machdep.c:343: #error This kernel is not configured for one \
of the supported CPUs

30 years agoYou can now specify the type of floppy you want built (floppy3 or floppy5)
Rod Grimes [Sun, 10 Oct 1993 05:06:44 +0000 (05:06 +0000)]
You can now specify the type of floppy you want built (floppy3 or floppy5)
with a Makefile override.  The default is floppy5 since all distribution
floppies must be <= 1.2Mb so that every one can use them.

If you want to make 1.44MB floppies with more space on them do a
setenv FLOPPY floppy3
before running make.

>From: "Jordan K. Hubbard" <jkh%whisker.lotus.ie@dec4ie.ieunet.ie>
Date: Sun, 10 Oct 1993 05:11:51 -0700

I went to make myself some boot floppies straight off the dist
today and ran into the fact that I'm using a 3.5" floppy as my drive A,
so I did the following (you can still use floppy5 as your default -
I just have it set to floppy3 for my machine).

30 years agoUpdated RELNOTES to EPSILON level for sup customers (admittedly a bit late
Jordan K. Hubbard [Sun, 10 Oct 1993 02:38:03 +0000 (02:38 +0000)]
Updated RELNOTES to EPSILON level for sup customers (admittedly a bit late
for release folks, sigh!)

30 years agogetcwd() has two off-by-one bugs in 386BSD-0.1:
David Greenman [Sun, 10 Oct 1993 02:16:09 +0000 (02:16 +0000)]
getcwd() has two off-by-one bugs in 386BSD-0.1:

1. getcwd(buf, size) fails when the size is just large enough.
2. getcwd(buf + 1, 1) incorrectly succeeds when the current directory
   is "/".  buf[0] and buf[2] are clobbered.

(I modified Bruce's original patch to return the proper error code
[ERANGE] in the case of #2, but otherwise... -DG)

This program demonstrates the bug:

---
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h>

int main(void)
{
    char buf[5];
    int errors;

    errors = 0;
    if (chdir("/tmp") != 0) {
        perror("chdir");
        abort();
    }
    if (getcwd(buf, 5) == NULL) {
        perror("oops, getcwd failed for buffer size = size required");
        ++errors;
    }
    if (chdir("/") != 0) {
        perror("chdir");
        abort();
    }
    buf[0] = 0;
    buf[2] = 1;
    if (getcwd(buf + 1, 1) != NULL) {
        fprintf(stderr,
                "oops, getcwd succeeded for buffer size = one too small\n");
        ++errors;
    }
    if (buf[0] != 0) {
        fprintf(stderr,
                "oops, getcwd scribbled on memory before start of buffer\n");
        ++errors;
    }
    if (buf[2] != 1) {
        fprintf(stderr,
                "oops, getcwd scribbled on memory after end of buffer\n");
        ++errors;
    }
    exit(errors == 0 ? 0 : 1);
}

30 years agoAdded PDRSHIFT and KERNSIZE so that the PDR offsets can be calculated in
Rod Grimes [Sun, 10 Oct 1993 02:09:44 +0000 (02:09 +0000)]
Added PDRSHIFT and KERNSIZE so that the PDR offsets can be calculated in
locore.s instead of being constants (3F8, 3FA).

30 years agoTry copy if rename of temporary catpage fails.
Jordan K. Hubbard [Sun, 10 Oct 1993 01:46:53 +0000 (01:46 +0000)]
Try copy if rename of temporary catpage fails.

30 years agoPut sound blaster in alaphabetic order
Rod Grimes [Sat, 9 Oct 1993 23:59:13 +0000 (23:59 +0000)]
Put sound blaster in alaphabetic order

30 years agoRemove patch kit header, add $Id$, fix tabing on sound blaster cdev entry
Rod Grimes [Sat, 9 Oct 1993 23:56:53 +0000 (23:56 +0000)]
Remove patch kit header, add $Id$, fix tabing on sound blaster cdev entry

30 years agoAdded sb entries for upcoming sound blaster driver
Jordan K. Hubbard [Sat, 9 Oct 1993 17:00:04 +0000 (17:00 +0000)]
Added sb entries for upcoming sound blaster driver

30 years agoAdd devsw entries for upcoming sound blaster driver.
Jordan K. Hubbard [Sat, 9 Oct 1993 16:56:44 +0000 (16:56 +0000)]
Add devsw entries for upcoming sound blaster driver.

30 years agoCorrect spelling of "SHMMAXPGS" so the config override will actually work.
David Greenman [Sat, 9 Oct 1993 15:29:04 +0000 (15:29 +0000)]
Correct spelling of "SHMMAXPGS" so the config override will actually work.

30 years agoMake SYSV shared memory prototypes agree with System V.
David Greenman [Sat, 9 Oct 1993 14:00:07 +0000 (14:00 +0000)]
Make SYSV shared memory prototypes agree with System V.

30 years agoSigh. Undone my previous change.
Christoph Robitschko [Sat, 9 Oct 1993 08:55:12 +0000 (08:55 +0000)]
Sigh. Undone my previous change.
make now aborts again if it finds an obj file where it cannot chdir to,
but I made the error message a lot nicer.
I could not get the desired behaviour (continue if trying to make obj or
make cleandir, abort otherwise) in a Makefile, because the exit status
of the .BEGIN target is always ignored.
If you want to ignore the obj dir/link, you have to set the environment
variable MAKEOBJDIR to something.

30 years agoFrom: jtkohl@decvax.dec.com (John Kohl Base File System)
David Greenman [Sat, 9 Oct 1993 08:51:24 +0000 (08:51 +0000)]
From: jtkohl@decvax.dec.com (John Kohl Base File System)

This bug seems to derive from the Net/2 i386 BSD code; it's in BSD/386,
and probably also in 386BSD.

Description:
        syscall(2) doesn't work right.  It leaves $sp off by a word,
which can lead to disaster when it's called repeatedly (as it is in
XView3.0).

Repeat-By:
        Write a program that has a local variable on the stack;
initialize it, then call syscall() repeatedly.  Note that the value
eventually gets trashed when the stack works its way up over the
variable.

30 years ago* Updated DEFS.h to include ALTENTRY() and ALTASENTRY() for alternate
David Greenman [Sat, 9 Oct 1993 08:31:47 +0000 (08:31 +0000)]
* Updated DEFS.h to include ALTENTRY() and ALTASENTRY() for alternate
  entry names, and made ENTRY, ASENTRY, ALTENTRY, and ALTASENTRY do
  longword alignment.
* Updated SYS.h to use NOP padding in the .align for text.
* Added $Id$ to DEFS.h and SYS.h
* Incorporated some additional i386 string optimizations from NetBSD:
bcmp.s - modified to compare by words
bcopy.s - bcopy is a void function, don't return 0
memcmp.s - modified to compare by words
memmove.s and memcpy.s
- combined into one function (they were identical)
  by using new ALTENTRY() from above
- don't use intermediate register for notl
- deleted memcpy.s as it is no longer needed
- imported NetBSD hack to Makefile.inc to make
  it not build memcpy.o if memmove.s exists

30 years agoChanged the "Insert filesystem floppy" prompt to give the user a choice in
Christoph Robitschko [Sat, 9 Oct 1993 08:31:39 +0000 (08:31 +0000)]
Changed the "Insert filesystem floppy" prompt to give the user a choice in
which drive he wants the root file system (A or B).

30 years ago>From: "Chris G. Demetriou" <cgd@sun-lamp.cs.berkeley.edu>
Rod Grimes [Sat, 9 Oct 1993 01:52:08 +0000 (01:52 +0000)]
>From: "Chris G. Demetriou" <cgd@sun-lamp.cs.berkeley.edu>
Date: Fri, 8 Oct 1993 18:11:50 -0700

get rid of some (bad) setreuid() calls, which caused a security problem.
bug fix from Rick J Weldon <rick@badboy-jr.hq.af.mil>, and also confirmed
by looking at the latest rdist sources.

30 years agoHandle both signals and errors in child processes, rather than just signals
Jordan K. Hubbard [Sat, 9 Oct 1993 00:48:26 +0000 (00:48 +0000)]
Handle both signals and errors in child processes, rather than just signals
as before.

30 years ago[ Not sure if we used his functions, but this is better than nothing ]
Nate Willams [Fri, 8 Oct 1993 23:52:33 +0000 (23:52 +0000)]
[ Not sure if we used his functions, but this is better than nothing ]

From: mbirgmei@email.tuwien.ac.at (Martin BIRGMEIER)
Newsgroups: comp.os.386bsd.development
Subject: rand48() manual page

Here is the manual page to go with the rand48() family of functions.
It should be installed in /usr/share/man/man3 as rand48.3, with
additional links named drand48.3, erand48.3, lrand48.3, mrand48.3,
nrand48.3, jrand48.3, srand48.3, seed48.3 and lcong48.3.

30 years agoRemoved FAT_CURSOR as default since it breaks certain CGA displays
Jordan K. Hubbard [Fri, 8 Oct 1993 21:21:59 +0000 (21:21 +0000)]
Removed FAT_CURSOR as default since it breaks certain CGA displays
and it is better to conform to the lowest common denominator.
Those wishing to retain it can always use options FAT_CURSOR in
their config files.

30 years agoAdd $Id$
Rod Grimes [Fri, 8 Oct 1993 21:00:37 +0000 (21:00 +0000)]
Add $Id$
Fix usage of addlog and printf to match new prototypes.
Fix printing of \n after log messages.

30 years agoALL:
Rod Grimes [Fri, 8 Oct 1993 20:59:39 +0000 (20:59 +0000)]
ALL:
Remove patch kit headers, add $Id$, add multiple inclusion protection.

msgbuf.h:
put the msgbufmapped flag in here along with the pointer to the
buffer so that they are togeather.

param.h
remove define of __386BSDREL__, this is no longer 386BSDREL 0.1
increase MAXINTERP from 32 chars to 64 chars.

system.h
panicstr is now const char.
panic now takes a const char and is __dead
addlog now returns int to match printf
printf now returns int

30 years agocngetc() is now defined if either KADB or PANICWAIT is defined, PANICWAIT
Rod Grimes [Fri, 8 Oct 1993 20:55:06 +0000 (20:55 +0000)]
cngetc() is now defined if either KADB or PANICWAIT is defined, PANICWAIT
is a new kernel option that has the system wait for a keystroke after a
panic.

panicstr is const char.

Some ANSI clean up on some code.
kernel printf new works like a libc printf with a return value, always 0.
fixed printf %b formatting.

30 years agoAll:
Rod Grimes [Fri, 8 Oct 1993 20:51:00 +0000 (20:51 +0000)]
All:
Remove patch kit headers, and add $Id$
This is mostly to align some more code with NetBSD.

cpu.h:
Remove the old function vs. include configuration stuff that was
ifdefed out when we went to inline functions.
Remove the define of resettodr that made it a nop, there is
already a function that makes it a nop, no need to #define one.
Remove the #defines of processor types, they are now defined
in cputypes.h, #include that file.
Add struct cpu_nameclass for support of cpu types.

frame.h:
include sys/signal.h, it will be needed in the future.
put the sigframe structure here that was in machdep.c

pcb.h:
Add multiple inclusion protection.
Add pcb_ldt and pcb_ldt_len to pcb structure, this is for the
user mode ldt.

30 years agoAll:
Rod Grimes [Fri, 8 Oct 1993 20:45:12 +0000 (20:45 +0000)]
All:
removed patch kit headers and sccsids, add $Id$.  This is a general
clean up and reallignment with NetBSD-current where possible.

genassym.c:
removed extranious include of reg.h
removed old FP_* defines that have been ifdefed out since the patch kit
removed PCB_SIGC that is not referenced anywhere
add trapframe and sigframe defines
add KERNBASE define for use in locore.s

locore.s:
include npx.h and use NNPX for turning on and off FPU
include machine/cputypes.h for the types of cpu (used in cpu_identify)
change SYSPDREND to be one higher, this is really the base of the
next area, and will be changing again next time I revise the file
Reverse the NOP defines, you now get slow NOP's by default, this
may be what is casuing us trouble with some systems.  If you want
the NOPS to be null you now need to have options DUMMY_NOPS.
Now get esym from the boot blocks which don't pass it yet, and
it is not used, but this will be changing.
Move the bit_colors stuff to be in with the rest of Bruces SHOW_A_LOT
things for debugging.
Added NetBSD's CPU type probe code, we now know what type of CPU
we are running on.
Adjust kernel pde calcuation to correct for change in SYSPDREND, no
longer need the +1.

machdep.c
include npx.h and use NNPX for turning on and off FPU
include isa.h, map.h(new file), exec.h in preperation for
changes that are still in process.
Add some of the code for MACHINE_NONCONTIG that will alow us
to better map around the BIOS memory area.
Now print the version, cpu id, real memory and availiable memory
during boot.
Correct the calculation of bufpages, the code was mixing pages
and bytes, it now does the right things.  Removed Bill's hack
for limiting the erronous calculation.
add the identifycpu print out code from NetBSD.
remove the definition of the sigframe struct, it belongs in
frame.h
put in printf's about syncing disks on a halt/reboot.
Change the halted message to be a little easier reading.
Clean up of the dump messages, makes the source and the output
much more readable.
Change 0,0 in several places to have spaces after the commas.

30 years agoFix from davidg, use testb %reg,%reg instead of cmpb $0,%reg. Saves three
J.T. Conklin [Fri, 8 Oct 1993 20:42:25 +0000 (20:42 +0000)]
Fix from davidg, use testb %reg,%reg instead of cmpb $0,%reg.  Saves three
cycles per character, and saves 8 bytes in the function.

30 years agoUse i386 assembly language versions of div, labs, and ldiv.
J.T. Conklin [Fri, 8 Oct 1993 20:20:58 +0000 (20:20 +0000)]
Use i386 assembly language versions of div, labs, and ldiv.

30 years agoRemove the ``loader overlaps bss, kernel must bzero'' printf since that
Rod Grimes [Fri, 8 Oct 1993 20:19:23 +0000 (20:19 +0000)]
Remove the ``loader overlaps bss, kernel must bzero'' printf since that
is so often reported as an error condition when it is not.  We print the
size of things so for those who want to know if this happened they can
figure it out from the size information that is printed.

30 years agoProvide i386 versions of div and ldiv -- they are simpler than the C versions,
J.T. Conklin [Fri, 8 Oct 1993 20:13:41 +0000 (20:13 +0000)]
Provide i386 versions of div and ldiv -- they are simpler than the C versions,
since the idiv instruction does the right thing wrt truncating towards zero.

30 years agoProvide i386 assembly version of labs.
J.T. Conklin [Fri, 8 Oct 1993 20:00:39 +0000 (20:00 +0000)]
Provide i386 assembly version of labs.
I just copied WFJ's abs, since ints and longs are both 32 bits.

30 years agoWhen there was an obj directory, but make could not chdir into it
Christoph Robitschko [Fri, 8 Oct 1993 18:15:42 +0000 (18:15 +0000)]
When there was an obj directory, but make could not chdir into it
(for example a broken symbolic link), make would immediately exit.
I changed this to print a warning and continue.

30 years agoAdded BINOWN=games to the Makefile, so that dm can access the games in
Christoph Robitschko [Fri, 8 Oct 1993 17:33:52 +0000 (17:33 +0000)]
Added BINOWN=games to the Makefile, so that dm can access the games in
/usr/games/hide.

30 years agoAdded -fwritable-strings to the CFLAGS. Otherwise larn would coredump
Christoph Robitschko [Fri, 8 Oct 1993 17:31:15 +0000 (17:31 +0000)]
Added -fwritable-strings to the CFLAGS. Otherwise larn would coredump
whenever using an object.

30 years ago>From NetBSD
Rod Grimes [Fri, 8 Oct 1993 16:52:45 +0000 (16:52 +0000)]
>From NetBSD
Change the cpu "i386" line to 2 lines:
cpu "I386_CPU"
cpu "I486_CPU"
This is so we can do real CPU classification of code.

Fix missing depend for assym.s which does depend on genassym.c

30 years agoDefine the types of cpu's there are, from NetBSD
Rod Grimes [Fri, 8 Oct 1993 13:40:54 +0000 (13:40 +0000)]
Define the types of cpu's there are, from NetBSD

30 years agoFix definitions to be in terms of a minimum number of constants by
Rod Grimes [Fri, 8 Oct 1993 13:01:34 +0000 (13:01 +0000)]
Fix definitions to be in terms of a minimum number of constants by
using the SHIFT value as the basis for the other values, for example
instead of:
#define NBPG 4096
#define PGSHIFT 12
use:
#define PGSHIFT 12
#define NBPG (1 << PGSHIFT)

===================================================================
RCS file: /a/cvs/386BSD/src/sys/i386/include/param.h,v
retrieving revision 1.3
diff -c -r1.3 param.h
*** 1.3 1993/10/08 12:49:55
--- param.h 1993/10/08 12:53:19
***************
*** 52,76 ****
  #define ALIGNBYTES (sizeof(int) - 1)
  #define ALIGN(p) (((u_int)(p) + ALIGNBYTES) &~ ALIGNBYTES)

- #define NBPG 4096 /* bytes/page */
- #define PGOFSET (NBPG-1) /* byte offset into page */
  #define PGSHIFT 12 /* LOG2(NBPG) */
  #define NPTEPG (NBPG/(sizeof (struct pte)))

- #define NBPDR (1024*NBPG) /* bytes/page dir */
- #define PDROFSET (NBPDR-1) /* byte offset into page dir */
  #define PDRSHIFT 22 /* LOG2(NBPDR) */

  #define KERNBASE 0xFE000000 /* start of kernel virtual */
  #define BTOPKERNBASE ((u_long)KERNBASE >> PGSHIFT)

! #define DEV_BSIZE 512
  #define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */
  #define BLKDEV_IOSIZE 2048
  #define MAXPHYS (64 * 1024) /* max raw I/O transfer size */

- #define CLSIZE 1
  #define CLSIZELOG2 0

  /* NOTE: SSIZE, SINCR and UPAGES must be multiples of CLSIZE */
  #define SSIZE 1 /* initial stack size/NBPG */
--- 52,79 ----
  #define ALIGNBYTES (sizeof(int) - 1)
  #define ALIGN(p) (((u_int)(p) + ALIGNBYTES) &~ ALIGNBYTES)

  #define PGSHIFT 12 /* LOG2(NBPG) */
+ #define NBPG (1 << PGSHIFT) /* bytes/page */
+ #define PGOFSET (NBPG-1) /* byte offset into page */
  #define NPTEPG (NBPG/(sizeof (struct pte)))

  #define PDRSHIFT 22 /* LOG2(NBPDR) */
+ #define NBPDR (1 << PDRSHIFT) /* bytes/page dir */
+ #define PDROFSET (NBPDR-1) /* byte offset into page dir */

  #define KERNBASE 0xFE000000 /* start of kernel virtual */
  #define BTOPKERNBASE ((u_long)KERNBASE >> PGSHIFT)

! #define KERNSIZE 0x00C00000 /* size of kernel virtual */
!
  #define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */
+ #define DEV_BSIZE (1 << DEV_BSHIFT)
+
  #define BLKDEV_IOSIZE 2048
  #define MAXPHYS (64 * 1024) /* max raw I/O transfer size */

  #define CLSIZELOG2 0
+ #define CLSIZE (1 << CLSIZELOG2)

  /* NOTE: SSIZE, SINCR and UPAGES must be multiples of CLSIZE */
  #define SSIZE 1 /* initial stack size/NBPG */
***************
*** 92,99 ****
  #ifndef MCLSHIFT
  #define MCLSHIFT 11 /* convert bytes to m_buf clusters */
  #endif /* MCLSHIFT */
! #define MCLBYTES (1 << MCLSHIFT) /* size of a m_buf cluster */
! #define MCLOFSET (MCLBYTES - 1) /* offset within a m_buf cluster */

  #ifndef NMBCLUSTERS
  #ifdef GATEWAY
--- 95,102 ----
  #ifndef MCLSHIFT
  #define MCLSHIFT 11 /* convert bytes to m_buf clusters */
  #endif /* MCLSHIFT */
! #define MCLBYTES (1 << MCLSHIFT) /* size of an m_buf cluster */
! #define MCLOFSET (MCLBYTES - 1) /* offset within an m_buf cluster */

  #ifndef NMBCLUSTERS
  #ifdef GATEWAY

30 years agoRemoved patch kit header. Cleaned up tabbing and removed extra blank
Rod Grimes [Fri, 8 Oct 1993 12:49:55 +0000 (12:49 +0000)]
Removed patch kit header.  Cleaned up tabbing and removed extra blank
lines to match NetBSD.  Added $Id$.
Added MID_MACHINE from NetBSD.
Removed definition of DELAY() for non-kernel soures.
Fixed some small english errors that had been corrected in NetBSD.
File is now identical to NetBSD's, but will be changing soon for some
of my clean up work.

30 years agoThis fix is from Chris Demetriou
Rod Grimes [Fri, 8 Oct 1993 12:19:22 +0000 (12:19 +0000)]
This fix is from Chris Demetriou
You need a SUFFIX: line that has nothing on it so that the built-in
SUFFIX rules get cleared.  This is why we did not build the c library
using the optimized assembler sources for the i386.

You need to make clean in src/lib/libc and rebuild libc, then relink
the rest of the world for this fix to take effect.

30 years agoArchitecture specific syscalls (i386) from NetBSD
Rod Grimes [Fri, 8 Oct 1993 11:31:40 +0000 (11:31 +0000)]
Architecture specific syscalls (i386) from NetBSD

30 years agoMissing header file from Net/2 tape.
Rod Grimes [Fri, 8 Oct 1993 11:28:05 +0000 (11:28 +0000)]
Missing header file from Net/2 tape.

30 years agoRemoved patch kit header and rcsid, added $Id$.
Rod Grimes [Fri, 8 Oct 1993 10:50:42 +0000 (10:50 +0000)]
Removed patch kit header and rcsid, added $Id$.

Put the __main() {} for GCC2 here so that we match NetBSD

30 years agoRemoved patch kit headers, and rcsid, add $Id$, relocate Terry Lamberts
Rod Grimes [Fri, 8 Oct 1993 10:47:13 +0000 (10:47 +0000)]
Removed patch kit headers, and rcsid, add $Id$, relocate Terry Lamberts
copyright to match the location that it is in NetBSD.

Remove the __main() {} dummy function, it belongs in kern/init_main.c

30 years agoAllow ^C to interrupt with some semblance of politeness to cgd.
Jordan K. Hubbard [Fri, 8 Oct 1993 02:39:36 +0000 (02:39 +0000)]
Allow ^C to interrupt with some semblance of politeness to cgd.

30 years agoMore paranoid dealings with system()
Jordan K. Hubbard [Fri, 8 Oct 1993 02:38:15 +0000 (02:38 +0000)]
More paranoid dealings with system()

30 years agoChristoph Robitschko manual page fixes to correct the references to vmunix
Rod Grimes [Fri, 8 Oct 1993 01:43:06 +0000 (01:43 +0000)]
Christoph Robitschko manual page fixes to correct the references to vmunix
by replacing the name with 386bsd.

30 years agoChristoph Robitschko manual page fixes to correct the references to vmunix
Rod Grimes [Fri, 8 Oct 1993 01:37:04 +0000 (01:37 +0000)]
Christoph Robitschko manual page fixes to correct the references to vmunix
by replacing the name with 386bsd.

30 years agoChristoph Robitschko manual page fixes to correct the references to vmunix
Rod Grimes [Fri, 8 Oct 1993 01:27:59 +0000 (01:27 +0000)]
Christoph Robitschko manual page fixes to correct the references to vmunix
by replacing the name with 386bsd.

30 years agoAdded uname system call, autogenerated via make init_sysent.c in ../kern
Rod Grimes [Fri, 8 Oct 1993 01:09:22 +0000 (01:09 +0000)]
Added uname system call, autogenerated via make init_sysent.c in ../kern

30 years agoAdded uname() system call from NetBSD
Jordan K. Hubbard [Fri, 8 Oct 1993 01:06:55 +0000 (01:06 +0000)]
Added uname() system call from NetBSD

30 years agoAdd uname syscall using Makefile, make init_sysent.c.
Rod Grimes [Fri, 8 Oct 1993 01:06:28 +0000 (01:06 +0000)]
Add uname syscall using Makefile, make init_sysent.c.

30 years agouname command from NetBSD
Jordan K. Hubbard [Fri, 8 Oct 1993 00:40:50 +0000 (00:40 +0000)]
uname command from NetBSD

30 years agoAdded target for uname command from NetBSD
Jordan K. Hubbard [Fri, 8 Oct 1993 00:40:35 +0000 (00:40 +0000)]
Added target for uname command from NetBSD

30 years agoNew version mangler from NetBSD.
Jordan K. Hubbard [Fri, 8 Oct 1993 00:38:09 +0000 (00:38 +0000)]
New version mangler from NetBSD.

30 years agoChanges to add NetBSD's uname() to the kernel
Jordan K. Hubbard [Fri, 8 Oct 1993 00:36:13 +0000 (00:36 +0000)]
Changes to add NetBSD's uname() to the kernel

30 years agoAdded utsname.h for uname
Jordan K. Hubbard [Fri, 8 Oct 1993 00:21:23 +0000 (00:21 +0000)]
Added utsname.h for uname

30 years agoadded missing fake_syslog.c to SRCS line in Makefile.
Christoph Robitschko [Thu, 7 Oct 1993 23:38:43 +0000 (23:38 +0000)]
added missing fake_syslog.c to SRCS line in Makefile.

30 years agoThe type of inspeed was char for the old sgtty compatible interface. This
Rod Grimes [Thu, 7 Oct 1993 08:09:31 +0000 (08:09 +0000)]
The type of inspeed was char for the old sgtty compatible interface.  This
will not work when trying to store a termios speed into it, as termios
declares the speed to be an int.  Corrected by changing type of inspeed
to int.

Also for the termios case you must set c_ispeed and c_ospeed if the user
has specified a speed on the command line (inspeed != 0).

The setting of the baud rate from the command line now works on FreeBSD.

30 years ago>From: Paul Mackerras <Paul.Mackerras@cs.anu.edu.au>
Rod Grimes [Thu, 7 Oct 1993 02:19:37 +0000 (02:19 +0000)]
>From: Paul Mackerras <Paul.Mackerras@cs.anu.edu.au>
Date: Thu, 7 Oct 1993 10:27:04 +1000

Cameron Elliot (cam@claircom.com) has found a bug in if_ppp.c, in
the part of pppstart which handles Jolitz-style ring buffers, which
I believe FreeBSD uses.  So you might like to apply the following
patch (below).  The patch also makes pppoutput call pppstart every
time, not just when the output queue is empty.  The idea is to make
it a bit more robust against serial drivers which lose interrupts.
If the driver does lose a transmit interrupt, the driver's t_oproc
routine will still get called again when the higher level protocols
retransmit.

30 years agoFrom ljo:
Rod Grimes [Wed, 6 Oct 1993 20:49:17 +0000 (20:49 +0000)]
From ljo:

machdep.o is a defined to be a target in 2 places.  This was caused by
the addition of the LOAD_ADDRESS stuff.  Removed the extranious target
of machdep.o.

30 years agoAdded /dev/zero and /dev/io, they have been around for a while, time to
Rod Grimes [Wed, 6 Oct 1993 03:35:03 +0000 (03:35 +0000)]
Added /dev/zero and /dev/io, they have been around for a while, time to
have some /dev entries.

30 years ago>From: ljo@ljo-slip.DIALIN.CWRU.Edu (Jonas Olsson)
Rod Grimes [Tue, 5 Oct 1993 23:22:07 +0000 (23:22 +0000)]
>From: ljo@ljo-slip.DIALIN.CWRU.Edu (Jonas Olsson)
Date: Sat, 2 Oct 1993 09:04:29 -0400
Description:
The prototype for sscanf in stdio.h does not match the man page
The man page is correct.
Repeat-By:

Fix:
Change the line in stdio.h from:
int     sscanf __P((char *, const char *, ...));
to:
int     sscanf __P((const char *, const char *, ...));

>From: Rod Grimes

You also need to fix src/lib/libc/stdio/sscanf.c to match this!

30 years ago>From: guido@gvr.win.tue.nl (Guido van Rooij)
Rod Grimes [Tue, 5 Oct 1993 21:55:35 +0000 (21:55 +0000)]
>From: guido@gvr.win.tue.nl (Guido van Rooij)
Date: Tue, 5 Oct 1993 20:00:24 +0100 (MET)
I have a link : /usr/src->/disk3/src
this makes (a nice feature) the obj appear in /usr/obj/disk3/src/....
However, when make world cleans up the obj directories, it always
tries to find them in /usr/obj. Wrong according to me.

Rod:
Fixed by using the same algorith that the .mk files use to locate the
obj directory.

30 years agoFrom: bob@obiwan.uucp (Bob Willcox)
Rod Grimes [Tue, 5 Oct 1993 19:23:49 +0000 (19:23 +0000)]
From: bob@obiwan.uucp (Bob Willcox)
Newsgroups: comp.os.386bsd.bugs
Date: 12 Jul 93 03:41:13 GMT

I had this little problem with the passwd command when a user was
trying to add a password and they currently did not have one.
Seems that passwd does not take into account the empty old password
case.

30 years agoMoved Rob Shady from core team to contributors
Rod Grimes [Tue, 5 Oct 1993 01:47:43 +0000 (01:47 +0000)]
Moved Rob Shady from core team to contributors

30 years agoLatest changs for XFree86 2.0
Jordan K. Hubbard [Mon, 4 Oct 1993 22:23:03 +0000 (22:23 +0000)]
Latest changs for XFree86 2.0

30 years agoLatest changes for XFree86 2.0
Jordan K. Hubbard [Mon, 4 Oct 1993 22:21:10 +0000 (22:21 +0000)]
Latest changes for XFree86 2.0

30 years agoDocument the new, less restrictive, behavior of the matching operator.
J.T. Conklin [Mon, 4 Oct 1993 22:07:27 +0000 (22:07 +0000)]
Document the new, less restrictive, behavior of the matching operator.

30 years agoAllow expressions like "expr 'ABC' : '^.*$' to work as is done in other
J.T. Conklin [Mon, 4 Oct 1993 21:58:53 +0000 (21:58 +0000)]
Allow expressions like "expr 'ABC' : '^.*$' to work as is done in other
expr implementations.

30 years agoChanged Scott Mace's email address to smace@neosoft.com
Rod Grimes [Mon, 4 Oct 1993 06:13:55 +0000 (06:13 +0000)]
Changed Scott Mace's email address to smace@neosoft.com

30 years agoSplit the src-tarball target up into multiple targets, there is now
Rod Grimes [Fri, 1 Oct 1993 21:34:23 +0000 (21:34 +0000)]
Split the src-tarball target up into multiple targets, there is now
a tar ball for each top level src directory, plus the base tar ball
that has the very toplevel files in it.

30 years agoRelease level changed from GAMMA to EPSILON
Rod Grimes [Fri, 1 Oct 1993 19:22:43 +0000 (19:22 +0000)]
Release level changed from GAMMA to EPSILON

30 years agoUpdated to reflect the fact the there is no longer an ne driver, told to
Rod Grimes [Fri, 1 Oct 1993 04:43:56 +0000 (04:43 +0000)]
Updated to reflect the fact the there is no longer an ne driver, told to
use ed0 as the replacement, noted new addresses

30 years agoChanged address freebsd-comments to freebsd-questions
Rod Grimes [Fri, 1 Oct 1993 04:40:57 +0000 (04:40 +0000)]
Changed address freebsd-comments to freebsd-questions