/*
* 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 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* University Copyright- Copyright (c) 1982, 1986, 1988
* The Regents of the University of California
* All Rights Reserved
*
* University Acknowledgment- Portions of this document are derived from
* software developed by the University of California, Berkeley, and its
* contributors.
*/
/*
* User-visible pieces of the ANSI C standard I/O package.
*/
#ifndef _STDIO_H
#define _STDIO_H
#include <sys/feature_tests.h>
#include <stdio_tag.h>
#include <stdio_impl.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifndef BSD
#define BSD
#endif
#ifndef _SIZE_T
#define _SIZE_T
#if !defined(_LP64) && defined(__cplusplus)
typedef unsigned int size_t;
#else
typedef unsigned long size_t;
#endif
#endif
#ifndef _SSIZE_T
#define _SSIZE_T
#if !defined(_LP64) && defined(__cplusplus)
typedef int ssize_t;
#else
typedef long ssize_t;
#endif
#endif
typedef long fpos_t;
#if defined(__i386)
#else
#endif
#ifndef EOF
#endif
#define SEEK_SET 0
#endif
#ifndef _FILEDEFED
#define _FILEDEFED
#endif
extern unsigned char *_bufendtab[];
/* Large file interfaces */
/* transition back from explicit 64-bit offset to implicit (64-bit) offset */
#if defined(_LP64) && defined(_LARGEFILE64_SOURCE)
#ifdef __PRAGMA_REDEFINE_EXTNAME
#else
#endif
#endif
/* transition from 32-bit offset to explicit 64-bit offset */
#ifdef __PRAGMA_REDEFINE_EXTNAME
#else
#endif
#endif
extern int remove(const char *);
extern int rename(const char *, const char *);
extern int setlinebuf(FILE *);
/* PRINTFLIKE2 */
/* SCANFLIKE2 */
/* PRINTFLIKE1 */
extern int printf(const char *, ...);
/* SCANFLIKE1 */
extern int scanf(const char *, ...);
/* PRINTFLIKE2 */
extern char *sprintf(const char *, const char *, ...);
/* SCANFLIKE2 */
extern int sscanf(const char *, const char *, ...);
extern int getchar(void);
extern char *gets(char *);
extern int putchar(int);
extern int puts(const char *);
extern void perror(const char *);
/* non-ANSI standard compilation */
extern char *ctermid(char *);
extern char *cuserid(char *);
extern char *tempnam(const char *, const char *);
extern int system(const char *);
#endif /* !defined(_STRICT_STDC) */
#ifndef __lint
#ifndef _LP64
: (int)(*(p)->_ptr++ = (x)))
#endif /* _LP64 */
#endif /* __lint */
!defined(__PRAGMA_REDEFINE_EXTNAME))
#endif /* _LARGEFILE64_SOURCE... */
#ifdef __cplusplus
}
#endif
#endif /* _STDIO_H */