/*  DO NOT EDIT THIS FILE.

    It has been auto-edited by fixincludes from:

	"/usr/include/stdio.h"

    This had to be done to correct non-standard usages in the
    original, manufacturer supplied header file.  */

#ifndef FIXINC_WRAP_STDIO_H_STDIO_STDARG_H
#define FIXINC_WRAP_STDIO_H_STDIO_STDARG_H 1

#define __need___va_list
#include <stdarg.h>
/* @(#) $Revision: ../hdr/stdio.h@@/main/i80/13 $ */
/* PA */
#ifndef _STDIO_INCLUDED
#define _STDIO_INCLUDED

#ifndef _SYS_STDSYMS_INCLUDED
#  include <sys/stdsyms.h>
#endif /* _SYS_STDSYMS_INCLUDED */

#include <sys/types.h>

#ifndef _FAST_SHLIB_CALLS
#  if defined(_HP_SHLIB_CALLS) && !defined(__LP64__)
#    define _FAST_SHLIB_CALLS
#  endif
#endif /* _FAST_SHLIB_CALLS */

#ifdef __cplusplus
extern "C" {
#endif

#ifdef _INCLUDE__STDC__

#  define _NFILE	60
#  define BUFSIZ	1024
#  define _DBUFSIZ	8192

/* buffer size for multi-character output to unbuffered files */
#  define _SBFSIZ	8

#  ifdef _INCLUDE__STDC_A1_SOURCE
#     ifndef _MBSTATE_T_INCLUDED
#  	include <sys/_mbstate_t.h>
#     endif /* _MBSTATE_T_INCLUDED */
#  endif /* _INCLUDE__STDC_A1_SOURCE */

_NAMESPACE_STD_START
   typedef struct {
	int		 __cnt;
	unsigned char	*__ptr;
	unsigned char	*__base;
	unsigned short	 __flag;
	unsigned char 	 __fileL;		/* low byte of file desc */
	unsigned char 	 __fileH;		/* high byte of file desc */
   } FILE;
_NAMESPACE_STD_END

   typedef struct {
	int		 __cnt;
	unsigned char	*__ptr;
	unsigned char	*__base;
	unsigned short	 __flag;
	unsigned char 	 __fileL;		/* low byte of file desc */
	unsigned char 	 __fileH;		/* high byte of file desc */
	unsigned char	*__bufendp;		/* end of buffer */
	unsigned char	*__newbase;
	unsigned char	 __smbuf[_SBFSIZ+2*4];	/* small buffer */
#  ifdef _REENTRANT
	void		*__lock;		/* lock for thread safety */
#  else
	void		*__unused;
#  endif
#  ifdef _INCLUDE__STDC_A1_SOURCE
        int             __orientation ;
        mbstate_t       __state ;
#  else
	int		__filler1;
	char		__filler2[8];		/* mbstate_t current size */
#  endif /* _INCLUDE__STDC_A1_SOURCE */
   } _FILEX;

/*
 * _IOLBF means that a file's output will be buffered line by line
 * In addition to being flags, _IONBF, _IOLBF and _IOFBF are possible
 * vales for "type" in setvbuf
 */
#  define _IOFBF		0000000
#  define _IOREAD		0000001
#  define _IOWRT		0000002
#  define _IONBF		0000004
#  define _IOMYBUF		0000010
#  define _IOEOF		0000020
#  define _IOERR		0000040
#  define _IOLBF		0000200
#  define _IORW			0000400
#  define _IOEXT		0001000
#  define _IODUMMY		0002000 /* dummy file for doscan, doprnt */

/*
 *  stream orientation mode
 */
#  define _MSE_UNBOUND_ORIENTED 0
#  define _MSE_BYTE_ORIENTED    -1
#  define _MSE_WIDE_ORIENTED    1

#	ifndef __NULL_INCLUDED
#		include <sys/_null.h>
#  endif /* __NULL_INCLUDED */

#  ifndef _SIZE_T_INCLUDED 
#		include <sys/_size_t.h>
#  endif /* _SIZE_T_INCLUDED */

#  ifndef _FPOS64_T
#    define _FPOS64_T
#    if !defined(__STDC_32_MODE__)
#ifndef __LP64__
       typedef int64_t fpos64_t; /* 64bit position inside a file */
#else /* __LP64__ */
#     define fpos64_t fpos_t /* 64bit position inside a file */
#endif /*__LP64__ */
#    endif
#  endif /* _FPOS64_T */

#  ifndef _FPOS_T
_NAMESPACE_STD_START
#    define _FPOS_T
#    ifdef _APP32_64BIT_OFF_T
       typedef int64_t fpos_t;      /* 64bit position inside a file */
#    else
       typedef long fpos_t;         /* Needs to scale w/ 64-bit */
#    endif
_NAMESPACE_STD_END
#  endif /* _FPOS_T */

#if (defined(_PA_RISC1_0) || defined(_PA_RISC1_1) || defined(_PA_RISC2_0))

#  ifdef __hp9000s300
     typedef char *__va_list;
#  endif /* __hp9000s300 */

#  ifdef __hp9000s800
     typedef double *__va_list;
#  endif /* __hp9000s800 */

#else   /* !(_PA_RISC1_0 || _PA_RISC1_1 || _PA_RISC2_0) */

    /* HPINTEL */
#  if defined(__IA64__) 
#     if (defined(__hp9000s300) || defined(__hp9000s800)) 
#        define __va_list __va_list__
#     endif
#  endif  

#endif  /* !(_PA_RISC1_0 || _PA_RISC1_1 || _PA_RISC2_0) */

#  ifndef SEEK_SET
#    define SEEK_SET 0
#    define SEEK_CUR 1
#    define SEEK_END 2
#  endif /* SEEK_SET */

#  define _P_tmpdir "/var/tmp/"

#  define L_tmpnam	(sizeof(_P_tmpdir) + 15)

#  ifndef TMP_MAX
#    define TMP_MAX 17576
#  endif /* TMP_MAX */

#  define FILENAME_MAX 	14
#  define FOPEN_MAX 	_NFILE

#  ifndef EOF
#    define	EOF	(-1)
#  endif /* EOF */
   
#  define	stdin	(&__iob[0])
#  define	stdout	(&__iob[1])
#  define	stderr	(&__iob[2])

   extern __FILE __iob[];

#ifdef _HP_SHLIB_CALLS
#  pragma HP_DEFINED_EXTERNAL remove,tmpnam,fclose,fflush,setbuf,setvbuf
#  pragma HP_DEFINED_EXTERNAL fgetc,fgets,fputc
#  pragma HP_DEFINED_EXTERNAL getchar,gets,putc,putchar,puts,ungetc,fseek
#  pragma HP_DEFINED_EXTERNAL fsetpos,ftell,rewind,clearerr,feof,ferror,perror
#endif /* _HP_SHLIB_CALLS */
#ifdef _FAST_SHLIB_CALLS
#  pragma HP_NO_RELOCATION remove,tmpnam,fclose,fflush,setbuf,setvbuf
#  pragma HP_NO_RELOCATION fgetc,fgets,fputc
#  pragma HP_NO_RELOCATION getchar,gets,putc,putchar,puts,ungetc,fseek
#  pragma HP_NO_RELOCATION fsetpos,ftell,rewind,clearerr,feof,ferror,perror
#  pragma HP_LONG_RETURN remove,tmpnam,fclose,fflush,setbuf,setvbuf
#  pragma HP_LONG_RETURN fgetc,fgets,fputc
#  pragma HP_LONG_RETURN getchar,gets,putc,putchar,puts,ungetc,fseek
#  pragma HP_LONG_RETURN fsetpos,ftell,rewind,clearerr,feof,ferror,perror
#endif /* _FAST_SHLIB_CALLS */
#if !defined(_SVID3) || defined (_XPG4_EXTENDED)
#  ifdef _HP_SHLIB_CALLS
#    pragma HP_DEFINED_EXTERNAL rename
#  endif /* _HP_SHLIB_CALLS */
#  ifdef _FAST_SHLIB_CALLS
#    pragma HP_NO_RELOCATION rename
#    pragma HP_LONG_RETURN rename
#  endif /* _FAST_SHLIB_CALLS */
#endif /* _SVID3 || _XPG4_EXTENDED */
#ifndef _APP32_64BIT_OFF_T
#  ifdef _HP_SHLIB_CALLS
#    pragma HP_DEFINED_EXTERNAL tmpfile,fopen,freopen,fgetpos,fsetpos
#  endif /* _HP_SHLIB_CALLS */
#  ifdef _FAST_SHLIB_CALLS
#    pragma HP_NO_RELOCATION tmpfile,fopen,freopen,fgetpos,fsetpos
#    pragma HP_LONG_RETURN tmpfile,fopen,freopen,fgetpos,fsetpos
#  endif /* _FAST_SHLIB_CALLS */
#endif /** !_APP32_64BIT_OFF_T **/
#ifdef _REENTRANT
#  ifdef _HP_SHLIB_CALLS
#    pragma HP_DEFINED_EXTERNAL putc_unlocked
#    pragma HP_DEFINED_EXTERNAL putchar_unlocked
#  endif /* _HP_SHLIB_CALLS */
#  ifdef _FAST_SHLIB_CALLS
#    pragma HP_NO_RELOCATION putc_unlocked
#    pragma HP_NO_RELOCATION putchar_unlocked
#    pragma HP_LONG_RETURN putc_unlocked
#    pragma HP_LONG_RETURN putchar_unlocked
#  endif /* _FAST_SHLIB_CALLS */
#endif /* _REENTRANT */


#  if defined(__STDC__) || defined(__cplusplus)
_NAMESPACE_STD_START
     extern int remove(const char *);
#if !defined(_SVID3) || defined (_XPG4_EXTENDED)
     extern int rename(const char *, const char *);
#endif /* _SVID3 || _XPG4_EXTENDED */
     extern char *tmpnam(char *);
     extern int fclose(FILE *);
     extern int fflush(FILE *);
     extern void setbuf(FILE *, char *);
     extern int setvbuf(FILE *, char *, int, size_t);
     extern int fprintf(FILE *, const char *, ...);
     extern int fscanf(FILE *, const char *,...);
     extern int printf(const char *,...);
     extern int scanf(const char *,...);
     extern int sprintf(char *, const char *,...);
     extern int sscanf(const char *, const char *,...);
     extern int fgetc(FILE *);
     extern char *fgets(char *, int, FILE *);
     extern int fputc(int, FILE *);
     extern int fputs(const char *, FILE *);
     extern int getc(FILE *);
     extern int getchar(void);
     extern char *gets(char *);
     extern int putc(int, FILE *);
     extern int putchar(int);
     extern int puts(const char *);
     extern int ungetc(int, FILE *);
#ifndef _APP32_64BIT_OFF_T
     extern FILE *tmpfile(void);
     extern int fgetpos(FILE *, fpos_t *);
     extern int fsetpos(FILE *, const fpos_t *);
     extern FILE *fopen(const char *, const char *);
     extern FILE *freopen(const char *, const char *, FILE *);
#else
#ifndef __cplusplus
     static FILE *tmpfile(void);
     static int fgetpos(FILE *, fpos_t *);
     static int fsetpos(FILE *, const fpos_t *);
     static FILE *fopen(const char *, const char *);
     static FILE *freopen(const char *, const char *, FILE *);
#endif /* __cplusplus */
#endif /** !_APP32_64BIT_OFF_T **/
     extern int fseek(FILE *, long int, int);
     extern long int ftell(FILE *);
     extern void rewind(FILE *);
     extern void clearerr(FILE *);
     extern int feof(FILE *);
     extern int ferror(FILE *);
     extern void perror(const char *);
_NAMESPACE_STD_END
#    ifdef _REENTRANT
       extern int getc_unlocked(__FILE *);
       extern int getchar_unlocked(__FILE *);
       extern int putc_unlocked(int, __FILE *);
       extern int putchar_unlocked(int);
#	ifdef _PTHREADS_DRAFT4
       extern void clearerr_unlocked(__FILE *);
       extern int feof_unlocked(__FILE *);
       extern int ferror_unlocked(__FILE *);
#	endif /* _PTHREADS_DRAFT4 */
#    endif /* _REENTRANT */
#  else /* not __STDC__ || __cplusplus */
     extern int remove();
#ifndef _SVID3
     extern int rename();
#endif /* _SVID3 */
     extern char *tmpnam();
     extern int fclose();
     extern int fflush();
#   ifndef _APP32_64BIT_OFF_T
     extern FILE *tmpfile();
     extern FILE *fopen();
     extern FILE *freopen();
     extern int fgetpos();
     extern int fsetpos();
#   else
     static FILE *tmpfile();
     static FILE *fopen();
     static FILE *freopen();
     static int fgetpos();
     static int fsetpos();
#   endif /** !_APP32_64BIT_OFF_T **/
     extern void setbuf();
     extern int setvbuf();
     extern int fprintf();
     extern int fscanf();
     extern int printf();
     extern int scanf();
     extern int sprintf();
     extern int sscanf();
     extern int vprintf();
     extern int vfprintf();
     extern int vsprintf();
     extern int fgetc();
     extern char *fgets();
     extern int fputc();
     extern int fputs();
     extern int getc();
     extern int getchar();
     extern char *gets();
     extern int putc();
     extern int putchar();
     extern int puts();
     extern int ungetc();
     extern int fseek();
     extern int fsetpos();
     extern long int ftell();
     extern void rewind();
     extern void clearerr();
     extern int feof();
     extern int ferror();
     extern void perror();
#    ifdef _REENTRANT
       extern int getc_unlocked();
       extern int getchar_unlocked();
       extern int putc_unlocked();
       extern int putchar_unlocked();
#	ifdef _PTHREADS_DRAFT4
       extern void clearerr_unlocked();
       extern int feof_unlocked();
       extern int ferror_unlocked();
#	endif /* _PTHREADS_DRAFT4 */
#    endif /* _REENTRANT */
#  endif /* __STDC__ || __cplusplus */

#  ifdef _HP_SHLIB_CALLS
#    pragma HP_DEFINED_EXTERNAL fread,fwrite
#  endif /* _HP_SHLIB_CALLS */
#  ifdef _FAST_SHLIB_CALLS
#    pragma HP_NO_RELOCATION fread,fwrite
#    pragma HP_LONG_RETURN fread,fwrite
#  endif /* _FAST_SHLIB_CALLS */

#  ifdef _CLASSIC_ANSI_TYPES
     extern int fread();
     extern int fwrite();
#  else
#    if defined(__STDC__) || defined(__cplusplus)
_NAMESPACE_STD_START
       extern size_t fread(void *, size_t, size_t, FILE *);
       extern size_t fwrite(const void *, size_t, size_t, FILE *);
_NAMESPACE_STD_END
#    else /* not __STDC__ || __cplusplus */
       extern size_t fread();
       extern size_t fwrite();
#    endif /* else not __STDC__ || __cplusplus */
#  endif

/*
 * WARNING:  The following function declarations are provided solely
 *  for use in the macros found in this header file.  These are HP-UX
 *  specific routines used internally and direct use of these routines 
 *  is not supported.  These routines may be removed or significantly
 *  changed in future releases of HP-UX.
 */
#  ifdef _HP_SHLIB_CALLS
#    pragma HP_DEFINED_EXTERNAL __flsbuf,__filbuf
#  endif /* _HP_SHLIB_CALLS */
#  ifdef _FAST_SHLIB_CALLS
#    pragma HP_NO_RELOCATION __flsbuf,__filbuf
#    pragma HP_LONG_RETURN __flsbuf,__filbuf
#  endif /* _FAST_SHLIB_CALLS */
#  if defined(__STDC__) || defined(__cplusplus)
     extern int __flsbuf(unsigned char, __FILE *);
     extern int __filbuf(__FILE *);
#  else /* not __STDC__ || __cplusplus */
     extern int __flsbuf();
     extern int __filbuf();
#  endif /* __STDC__ || __cplusplus */
  
#  ifndef __lint
#   ifdef _REENTRANT
#	ifdef _PTHREADS_DRAFT4
      /*
       * The default for getc() and putc() are locked for compatibility with
       * POSIX P1003.4a.
       * By defining _STDIO_UNLOCK_CHAR_IO before including this
       * file, the default action is changed to unlocked putc and getc.
       * A file lock can still be placed around a block of putc's or getc's
       * regardless of the locking mode, and invoking the locked or
       * unlocked version directly always overrides the default action.
       */
#     define clearerr_unlocked(__p)	((void) ((__p)->__flag &= \
						~(_IOERR | _IOEOF)))
