Changeset 9709 for trunk/src/odincrt/file.cpp
- Timestamp:
- Jan 22, 2003, 6:06:44 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/odincrt/file.cpp
r3164 r9709 1 /* $Id: file.cpp,v 1. 3 2000-03-19 11:04:17sandervl Exp $ */1 /* $Id: file.cpp,v 1.4 2003-01-22 17:06:42 sandervl Exp $ */ 2 2 /* 3 3 * Project Odin Software License can be found in LICENSE.TXT … … 8 8 * 9 9 */ 10 #define ORIGINAL_VAC_FUNCTIONS 10 11 #include <stdio.h> 11 12 #include <os2sel.h> 12 13 #include <wchar.h> 13 14 14 int _LNK_CONV os2_fclose( FILE *fp )15 int _LNK_CONV CRTWRAP(fclose)( FILE *fp ) 15 16 { 16 17 unsigned short sel = RestoreOS2FS(); … … 22 23 } 23 24 24 int _LNK_CONV os2_feof( FILE *fp )25 int _LNK_CONV CRTWRAP(feof)( FILE *fp ) 25 26 { 26 27 unsigned short sel = RestoreOS2FS(); … … 31 32 return rc; 32 33 } 33 int _LNK_CONV os2_ferror( FILE *fp )34 int _LNK_CONV CRTWRAP(ferror)( FILE *fp ) 34 35 { 35 36 unsigned short sel = RestoreOS2FS(); … … 41 42 } 42 43 43 int _LNK_CONV os2_fflush( FILE *fp )44 int _LNK_CONV CRTWRAP(fflush)( FILE *fp ) 44 45 { 45 46 unsigned short sel = RestoreOS2FS(); … … 51 52 } 52 53 53 int _LNK_CONV os2_fgetc( FILE *fp )54 int _LNK_CONV CRTWRAP(fgetc)( FILE *fp ) 54 55 { 55 56 unsigned short sel = RestoreOS2FS(); … … 61 62 } 62 63 63 int _LNK_CONV os2_fgetpos( FILE *fp, fpos_t *pos)64 int _LNK_CONV CRTWRAP(fgetpos)( FILE *fp, fpos_t *pos) 64 65 { 65 66 unsigned short sel = RestoreOS2FS(); … … 71 72 } 72 73 73 char *_LNK_CONV os2_fgets( char *buf, int size, FILE *fp )74 char *_LNK_CONV CRTWRAP(fgets)( char *buf, int size, FILE *fp ) 74 75 { 75 76 unsigned short sel = RestoreOS2FS(); … … 81 82 } 82 83 83 FILE * _LNK_CONV os2_fopen( const char *name, const char *type)84 FILE * _LNK_CONV CRTWRAP(fopen)( const char *name, const char *type) 84 85 { 85 86 unsigned short sel = RestoreOS2FS(); … … 91 92 } 92 93 93 int _LNK_CONV os2_fputc( int c, FILE *fp )94 int _LNK_CONV CRTWRAP(fputc)( int c, FILE *fp ) 94 95 { 95 96 unsigned short sel = RestoreOS2FS(); … … 101 102 } 102 103 103 int _LNK_CONV os2_fputs( const char *string, FILE *fp )104 int _LNK_CONV CRTWRAP(fputs)( const char *string, FILE *fp ) 104 105 { 105 106 unsigned short sel = RestoreOS2FS(); … … 111 112 } 112 113 113 size_t _LNK_CONV os2_fread( void *buf, size_t size, size_t elsize, FILE *fp )114 size_t _LNK_CONV CRTWRAP(fread)( void *buf, size_t size, size_t elsize, FILE *fp ) 114 115 { 115 116 unsigned short sel = RestoreOS2FS(); … … 121 122 } 122 123 123 FILE * _LNK_CONV os2_freopen( const char *name, const char *type, FILE *fp )124 FILE * _LNK_CONV CRTWRAP(freopen)( const char *name, const char *type, FILE *fp ) 124 125 { 125 126 unsigned short sel = RestoreOS2FS(); … … 131 132 } 132 133 133 int _LNK_CONV os2_fseek( FILE *fp, long int pos, int type)134 int _LNK_CONV CRTWRAP(fseek)( FILE *fp, long int pos, int type) 134 135 { 135 136 unsigned short sel = RestoreOS2FS(); … … 141 142 } 142 143 143 int _LNK_CONV os2_fsetpos( FILE *fp, const fpos_t *pos)144 int _LNK_CONV CRTWRAP(fsetpos)( FILE *fp, const fpos_t *pos) 144 145 { 145 146 unsigned short sel = RestoreOS2FS(); … … 151 152 } 152 153 153 long int _LNK_CONV os2_ftell( FILE *fp )154 long int _LNK_CONV CRTWRAP(ftell)( FILE *fp ) 154 155 { 155 156 unsigned short sel = RestoreOS2FS(); … … 161 162 } 162 163 163 size_t _LNK_CONV os2_fwrite( const void *buf, size_t size, size_t elsize, FILE *fp )164 size_t _LNK_CONV CRTWRAP(fwrite)( const void *buf, size_t size, size_t elsize, FILE *fp ) 164 165 { 165 166 unsigned short sel = RestoreOS2FS(); … … 171 172 } 172 173 173 int _LNK_CONV os2_vfprintf( FILE *fp, const char *string, __va_list list )174 int _LNK_CONV CRTWRAP(vfprintf)( FILE *fp, const char *string, __va_list list ) 174 175 { 175 176 unsigned short sel = RestoreOS2FS(); … … 181 182 } 182 183 183 wint_t _LNK_CONV os2_fgetwc(FILE *fp)184 wint_t _LNK_CONV CRTWRAP(fgetwc)(FILE *fp) 184 185 { 185 186 unsigned short sel = RestoreOS2FS(); … … 191 192 } 192 193 193 wchar_t * _LNK_CONV os2_fgetws(wchar_t *buf, int size, FILE *fp)194 wchar_t * _LNK_CONV CRTWRAP(fgetws)(wchar_t *buf, int size, FILE *fp) 194 195 { 195 196 unsigned short sel = RestoreOS2FS(); … … 201 202 } 202 203 203 wint_t _LNK_CONV os2_fputwc(wchar_t character, FILE *fp)204 wint_t _LNK_CONV CRTWRAP(fputwc)(wchar_t character, FILE *fp) 204 205 { 205 206 unsigned short sel = RestoreOS2FS(); … … 211 212 } 212 213 213 int _LNK_CONV os2_fputws(const wchar_t *string, FILE *fp)214 int _LNK_CONV CRTWRAP(fputws)(const wchar_t *string, FILE *fp) 214 215 { 215 216 unsigned short sel = RestoreOS2FS(); … … 221 222 } 222 223 223 FILE * _LNK_CONV os2_fdopen( int a, const char *bla)224 FILE * _LNK_CONV CRTWRAP(fdopen)( int a, const char *bla) 224 225 { 225 226 unsigned short sel = RestoreOS2FS();
Note:
See TracChangeset
for help on using the changeset viewer.