/* @(#) $Revision: 78.2 $      */
/*LINTLIBRARY*/
#include <stdio.h>
/* EXIT(2) */
void	exit(int s) { 
}

void	_exit(int s) { 
}

/* SIGNAL(2) */
int (*	signal(s, a))() int (*a)(); { 
 return (a); }

/* TIME(2) */
time_t	time(time_t *t) { 
 return (0L); }

/* UNLINK(2) */
int	unlink(char *s) { 
 return (0); }


/* ABORT(3C) */
	/*VARARGS0*/
int	abort(void) { 
 return (0); }

/* ABS(3C) */
int	abs(int i) { 
 return (i); }

/* ASSERT(3X) */
void	_assert(char *a, char *f, int n) { 
}

/* CONV(3C) */
#undef _toupper
#undef _tolower
#undef toascii
int	toupper(int i) { 
 return (i); }

int	tolower(int i) { 
 return (i); }

int	_toupper(int i) { 
 return (i); }

int	_tolower(int i) { 
 return (i); }

int	toascii(int i) { 
 return (i); }

/* CLOCK(3C) */
#include <time.h>
clock_t	clock(void) { 
 return (0L); }

/* CRYPT(3C) */
char *	crypt(char *k, char *s) { 
 return (k); }

void	setkey(char *k) { 
}

void	encrypt(char *b, int e) { 
}

/* CTERMID(3S) */
char *	ctermid(char *s) { 
 return (s); }

/* CTIME(3C) */
char *	ctime(const time_t *t) { 
 return (""); }

struct tm *	localtime(const time_t *c) { 
 static struct tm x; return (&x); }

struct tm *	gmtime(const time_t *c) { 
 static struct tm x; return (&x); }

char *	asctime(const struct tm *t) { 
 return (""); }

void	tzset(void) { 
}

long	timezone;
int	daylight;
char *	tzname[2];
/* CTYPE(3C) */
#undef isalpha
#undef isupper
#undef islower
#undef isdigit
#undef isxdigit
#undef isalnum
#undef isspace
#undef ispunct
#undef isprint
#undef isgraph
#undef iscntrl
#undef isascii
int	isalpha(int c) { 
 return (c); }

int	isupper(int c) { 
 return (c); }

int	islower(int c) { 
 return (c); }

int	isdigit(int c) { 
 return (c); }

int	isxdigit(int c) { 
 return (c); }

int	isalnum(int c) { 
 return (c); }

int	isspace(int c) { 
 return (c); }

int	ispunct(int c) { 
 return (c); }

int	isprint(int c) { 
 return (c); }

int	isgraph(int c) { 
 return (c); }

int	iscntrl(int c) { 
 return (c); }

int	isascii(int c) { 
 return (c); }

char	_ctype[129];
/* CUSERID(3S) */
char *	cuserid(char *s) { 
 return (s); }

/* DRAND48(3C) */
double	drand48(void) { 
 return (0.0); }

double	erand48(unsigned short x[3]) { 
 return (0.0); }

long	lrand48(void) { 
 return (0L); }

long	nrand48(unsigned short x[3]) { 
 return (0L); }

long	mrand48(void) { 
 return (0L); }

long	jrand48(unsigned short x[3]) { 
 return (0L); }

void	srand48(long s) { 
}

unsigned short *	seed48(unsigned short s[3]) { 
}

void	lcong48(unsigned short p[7]) { 
}

/* FCLOSE(3S) */
int	fclose(FILE *f) { 
 return (0); }

int	fflush(FILE *f) { 
 return (0); }

/* FERROR(3S) */
#undef feof
#undef ferror
#undef clearerr
#undef fileno
int	feof(FILE *f) { 
 return (0); }

int	ferror(FILE *f) { 
 return (0); }

void	clearerr(FILE *f) { 
}

int	fileno(FILE *f) { 
 return (0); }

/* FOPEN(3S) */
FILE *	fopen(const char *f, const char *t) { 
 return (stdin); }

FILE *	freopen(const char *f, const char *t, FILE *s) { 
 return (s); }

/* FREAD(3S) */
size_t	fread(void *b, size_t s, size_t n, FILE *f) { 
 return (n); }

size_t	fwrite(const void *b, size_t s, size_t n, FILE *f) { 
 return (n); }

/* FREXP(3C) */
double	frexp(double x, int *e) { 
 return (x); }

double	ldexp(double v, int e) { 
 return (v); }

double	modf(double v, double *i) { 
 return (v); }

/* FSEEK(3S) */
int	fseek(FILE *f, long o, int p) { 
 return (p); }

long	ftell(FILE *f) { 
 return (0L); }

void	rewind(FILE *f) { 
}

/* GETC(3S) */
#undef getc
#undef getchar
int	getc(FILE *f) { 
 return (0); }

int	getchar(void) { 
 return (0); }

int	fgetc(FILE *f) { 
 return (0); }

int	getw(FILE *f) { 
 return (0); }

/* GETOPT(3C) */
int	getopt(int c, char **v, char *o) { 
 return (c); }

