unix-history/.git
30 years agoGot rid of compiler-related grot not appropriate for our configuration.
Garrett Wollman [Tue, 21 Dec 1993 19:05:26 +0000 (19:05 +0000)]
Got rid of compiler-related grot not appropriate for our configuration.

30 years agoMake sure this directory sticks around.
Garrett Wollman [Tue, 21 Dec 1993 18:47:45 +0000 (18:47 +0000)]
Make sure this directory sticks around.

30 years agoxntpd 3.3b from UDel
Garrett Wollman [Tue, 21 Dec 1993 18:36:48 +0000 (18:36 +0000)]
xntpd 3.3b from UDel

30 years agoThis commit was generated by cvs2svn to track changes on a CVS vendor
Garrett Wollman [Tue, 21 Dec 1993 18:36:48 +0000 (18:36 +0000)]
This commit was generated by cvs2svn to track changes on a CVS vendor
branch.

30 years agoConverted vm_page bit fields to flags to allow for some optimizations
David Greenman [Tue, 21 Dec 1993 05:51:07 +0000 (05:51 +0000)]
Converted vm_page bit fields to flags to allow for some optimizations

30 years agoComment out porogrammer-readable fd name set,
Andrey Chernov [Tue, 21 Dec 1993 05:49:28 +0000 (05:49 +0000)]
Comment out porogrammer-readable fd name set,
not needed in standard version, only for XENIX lovers.

30 years agoSeparate read/write and format GAPs.
Andrey Chernov [Tue, 21 Dec 1993 05:11:10 +0000 (05:11 +0000)]
Separate read/write and format GAPs.

30 years agoUse separate fields for format GAP and read/write GAP.
Andrey Chernov [Tue, 21 Dec 1993 05:09:21 +0000 (05:09 +0000)]
Use separate fields for format GAP and read/write GAP.
Restore usage of read/write GAP.

30 years agoDon't cast 2nd arg to fillw() per David's comments. The cast
Paul Richards [Tue, 21 Dec 1993 03:27:26 +0000 (03:27 +0000)]
Don't cast 2nd arg to fillw() per David's comments.  The cast
breaks cursor positioning.

30 years agoUpdate to sendmail 8.6.4 (from ftp.cs.berkeley.edu)
Andrew Moore [Tue, 21 Dec 1993 03:07:06 +0000 (03:07 +0000)]
Update to sendmail 8.6.4 (from ftp.cs.berkeley.edu)

30 years agoFix sendmail_flags, long ago it was imported from /etc/netstart
Andrey Chernov [Tue, 21 Dec 1993 02:58:15 +0000 (02:58 +0000)]
Fix sendmail_flags, long ago it was imported from /etc/netstart
with this bug.

30 years agocast arg 2 of fillw() calls to type caddr_t as in pccons.
Paul Richards [Tue, 21 Dec 1993 02:49:13 +0000 (02:49 +0000)]
cast arg 2 of fillw() calls to type caddr_t as in pccons.
add "manual escape to debugger" arg in call to Debugger().
cast 1st arg to untimeout() to type timeout_func_t as done for timeout().

30 years agolatest m4 (from NetBSD)
Andrew Moore [Tue, 21 Dec 1993 02:27:41 +0000 (02:27 +0000)]
latest m4 (from NetBSD)

30 years agoLet the linker keep track of pseudo-devices needing initialization and
Garrett Wollman [Mon, 20 Dec 1993 19:31:42 +0000 (19:31 +0000)]
Let the linker keep track of pseudo-devices needing initialization and
image activators, rather than listing them inline in the code.

30 years agoCopyrights added to each file.
Chris Provenzano [Mon, 20 Dec 1993 19:30:19 +0000 (19:30 +0000)]
Copyrights added to each file.

30 years agoFix from Bruce Evans:
David Greenman [Mon, 20 Dec 1993 16:41:12 +0000 (16:41 +0000)]
Fix from Bruce Evans:
This change stops kmstartup() from allocating 1M of unused counters when
the kernel is loaded at 1M.  You also need to change `start' to `_btext'
in locore.s.

(start was changed to btext a long time ago)

30 years agoMake kmstartup and mcount void functions.
David Greenman [Mon, 20 Dec 1993 16:23:51 +0000 (16:23 +0000)]
Make kmstartup and mcount void functions.

30 years agoRename aout_imgact.c and shell_imgact.c to imgact_* for consistency.
Garrett Wollman [Mon, 20 Dec 1993 16:16:46 +0000 (16:16 +0000)]
Rename aout_imgact.c and shell_imgact.c to imgact_* for consistency.

30 years agoAdded MAKE_SET, TEXT_SET, DATA_SET, BSS_SET, ABS_SET, and struct
Garrett Wollman [Mon, 20 Dec 1993 16:13:05 +0000 (16:13 +0000)]
Added MAKE_SET, TEXT_SET, DATA_SET, BSS_SET, ABS_SET, and struct
linker_set, to allow the linker to generate lists of initializers
for us automatically.  Not yet actually used anywhere.

30 years agoDocument use of counters 29 and 30 for CCITT netisrs.
Garrett Wollman [Mon, 20 Dec 1993 15:08:33 +0000 (15:08 +0000)]
Document use of counters 29 and 30 for CCITT netisrs.

