Digital Research
This commit is contained in:
2020-11-06 18:50:37 +01:00
parent 621ed8ccaf
commit 31738079c4
8481 changed files with 1888323 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,38 @@
/*
* El-Kludg-o Dup routine. Takes advantage of the fact that
* stdout is not closed by Bill Allen's stuff.
*/
dup(n)
register int n;
{
return(n);
}
 advantage of the fact that
* stdout is not closed by Bill Allen's stuff.
*/
dup(n)
egister int n;
{
return(n);
}
 advantage of the fact that
* stdout is not closed by Bill Allen's stuff.
*/
dup(n)
egister int n;
{
return(n);
}
 advantage of the fact that
* stdout is not closed by Bill Allen's stuff.
*/
dup(n)
egister int n;
{
return(n);
}
 advantage of the fact that
* stdout is not closed by Bill Allen's stuff.
*/
dup(n)

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,52 @@
# define MAXFILES 15
struct fileps
{
char *buff; /* beginning of buffer */
char *bptr; /* current position */
int nchars; /* number of characters internal */
int bsize; /* size of buffer */
char eoferr; /* end of file flag */
char wrflag; /* mode flag */
char *pbuff; /* bottom of peek buffer */
};
struct fileps __filehdr[MAXFILES];
struct param
{
int bufsize; /* initial buffer size */
int peeksize; /* initial peek size */
};
extern struct param __param;
int __statbuf[MAXFILES];
tial buffer size */
int peeksize; /* initial peek size */
};
extern struct param __param;
int __sttbuf[MAXFILES];
tial buffer size */
int peeksize; /* initial peek size */
};
extern struct param __param;
int __sttbuf[MAXFILES];
tial buffer size */
int peeksize; /* initial peek size */
};
extern struct param __param;
int __sttbuf[MAXFILES];
tial buffer size */
int peeksize; /* initial peek size */
};
extern struct param __param;
int __st

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,33 @@
/*
* Seek.c -- Whitesmith's equivalent of V6 seek
*/
long lseek();
seek(fildes,offset,ptrname)
int fildes; /* UNIX / WS file descriptor */
int offset; /* File offset, bytes */
int ptrname; /* Sense variable */
{
offset &= 0xffff; /* Clear sign extension problems*/
if(ptrname > 2) /* Not byte sense seek */
{ /* */
offset = offset << 9; /* Multiply by 512 */
ptrname -= 3; /* reset to range 0 .. 2 */
} /********************************/
return(lseek(fildes,(long)offset,ptrname));
}
-= 3; /* reset to range 0 .. 2 */
} /********************************/
return(lseek(fildes,(ong)offset,ptrname));
}
-= 3; /* reset to range 0 .. 2 */
} /********************************/
return(lseek(fildes,(ong)offset,ptrname));
}
-= 3; /* reset to range 0 .. 2 */
} /********************************/
return(lseek(fildes,(ong)offset,ptrname));
}
-= 3; /* reset to range 0 .. 2 */
} /********************************/
return(lseek(fildes,(

Binary file not shown.

Binary file not shown.

Binary file not shown.