ast_stdio.h revision da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968
/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1985-2007 AT&T Knowledge Ventures *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Knowledge Ventures *
* *
* A copy of the License is available at *
* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* David Korn <dgk@research.att.com> *
* Phong Vo <kpv@research.att.com> *
* *
***********************************************************************/
/* : : generated by proto : : */
/* : : generated from /home/gisburn/ksh93/ast_ksh_20070418/build_i386_64bit/src/lib/libast/features/stdio by iffe version 2007-04-04 : : */
#ifndef _SFSTDIO_H
#if !defined(__PROTO__)
# if defined(__cplusplus)
# define __LINKAGE__ "C"
# else
# define __LINKAGE__
# endif
# define __STDARG__
# define __PROTO__(x) x
# define __OTORP__(x)
# define __PARAM__(n,o) n
# if !defined(__STDC__) && !defined(__cplusplus)
# if !defined(c_plusplus)
# define const
# endif
# define signed
# define void int
# define volatile
# define __V_ char
# else
# define __V_ void
# endif
# else
# define __PROTO__(x) ()
# define __OTORP__(x) x
# define __PARAM__(n,o) o
# define __LINKAGE__
# define __V_ char
# define const
# define signed
# define void int
# define volatile
# endif
# define __MANGLE__ __LINKAGE__
# if defined(__cplusplus) || defined(c_plusplus)
# define __VARARG__ ...
# else
# define __VARARG__
# endif
# if defined(__STDARG__)
# define __VA_START__(p,a) va_start(p,a)
# else
# define __VA_START__(p,a) va_start(p)
# endif
# if !defined(__INLINE__)
# if defined(__cplusplus)
# define __INLINE__ extern __MANGLE__ inline
# else
# define __INLINE__ __inline
# endif
# endif
# endif
#endif
#if !defined(__LINKAGE__)
#define __LINKAGE__ /* 2004-08-11 transition */
#endif
#define _SFSTDIO_H 1
#define __FILE_typedef 1
#define _FILE_DEFINED 1
#define _FILE_defined 1
#define _FILEDEFED 1
#ifndef __FILE_TAG
#define __FILE_TAG _sfio_s
#endif
typedef struct _sfio_s _sfio_FILE;
#define FILE _sfio_FILE
#if !defined(__FILE) && !__CYGWIN__
#endif
#define BUFSIZ SF_BUFSIZE
#else
#ifndef BUFSIZ
#define BUFSIZ 8192
#endif
#ifndef EOF
#define EOF (-1)
#endif
#ifndef NULL
#define NULL 0
#endif
#ifndef SEEK_SET
#define SEEK_SET 0
#define SEEK_CUR 1
#define SEEK_END 2
#endif
#include <ast_std.h>
#include <sfio_s.h>
#if __cplusplus
#define _sf_(f) (f)
#else
#endif
#define _SF_EOF 0000200
#define _SF_ERROR 0000400
#endif
#ifdef _NO_LARGEFILE64_SOURCE
#endif
#ifdef _LARGEFILE64_SOURCE
#endif
#define fpos_t _ast_fpos_t
#if _typ_int64_t
#define fpos64_t _ast_fpos_t
#endif
typedef struct _ast_fpos_s
{
} _ast_fpos_t;
#define _IOFBF 0
#define _IONBF 1
#define _IOLBF 2
#if _typ_int64_t
#endif
#ifdef _USE_GNU
#endif
#endif
#ifndef FILENAME_MAX
#define FILENAME_MAX 1024
#endif
#ifndef FOPEN_MAX
#define FOPEN_MAX 20
#endif
#ifndef TMP_MAX
#define TMP_MAX 17576
#endif
#define _doprnt _ast_doprnt
#define _doscan _ast_doscan
#define asprintf _ast_asprintf
#define clearerr _ast_clearerr
#define fclose _ast_fclose
#define fdopen _ast_fdopen
#define fflush _ast_fflush
#define fgetc _ast_fgetc
#define fgetpos _ast_fgetpos
#define fgetpos64 _ast_fgetpos64
#define fgets _ast_fgets
#define fopen _ast_fopen
#define fprintf _ast_fprintf
#define fpurge _ast_fpurge
#define fputs _ast_fputs
#define fread _ast_fread
#define freopen _ast_freopen
#define fscanf _ast_fscanf
#define fseek _ast_fseek
#define fseek64 _ast_fseek64
#define fseeko _ast_fseeko
#define fseeko64 _ast_fseeko64
#define fsetpos _ast_fsetpos
#define fsetpos64 _ast_fsetpos64
#define ftell _ast_ftell
#define ftell64 _ast_ftell64
#define ftello _ast_ftello
#define ftello64 _ast_ftello64
#define fwrite _ast_fwrite
#define pclose _ast_pclose
#define popen _ast_popen
#define printf _ast_printf
#define rewind _ast_rewind
#define scanf _ast_scanf
#define setbuf _ast_setbuf
#define setbuffer _ast_setbuffer
#define setlinebuf _ast_setlinebuf
#define setvbuf _ast_setvbuf
#define snprintf _ast_snprintf
#define sprintf _ast_sprintf
#define sscanf _ast_sscanf
#define tmpfile _ast_tmpfile
#define ungetc _ast_ungetc
#define vasprintf _ast_vasprintf
#define vfprintf _ast_vfprintf
#define vfscanf _ast_vfscanf
#define vprintf _ast_vprintf
#define vscanf _ast_vscanf
#define vsnprintf _ast_vsnprintf
#define vsprintf _ast_vsprintf
#define vsscanf _ast_vsscanf
#define fcloseall _ast_fcloseall
#define fmemopen _ast_fmemopen
#define __getdelim _ast___getdelim
#define getdelim _ast_getdelim
#define getline _ast_getline
#define feof_unlocked _ast_feof_unlocked
#define ferror_unlocked _ast_ferror_unlocked
#define fflush_unlocked _ast_fflush_unlocked
#define fgetc_unlocked _ast_fgetc_unlocked
#define fgets_unlocked _ast_fgets_unlocked
#define fileno_unlocked _ast_fileno_unlocked
#define fputc_unlocked _ast_fputc_unlocked
#define fputs_unlocked _ast_fputs_unlocked
#define fread_unlocked _ast_fread_unlocked
#define fwrite_unlocked _ast_fwrite_unlocked
#define getc_unlocked _ast_getc_unlocked
#define putc_unlocked _ast_putc_unlocked
#if defined(__STDPP__directive) && defined(__STDPP__initial)
#endif
#ifndef P_tmpdir
#endif
#ifndef L_ctermid
#define L_ctermid 9
#endif
#ifndef L_tmpnam
#define L_tmpnam 25
#endif
#if defined(__STDPP__directive) && defined(__STDPP__initial)
#endif
#if defined(__cplusplus) && defined(__THROW)
#else
#endif
#ifndef _AST_STD_H
#ifndef remove
#endif
#ifndef rename
#endif
#endif
#define __MANGLE__ __LINKAGE__
#if _BLD_ast && defined(__EXPORT__)
#endif
#if _typ_int64_t
#ifdef _LARGEFILE64_SOURCE
#if _typ_off64_t
#else
#endif
#endif
#endif
#ifdef _USE_GNU
#endif
#define __MANGLE__ __LINKAGE__
#if _BLD_DLL && _DLL_INDIRECT_DATA
#else
#endif
#else
#if !_UWIN
#if _BLD_ast && defined(__EXPORT__)
#endif
#if !_BLD_ast && defined(__IMPORT__)
#endif
#endif
#define __MANGLE__ __LINKAGE__
#define fputc(c,f) (_sf_(f)->_next>=_sf_(f)->_endw?_sfflsbuf(_sf_(f),(int)((unsigned char)(c))):(int)(*_sf_(f)->_next++=(unsigned char)(c)))
#if _BLD_ast && defined(__EXPORT__)
#endif
#define __MANGLE__ __LINKAGE__
#endif
#endif