#     define feof_unlocked(__p)		((__p)->__flag & _IOEOF)
#     define ferror_unlocked(__p)	((__p)->__flag & _IOERR)
#endif /* _PTHREADS_DRAFT4 */

#     define getc_unlocked(__p)		(--(__p)->__cnt >= 0 ? \
						(int) *(__p)->__ptr++ : \
						__filbuf(__p))

#     define getchar_unlocked()		getc_unlocked(stdin)

#     define putc_unlocked(__c, __p)	(--(__p)->__cnt >= 0 ? \
			(int) (*(__p)->__ptr++ = (unsigned char) (__c)) : \
			__flsbuf((unsigned char) (__c), (__p)))

#     define putchar_unlocked(__c)	putc_unlocked((__c), stdout)

#     if defined(_PTHREADS_DRAFT4) && defined(_STDIO_UNLOCK_CHAR_IO)
#       define clearerr(__p)		clearerr_unlocked(__p)
#       define feof(__p)		feof_unlocked(__p)
#       define ferror(__p)		ferror_unlocked(__p)
#       define getc(__p)		getc_unlocked(__p)
#       define putc(__c,__p)		putc_unlocked(__c,__p)
#       define getchar()		getchar_unlocked()
#       define putchar(__c)		putchar_unlocked(__c)
#     endif /* _PTHREADS_DRAFT4 && _STDIO_UNLOCK_CHAR_IO */