30 years agoSeparated netisrs for pkintr() (X.25) and hdintr() (HDLC) so that someone
Garrett Wollman [Mon, 20 Dec 1993 14:58:35 +0000 (14:58 +0000)]
Separated netisrs for pkintr() (X.25) and hdintr() (HDLC) so that someone
can actually write a sane netif device to support one of these.  Note that it
was necessary to steal a netisr bit from another protocol; I took the one for
PF_DATAKIT (no great loss).

30 years agoquad.h now depends on machine/endian.h for the value of _QUAD_HIGHWORD
Paul Richards [Mon, 20 Dec 1993 14:44:57 +0000 (14:44 +0000)]
quad.h now depends on machine/endian.h for the value of _QUAD_HIGHWORD
and sys/cdefs.h for __P.

30 years agoFix sign of offset diff.
Andrey Chernov [Mon, 20 Dec 1993 01:53:27 +0000 (01:53 +0000)]
Fix sign of offset diff.
Use Bruce initial/final hour scheme to avoid critical hours.

30 years agoRemoved <pthread/copyright.h> and replace references to it with the
Andrew Moore [Mon, 20 Dec 1993 00:28:51 +0000 (00:28 +0000)]
Removed <pthread/copyright.h> and replace references to it with the
actual text.  Done without Chris Provenzano's permission, so if it was
not legal before, it still isn't quite legal...

30 years agoFixed dependence on pseudo-device header files now that these are all
Garrett Wollman [Sun, 19 Dec 1993 23:24:18 +0000 (23:24 +0000)]
Fixed dependence on pseudo-device header files now that these are all
mandatory.  (Bug found by Rod Grimes.)

30 years agoUpdate for new quad code. (Anonymous unions are not compatible.)
Garrett Wollman [Sun, 19 Dec 1993 23:23:38 +0000 (23:23 +0000)]
Update for new quad code.  (Anonymous unions are not compatible.)

30 years agoComment out definitions of u_/quad in <sys/types.h> again.
Andrew Moore [Sun, 19 Dec 1993 22:54:04 +0000 (22:54 +0000)]
Comment out definitions of u_/quad in <sys/types.h> again.
Replace u_/quad declrs with union { u_/quad_t }.
Files affected: <sys/vnode.h> <sys/mount.h> /sys/ufs/fs.h and
/sys/ufs/dinode.h.
*** vnode.h~ Sun Dec 19 14:06:45 1993
--- vnode.h Sun Dec 19 14:13:06 1993
***************
*** 124,130 ****
   gid_t va_gid; /* owner group id */
   long va_fsid; /* file system id (dev for now) */
   long va_fileid; /* file id */
!  u_quad va_qsize; /* file size in bytes */
   long va_blocksize; /* blocksize preferred for i/o */
   struct timeval va_atime; /* time of last access */
   struct timeval va_mtime; /* time of last modification */
--- 124,133 ----
   gid_t va_gid; /* owner group id */
   long va_fsid; /* file system id (dev for now) */
   long va_fileid; /* file id */
!  union {
!  u_quad_t v;
!  u_long val[2];
!  }  va_qsize; /* file size in bytes */
   long va_blocksize; /* blocksize preferred for i/o */
   struct timeval va_atime; /* time of last access */
   struct timeval va_mtime; /* time of last modification */
***************
*** 132,138 ****
   u_long va_gen; /* generation number of file */
   u_long va_flags; /* flags defined for file */
   dev_t va_rdev; /* device the special file represents */
!  u_quad va_qbytes; /* bytes of disk space held by file */
  };
  #if BYTE_ORDER == LITTLE_ENDIAN
  #define va_size va_qsize.val[0]
--- 135,144 ----
   u_long va_gen; /* generation number of file */
   u_long va_flags; /* flags defined for file */
   dev_t va_rdev; /* device the special file represents */
!  union {
!  u_quad_t v;
!  u_long val[2];
!  } va_qbytes; /* bytes of disk space held by file */
  };
  #if BYTE_ORDER == LITTLE_ENDIAN
  #define va_size va_qsize.val[0]
*** mount.h~ Sun Dec 19 14:06:51 1993
--- mount.h Sun Dec 19 14:12:36 1993
***************
*** 37,43 ****
  #ifndef _SYS_MOUNT_H_
  #define _SYS_MOUNT_H_ 1

! typedef quad fsid_t; /* file system id type */

  /*
   * File identifier.
--- 37,46 ----
  #ifndef _SYS_MOUNT_H_
  #define _SYS_MOUNT_H_ 1

! typedef union {
!  quad_t v;
!  long val[2];
! } fsid_t; /* file system id type */

  /*
   * File identifier.

30 years agoReplace u_/quad declrs in the kernel with unions { u_/quad_t }.
Andrew Moore [Sun, 19 Dec 1993 22:51:09 +0000 (22:51 +0000)]
Replace u_/quad declrs in the kernel with unions { u_/quad_t }.
This affects five headers: <sys/vnode.h> <sys/mount.h> /sys/ufs/dinode.h
and /sys/ufs/fs.h.

*** dinode.h~ Sun Dec 19 14:34:48 1993
--- dinode.h Sun Dec 19 14:36:58 1993
***************
*** 52,58 ****
   short di_nlink; /*  2: number of links to file */
   uid_t di_uid; /*  4: owner's user id */
   gid_t di_gid; /*  6: owner's group id */
