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 /* File : _c2type.c
Author : Richard A. O'Keefe. Author : Richard A. O'Keefe.
Updated: 23 April 1984 Updated: 23 April 1984

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,3 +1,4 @@
/* $Header$ */
#include <time.h> #include <time.h>
static int monthsize[] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; 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) char *index(s, c)
register char *s, c; register char *s, c;
{ {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

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