#   else /* not _REENTRANT */

#    define clearerr(__p)	((void) ((__p)->__flag &= ~(_IOERR | _IOEOF)))
#    define feof(__p)	((__p)->__flag & _IOEOF)
#    define ferror(__p)	((__p)->__flag & _IOERR)
#    define getc(__p)     (--(__p)->__cnt >= 0 ? (int) *(__p)->__ptr++ : \
			__filbuf(__p))

#    define getchar()	getc(stdin)

#    define putc(__c, __p)	(--(__p)->__cnt >= 0 ? \
			(int) (*(__p)->__ptr++ = (unsigned char) (__c)) : \
			__flsbuf((unsigned char) (__c), (__p)))

#    define putchar(__c)	putc((__c), stdout)
#   endif /* _REENTRANT */
#  endif /* not __lint */
#endif /* _INCLUDE__STDC__ */

#ifdef _INCLUDE_POSIX_SOURCE
#  define L_ctermid	9
#  define L_cuserid	9

#  ifdef _HP_SHLIB_CALLS
#    pragma HP_DEFINED_EXTERNAL ctermid,fileno,fdopen
#  endif /* _HP_SHLIB_CALLS */
#  ifdef _FAST_SHLIB_CALLS
#    pragma HP_NO_RELOCATION ctermid,fileno,fdopen
#    pragma HP_LONG_RETURN ctermid,fileno,fdopen
#  endif /* _FAST_SHLIB_CALLS */
#  if defined(__STDC__) || defined(__cplusplus)
     extern char *ctermid(char *);
     extern int fileno(__FILE *);
     extern __FILE *fdopen(int, const char *);
