Added Rcs Id

This commit is contained in:
ceriel 1987-03-31 10:45:53 +00:00
parent 9dbda2e573
commit 400c036c67
114 changed files with 114 additions and 0 deletions

View file

@ -1,3 +1,4 @@
/* $Header$ */
/* File : _c2type.c
Author : Richard A. O'Keefe.
Updated: 23 April 1984

View file

@ -1,3 +1,4 @@
/* $Header$ */
abs(i){
return i < 0 ? -i : i;
}

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <time.h>
#define DATE_STR "??? ??? ?? ??:??:?? ????\n"

View file

@ -1,3 +1,4 @@
/* $Header$ */
#ifndef NOFLOAT
#include <ctype.h>

View file

@ -1,3 +1,4 @@
/* $Header$ */
atoi(s)
register char *s;
{

View file

@ -1,3 +1,4 @@
/* $Header$ */
long atol(s)
register char *s;
{

View file

@ -1,3 +1,4 @@
/* $Header$ */
int
bcmp(b1, b2, n)
register char *b1, *b2;

View file

@ -1,3 +1,4 @@
/* $Header$ */
bcopy(old, new, n)
register char *old, *new;
register int n;

View file

@ -1,3 +1,4 @@
/* $Header$ */
bfill(dst, len, fill)
register char *dst;
register int len;

View file

@ -1,3 +1,4 @@
/* $Header$ */
bmove(dst, src, len)
char *dst, *src;
int len;

View file

@ -1,3 +1,4 @@
/* $Header$ */
bzero(b, l)
register char *b;
{

View file

@ -1,3 +1,4 @@
/* $Header$ */
#define ALIGN(sz) (((sz) + (sizeof(long) - 1) / sizeof(long)) * sizeof(long))
char *
calloc(nelem, elsize)

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <sys/types.h>
#include <sys/dir.h>

View file

@ -1,3 +1,4 @@
/* $Header$ */
/* From Andy Tanenbaum's book "Computer Networks",
rewritten in C
*/

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <time.h>
extern struct tm *localtime();

View file

@ -1,3 +1,4 @@
/* $Header$ */
#ifndef NOFLOAT
extern double modf();
static char *cvt();

View file

@ -1,3 +1,4 @@
/* $Header$ */
char *getenv();
char *index();

View file

@ -1,3 +1,4 @@
/* $Header$ */
ffc(i)
register int i;
{

View file

@ -1,3 +1,4 @@
/* $Header$ */
ffs(i)
register int i;
{

View file

@ -1,3 +1,4 @@
/* $Header$ */
#ifndef NOFLOAT
extern char *ecvt();

View file

@ -1,3 +1,4 @@
/* $Header$ */
char *getenv(name)
register char *name;
{

View file

@ -1,3 +1,4 @@
/* $Header$ */
#define UTMPFILE "/etc/utmp"
#ifdef __USG

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <stdio.h>
#define ERR(s, c) if(opterr){\
fputs(argv[0], stderr);\

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <time.h>
static int monthsize[] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };

View file

@ -1,3 +1,4 @@
/* $Header$ */
char *index(s, c)
register char *s, c;
{

View file

@ -1,3 +1,4 @@
/* $Header$ */
isatty(f)
{
char buf[128];

View file

@ -1,3 +1,4 @@
/* $Header$ */
ltol3(cp, lp, n)
register char *cp;
register long *lp;

View file

@ -1,3 +1,4 @@
/* $Header$ */
#ifndef NOFLOAT
extern double frexp();

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <time.h>
#define YEARSIZE(year) ((year) % 4 ? 365 : 366)

View file

@ -1,3 +1,4 @@
/* $Header$ */
#define CLICK_SIZE 16
#if EM_WSIZE == EM_PSIZE

View file

@ -1,3 +1,4 @@
/* $Header$ */
char *
memccpy(dst, src, c, n)
register char *dst, *src;

View file

@ -1,3 +1,4 @@
/* $Header$ */
char *
memchr(s, c, n)
char *s;

View file

@ -1,3 +1,4 @@
/* $Header$ */
int
memcmp(s1, s2, n)
register char *s1, *s2;

View file

@ -1,3 +1,4 @@
/* $Header$ */
char *
memcpy(s1, s2, n)
register char *s1, *s2;

View file

@ -1,3 +1,4 @@
/* $Header$ */
char *
memset(s, c, n)
char *s;

View file

@ -1,3 +1,4 @@
/* $Header$ */
/* mktemp - make a name for a temporary file */
char *mktemp(template)

View file

@ -1,3 +1,4 @@
/* $Header$ */
static int bs;
static char *bp;
static char *bufp;

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/dir.h>

View file

@ -1,3 +1,4 @@
/* $Header$ */
/* perror(s) print the current error message. */
extern int errno;

View file

@ -1,3 +1,4 @@
/* $Header$ */
/*
* (c) copyright 1983 by the Vrije Universiteit, Amsterdam, The Netherlands.
*

View file

@ -1,3 +1,4 @@
/* $Header$ */
static qsort1();
static int (*qcompar)();
static qexchange();

View file

@ -1,3 +1,4 @@
/* $Header$ */
static long seed = 1L;
int rand()

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <sys/types.h>
#include <sys/dir.h>

View file

@ -1,3 +1,4 @@
/* $Header$ */
char *rindex(s, c)
register char *s, c;
{

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <sys/types.h>
#include <sys/dir.h>

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <signal.h>
#include <setjmp.h>

View file

@ -1,3 +1,4 @@
/* $Header$ */
char *strcat(s1, s2)
register char *s1, *s2;
{

View file

@ -1,3 +1,4 @@
/* $Header$ */
char *strchr(s, c)
register char *s, c;
{

View file

@ -1,3 +1,4 @@
/* $Header$ */
int strcmp(s1, s2)
register char *s1, *s2;
{

View file

@ -1,3 +1,4 @@
/* $Header$ */
char *strcpy(s1, s2)
register char *s1, *s2;
{

View file

@ -1,3 +1,4 @@
/* $Header$ */
int
strcspn(string, notin)
char *string;

View file

@ -1,3 +1,4 @@
/* $Header$ */
int strlen(s)
char *s;
{

View file

@ -1,3 +1,4 @@
/* $Header$ */
char *strncat(s1, s2, n)
register char *s1, *s2;
int n;

View file

@ -1,3 +1,4 @@
/* $Header$ */
int
strncmp(s1, s2, n)
register char *s1, *s2;

View file

@ -1,3 +1,4 @@
/* $Header$ */
char
*strncpy(s1, s2, n)
register char *s1, *s2;

View file

@ -1,3 +1,4 @@
/* $Header$ */
char *
strpbrk(string, brk)
register char *string, *brk;

View file

@ -1,3 +1,4 @@
/* $Header$ */
char *strrchr(s, c)
register char *s, c;
{

View file

@ -1,3 +1,4 @@
/* $Header$ */
int
strspn(string, in)
char *string;

View file

@ -1,3 +1,4 @@
/* $Header$ */
/* find first occurrence of wanted in s */
char *
strstr(s, wanted)

View file

@ -1,3 +1,4 @@
/* $Header$ */
extern char *strpbrk();
char *

View file

@ -1,3 +1,4 @@
/* $Header$ */
swab(from, to, nbytes)
register char *from, *to;
{

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <sys/types.h>
#include <sys/dir.h>

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/dir.h>

View file

@ -1,3 +1,4 @@
/* $Header$ */
#ifdef __USG
/* system V, so no /etc/ttys file. In this case, scan the
/etc/utmp file

View file

@ -1,3 +1,4 @@
/* $Header$ */
#ifdef __BSD4_2
struct timeval {
long tv_sec, tv_usec;

View file

@ -1 +1,2 @@
/* $Header$ */
_cleanup(){}

View file

@ -1,3 +1,4 @@
/* $Header$ */
/*
* (c) copyright 1983 by the Vrije Universiteit, Amsterdam, The Netherlands.
*

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <sgtty.h>
int gtty(fildes,argp) int fildes ; struct sgttyb *argp ; {
return ioctl(fildes,TIOCGETP,argp) ;

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <signal.h>
typedef int (*callvec)() ;

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <sgtty.h>
int stty(fildes,argp) int fildes ; struct sgttyb *argp ; {
return ioctl(fildes,TIOCSETP,argp) ;

View file

@ -1,3 +1,4 @@
/* $Header$ */
/*
* return offset in file.
*/

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <sys/types.h>
#include <sys/timeb.h>
time_t time(timpt) time_t *timpt ; {

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <stdio.h>
clearerr(iop)

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <stdio.h>
unsigned char _sobuf[BUFSIZ];

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <stdio.h>
#ifndef NOFLOAT

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <stdio.h>
#include <ctype.h>

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <stdio.h>
fclose(fp)

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <stdio.h>
FILE *fdopen(fd,mode)

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <stdio.h>

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <stdio.h>
fgetc(f)

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <stdio.h>
char *fgets(str, n, file)

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <stdio.h>
_fillbuf(iop)

View file

@ -1,3 +1,4 @@
/* $Header$ */
#ifndef NOFLOAT
extern char *fcvt();
extern char *ecvt();

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <stdio.h>
int

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <stdio.h>
#define PMODE 0666

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <stdio.h>
fprintf (file, fmt, args)

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <stdio.h>
fputc(c, iop)

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <stdio.h>
fputs(s,file)

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <stdio.h>
fread(ptr, size, count, file)

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <stdio.h>
#define PMODE 0666

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <stdio.h>
int fscanf (fp, format, args)

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <stdio.h>

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <stdio.h>

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <stdio.h>
fwrite(ptr, size, count, file)

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <stdio.h>
#undef getchar

View file

@ -1,3 +1,4 @@
/* $Header$ */
/*
* get entry from group file
*

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <signal.h>
#include <sgtty.h>

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <stdio.h>
getpw(uid, buf)

View file

@ -1,3 +1,4 @@
/* $Header$ */
/*
* get entry from password file
*

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <stdio.h>
char *gets(str)

Some files were not shown because too many files have changed in this diff Show more