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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [lcc/] [include/] [symbolic/] [irix/] [stdio.h] - Blame information for rev 24

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 hellwig
#ifndef __STDIO
2
#define __STDIO
3
 
4
#define _IOFBF 0
5
#define _IOLBF 0100
6
#define _IONBF 04
7
#define BUFSIZ 1024
8
#define EOF (-1)
9
 
10
extern struct _iobuf {
11
        int     _cnt;
12
        unsigned char   *_ptr;
13
        unsigned char   *_base;
14
        char    _flag;
15
        char    _file;
16
} _iob[];
17
#define FILE struct _iobuf
18
#define FILENAME_MAX 256
19
#define FOPEN_MAX 100
20
 
21
#if !defined(_FPOS_T) && !defined(_FPOS_T_) && !defined(_FPOS_T_DEFINED)
22
#define _FPOS_T
23
#define _FPOS_T_
24
#define _FPOS_T_DEFINED
25
typedef long fpos_t;
26
#endif
27
 
28
#define L_tmpnam 25
29
#ifndef NULL
30
#define NULL ((void*)0)
31
#endif
32
#define SEEK_CUR 1
33
#define SEEK_END 2
34
#define SEEK_SET 0
35
 
36
#if !defined(_SIZE_T) && !defined(_SIZE_T_) && !defined(_SIZE_T_DEFINED)
37
#define _SIZE_T
38
#define _SIZE_T_
39
#define _SIZE_T_DEFINED
40
typedef unsigned long size_t;
41
#endif
42
 
43
#if !defined(_VA_LIST) && !defined(_VA_LIST_DEFINED)
44
#define _VA_LIST
45
#define _VA_LIST_DEFINED
46
typedef char *__va_list;
47
#endif
48
 
49
#define stderr (&_iob[2])
50
#define stdin  (&_iob[0])
51
#define stdout (&_iob[1])
52
#define TMP_MAX 17576
53
 
54
extern int remove(const char *);
55
extern int rename(const char *, const char *);
56
extern FILE *tmpfile(void);
57
extern char *tmpnam(char *);
58
extern int fclose(FILE *);
59
extern int fflush(FILE *);
60
extern FILE *fopen(const char *, const char *);
61
extern FILE *freopen(const char *, const char *, FILE *);
62
extern void setbuf(FILE *, char *);
63
extern int setvbuf(FILE *, char *, int, size_t);
64
extern int fprintf(FILE *, const char *, ...);
65
extern int fscanf(FILE *, const char *, ...);
66
extern int printf(const char *, ...);
67
extern int scanf(const char *, ...);
68
extern int sprintf(char *, const char *, ...);
69
extern int sscanf(const char *, const char *, ...);
70
extern int vfprintf(FILE *, const char *, __va_list);
71
extern int vprintf(const char *, __va_list);
72
extern int vsprintf(char *, const char *, __va_list);
73
extern int fgetc(FILE *);
74
extern char *fgets(char *, int, FILE *);
75
extern int fputc(int, FILE *);
76
extern int fputs(const char *, FILE *);
77
extern int getc(FILE *);
78
extern int getchar(void);
79
extern char *gets(char *);
80
extern int putc(int, FILE *);
81
extern int putchar(int);
82
extern int puts(const char *);
83
extern int ungetc(int, FILE *);
84
extern size_t fread(void *, size_t, size_t, FILE *);
85
extern size_t fwrite(const void *, size_t, size_t, FILE *);
86
extern int fgetpos(FILE *, fpos_t *);
87
extern int fseek(FILE *, long int, int);
88
extern int fsetpos(FILE *, const fpos_t *);
89
extern long int ftell(FILE *);
90
extern void rewind(FILE *);
91
extern void clearerr(FILE *);
92
extern int feof(FILE *);
93
extern int ferror(FILE *);
94
extern void perror(const char *);
95
 
96
#define _IOEOF 020
97
#define _IOERR 040
98
 
99
#define getc(p) (--(p)->_cnt < 0 ? _filbuf(p) : (int) *(p)->_ptr++)
100
#define putc(x, p) (--(p)->_cnt < 0 ? _flsbuf((unsigned char) (x), p) : (int) (*(p)->_ptr++ = (unsigned char) (x)))
101
extern int _filbuf(FILE *), _flsbuf(unsigned, FILE *);
102
#endif /* __STDIO */

powered by: WebSVN 2.1.0

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