#  else /* not __STDC */
     extern char *ctermid();
     extern int fileno();
     extern FILE *fdopen();
#  endif /* __STDC */
#endif /* _INCLUDE_POSIX_SOURCE */

#ifdef _INCLUDE_XOPEN_SOURCE
#  if !defined(_AES_SOURCE) || defined (_XPG4_EXTENDED)


#    ifdef __hp9000s300
#      ifndef _DUMMY_VA_LIST
#        define _DUMMY_VA_LIST
#        if (defined(_PA_RISC1_0) || defined(_PA_RISC1_1) || defined(_PA_RISC2_0))
           typedef char *__not_va_list__;
#        else 
#          ifdef __IA64__
#             define __gnuc_va_list __va_list__ 
#          endif /* __IA64__ */ 
#        endif  /* __gnuc_va_list */
#      endif  /* _DUMMY_VA_LIST */
#    endif /* __hp9000s300 */

#    ifdef __hp9000s800
#      ifndef _DUMMY_VA_LIST
#        define _DUMMY_VA_LIST
#        if (defined(_PA_RISC1_0) || defined(_PA_RISC1_1) || defined(_PA_RISC2_0))
_NAMESPACE_STD_START
           typedef double *__not_va_list__;
_NAMESPACE_STD_END
#        else
#          ifdef __IA64__
#             define __gnuc_va_list __va_list__ 
#          endif /* __IA64__ */ 
#        endif  /* __gnuc_va_list */

