stdiom.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* 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 1997 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.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* stdiom.h - shared guts of stdio therefore it doesn't need
* a surrounding #ifndef
*/
#ifndef _STDIOM_H
#define _STDIOM_H
typedef unsigned char Uchar;
/*
* The number of actual pushback characters is the value
* of PUSHBACK plus the first byte of the buffer. The FILE buffer must,
* for performance reasons, start on a word aligned boundry so the value
* of PUSHBACK should be a multiple of word.
* At least 4 bytes of PUSHBACK are needed. If sizeof(int) = 1 this breaks.
*/
/* minimum buffer size must be at least 8 or shared library will break */
extern Uchar *_bufendtab[];
#if BUFSIZ == 1024
#else
#endif
/*
* Internal routines from _iob.c
*/
extern void _cleanup(void);
extern void _flushlbf(void);
/*
* Internal routines from flush.c
*/
/*
* Internal routines from _findbuf.c
*/
/*
* The following macros improve performance of the stdio by reducing the
* number of calls to _bufsync and _wrtchk. _needsync checks whether
* or not _bufsync needs to be called. _WRTCHK has the same effect as
* _wrtchk, but often these functions have no effect, and in those cases
* the macros avoid the expense of calling the functions.
*/
#endif /* _STDIOM_H */