Added Rcs Id

This commit is contained in:
ceriel
1987-03-31 10:45:53 +00:00
parent 9f84c51255
commit 3b8fab2c0d
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;