#      endif  /* _DUMMY_VA_LIST */
#    endif /* __hp9000s800 */

     extern char *optarg;
     extern int opterr;
     extern int optind;
     extern int optopt;

#    ifdef _HP_SHLIB_CALLS
#      pragma HP_DEFINED_EXTERNAL getopt,cuserid
#    endif /* _HP_SHLIB_CALLS */
#    ifdef _FAST_SHLIB_CALLS
#      pragma HP_NO_RELOCATION getopt,cuserid
#      pragma HP_LONG_RETURN getopt,cuserid
#    endif /* _FAST_SHLIB_CALLS */
#    ifdef _PROTOTYPES
       extern int getopt(int, char * const [], const char *);
       extern char *cuserid(char *);
#    else
       extern int getopt();
       extern char *cuserid();
#    endif /* _PROTOTYPES */
#  endif /* not _AES_SOURCE || _XPG4_EXTENDED */



#  define P_tmpdir 	_P_tmpdir

#  ifdef _HP_SHLIB_CALLS
#    pragma HP_DEFINED_EXTERNAL getw,putw,pclose,popen,tempnam
#  endif /* _HP_SHLIB_CALLS */
#  ifdef _FAST_SHLIB_CALLS
#    pragma HP_NO_RELOCATION getw,putw,pclose,popen,tempnam
#    pragma HP_LONG_RETURN getw,putw,pclose,popen,tempnam
#  endif /* _FAST_SHLIB_CALLS */
#  if defined(__STDC__) || defined(__cplusplus)
     extern int getw(__FILE *);
     extern int putw(int, __FILE *);
     extern int pclose(__FILE *);
     extern __FILE *popen(const char *, const char *);
     extern char *tempnam(const char *, const char *);