!  u_quad di_qsize; /*  8: number of bytes in file */
   time_t di_atime; /* 16: time last accessed */
   long di_atspare;
   time_t di_mtime; /* 24: time last modified */
--- 52,61 ----
   short di_nlink; /*  2: number of links to file */
   uid_t di_uid; /*  4: owner's user id */
   gid_t di_gid; /*  6: owner's group id */
!  union {
!  u_quad_t v;
!  u_long val[2];
!  } di_qsize; /*  8: number of bytes in file */
   time_t di_atime; /* 16: time last accessed */
   long di_atspare;
   time_t di_mtime; /* 24: time last modified */
*** fs.h~ Sun Dec 19 14:34:52 1993
--- fs.h Sun Dec 19 14:38:23 1993
***************
*** 213,220 ****
   short fs_opostbl[16][8]; /* old rotation block list head */
   long fs_sparecon[55]; /* reserved for future constants */
   long fs_state; /* validate fs_clean field */
!  quad fs_qbmask; /* ~fs_bmask - for use with quad size */
!  quad fs_qfmask; /* ~fs_fmask - for use with quad size */
   long fs_postblformat; /* format of positional layout tables */
   long fs_nrpos; /* number of rotaional positions */
   long fs_postbloff; /* (short) rotation block list head */
--- 213,226 ----
   short fs_opostbl[16][8]; /* old rotation block list head */
   long fs_sparecon[55]; /* reserved for future constants */
   long fs_state; /* validate fs_clean field */
!  union {
!  quad_t v;
!  long val[2];
!  } fs_qbmask; /* ~fs_bmask - for use with quad size */
!  union {
!  quad_t v;
!  long val[2];
!  } fs_qfmask; /* ~fs_fmask - for use with quad size */
   long fs_postblformat; /* format of positional layout tables */
   long fs_nrpos; /* number of rotaional positions */
   long fs_postbloff; /* (short) rotation block list head */

30 years agoAdded support for X.25 as a network-layer protocol under ISO TP class 0, as
Garrett Wollman [Sun, 19 Dec 1993 22:45:43 +0000 (22:45 +0000)]
Added support for X.25 as a network-layer protocol under ISO TP class 0, as
is commonly used in Europe.  Make it compile, and bump up symtab space as
needed.

30 years agomount.h and vnode.h evidently depend on quad and u_quad, so
Andrew Moore [Sun, 19 Dec 1993 21:56:16 +0000 (21:56 +0000)]
mount.h and vnode.h evidently depend on quad and u_quad, so
these have been restored until the appropriate changes are made.

30 years agoForgot to check in this change last night. This creates an ioconf file which
Garrett Wollman [Sun, 19 Dec 1993 21:55:06 +0000 (21:55 +0000)]
Forgot to check in this change last night.  This creates an ioconf file which
correctly declares the types of the linked interrupt vector functions.

30 years agoFixed warnings in netstat found by David Greenman.
Garrett Wollman [Sun, 19 Dec 1993 21:43:26 +0000 (21:43 +0000)]
Fixed warnings in netstat found by David Greenman.

30 years agoCorrected (?) definition of u_quad_t:
Andrew Moore [Sun, 19 Dec 1993 21:32:50 +0000 (21:32 +0000)]
Corrected (?) definition of u_quad_t:
#ifdef __STRICT_ANSI__
typedef quad_t __attribute (( mode (DI) ));
typedef unsigned u_quad_t __attribute (( mode (DI) ));
#else
typedef long long quad_t;
typedef unsigned long long u_quad_t;
#endif
typedef quad_t *        qaddr_t;

30 years agoadded Chris Provenzano's light-weight threading library.
Andrew Moore [Sun, 19 Dec 1993 06:21:33 +0000 (06:21 +0000)]
added Chris Provenzano's light-weight threading library.

from libpthread/README:
This pthread package is/will be based on the POSIX1003.4a Draft 7 pthread
standard, and Frank Mullers paper on signal handelling presented
at the Winter 93 USENIX conference.

It is currently being designed and written by me, Chris Provenzano.
All bug, comments, and questions can be sent me at either
proven@athena.mit.edu or proven@sun-lamp.cs.berkeley.edu
Please don't send questions, bugs or patches to any of the [FreeBSD] mailing
lists.

Copyright (c) 1993 Chris Provenzano. All rights reserved.

This product includes software developed by the Univeristy of California,
Berkeley and its contributors.

30 years agoupdate to db-1.72
Andrew Moore [Sun, 19 Dec 1993 05:19:43 +0000 (05:19 +0000)]
update to db-1.72
add quad library - including libc/quad and stdlib/{strtoq.c,strtouq.c}

30 years agoadding libc/quad:
Andrew Moore [Sun, 19 Dec 1993 05:14:46 +0000 (05:14 +0000)]
adding libc/quad:
added _QUAD_HIGH/LOW
added (U_)QUAD_MAX/MIN
(from NetBSD)

30 years agoadding libc/quad:
Andrew Moore [Sun, 19 Dec 1993 05:12:57 +0000 (05:12 +0000)]
adding libc/quad:
add quad_t and u_quad_t

30 years agoupdating to db-1.72
Andrew Moore [Sun, 19 Dec 1993 05:11:30 +0000 (05:11 +0000)]
updating to db-1.72

