- Timestamp:
- Mar 19, 2000, 12:04:17 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/odincrt/file.cpp
r3150 r3164 1 /* $Id: file.cpp,v 1. 2 2000-03-18 15:14:02sandervl Exp $ */1 /* $Id: file.cpp,v 1.3 2000-03-19 11:04:17 sandervl Exp $ */ 2 2 /* 3 3 * Project Odin Software License can be found in LICENSE.TXT … … 18 18 19 19 rc = fclose(fp); 20 SetFS(sel); 20 21 return rc; 21 22 } … … 27 28 28 29 rc = feof(fp); 30 SetFS(sel); 29 31 return rc; 30 32 } … … 35 37 36 38 rc = ferror(fp); 37 return rc; 38 } 39 SetFS(sel); 40 return rc; 41 } 42 39 43 int _LNK_CONV os2_fflush( FILE *fp ) 40 44 { … … 43 47 44 48 rc = fflush(fp); 45 return rc; 46 } 49 SetFS(sel); 50 return rc; 51 } 52 47 53 int _LNK_CONV os2_fgetc( FILE *fp ) 48 54 { … … 51 57 52 58 rc = fgetc(fp); 53 return rc; 54 } 59 SetFS(sel); 60 return rc; 61 } 62 55 63 int _LNK_CONV os2_fgetpos( FILE *fp, fpos_t *pos) 56 64 { … … 59 67 60 68 rc = fgetpos(fp,pos); 61 return rc; 62 } 69 SetFS(sel); 70 return rc; 71 } 72 63 73 char *_LNK_CONV os2_fgets( char *buf, int size, FILE *fp ) 64 74 { … … 67 77 68 78 rc = fgets(buf, size, fp); 69 return rc; 70 } 79 SetFS(sel); 80 return rc; 81 } 82 71 83 FILE * _LNK_CONV os2_fopen( const char *name, const char *type) 72 84 { … … 75 87 76 88 rc = fopen(name, type); 77 return rc; 78 } 89 SetFS(sel); 90 return rc; 91 } 92 79 93 int _LNK_CONV os2_fputc( int c, FILE *fp ) 80 94 { … … 83 97 84 98 rc = fputc(c, fp); 85 return rc; 86 } 99 SetFS(sel); 100 return rc; 101 } 102 87 103 int _LNK_CONV os2_fputs( const char *string, FILE *fp ) 88 104 { … … 91 107 92 108 rc = fputs(string, fp); 93 return rc; 94 } 109 SetFS(sel); 110 return rc; 111 } 112 95 113 size_t _LNK_CONV os2_fread( void *buf, size_t size, size_t elsize, FILE *fp ) 96 114 { … … 99 117 100 118 rc = fread(buf, size, elsize, fp); 101 return rc; 102 } 119 SetFS(sel); 120 return rc; 121 } 122 103 123 FILE * _LNK_CONV os2_freopen( const char *name, const char *type, FILE *fp ) 104 124 { … … 107 127 108 128 rc = freopen(name, type, fp); 109 return rc; 110 } 129 SetFS(sel); 130 return rc; 131 } 132 111 133 int _LNK_CONV os2_fseek( FILE *fp, long int pos, int type) 112 134 { … … 115 137 116 138 rc = fseek(fp, pos, type); 117 return rc; 118 } 139 SetFS(sel); 140 return rc; 141 } 142 119 143 int _LNK_CONV os2_fsetpos( FILE *fp, const fpos_t *pos) 120 144 { … … 123 147 124 148 rc = fsetpos(fp, pos); 125 return rc; 126 } 149 SetFS(sel); 150 return rc; 151 } 152 127 153 long int _LNK_CONV os2_ftell( FILE *fp ) 128 154 { … … 131 157 132 158 rc = ftell(fp); 133 return rc; 134 } 159 SetFS(sel); 160 return rc; 161 } 162 135 163 size_t _LNK_CONV os2_fwrite( const void *buf, size_t size, size_t elsize, FILE *fp ) 136 164 { … … 139 167 140 168 rc = fwrite(buf, size, elsize, fp); 141 return rc; 142 } 169 SetFS(sel); 170 return rc; 171 } 172 143 173 int _LNK_CONV os2_vfprintf( FILE *fp, const char *string, __va_list list ) 144 174 { … … 147 177 148 178 rc = vfprintf(fp, string, list); 149 return rc; 150 } 179 SetFS(sel); 180 return rc; 181 } 182 151 183 wint_t _LNK_CONV os2_fgetwc(FILE *fp) 152 184 { … … 155 187 156 188 rc = fgetwc(fp); 157 return rc; 158 } 189 SetFS(sel); 190 return rc; 191 } 192 159 193 wchar_t * _LNK_CONV os2_fgetws(wchar_t *buf, int size, FILE *fp) 160 194 { … … 163 197 164 198 rc = fgetws(buf, size, fp); 165 return rc; 166 } 199 SetFS(sel); 200 return rc; 201 } 202 167 203 wint_t _LNK_CONV os2_fputwc(wchar_t character, FILE *fp) 168 204 { … … 171 207 172 208 rc = fputwc(character, fp); 173 return rc; 174 } 209 SetFS(sel); 210 return rc; 211 } 212 175 213 int _LNK_CONV os2_fputws(const wchar_t *string, FILE *fp) 176 214 { … … 179 217 180 218 rc = fputws(string, fp); 219 SetFS(sel); 181 220 return rc; 182 221 } … … 188 227 189 228 rc = _fdopen(a, bla); 190 return rc; 191 } 192 229 SetFS(sel); 230 return rc; 231 } 232
Note:
See TracChangeset
for help on using the changeset viewer.