#  else /* not __STDC__ || __cplusplus */
     extern int getw();
     extern int putw();
     extern int pclose();
     extern FILE *popen();
     extern char *tempnam();
#  endif /* else not __STDC__ || __cplusplus */

#endif /* _INCLUDE_XOPEN_SOURCE */

#if !defined(NAME_MAX) && (defined(_SVID2) || defined(_SVID3))
#  define NAME_MAX   14		/* Max number of characters in a filename */
#endif /* !defined(NAME_MAX) && (defined(_SVID2) || defined(_SVID3)) */

/*
 * The following 3 functions, with prototypes, are defined here rather
 * than in the previous _INCLUDE__STDC__ section because the XPG4_EXTENDED
 * version uses __gnuc_va_list instead of __va_list, and "va_list" wasn't defined
 * until the preceding _INCLUDE_XOPEN_SOURCE section.
 */
#ifdef _INCLUDE__STDC__
# if defined(__STDC__) || defined(__cplusplus)
_NAMESPACE_STD_START
#   ifdef _XPG4_EXTENDED
     extern int vprintf(const char *, __gnuc_va_list);
     extern int vfprintf(FILE *, const char *, __gnuc_va_list);
     extern int vsprintf(char *, const char *, __gnuc_va_list);
#   else /* ! _XPG4_EXTENDED */
     extern int vprintf(const char *, __gnuc_va_list);
     extern int vfprintf(FILE *, const char *, __gnuc_va_list);
     extern int vsprintf(char *, const char *, __gnuc_va_list);
#   endif /* _XPG4_EXTENDED */
_NAMESPACE_STD_END
# endif /* __STDC__ || __cplusplus */
#endif /* _INCLUDE__STDC__ */

#ifdef _INCLUDE_HPUX_SOURCE

#  define _iob __iob

#  ifdef _HP_SHLIB_CALLS
#    pragma HP_DEFINED_EXTERNAL flockfile,ftrylockfile,funlockfile
#  endif /* _HP_SHLIB_CALLS */
#  ifdef _FAST_SHLIB_CALLS
#    pragma HP_NO_RELOCATION flockfile,ftrylockfile,funlockfile
#    pragma HP_LONG_RETURN flockfile,ftrylockfile,funlockfile
#  endif /* _FAST_SHLIB_CALLS */
#  if defined(__STDC__) || defined(__cplusplus)
     extern int snprintf(char *, _hpux_size_t, const char *,...);
     extern int vsnprintf(char *, _hpux_size_t, const char *, __gnuc_va_list);
     extern int vscanf(const char *, __gnuc_va_list);
     extern int vfscanf(__FILE *, const char *, __gnuc_va_list);
     extern int vsscanf(char *, const char *, __gnuc_va_list);
     extern void flockfile(__FILE *);
     extern int ftrylockfile(__FILE *);
     extern void funlockfile(__FILE *);
#	ifdef _PTHREADS_DRAFT4
     extern int fclose_unlocked(__FILE *);
     extern int fflush_unlocked(__FILE *);
     extern char *fgets_unlocked(char *, int, __FILE *);
     extern int fputs_unlocked(const char *, __FILE *);
     extern int setvbuf_unlocked(__FILE *, char *, int, _hpux_size_t);
     extern int puts_unlocked(const char *);
     extern int ungetc_unlocked(int, __FILE *);
     extern int fseek_unlocked(__FILE *, long int, int);
     extern long int ftell_unlocked(__FILE *);
     extern void rewind_unlocked(__FILE *);
     extern _hpux_size_t fread_unlocked(void *, _hpux_size_t, _hpux_size_t, __FILE *);
     extern _hpux_size_t fwrite_unlocked(const void *, _hpux_size_t, _hpux_size_t, __FILE *);
     extern int fileno_unlocked(__FILE *);
     extern int getw_unlocked(__FILE *);
     extern int putw_unlocked(int, __FILE *);
#	endif /* _PTHREADS_DRAFT4 */

#  else /* not __STDC__ || __cplusplus */
     extern int snprintf();
     extern int vsnprintf();
     extern int vscanf();
     extern int vfscanf();
     extern int vsscanf();
     extern void flockfile();
     extern int ftrylockfile();
     extern void funlockfile();
#	ifdef _PTHREADS_DRAFT4
     extern int fclose_unlocked();
     extern int fflush_unlocked();
     extern char *fgets_unlocked();
     extern int fputs_unlocked();
     extern int setvbuf_unlocked();
     extern int puts_unlocked();
     extern int ungetc_unlocked();
     extern int fseek_unlocked();
     extern long int ftell_unlocked();
     extern void rewind_unlocked();
     extern size_t fread_unlocked();
     extern size_t fwrite_unlocked();
     extern int fileno_unlocked();
     extern int getw_unlocked();
     extern int putw_unlocked();