30 years agoWarning "root directory is not a multiple of the clustersize... "
Andrey Chernov [Sun, 19 Dec 1993 02:07:58 +0000 (02:07 +0000)]
Warning "root directory is not a multiple  of the clustersize... "
#ifdefed PCFSDEBUG, because it is usual case for floppy formats
720, 800, 820, etc.

30 years agoMake everything compile with -Wtraditional. Make it easier to distribute
Garrett Wollman [Sun, 19 Dec 1993 00:56:17 +0000 (00:56 +0000)]
Make everything compile with -Wtraditional.  Make it easier to distribute
a binary link-kit.  Make all non-optional options (pagers, procfs) standard,
and update LINT to reflect new symtab requirements.

NB: -Wtraditional will henceforth be forgotten.  This editing pass was
primarily intended to detect any constructions where the old code might
have been relying on traditional C semantics or syntax.  These were all
fixed, and the result of fixing some of them means that -Wall is now a
realistic possibility within a few weeks.

30 years agoMedia table reorganization.
Andrey Chernov [Sun, 19 Dec 1993 00:40:49 +0000 (00:40 +0000)]
Media table reorganization.
Entries for 800 and 820 fixed.
From vak@kiae.su:
incorporate Joerg Wunsch formatting code
correct handle timeouted operations
fixed entry for 720 media

30 years agoFrom vak@kiae.su:
Andrey Chernov [Sun, 19 Dec 1993 00:37:25 +0000 (00:37 +0000)]
From vak@kiae.su:
incorporate Joerg Wunsch floppy formatting code

30 years agoFix tsleep "waitvt" wait data from vak@kiae.su
Andrey Chernov [Sat, 18 Dec 1993 22:50:51 +0000 (22:50 +0000)]
Fix tsleep "waitvt" wait data from vak@kiae.su

30 years agoAdded the bugfixes from M.R.Murphy ( mrm@sceard.com ). rwhod doesn't free
Andreas Schulz [Sat, 18 Dec 1993 16:12:42 +0000 (16:12 +0000)]
Added the bugfixes from M.R.Murphy ( mrm@sceard.com ). rwhod doesn't free
all malloced memory in the error case. And a new syslog warning added if
the utmp grows in the runtime of rwhod.

30 years agoUser-readable fd name set added:
Andrey Chernov [Sat, 18 Dec 1993 01:19:02 +0000 (01:19 +0000)]
User-readable fd name set added:
[r]fd[n].{360,720,800,820,1200,1440,1480,1720}
Programmer-readable fd name set added in XENIX style.

30 years agoReorganization of format table.
Andrey Chernov [Sat, 18 Dec 1993 01:16:26 +0000 (01:16 +0000)]
Reorganization of format table.
GAP values changed suitable for possible format code addition.
Read/write GAP always 2 now.
Interleave parameter added for possible format code addition.
Many logical formats added.
720K physical drive added.
Problems: still can't read 720..820 media in 1.44 drive.

30 years agoRTCFDT_720K (physical drive 720K) added.
Andrey Chernov [Sat, 18 Dec 1993 01:12:47 +0000 (01:12 +0000)]
RTCFDT_720K (physical drive 720K) added.

30 years agoFinally checked in fix for route printing bug that I introduced which was
Garrett Wollman [Fri, 17 Dec 1993 16:52:18 +0000 (16:52 +0000)]
Finally checked in fix for route printing bug that I introduced which was
sitting in my sources but never committed.  Netmaksk are now printed correctly
(yay!).

30 years agoadjkerntz call added with explanation comment
Andrey Chernov [Fri, 17 Dec 1993 04:20:30 +0000 (04:20 +0000)]
adjkerntz call added with explanation comment

30 years agoAdd adjkerntz
Rod Grimes [Thu, 16 Dec 1993 22:57:31 +0000 (22:57 +0000)]
Add adjkerntz

30 years agoFixed Makefile per bug report from Julian Stacey. There was an extra DESTDIR
Nate Willams [Thu, 16 Dec 1993 21:51:27 +0000 (21:51 +0000)]
Fixed Makefile per bug report from Julian Stacey.  There was an extra DESTDIR
in front of BINDIR definition.

30 years agoChanged write permissions to be 020 instead of 002. 002 is wrong becuase
Scott Mace [Thu, 16 Dec 1993 20:34:19 +0000 (20:34 +0000)]
Changed write permissions to be 020 instead of 002.  002 is wrong becuase
it will allow other the write to the ttys, only group tty should be able
to write to the ttys.

30 years agoAdded following formats (derived from MSDOS fdformat):
Andrey Chernov [Thu, 16 Dec 1993 19:47:42 +0000 (19:47 +0000)]
Added following formats (derived from MSDOS fdformat):
800K in HD 5.25in  (maximum for DD diskettes)
1.44M in HD 5.25in (for easy distributions)
1.46M in HD 5.25in (maximum for 5.25)
Some cosmetique changes.

30 years agoAttempt to import adjkerntz...
Andrey Chernov [Thu, 16 Dec 1993 18:44:40 +0000 (18:44 +0000)]
Attempt to import adjkerntz...

30 years agoThis commit was generated by cvs2svn to track changes on a CVS vendor
Andrey Chernov [Thu, 16 Dec 1993 18:44:40 +0000 (18:44 +0000)]
This commit was generated by cvs2svn to track changes on a CVS vendor
branch.

