unix-history/.git
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

30 years agoMoved declaration of pk_flowcontrol to be earlier so that compiler warning
Rod Grimes [Fri, 1 Oct 1993 04:27:09 +0000 (04:27 +0000)]
Moved declaration of pk_flowcontrol to be earlier so that compiler warning
is eliminated about being declared extern, then static

30 years agoFixed cd0 line to match the GENERIC* kernel configs
Rod Grimes [Fri, 1 Oct 1993 04:26:21 +0000 (04:26 +0000)]
Fixed cd0 line to match the GENERIC* kernel configs

30 years agoRemove old ethernet drivers if_ec, if_ne, and if_we from config files
Rod Grimes [Fri, 1 Oct 1993 04:20:19 +0000 (04:20 +0000)]
Remove old ethernet drivers if_ec, if_ne, and if_we from config files
and from files.i386, they are no longer supported.

30 years ago * Revision 2.5 93/09/30 17:44:14 davidg
David Greenman [Fri, 1 Oct 1993 00:56:43 +0000 (00:56 +0000)]
 * Revision 2.5  93/09/30  17:44:14  davidg
 * patch from vak@zebub.msk.su (Serge V.Vakulenko) to work around
 * a hardware bug in cheap WD clone boards where the PROM checksum
 * byte is always zero

30 years agoNew resting home for console.h, it is machine specific.
Rod Grimes [Fri, 1 Oct 1993 00:00:43 +0000 (00:00 +0000)]
New resting home for console.h, it is machine specific.

30 years agoChange #include <sys/console.h> to <machine/console.h>, file will be moved
Rod Grimes [Thu, 30 Sep 1993 23:59:49 +0000 (23:59 +0000)]
Change #include <sys/console.h> to <machine/console.h>, file will be moved
shortly

30 years agoAnother russian keymap.
Jordan K. Hubbard [Thu, 30 Sep 1993 23:38:27 +0000 (23:38 +0000)]
Another russian keymap.

30 years agoA bunch of extra cyrillic folks for our russian comrades.
Jordan K. Hubbard [Thu, 30 Sep 1993 23:38:07 +0000 (23:38 +0000)]
A bunch of extra cyrillic folks for our russian comrades.

30 years agoAdded share/syscons/scrnmaps directory
Rod Grimes [Thu, 30 Sep 1993 23:31:37 +0000 (23:31 +0000)]
Added share/syscons/scrnmaps directory

30 years agoRussian screen map
Jordan K. Hubbard [Thu, 30 Sep 1993 23:28:54 +0000 (23:28 +0000)]
Russian screen map

30 years agoRussian keymap
Jordan K. Hubbard [Thu, 30 Sep 1993 23:28:44 +0000 (23:28 +0000)]
Russian keymap

30 years agoRussian font.
Jordan K. Hubbard [Thu, 30 Sep 1993 23:25:22 +0000 (23:25 +0000)]
Russian font.

30 years agoAdded scrnmaps dir.
Jordan K. Hubbard [Thu, 30 Sep 1993 23:24:48 +0000 (23:24 +0000)]
Added scrnmaps dir.

30 years agoThis is a fix for the 32K DMA buffer region that was not accounted for,
Rod Grimes [Thu, 30 Sep 1993 23:16:17 +0000 (23:16 +0000)]
This is a fix for the 32K DMA buffer region that was not accounted for,
it relocates it to be after the BIOS memory hole instead of right below
the 640K limit.
THANK YOU CHRIS!!!

From: <cgd@postgres.Berkeley.EDU>
Date: Wed, 29 Sep 93 18:49:58 -0700
basically, reserve a new 32k space right after firstaddr,
and put the buffer space there...

the diffs are below, and are in ~cgd/sys/i386/i386 (in machdep.c)
on freefall.  i obviously can't test them, so if some of you would
look the diffs over and try them out...

30 years agoDocs updated to reflect additional flags.
Jordan K. Hubbard [Thu, 30 Sep 1993 21:48:34 +0000 (21:48 +0000)]
Docs updated to reflect additional flags.

30 years agoRemove we0, since it is being removed from the system
Rod Grimes [Thu, 30 Sep 1993 20:45:37 +0000 (20:45 +0000)]
Remove we0, since it is being removed from the system

30 years agoOnly configure one cd unit now since the code is fully dynamic,
Rod Grimes [Thu, 30 Sep 1993 20:44:32 +0000 (20:44 +0000)]
Only configure one cd unit now since the code is fully dynamic,
add comment about this to the device cd0 line.

30 years agoThis is the enhanced version of mt(1) command, with
Rod Grimes [Thu, 30 Sep 1993 20:30:41 +0000 (20:30 +0000)]
This is the enhanced version of mt(1) command, with
interface to new streamer driver added.

There are two new (QIC-02) commands:

erase           - erase the tape
retension       - retension the tape

Command 'mt status' prints brief description of driver flags
and tape controller error register.

Serge Vakulenko, <vak@zebub.msk.su>

30 years agoSupport for new wt driver. Removed old references to as* disk types since
Rod Grimes [Thu, 30 Sep 1993 20:18:59 +0000 (20:18 +0000)]
Support for new wt driver.  Removed old references to as* disk types since
they are long gone.

30 years ago>From: vak@zebub.msk.su (Serge V.Vakulenko)
Rod Grimes [Thu, 30 Sep 1993 20:12:37 +0000 (20:12 +0000)]
>From: vak@zebub.msk.su (Serge V.Vakulenko)
Date: Thu, 30 Sep 1993 15:13:17 +0300