#	endif /* _PTHREADS_DRAFT4 */
#  endif /* __STDC__ || __cplusplus */

   extern unsigned char *__bufendtab[];

#  define _cnt		__cnt
#  define _ptr		__ptr
#  define _base		__base
#  define _flag		__flag

#  define _bufend(__p) \
    (*(((__p)->__flag & _IOEXT)  ? &(((_FILEX *)(__p))->__bufendp)	\
				: &(__bufendtab[(__p) - __iob])))

#  define _bufsiz(__p)	(_bufend(__p) - (__p)->__base)
#endif /* _INCLUDE_HPUX_SOURCE */

/***
**** ftello() and fseeko() interfaces put in for
**** large files.
****/
#ifdef _LARGEFILE64_SOURCE
#   ifdef __LP64__
#        define ftello64   ftello
#        define fseeko64   fseeko
#        define fgetpos64  fgetpos
#        define fsetpos64  fsetpos
#        define fopen64    fopen
#        define freopen64  freopen
#        define tmpfile64  tmpfile
#       ifdef _HP_SHLIB_CALLS
#         pragma HP_DEFINED_EXTERNAL ftello64,fseeko64,fgetpos64,fsetpos64
#         pragma HP_DEFINED_EXTERNAL fopen64,freopen64,tmpfile64
#       endif /* _HP_SHLIB_CALLS */
#       ifdef _FAST_SHLIB_CALLS
#         pragma HP_NO_RELOCATION ftello64,fseeko64,fgetpos64,fsetpos64
#         pragma HP_NO_RELOCATION fopen64,freopen64,tmpfile64
#         pragma HP_LONG_RETURN ftello64,fseeko64,fgetpos64,fsetpos64
#         pragma HP_LONG_RETURN fopen64,freopen64,tmpfile64
#       endif /* _FAST_SHLIB_CALLS */
#   else /* __LP64__ */
#	ifdef _PROTOTYPES
		extern off64_t ftello64(__FILE *);
		extern int fseeko64(__FILE *, off64_t, int);
		extern int fgetpos64(__FILE *, fpos64_t *);
		extern int fsetpos64(__FILE *, const fpos64_t *);
		extern __FILE *fopen64(const char *, const char *);
		extern __FILE *freopen64(const char *, const char *, __FILE *);
		extern __FILE *tmpfile64(void);
#	else
		extern off64_t ftello64();
		extern int fseeko64();
		extern int fgetpos64();
		extern int fsetpos64();
		extern FILE *fopen64();
		extern FILE *freopen64();
		extern FILE *tmpfile64();
#	endif /** Prototypes **/
#   endif /* __LP64__ */
#endif /** _LARGEFILE64_SOURCE **/

#ifdef _APP32_64BIT_OFF_T
#   ifdef _HP_SHLIB_CALLS
#     pragma HP_DEFINED_EXTERNAL __ftello64,__fopen64,__freopen64,__tmpfile64
#     pragma HP_DEFINED_EXTERNAL __fseeko64,__fgetpos64,__fsetpos64
#   endif /* _HP_SHLIB_CALLS */
#   ifdef _FAST_SHLIB_CALLS
#     pragma HP_NO_RELOCATION __ftello64,__fopen64,__freopen64,__tmpfile64
#     pragma HP_NO_RELOCATION __fseeko64,__fgetpos64,__fsetpos64
#     pragma HP_LONG_RETURN __ftello64,__fopen64,__freopen64,__tmpfile64
#     pragma HP_LONG_RETURN __fseeko64,__fgetpos64,__fsetpos64
#   endif /* _FAST_SHLIB_CALLS */
    extern off64_t __ftello64 __((__FILE *));
    extern __FILE *__fopen64 __((const char *, const char *));
    extern __FILE *__freopen64 __((const char *, const char *, register __FILE *));
    extern __FILE *__tmpfile64 __((void));
    extern int __fseeko64 __((__FILE *, off_t, int));
    extern int __fgetpos64 __((__FILE *, fpos_t *));
    extern int __fsetpos64 __((__FILE *, const fpos_t *));

#ifndef __cplusplus
#   ifdef _LARGEFILE_SOURCE
#      ifdef _PROTOTYPES
          static off_t ftello(__FILE *);
          static int fseeko(__FILE *, off_t, int);
#      else /** No Prototypes **/
          static off_t ftello();
          static int fseeko();
