/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 1988 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984 AT&T */
/* All Rights Reserved */
#ifndef __5include_stdio_h
#define __5include_stdio_h
#pragma ident "%Z%%M% %I% %E% SMI"
#if pdp11
#else /* just about every other UNIX system in existence */
#endif
#ifndef EOF
#endif
/*
* ANSI C requires definitions of SEEK_CUR, SEEK_END, and SEEK_SET here.
*/
#ifndef SEEK_SET
#define SEEK_SET 0
#endif
#ifndef _POSIX_SOURCE
#endif
#ifndef NULL
#define NULL 0
#endif
/*
* _IOLBF means that a file's output will be buffered line by line
* In addition to being flags, _IONBF, _IOLBF and _IOFBF are possible
* values for "type" in setvbuf.
*/
#define _IOFBF 0000
/*
* buffer size for multi-character output to unbuffered files
*/
typedef struct {
unsigned char *_ptr;
int _cnt;
#else /* just about every other UNIX system in existence */
int _cnt;
unsigned char *_ptr;
#endif
unsigned char *_base;
int _bufsiz;
short _flag;
} FILE;
#ifndef _POSIX_SOURCE
extern char *tempnam(char *, char *);
#endif
extern int getchar(void);
extern char *gets(char *);
extern void perror(char *);
extern int printf(char *, ...);
extern int putchar(int);
extern int puts(char *);
extern int remove(char *);
extern int rename(char *, char *);
extern int scanf(char *, ...);
extern int sprintf(char *, char *, ...);
extern int sscanf(char *, char *, ...);
extern char *tmpnam(char *);
#ifndef lint
(int)(*(p)->_ptr++ = (unsigned char)(x)) :\
((*(p)->_ptr = (unsigned char)(x)) != '\n' ?\
(int)(*(p)->_ptr++) :\
_flsbuf((unsigned char)(x), p)))
#endif
#endif /* !__5include_stdio_h */