Description:
Old wt driver is too incomplete and buggy.
It does not support Archive controllers, BSD-like
tape ioctls, multiple tape controllers, different
tape density etc.
Fix:
This driver is a replacement of the old one.
It was not tested on different controllers, though.

This is the streamer tape driver for 386bsd and FreeBSD,
which supports Wangtek and Archive controllers.
It was developed as a replacement of the old Wangtek
tape driver from CMU.

In comparison with the CMU driver, this version has the following enhancements:
1) Support for Archive SC402 and SC499 tape controllers added.
2) Support for up to three tape controllers on the same machine.
3) Support for BSD-style ioctls MTIOCGET, MTIOCTOP.
   Mt command now works adequately with this driver.
4) Asynchronous REWIND and FSF operations, close() will not wait
   until they finish.  The next open() will wait for it instead.
5) Use of WTQICMD ioctl is limited to ERASE and RETENS operations.
   This prevents the user from locking the tape driver by strange
   tape operations.
6) Tape density switching added.
7) The status of the process, blocked on the tape operation,
   is displayed at the WCHAN column of the `ps' command as:

wtread    reading data from the tape
wtwrite   writing data to the tape
wtrfm     reading the tape marker
wtwfm     writing the tape marker
wtrew     rewinding the tape
wterase   doing WTQICMD ERASE operation
wtretens  doing WTQICMD RETENS operation
wtorew    doing MTIOCTOP REW/OFFL operation
wtorfm    doing MTIOCTOP FSF operation
wtowfm    doing MTIOCTOP WEOF operation

Block interface (writing blocks less than 2048 bytes) is not functioning
pwoperly.  Use raw interface instead.

30 years agoFrom: stark!gene@newsserv.cs.sunysb.edu (Gene Stark)
Rod Grimes [Thu, 30 Sep 1993 19:25:55 +0000 (19:25 +0000)]
From: stark!gene@newsserv.cs.sunysb.edu (Gene Stark)
Date: Wed, 29 Sep 1993 23:28:10 -0400
Subject: C Shell sometimes exhibits strange behavior processing loops
Index: /usr/src/bin/csh/dir.c FreeBSD-1.0

Description:
(Perhaps this should be forwarded to a general BSD bug list.
I don't have access to sources other than for FreeBSD, so I
don't know how/when this particular bug was introduced. - EWS)

The C shell sometimes barfs with crazy syntax error messages
when processing scripts containing "foreach" loops.

The problem is this:  function dinit() in file dir.c makes
the call

    cp = dcanon(str2short(tcp), STRNULL);

The function str2short() in file str.c returns the value
of its static variable "sdst", which is initialized to point
to a malloc()'ed memory area.  However, function dcanon()
in file dir.c calls xfree() to free its first argument.
This can result in the freed area being reallocated for
other purposes, while it is still retained in the static
variable "sdst", and used for subsequent strings.

I observed this bug when the seek code in function bgetc()
in file lex.c was exercised by processing of "foreach" loops.

Repeat-By:
This is difficult, because the bug is highly environment dependent
(i.e. on exact contents of .cshrc and .login, as well as the
script being run).  Basically, try a lot of scripts with complicated
"foreach" loops in them and you might observe the problem.

30 years ago * Revision 2.4 93/09/29 21:24:30 davidg
David Greenman [Thu, 30 Sep 1993 05:27:55 +0000 (05:27 +0000)]
 * Revision 2.4  93/09/29  21:24:30  davidg
 * Added software NIC reset in NE probe to work around a problem
 * with some NE boards where the 8390 doesn't reset properly on
 * power-up. Remove initialization of IMR/ISR in the NE probe
 * because this is inherent in the reset.

30 years ago * Revision 2.3 93/09/29 15:10:16 davidg
David Greenman [Wed, 29 Sep 1993 22:15:53 +0000 (22:15 +0000)]
 * Revision 2.3  93/09/29  15:10:16  davidg
 * credit Charles Hannum

30 years ago * Revision 2.2 93/09/29 13:23:25 davidg
David Greenman [Wed, 29 Sep 1993 20:30:26 +0000 (20:30 +0000)]
 * Revision 2.2  93/09/29  13:23:25  davidg
 * added no multi-buffer override for 3c503
 *
 * Revision 2.1  93/09/29  12:32:12  davidg
 * changed multi-buffer count for 16bit 3c503's from 5 to 2 after
 * noticing that the transmitter becomes idle because of so many
 * packets to load.
 *
 * Revision 2.0  93/09/29  00:00:19  davidg
 * many changes, rewrites, additions, etc. Now supports the
 * NE1000, NE2000, WD8003, WD8013, 3C503, 16bit 3C503, and
 * a variety of similar clones. 16bit 3c503 now does multi
 * transmit buffers. Nearly every part of the driver has
 * changed in some way since rev 1.30.

30 years agoAdd symbolic name for system page directory end, and change constant to
Rod Grimes [Wed, 29 Sep 1993 02:37:41 +0000 (02:37 +0000)]
Add symbolic name for system page directory end, and change constant to
a calculation for the system page directory tables.

30 years agoUpdated for new location of syscons fonts and keymap files
Rod Grimes [Wed, 29 Sep 1993 02:25:59 +0000 (02:25 +0000)]
Updated for new location of syscons fonts and keymap files

30 years agoFixed Makefiles to install into the new places (/usr/share/syscons/X)
Rod Grimes [Wed, 29 Sep 1993 02:25:30 +0000 (02:25 +0000)]
Fixed Makefiles to install into the new places (/usr/share/syscons/X)