30 years agoChange default dtrwait time to 2 seconds.
Andrey Chernov [Thu, 16 Dec 1993 04:40:45 +0000 (04:40 +0000)]
Change default dtrwait time to 2 seconds.

30 years agoChange default dtrwait value to 2 seconds.
Andrey Chernov [Thu, 16 Dec 1993 04:38:27 +0000 (04:38 +0000)]
Change default dtrwait value to 2 seconds.
Change C-style into static initializer per Bruce request.

30 years agoNo more partition bits in floppy minor.
Andrey Chernov [Thu, 16 Dec 1993 04:34:11 +0000 (04:34 +0000)]
No more partition bits in floppy minor.
Now minor looks like UU DDDDDD, UU - unit, DDDDDD - density.
If density == 0, CMOS-detect format assumed.
For old users/pgms use fake partitions now, i.e.
ln fd0 fd0[a-h]
No new floppy names added (expect fd? and rfd?),
because don't have agreement yet, so make devices
only for CMOS-detected formats.

30 years agoNo more partition bits in floppy minor.
Andrey Chernov [Thu, 16 Dec 1993 04:28:42 +0000 (04:28 +0000)]
No more partition bits in floppy minor.
Now minor looks like UU DDDDDD, UU - unit, DDDDDD - density.
If density == 0, CMOS-detect format assumed.
Fix attach code for correct work with unknown CMOS
floppy types.
Trick diskerr to handle new minor.
1.722M floppy in 1.44M drive popular format added.

30 years agoRemoved spurious space before tab in the libobjc line of includes.
Wiljo Heinen [Thu, 16 Dec 1993 01:30:15 +0000 (01:30 +0000)]
Removed spurious space before tab in the libobjc line of includes.

30 years agoAdd "np" to all std.xxx entries, make them 8-bit clean.
Andrey Chernov [Thu, 16 Dec 1993 01:14:05 +0000 (01:14 +0000)]
Add "np" to all std.xxx entries, make them 8-bit clean.

30 years agoMake ttydefaults 8-bit clean.
Andrey Chernov [Wed, 15 Dec 1993 17:03:12 +0000 (17:03 +0000)]
Make ttydefaults 8-bit clean.

30 years agoWhen listing all suid and sgid files list the file itself rather than
Paul Richards [Wed, 15 Dec 1993 06:42:01 +0000 (06:42 +0000)]
When listing all suid and sgid files list the file itself rather than
directorty contents.

30 years agoCommit Jonas Olsson's fix for libobjc - this is cleaner than what I had
Jordan K. Hubbard [Wed, 15 Dec 1993 02:10:14 +0000 (02:10 +0000)]
Commit Jonas Olsson's fix for libobjc - this is cleaner than what I had
in mind.

30 years agoFrom: Sergey Ryzhkov, Serge Vakulenko
Andrew Moore [Tue, 14 Dec 1993 11:11:37 +0000 (11:11 +0000)]
From: Sergey Ryzhkov, Serge Vakulenko
E-mail: <sir@kiae.su>, <vak@zebub.msk.su>
added new /dev/wt entries for wt.c version 1.3

8) Some controllers support only 1024 block length.
   Setting WT_BSIZE bit in device minor number turns on this mode.

Minor number structure:
0bfffuuu
Fields:
uuu   - Unit number. It's possible to install
up to three tape controllers on the same machine,
using DRQs 1..3.  Hence, unit number can lie
in range 0..2.
fff   - Tape format number:
0 - /dev/rwt0  - default density (auto select)
1 - /dev/rwt0a - QIC 11 (obsolete)
2 - /dev/rwt0b - QIC 24 (60 megabytes)
3 - /dev/rwt0c - QIC 120 (120 megabytes)
4 - /dev/rwt0d - QIC 150 (150 megabytes)
5 - /dev/rwt0e - QIC 300 (300 megabytes?)
6 - /dev/rwt0f - QIC 600 (600 megabytes?)
b     - Long block size flag.  With this bit set,
the driver will perform all i/o operations
with the controller using 1024-byte
blocks, instead of 512 ones.
Some controllers need it (CMS for example).
If you Wangtek controller does not stream well,
you can try to use /dev/rWt0 device instead
of /dev/rwt0 (uncomment needed lines in /dev/MAKEDEV
to create it).

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

Thanks to all who helped to test it on the following hardware:

Controller           Drive            Volume    Interface     Thanks to
---------------------------------------------------------------------------
Archive SC-499       Archive 2150L    150 Meg   QIC-02        KIAE
CMS?                 ?                150 Meg   QIC-02        KIAE
Everex EV 831/833    ?                ?         QIC-36        Joergen Haegg
Wangtek ASSY         Wangtek          60 Meg    QIC-02        Ken Whedbee
Tecmar QT150i?       Wangtek 5150EQ   ?         QIC-02?       Marko Teiste
?                    Wangtek 5099EK   60 Meg    QIC-36        Robert Shien
Archive SC400S       ?                60 Meg    ?             Warren Toomey

