OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [newlib/] [newlib/] [libc/] [include/] [stdio.h] - Diff between revs 39 and 56

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 39 Rev 56
Line 79... Line 79...
#define _IOFBF  0                /* setvbuf should set fully buffered */
#define _IOFBF  0                /* setvbuf should set fully buffered */
#define _IOLBF  1               /* setvbuf should set line buffered */
#define _IOLBF  1               /* setvbuf should set line buffered */
#define _IONBF  2               /* setvbuf should set unbuffered */
#define _IONBF  2               /* setvbuf should set unbuffered */
 
 
#ifndef NULL
#ifndef NULL
#define NULL    0L
#define NULL    0
#endif
#endif
 
 
#define BUFSIZ  1024
#define BUFSIZ  1024
#define EOF     (-1)
#define EOF     (-1)
 
 
#define FOPEN_MAX       20      /* must be <= OPEN_MAX <sys/syslimits.h> */
#define FOPEN_MAX       20      /* must be <= OPEN_MAX <sys/syslimits.h> */
#define FILENAME_MAX    1024    /* must be <= PATH_MAX <sys/syslimits.h> */
#define FILENAME_MAX    1024    /* must be <= PATH_MAX <sys/syslimits.h> */
#define L_tmpnam        1024    /* XXX must be == PATH_MAX */
#define L_tmpnam        1024    /* XXX must be == PATH_MAX */
#ifndef _STRICT_ANSI
#ifndef __STRICT_ANSI__
#define P_tmpdir        "/tmp"
#define P_tmpdir        "/tmp"
#endif
#endif
 
 
#ifndef SEEK_SET
#ifndef SEEK_SET
#define SEEK_SET        0        /* set file offset to offset */
#define SEEK_SET        0        /* set file offset to offset */
Line 126... Line 126...
 
 
#ifndef _REENT_ONLY
#ifndef _REENT_ONLY
int     _EXFUN(remove, (const char *));
int     _EXFUN(remove, (const char *));
int     _EXFUN(rename, (const char *, const char *));
int     _EXFUN(rename, (const char *, const char *));
#endif
#endif
 
char *  _EXFUN(tempnam, (const char *, const char *));
FILE *  _EXFUN(tmpfile, (void));
FILE *  _EXFUN(tmpfile, (void));
char *  _EXFUN(tmpnam, (char *));
char *  _EXFUN(tmpnam, (char *));
int     _EXFUN(fclose, (FILE *));
int     _EXFUN(fclose, (FILE *));
int     _EXFUN(fflush, (FILE *));
int     _EXFUN(fflush, (FILE *));
FILE *  _EXFUN(freopen, (const char *, const char *, FILE *));
FILE *  _EXFUN(freopen, (const char *, const char *, FILE *));
Line 141... Line 142...
int     _EXFUN(scanf, (const char *, ...));
int     _EXFUN(scanf, (const char *, ...));
int     _EXFUN(sscanf, (const char *, const char *, ...));
int     _EXFUN(sscanf, (const char *, const char *, ...));
int     _EXFUN(vfprintf, (FILE *, const char *, __VALIST));
int     _EXFUN(vfprintf, (FILE *, const char *, __VALIST));
int     _EXFUN(vprintf, (const char *, __VALIST));
int     _EXFUN(vprintf, (const char *, __VALIST));
int     _EXFUN(vsprintf, (char *, const char *, __VALIST));
int     _EXFUN(vsprintf, (char *, const char *, __VALIST));
 
int     _EXFUN(vsnprintf, (char *, size_t, const char *, __VALIST));
int     _EXFUN(fgetc, (FILE *));
int     _EXFUN(fgetc, (FILE *));
char *  _EXFUN(fgets, (char *, int, FILE *));
char *  _EXFUN(fgets, (char *, int, FILE *));
int     _EXFUN(fputc, (int, FILE *));
int     _EXFUN(fputc, (int, FILE *));
int     _EXFUN(fputs, (const char *, FILE *));
int     _EXFUN(fputs, (const char *, FILE *));
int     _EXFUN(getc, (FILE *));
int     _EXFUN(getc, (FILE *));
Line 166... Line 168...
int     _EXFUN(ferror, (FILE *));
int     _EXFUN(ferror, (FILE *));
void    _EXFUN(perror, (const char *));
void    _EXFUN(perror, (const char *));
#ifndef _REENT_ONLY
#ifndef _REENT_ONLY
FILE *  _EXFUN(fopen, (const char *_name, const char *_type));
FILE *  _EXFUN(fopen, (const char *_name, const char *_type));
int     _EXFUN(sprintf, (char *, const char *, ...));
int     _EXFUN(sprintf, (char *, const char *, ...));
 
int     _EXFUN(snprintf, (char *, size_t, const char *, ...));
#endif
#endif
#ifndef _STRICT_ANSI
#ifndef __STRICT_ANSI__
int     _EXFUN(vfiprintf, (FILE *, const char *, __VALIST));
int     _EXFUN(vfiprintf, (FILE *, const char *, __VALIST));
int     _EXFUN(iprintf, (const char *, ...));
int     _EXFUN(iprintf, (const char *, ...));
int     _EXFUN(fiprintf, (FILE *, const char *, ...));
int     _EXFUN(fiprintf, (FILE *, const char *, ...));
int     _EXFUN(siprintf, (char *, const char *, ...));
int     _EXFUN(siprintf, (char *, const char *, ...));
#endif
#endif
 
 
/*
/*
 * Routines in POSIX 1003.1.
 * Routines in POSIX 1003.1.
 */
 */
 
 
