/***********************************************************************1* *2* This software is part of the ast package *3* Copyright (c) 1985-2011 AT&T Intellectual Property *4* and is licensed under the *5* Eclipse Public License, Version 1.0 *6* by AT&T Intellectual Property *7* *8* A copy of the License is available at *9* http://www.eclipse.org/org/documents/epl-v10.html *10* (with md5 checksum b35adb5213ca9657e911e9befb180842) *11* *12* Information and Software Systems Research *13* AT&T Research *14* Florham Park NJ *15* *16* Glenn Fowler <[email protected]> *17* David Korn <[email protected]> *18* Phong Vo <[email protected]> *19* *20***********************************************************************/21#ifndef _SFIO_S_H22#define _SFIO_S_H 12324/*25* sfio file structure used by sfio and the stdio source compatibility library26*/2728#if !defined(_SFHDR_H) && defined(_SFIO_H) && SFIO_VERSION < 20020214L29#define _data data30#define _endb endb31#define _next next32#endif3334struct _sfio_s35{ unsigned char* _next; /* next position to read/write from */36unsigned char* _endw; /* end of write buffer */37unsigned char* _endr; /* end of read buffer */38unsigned char* _endb; /* end of buffer */39struct _sfio_s* _push; /* the stream that was pushed on */40unsigned short _flags; /* type of stream */41short _file; /* file descriptor */42unsigned char* _data; /* base of data buffer */43ssize_t _size; /* buffer size */44ssize_t _val; /* values or string lengths */45#ifdef _SFIO_PRIVATE46_SFIO_PRIVATE47#endif48};4950#endif515253