#      endif /** Prototypes **/
#   endif /* _LARGEFILE_SOURCE */

    /** Do Mapping **/
#   ifdef _LARGEFILE_SOURCE
#      if defined(__STDC__)
           static off_t ftello(__FILE *__a) {return __ftello64(__a);}
           static int fseeko(__FILE *__a, off_t __b, int __c)
		{return __fseeko64(__a,__b,__c);}
#      else /* defined(__STDC__) */
           static off_t ftello(__a) __FILE *__a ; {return __ftello64(__a);}
           static int fseeko(__a,__b,__c) __FILE *__a; off_t __b; int __c;
		{return __fseeko64(__a,__b,__c);}
#      endif /* defined(__STDC__) */
#   endif /* _LARGEFILE_SOURCE */

#   if defined(__STDC__)
        static int fgetpos(__FILE *__a, fpos_t *__b)
		{return __fgetpos64(__a,__b);}
        static int fsetpos(__FILE *__a, const fpos_t *__b)
		{return __fsetpos64(__a,__b);}
        static __FILE *fopen(const char *__a, const char *__b)
		{return __fopen64(__a,__b);}
        static __FILE *freopen(const char *__a, const char *__b,
		__FILE *__c) {return __freopen64(__a,__b,__c);}
        static __FILE *tmpfile(void)  {return __tmpfile64();}
#   else /* defined(__STDC__) */
        static int fgetpos(__a,__b) __FILE *__a; fpos_t *__b;
		{return __fgetpos64(__a,__b);}
        static int fsetpos(__a,__b) __FILE *__a; fpos_t *__b;
		{return __fsetpos64(__a,__b);}
        static __FILE *fopen(__a,__b) char *__a; char *__b;
		{return __fopen64(__a,__b);}
        static __FILE *freopen(__a,__b,__c) char *__a; char *__b; __FILE *__c;
		{return __freopen64(__a,__b,__c);}
        static __FILE *tmpfile()  {return __tmpfile64();}
#   endif /* defined(__STDC__) */
#endif /* __cplusplus */

#else  /** ! _APP32_64BIT_OFF_T  **/
#   if defined(_LARGEFILE_SOURCE) || (defined(_HPUX_SOURCE) && defined(__LP64__))
#       ifdef _HP_SHLIB_CALLS
#         pragma HP_DEFINED_EXTERNAL ftello,fseeko
#       endif /* _HP_SHLIB_CALLS */
#       ifdef _FAST_SHLIB_CALLS
#         pragma HP_NO_RELOCATION ftello,fseeko
#         pragma HP_LONG_RETURN ftello,fseeko
#       endif /* _FAST_SHLIB_CALLS */
#       ifdef _PROTOTYPES
           extern off_t ftello(__FILE *);
           extern int fseeko(__FILE *, off_t, int);
#       else /** _PROTOTYPES **/
           extern off_t ftello();
           extern int fseeko();
#       endif /** _PROTOTYPES **/
#   endif /* defined(_LARGEFILE_SOURCE) || (defined(_HPUX_SOURCE) && defined(__LP64__)) */
#endif /** _APP32_64BIT_OFF_T **/

#ifdef __cplusplus
}
#endif

/*
 * Inline function declarations and definitions need to be outside of
 * the extern "C" scope to avoid warnings from being generated when
 * the ANSI C++ +w compiler option is set.
 */
#ifdef __cplusplus
#ifdef _APP32_64BIT_OFF_T

_NAMESPACE_STD_START
#ifdef _LARGEFILE_SOURCE
	inline off_t ftello(FILE *__a) {return __ftello64(__a);}
	inline int fseeko(FILE *__a, off_t __b, int __c)
		{return __fseeko64(__a,__b,__c);}
#endif /* _LARGEFILE_SOURCE */

#ifdef _INCLUDE__STDC__
	inline int fgetpos(FILE *__a, fpos_t *__b)
		{return __fgetpos64(__a,__b);}
	inline int fsetpos(FILE *__a, const fpos_t *__b)
		{return __fsetpos64(__a,__b);}
	inline FILE *fopen(const char *__a, const char *__b)
		{return __fopen64(__a,__b);}
	inline FILE *freopen(const char *__a, const char *__b,
		FILE *__c) {return __freopen64(__a,__b,__c);}
	inline FILE *tmpfile(void)  {return __tmpfile64();}
#endif /* _INCLUDE__STDC__ */

_NAMESPACE_STD_END
#endif /* _APP32_64BIT_OFF_T */
#endif /* __cplusplus */

#endif /* _STDIO_INCLUDED */


#endif  /* FIXINC_WRAP_STDIO_H_STDIO_STDARG_H */