char *	optarg; 
int	optind;
int	opterr, optopt; /* undocumented */
/* GETS(3S) */
char *	gets(char *s) { 
 return (s); }

char *	fgets(char *s, int n, FILE *f) { 
 return (s); }

/* MALLOC(3C) */
char *	malloc(unsigned s) { 
 return (""); }

void	free(char *s) { 
}

char *	realloc(char *s, unsigned n) { 
 return (s); }

char *	calloc(unsigned n, unsigned e) { 
 return (""); }

/* MEMORY(3C) */
char *	memccpy(char *a, char *b, int c, int n) { 
 return (a); }

char *	memchr(char *s, int c, int n) { 
 return (s); }

int	memcmp(char *a, char *b, int n) { 
 return (n); }

char *	memcpy(char *a, char *b, int n) { 
 return (a); }

char *	memset(char *s, int c, int n) { 
 return (s); }

/* POPEN(3S) */
FILE *	popen(char *c, char *t) { 
 return (stdin); }

int	pclose(FILE *f) { 
 return (0); }

/* PRINTF(3S) */
	/*VARARGS1 PRINTFLIKE1*/
int	printf(const char *s, ...) { 
 return (0); }

	/*VARARGS2 PRINTFLIKE2*/
int	fprintf(FILE *f, const char *s, ...) { 
 return (0); }

	/*VARARGS2 PRINTFLIKE2*/
int	sprintf(char *p, const char *s, ...) { 
 return (0); }

/* PUTC(3S) */
#undef putc
#undef putchar
int	putc(int c, FILE *f) { 
 return (c); }

int	putchar(int c) { 
 return (c); }

int	fputc(int c, FILE *f) { 
 return (c); }

int	putw(int w, FILE *f) { 
 return (w); }

/* PUTS(3S) */
int	puts(const char *s) { 
 return (0); }

int	fputs(const char *s, FILE *f) { 
 return (0); }

/* QSORT(3C) */
void	qsort(char *b, unsigned n, unsigned w, int (*c)()) { 
}

/* RAND(3C) */
void	srand(unsigned s) { 
}

int	rand(void) { 
 return (0); }

/* SCANF(3S) */
	/*VARARGS1 SCANFLIKE1*/
int	scanf(const char *s, ...) { 
 return (0); }

	/*VARARGS2 SCANFLIKE2*/
int	fscanf(FILE *f, const char *s, ...) { 
 return (0); }

	/*VARARGS2 SCANFLIKE2*/
int	sscanf(const char *p, const char *s, ...) { 
 return (0); }

/* SETBUF(3S) */
void	setbuf(FILE *f, char *b) { 
}

/* SETJMP(3C) */
#include <setjmp.h>
int	setjmp(jmp_buf e) { 
 return (0); }

void	longjmp(jmp_buf e, int v) { 
}

/* SLEEP(3C) */
unsigned	sleep(unsigned n) { 
 return (n); }

/* SSIGNAL(3C) */
int (*	ssignal(s, a))() int (*a)(); { 
 return (a); }

int	gsignal(int s) { 
 return (s); }

/* STDIO(3S) */
FILE	__iob[_NFILE];
unsigned char *	_bufendtab[_NFILE];
/* STRING(3C) */
char *	strcat(char *a, char *b) { 
 return (a); }

char *	strncat(char *a, char *b, int n) { 
 return (a); }

int	strcmp(char *a, char *b) { 
 return (0); }

int	strncmp(char *a, char *b, int n) { 
 return (n); }

char *	strcpy(char *a, char *b) { 
 return (a); }

char *	strncpy(char *a, char *b, int n) { 
 return (a); }

int	strlen(char *s) { 
 return (0); }

char *	strchr(char *a, char b) { 
 return (a); }

char *	strrchr(char *a, char b) { 
 return (a); }

char *	strpbrk(char *a, char *b) { 
 return (a); }

int	strspn(char *a, char *b) { 
 return (0); }

int	strcspn(char *a, char *b) { 
 return (0); }

char *	strtok(char *a, char *b) { 
 return (a); }

/* STRTOD(3C) */
double	strtod(char *s, char **t) { 
 return (0.0); }

double	atof(char *s) { 
 return (0.0); }

/* STRTOL(3C) */
long	strtol(char *s, char **t, int b) { 
 return (0L); }

long	atol(char *s) { 
 return (0L); }

int	atoi(char *s) { 
 return (0); }

/* SYSTEM(3S) */
int	system(char *s) { 
 return (0); }

/* TMPNAM(3S) */
char *	tmpnam(char *s) { 
 return (s); }

/* TTYNAME(3C) */
char *	ttyname(int f) { 
 return (""); }

int	isatty(int f) { 
 return (f); }

/* UNGETC(3S) */
int	ungetc(int c, FILE *f) { 
 return (c); }


/* UNDOCUMENTED -- declared in UNIX stdio.h, not really in the port lib */
FILE *	fdopen(int f, char *t) { 
 return (stdin); }

char *	tempnam(char *d, char *s) { 
 return (d); }

FILE *	tmpfile(void) { 
 return (stdin); }