#ifndef _STRICT_ANSI
#ifndef __STRICT_ANSI__
#ifndef _REENT_ONLY
#ifndef _REENT_ONLY
FILE *  _EXFUN(fdopen, (int, const char *));
FILE *  _EXFUN(fdopen, (int, const char *));
#endif
#endif
int     _EXFUN(fileno, (FILE *));
int     _EXFUN(fileno, (FILE *));
int     _EXFUN(getw, (FILE *));
int     _EXFUN(getw, (FILE *));
Line 211... Line 214...
int     _EXFUN(_remove_r, (struct _reent *, const char *));
int     _EXFUN(_remove_r, (struct _reent *, const char *));
int     _EXFUN(_rename_r, (struct _reent *,
int     _EXFUN(_rename_r, (struct _reent *,
                           const char *_old, const char *_new));
                           const char *_old, const char *_new));
int     _EXFUN(_scanf_r, (struct _reent *, const char *, ...));
int     _EXFUN(_scanf_r, (struct _reent *, const char *, ...));
int     _EXFUN(_sprintf_r, (struct _reent *, char *, const char *, ...));
int     _EXFUN(_sprintf_r, (struct _reent *, char *, const char *, ...));
char *  _EXFUN(_tempnam_r, (struct _reent *, char *, char *));
int     _EXFUN(_snprintf_r, (struct _reent *, char *, size_t, const char *, ...));
 
char *  _EXFUN(_tempnam_r, (struct _reent *, const char *, const char *));
FILE *  _EXFUN(_tmpfile_r, (struct _reent *));
FILE *  _EXFUN(_tmpfile_r, (struct _reent *));
char *  _EXFUN(_tmpnam_r, (struct _reent *, char *));
char *  _EXFUN(_tmpnam_r, (struct _reent *, char *));
int     _EXFUN(_vfprintf_r, (struct _reent *, FILE *, const char *, __VALIST));
int     _EXFUN(_vfprintf_r, (struct _reent *, FILE *, const char *, __VALIST));
int     _EXFUN(_vprintf_r, (struct _reent *, const char *, __VALIST));
int     _EXFUN(_vprintf_r, (struct _reent *, const char *, __VALIST));
int     _EXFUN(_vsprintf_r, (struct _reent *, char *, const char *, __VALIST));
int     _EXFUN(_vsprintf_r, (struct _reent *, char *, const char *, __VALIST));
 
int     _EXFUN(_vsnprintf_r, (struct _reent *, char *, size_t, const char *, __VALIST));
 
 
/*
/*
 * Routines internal to the implementation.
 * Routines internal to the implementation.
 */
 */
 
 
Line 229... Line 234...
 
 
/*
/*
 * Stdio function-access interface.
 * Stdio function-access interface.
 */
 */
 
 
#ifndef _STRICT_ANSI
#ifndef __STRICT_ANSI__
FILE    *_EXFUN(funopen,(const _PTR _cookie,
FILE    *_EXFUN(funopen,(const _PTR _cookie,
                int (*readfn)(_PTR _cookie, char *_buf, int _n),
                int (*readfn)(_PTR _cookie, char *_buf, int _n),
                int (*writefn)(_PTR _cookie, const char *_buf, int _n),
                int (*writefn)(_PTR _cookie, const char *_buf, int _n),
                fpos_t (*seekfn)(_PTR _cookie, fpos_t _off, int _whence),
                fpos_t (*seekfn)(_PTR _cookie, fpos_t _off, int _whence),
                int (*closefn)(_PTR _cookie)));
                int (*closefn)(_PTR _cookie)));
Line 277... Line 282...
 
 
#define feof(p)         __sfeof(p)
#define feof(p)         __sfeof(p)
#define ferror(p)       __sferror(p)
#define ferror(p)       __sferror(p)
#define clearerr(p)     __sclearerr(p)
#define clearerr(p)     __sclearerr(p)
 
 
#if 0 /*ndef _STRICT_ANSI - FIXME: must initialize stdio first, use fn */
#if 0 /*ndef __STRICT_ANSI__ - FIXME: must initialize stdio first, use fn */
#define fileno(p)       __sfileno(p)
#define fileno(p)       __sfileno(p)
#endif
#endif
 
 
#ifndef lint
#ifndef lint
#define getc(fp)        __sgetc(fp)
#define getc(fp)        __sgetc(fp)
Line 289... Line 294...
#endif /* lint */
#endif /* lint */
 
 
#define getchar()       getc(stdin)
#define getchar()       getc(stdin)
#define putchar(x)      putc(x, stdout)
#define putchar(x)      putc(x, stdout)
 
 
#ifndef _STRICT_ANSI
#ifndef __STRICT_ANSI__
/* fast always-buffered version, true iff error */
/* fast always-buffered version, true iff error */
#define fast_putc(x,p) (--(p)->_w < 0 ? \
#define fast_putc(x,p) (--(p)->_w < 0 ? \
        __swbuf((int)(x), p) == EOF : (*(p)->_p = (x), (p)->_p++, 0))
        __swbuf((int)(x), p) == EOF : (*(p)->_p = (x), (p)->_p++, 0))
 
 
#define L_cuserid       9               /* posix says it goes in stdio.h :( */
#define L_cuserid       9               /* posix says it goes in stdio.h :( */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.