Changeset 2120
- Timestamp:
- Jul 1, 2005, 1:23:09 AM (20 years ago)
- Location:
- trunk/src/emx
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/ChangeLog.LIBC
-
Property cvs2svn:cvs-rev
changed from
1.76
to1.77
r2119 r2120 1 1 /* $Id$ */ 2 3 2005-06-30: knut st. osmundsen <bird-gccos2-spam@anduin.net> 4 - libc: 5 o Added fwide() (dummy until LIBC07). 6 o Renamed struct _FILE to struct __sFILE to match BSD. 2 7 3 8 2005-06-29: knut st. osmundsen <bird-gccos2-spam@anduin.net> -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/emx/io.h
-
Property cvs2svn:cvs-rev
changed from
1.16
to1.17
r2119 r2120 176 176 struct streamvec *pPrev; 177 177 /** Array of file stream structure. */ 178 struct _ FILE *aFiles;178 struct __sFILE *aFiles; 179 179 /** Pointer to the next entry in the list */ 180 180 struct streamvec *pNext; … … 212 212 #if defined (__FILE_FSEM_DECLARED) 213 213 214 int __stream_abort(struct _ FILE *f, const char *pszMsg);215 216 static int __inline__ stream_validate(struct _ FILE *stream)214 int __stream_abort(struct __sFILE *f, const char *pszMsg); 215 216 static int __inline__ stream_validate(struct __sFILE *stream) 217 217 { 218 218 if (stream->__uVersion != _FILE_STDIO_VERSION) … … 224 224 } 225 225 226 static int __inline__ stream_lock(struct _ FILE *stream)226 static int __inline__ stream_lock(struct __sFILE *stream) 227 227 { 228 228 if (!stream_validate(stream)) … … 243 243 } 244 244 245 static int __inline__ stream_trylock(struct _ FILE *stream)245 static int __inline__ stream_trylock(struct __sFILE *stream) 246 246 { 247 247 if (!stream_validate(stream)) … … 262 262 } 263 263 264 static int __inline__ stream_unlock(struct _ FILE *stream)264 static int __inline__ stream_unlock(struct __sFILE *stream) 265 265 { 266 266 if (!stream_validate(stream)) … … 498 498 499 499 500 int _endbuf1 (struct _ FILE *);501 void _fbuf (struct _ FILE *);500 int _endbuf1 (struct __sFILE *); 501 void _fbuf (struct __sFILE *); 502 502 #define _fd_flags(a) please do not use this use this! ##a 503 503 #define _fd_init(a) please do not use this use this! ##a 504 504 #define _fd_lookahead(a) please do not use this use this! ##a 505 struct _ FILE *_openstream (struct _FILE *, __const__ char *, __const__ char *,505 struct __sFILE *_openstream (struct __sFILE *, __const__ char *, __const__ char *, 506 506 int, int); 507 int _flushstream (struct _ FILE *, int);508 void _closestream (struct _ FILE *);509 int _fseek_unlocked (struct _ FILE *, off_t, int);510 off_t _ftello_unlocked (struct _ FILE *);511 int _input (struct _ FILE *, __const__ char *, char *);512 struct _ FILE *_newstream (void);513 int _output (struct _ FILE *, __const__ char *, char *);507 int _flushstream (struct __sFILE *, int); 508 void _closestream (struct __sFILE *); 509 int _fseek_unlocked (struct __sFILE *, off_t, int); 510 off_t _ftello_unlocked (struct __sFILE *); 511 int _input (struct __sFILE *, __const__ char *, char *); 512 struct __sFILE *_newstream (void); 513 int _output (struct __sFILE *, __const__ char *, char *); 514 514 int _stream_read (int, void *, size_t); 515 515 int _stream_write (int, __const__ void *, size_t); 516 int _tmpbuf1 (struct _ FILE *, void *);516 int _tmpbuf1 (struct __sFILE *, void *); 517 517 int _trslash (__const__ char *, size_t, int); 518 int _ungetc_nolock (int, struct _ FILE *);518 int _ungetc_nolock (int, struct __sFILE *); 519 519 int _vsopen (__const__ char *, int, int, char *); 520 520 -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/stdio.h
-
Property cvs2svn:cvs-rev
changed from
1.17
to1.18
r2119 r2120 178 178 #define _FILE_T 179 179 #define _FILE_MEMBERS_HAVE_UNDERSCORE 180 #define _FILE_STDIO_VERSION (0x06000000 | sizeof(struct _ FILE))181 typedef struct _ FILE180 #define _FILE_STDIO_VERSION (0x06000000 | sizeof(struct __sFILE)) 181 typedef struct __sFILE 182 182 { 183 183 unsigned __uVersion; … … 194 194 unsigned char _ungetc_count; 195 195 short _mbstate; 196 int (*_flush)(struct _ FILE *, int);196 int (*_flush)(struct __sFILE *, int); 197 197 198 198 /** The Mutex Semaphore. */ -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/sys/video.h
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r2119 r2120 68 68 #define V_SCROLL_CLEAR 4 69 69 70 struct _ FILE;70 struct __sFILE; 71 71 72 72 void v_attrib (int a); … … 77 77 void v_delline (int count); 78 78 void v_dimen (int *width, int *height); 79 int v_fclose (struct _ FILE *stream);80 struct _ FILE *v_fopen (void);79 int v_fclose (struct __sFILE *stream); 80 struct __sFILE *v_fopen (void); 81 81 int v_getattr (void); 82 82 void v_getctype (int *start, int *end); -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/sys/winmgr.h
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r2119 r2120 54 54 #endif 55 55 56 struct _ FILE;56 struct __sFILE; 57 57 58 58 typedef struct _wm_window *wm_handle; … … 117 117 #endif 118 118 119 int wm_fclose (struct _ FILE *stream);120 struct _ FILE *wm_fopen (wm_handle wh);119 int wm_fclose (struct __sFILE *stream); 120 struct __sFILE *wm_fopen (wm_handle wh); 121 121 122 122 #if defined (__GNUC__) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/include/wchar.h
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r2119 r2120 110 110 #endif 111 111 112 /** @todo struct __sFILE; */ 112 struct __sFILE; 113 113 struct tm; 114 114 … … 120 120 /** @todo wint_t fputwc(wchar_t, struct __sFILE *); */ 121 121 /** @todo int fputws(const wchar_t * __restrict, struct __sFILE * __restrict); */ 122 /** @todo int fwide(struct __sFILE *, int); */ 122 int fwide(struct __sFILE *, int); 123 123 /** @todo int fwprintf(struct __sFILE * __restrict, const wchar_t * __restrict, ...); */ 124 124 /** @todo int fwscanf(struct __sFILE * __restrict, const wchar_t * __restrict, ...); */ -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/app/stdio.c
-
Property cvs2svn:cvs-rev
changed from
1.11
to1.12
r2119 r2120 57 57 { 58 58 LIBCLOG_ENTER("\n"); 59 struct _FILE*pFile;59 FILE *pFile; 60 60 int i; 61 61 static char fInited = 0; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/_newstre.c
-
Property cvs2svn:cvs-rev
changed from
1.10
to1.11
r2119 r2120 54 54 */ 55 55 pSV = _hcalloc(1, sizeof(*pSV) + 15 56 + INC * sizeof( struct _FILE)56 + INC * sizeof(FILE) 57 57 + 15 58 58 ); 59 59 if (pSV) 60 60 { 61 struct _FILE*pFile;61 FILE *pFile; 62 62 63 63 /* … … 65 65 * Remember everything is ZEROed by calloc()! 66 66 */ 67 pSV->aFiles = pFile = ( struct _FILE*)ALIGN(pSV + 1, 16);67 pSV->aFiles = pFile = (FILE *)ALIGN(pSV + 1, 16); 68 68 pSV->aFiles = pFile; 69 69 pSV->cFiles = INC; -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/io/ungetc.c
-
Property cvs2svn:cvs-rev
changed from
1.4
to1.5
r2119 r2120 13 13 /* The implementation of ungetc() has been changed in emx 0.9a fix04 14 14 to fix bugs. The new implementation adds the `_ungetc_count' field 15 to `struct _ FILE'. Unfortunately, the new implementation must15 to `struct __sFILE'. Unfortunately, the new implementation must 16 16 still work with the old getc(). Otherwise, old programs using the 17 17 new dynamic library, and old modules (compiled with the inline -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/libc.def
-
Property cvs2svn:cvs-rev
changed from
1.119
to1.120
r2119 r2120 1746 1746 "__std_fgets_unlocked" @1747 1747 1747 "__std_gets_unlocked" @1748 1748 "__std_fwide" @1749 -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.