30 years agoremoved redundant usage message (the command is adequately described in
Andrew Moore [Mon, 13 Dec 1993 18:40:37 +0000 (18:40 +0000)]
removed redundant usage message (the command is adequately described in
the man page)

30 years agowt.c - version 1.3
Andrew Moore [Mon, 13 Dec 1993 18:38:44 +0000 (18:38 +0000)]
wt.c - version 1.3
from:
Sergey Ryzhkov, Serge Vakulenko
E-mail: <sir@kiae.su>, <vak@zebub.msk.su>

This is the streamer tape driver for 386bsd and FreeBSD, which
supports Wangtek and Archive compatible QIC-02/QIC-36 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.
2) Asynchronous REWIND and FSF operations, close() will not wait
   until they finish.  The next open() will wait for it instead.
4) Use of WTQICMD ioctl is limited to ERASE and RETENS operations.
   This prevents the user from locking the tape driver by strange
   tape operations.
5) Tape density switching added.
6) 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

7) It's possible to use the tape with "default density",
   useful for devices which don't support density switching
   or do automatic format determination.
8) Some controllers support only 1024 block length.
   Setting WT_BSIZE bit in device minor number turns on this mode.

Minor number structure:
0bfffuuu
Fields:
uuu   - Unit number. It's possible to install
up to three tape controllers on the same machine,
using DRQs 1..3.  Hence, unit number can lie
in range 0..2.
fff   - Tape format number:
0 - /dev/rwt0  - default density (auto select)
1 - /dev/rwt0a - QIC 11 (obsolete)
2 - /dev/rwt0b - QIC 24 (60 megabytes)
3 - /dev/rwt0c - QIC 120 (120 megabytes)
4 - /dev/rwt0d - QIC 150 (150 megabytes)
5 - /dev/rwt0e - QIC 300 (300 megabytes?)
6 - /dev/rwt0f - QIC 600 (600 megabytes?)
b     - Long block size flag.  With this bit set,
the driver will perform all i/o operations
with the controller using 1024-byte
blocks, instead of 512 ones.
Some controllers need it (CMS for example).
If you Wangtek controller does not stream well,
you can try to use /dev/rWt0 device instead
of /dev/rwt0 (uncomment needed lines in /dev/MAKEDEV
to create it).

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

Thanks to all who helped to test it on the following hardware:

Controller           Drive            Volume    Interface     Thanks to
---------------------------------------------------------------------------
Archive SC-499       Archive 2150L    150 Meg   QIC-02        KIAE
CMS?                 ?                150 Meg   QIC-02        KIAE
Everex EV 831/833    ?                ?         QIC-36        Joergen Haegg
Wangtek ASSY         Wangtek          60 Meg    QIC-02        Ken Whedbee
Tecmar QT150i?       Wangtek 5150EQ   ?         QIC-02?       Marko Teiste
?                    Wangtek 5099EK   60 Meg    QIC-36        Robert Shien
Archive SC400S       ?                60 Meg    ?             Warren Toomey

30 years agoDeleted a line with a superfluous "rm" in the clean target. The same
Andreas Schulz [Mon, 13 Dec 1993 18:30:43 +0000 (18:30 +0000)]
Deleted a line with a superfluous "rm" in the clean target. The same
targets are already handled in the other "rm"s. Jordan was faster
for the missing rm of libc.so in cleandir :-).

30 years agoWhen CLOBER is set don't remove .so and .sa files from /usr/lib, use:
Paul Richards [Mon, 13 Dec 1993 17:14:54 +0000 (17:14 +0000)]
When CLOBER is set don't remove .so and .sa files from /usr/lib, use:
find /usr/lib \! -name '*.s[ao].*' -a \! -type d | xargs -n30 rm -rf

30 years agoset output flags to ttydefault if COMCONSOLE is defined.
David Greenman [Mon, 13 Dec 1993 13:20:50 +0000 (13:20 +0000)]
set output flags to ttydefault if COMCONSOLE is defined.

30 years agoDon't put unnamed annonymous objects on the hash list. Suggested by Mike
David Greenman [Mon, 13 Dec 1993 13:00:53 +0000 (13:00 +0000)]
Don't put unnamed annonymous objects on the hash list. Suggested by Mike
Hibler. Also, undo a previous fix which works around the previous
condition.

30 years agoIncorporated two fixes from Charles Hannum. The first is an algorithmic/
David Greenman [Mon, 13 Dec 1993 11:58:07 +0000 (11:58 +0000)]
Incorporated two fixes from Charles Hannum. The first is an algorithmic/
coding cleanup described in his words:

Collapse a bunch of `if (a & x) b |= x; else b &= ~x;' statements.
Whoever wrote this fugly code must've been on drugs.

and the second fixes a bug that results in locked root directory
deadlock. Description in his words:

1) When O_EXLOCK or O_SHLOCK is set, open() is calling VOP_ADVLOCK()
with the vnode locked.  It appears to me that it is unnecessary to
keep the lock at this point, since after the VTOI() in *_advlock, it
nevers needs the vnode again.  fcntl() certainly doesn't lock it,
either.  Now, imagine that there is already a lock, and we sleep in
lf_advlock().

2) Enter the next process trying to lock the same inode, or even just
do a lookup on it.  Given the locking protocol of lookup(), where the
parent is locked while trying to lock the child, it will hang with the
immediate parent of the inode locked above also locked.

3) Now we try to do a lookup on the same inode again, or even just
something in the same directory.  That hangs with the directory above
it locked.  Etc.  Recurse until you get to the root directory.  At
this point, all lookups through the root directory will hang.

4) Now imagine that the program (in our case, usually mail.local)
which has control of the advisory lock for which there is contention
does a lookup (in our case, to unlink() the .lock file).  It hangs, of
course, because the root directory is locked.

5) Thus, the advisory lock in not cleared up, so the process in (1) is
never woken up, and we're deadlocked.

30 years agoMake tcp_debug.c compile when TCPDEBUG is defined.
Christoph Robitschko [Mon, 13 Dec 1993 11:07:43 +0000 (11:07 +0000)]
Make tcp_debug.c compile when TCPDEBUG is defined.

30 years agoRemove jtc's (Winning Strategies) from the place to get FreeBSD section,
Rod Grimes [Mon, 13 Dec 1993 08:36:31 +0000 (08:36 +0000)]
Remove jtc's (Winning Strategies) from the place to get FreeBSD section,
per jtc.

30 years agoMoved startup of portmap to be the first network daemon.
David Greenman [Mon, 13 Dec 1993 08:28:03 +0000 (08:28 +0000)]
Moved startup of portmap to be the first network daemon.

30 years agoadded some panics to catch the condition where pmap_pte returns null
David Greenman [Mon, 13 Dec 1993 07:02:27 +0000 (07:02 +0000)]
added some panics to catch the condition where pmap_pte returns null
- indicating that the page table page is non-resident.

30 years agoAdd more strictly size check into Fdopen to eliminate
Andrey Chernov [Mon, 13 Dec 1993 01:34:28 +0000 (01:34 +0000)]
Add more strictly size check into Fdopen to eliminate
possible end-user errors.
Now:
1) on physical 1.2 can open logical 1.2, 720, 360H
2) on physical 1.44 can open logical 1.44, 720
3) on physical 360 can open logical 360
All other variants refused.
C-style improved in this check, multiply if's changed to switch.

30 years agoOld tty.c version always acts like
Andrey Chernov [Mon, 13 Dec 1993 01:10:13 +0000 (01:10 +0000)]
Old tty.c version always acts like
MIN=1, TIME=0 (inactive)
any real MIN/TIME values was ignored.

I fix half part of this problem, now tty.c use
*real* MIN value, TIME are inactive like in old version.

Here simple test for it.
To reproduce most unpleasant bug
(impossibility to have non-waiting reads)
enter MIN=0.

#include <termios.h>
#include <stdio.h>

main()
{
char buf[256];
struct termios new, old;
int m;

printf("Enter MIN value: "); scanf("%d", &m);
tcgetattr(0, &old);
new = old;
new.c_cc[VMIN] = m;
new.c_cc[VTIME] = 0;
new.c_lflag &= ~(ICANON|ECHO);
tcsetattr(0, TCSAFLUSH, &new);
if (m == 0)
printf("Should NOT wait here: ");
else
printf("Wait for %d chars: ", m);
fflush(stdout);
printf("read returns %d (must match MIN)\n",
read(0, buf, sizeof(buf)));
tcsetattr(0, TCSADRAIN, &old);
}

30 years agoAdd 360K floppy support.
Andrey Chernov [Sun, 12 Dec 1993 20:26:56 +0000 (20:26 +0000)]
Add 360K floppy support.
More work to add 720K floppy support.
Restore good old dependance of device and floppy type.
Now:
fd?a == 1.44
fd?b == 1.2
fd?c == 720
fd?d == 360 in HD
fd?e == 360
Add more strict size check in Fdopen, not it refuse:
1) Attempt to open any type expect fd?e, if you have only 360K drive.
2) Attempt to open fd?a if you have only 1.2 drive.

30 years agoSync to PK's latest version. I know that this is in /usr/src, the bloody
Jordan K. Hubbard [Sun, 12 Dec 1993 17:02:13 +0000 (17:02 +0000)]
Sync to PK's latest version.  I know that this is in /usr/src, the bloody
patch file had absolute pathnames in it and went and patched /usr/src directly
(first time this has happened, I'll watch for it now), so I thought I might
as well just commit it and clean up the .orig files and whatnot left behind.
Sorry - this is the first time this has happened to me.  Very confusing.

These files aren't really necessary to us, but should be kept in sync anyway.

30 years agoSync to PK's latest version. I know that this is in /usr/src, the bloody
Jordan K. Hubbard [Sun, 12 Dec 1993 17:01:24 +0000 (17:01 +0000)]
Sync to PK's latest version.  I know that this is in /usr/src, the bloody
patch file had absolute pathnames in it and went and patched /usr/src directly
(first time this has happened, I'll watch for it now), so I thought I might
as well just commit it and clean up the .orig files and whatnot left behind.
Sorry - this is the first time this has happened to me.  Very confusing.

30 years agoAdd profiled .m target
Jordan K. Hubbard [Sun, 12 Dec 1993 16:51:22 +0000 (16:51 +0000)]
Add profiled .m target

30 years agoAdd popular 720k floppy in HD drive floppy type.
Andrey Chernov [Sun, 12 Dec 1993 16:46:54 +0000 (16:46 +0000)]
Add popular 720k floppy in HD drive floppy type.
Restore check for NUMTYPES in Fdopen.

30 years ago11th hour fix to properly handle /usr/include/objc
Jordan K. Hubbard [Sun, 12 Dec 1993 15:43:03 +0000 (15:43 +0000)]
11th hour fix to properly handle /usr/include/objc

30 years agoReenable objective-C using Curt Hagenlocher's new Makefile (and a few
Jordan K. Hubbard [Sun, 12 Dec 1993 15:24:55 +0000 (15:24 +0000)]
Reenable objective-C using Curt Hagenlocher's new Makefile (and a few
other miscellaneous edits).  It's here, using up space, we might as well let
people use it if they want to!

30 years agoRemoved <lib>_pic.a file rules - libs are now built directly from shared
Jordan K. Hubbard [Sun, 12 Dec 1993 15:17:34 +0000 (15:17 +0000)]
Removed <lib>_pic.a file rules - libs are now built directly from shared
objects, thus skipping a step and shaving some time off system compilation.

30 years agoenable building of mount_procfs
David Greenman [Sun, 12 Dec 1993 12:58:18 +0000 (12:58 +0000)]
enable building of mount_procfs

30 years agomodified kvm.c that uses procfs. This version is a little broken in that
David Greenman [Sun, 12 Dec 1993 12:51:51 +0000 (12:51 +0000)]
modified kvm.c that uses procfs. This version is a little broken in that
if the procfs isn't mounted, the arguments won't show up if they are
swapped out. This code will either be fixed or removed (most likely the
latter) sometime in the future.

30 years agomount_procfs procfs mount utility from Paul Kranenburg
David Greenman [Sun, 12 Dec 1993 12:47:15 +0000 (12:47 +0000)]
mount_procfs procfs mount utility from Paul Kranenburg

30 years ago1) Added proc file system from Paul Kranenburg with changes from
David Greenman [Sun, 12 Dec 1993 12:31:40 +0000 (12:31 +0000)]
1) Added proc file system from Paul Kranenburg with changes from
John Dyson to make it reliably work under FreeBSD.
2) Added and enabled PROCFS in the GENERICxx and LINT kernels.
3) New execve() from me. Still work to be done here, but this version
works well and is needed before other changes can be made. For
a description of the design behind this, see freebsd-arch or
ask me.
4) Rewrote stack fault code; made user stack VM grow as needed rather
than all up front; improves performance a little and reduces
process memory requirements.
5) Incorporated fix from Gene Stark to fault/wire a user page table
page to fix a problem in copyout. This is a temporary fix and
is not appropriate for pageable page tables. For a description
of the problem, see Gene's post to the freebsd-hackers mailing
list.
6) Tighten up vm_page struct to reduce memory requirements for it. ifdef
pager page lock code as it's not being used currently.
7) Introduced new element to vmspace struct - vm_minsaddr; initial
(minimum) stack address. Compliment to vm_maxsaddr.
8) Added a panic if the allocation for process u-pages fails.
9) Improve performance and accuracy of kernel profiling by putting in
a little inline assembly instead of spl().
10) Made serial console with sio driver work. Still has problems with
serial input, but is almost useable.
11) Added -Bstatic to SYSTEM_LD in Makefile.i386 so that kernels will
build properly with the new ld.

30 years agoFolllow Bruce's advice in reducing dma_pagesize to 4K (more conservative
Jordan K. Hubbard [Sun, 12 Dec 1993 05:50:52 +0000 (05:50 +0000)]
Folllow Bruce's advice in reducing dma_pagesize to 4K (more conservative
estimate).  This seems to work well with my GUS at least.

30 years agoAdded sbrk() as new file.
Jordan K. Hubbard [Sat, 11 Dec 1993 21:06:36 +0000 (21:06 +0000)]
Added sbrk() as new file.

30 years agoBroke sbrk() out of rtld as part of general cleanup.
Jordan K. Hubbard [Sat, 11 Dec 1993 21:06:00 +0000 (21:06 +0000)]
Broke sbrk() out of rtld as part of general cleanup.

30 years agoDeleted the private cleandir target. It didn't had a rule for the
Andreas Schulz [Sat, 11 Dec 1993 20:35:15 +0000 (20:35 +0000)]
Deleted the private cleandir target. It didn't had a rule for the
obj symlink in it and the normal bsd.prog.mk cleandir target does
already the correct thing.

30 years agoAdded the missing prototype for the gamma function.
Andreas Schulz [Sat, 11 Dec 1993 20:28:33 +0000 (20:28 +0000)]
Added the missing prototype for the gamma function.

30 years agoOmitted 4th argument to findshlib() [thanks Rich!]. Our ld is a bit
Jordan K. Hubbard [Sat, 11 Dec 1993 20:08:39 +0000 (20:08 +0000)]
Omitted 4th argument to findshlib() [thanks Rich!].  Our ld is a bit
different from NetBSD's here and it squeaked through the update.

30 years agoSync up with Paul K's latest ld from cesium.
Jordan K. Hubbard [Sat, 11 Dec 1993 12:02:10 +0000 (12:02 +0000)]
Sync up with Paul K's latest ld from cesium.

30 years agoRemove compiler warning:
Andrey Chernov [Sat, 11 Dec 1993 00:37:55 +0000 (00:37 +0000)]
Remove compiler warning:
void function return int.

30 years agoForce HUPCL in bidirectional port open.
Andrey Chernov [Sat, 11 Dec 1993 00:36:14 +0000 (00:36 +0000)]
Force HUPCL in bidirectional port open.
This don't allow it hangs forever.

30 years agoDo more careful pruning of graph.
Jordan K. Hubbard [Fri, 10 Dec 1993 23:48:12 +0000 (23:48 +0000)]
Do more careful pruning of graph.