@@ -11,6 +11,7 @@ typedef unsigned long int pthread_t;
11
11
typedef unsigned long time_t ;
12
12
typedef unsigned long clockid_t ;
13
13
typedef __INT64_TYPE__ off64_t ;
14
+ typedef __INT64_TYPE__ fpos_t ;
14
15
15
16
typedef struct {
16
17
int a ;
@@ -42,9 +43,22 @@ FILE *fopen(const char *restrict pathname, const char *restrict mode);
42
43
FILE * tmpfile (void );
43
44
FILE * freopen (const char * restrict pathname , const char * restrict mode ,
44
45
FILE * restrict stream );
46
+ FILE * fdopen (int fd , const char * mode );
45
47
int fclose (FILE * stream );
48
+ int putc (int c , FILE * stream );
49
+ int fputc (int c , FILE * stream );
50
+ char * fgets (char * restrict s , int n , FILE * restrict stream );
51
+ int fputs (const char * restrict s , FILE * restrict stream );
46
52
int fseek (FILE * stream , long offset , int whence );
53
+ int fgetpos (FILE * restrict stream , fpos_t * restrict pos );
54
+ int fsetpos (FILE * stream , const fpos_t * pos );
55
+ int fflush (FILE * stream );
56
+ long ftell (FILE * stream );
47
57
int fileno (FILE * stream );
58
+ void rewind (FILE * stream );
59
+ void clearerr (FILE * stream );
60
+ int feof (FILE * stream );
61
+ int ferror (FILE * stream );
48
62
long a64l (const char * str64 );
49
63
char * l64a (long value );
50
64
int open (const char * path , int oflag , ...);
@@ -100,7 +114,6 @@ int pclose(FILE *stream);
100
114
int close (int fildes );
101
115
long fpathconf (int fildes , int name );
102
116
long pathconf (const char * path , int name );
103
- FILE * fdopen (int fd , const char * mode );
104
117
void rewinddir (DIR * dir );
105
118
void seekdir (DIR * dirp , long loc );
106
119
int rand_r (unsigned int * seedp );
0 commit comments