Changeset 2120


Ignore:
Timestamp:
Jul 1, 2005, 1:23:09 AM (20 years ago)
Author:
bird
Message:

o Added fwide() (dummy until LIBC07).
o Renamed struct _FILE to struct sFILE to match BSD.

Location:
trunk/src/emx
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/ChangeLog.LIBC

    • Property cvs2svn:cvs-rev changed from 1.76 to 1.77
    r2119 r2120  
    11/* $Id$ */
     2
     32005-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.
    27
    382005-06-29: knut st. osmundsen <bird-gccos2-spam@anduin.net>
  • trunk/src/emx/include/emx/io.h

    • Property cvs2svn:cvs-rev changed from 1.16 to 1.17
    r2119 r2120  
    176176    struct streamvec *pPrev;
    177177    /** Array of file stream structure. */
    178     struct _FILE     *aFiles;
     178    struct __sFILE     *aFiles;
    179179    /** Pointer to the next entry in the list */
    180180    struct streamvec *pNext;
     
    212212#if defined (__FILE_FSEM_DECLARED)
    213213
    214 int __stream_abort(struct _FILE *f, const char *pszMsg);
    215 
    216 static int __inline__ stream_validate(struct _FILE *stream)
     214int __stream_abort(struct __sFILE *f, const char *pszMsg);
     215
     216static int __inline__ stream_validate(struct __sFILE *stream)
    217217{
    218218    if (stream->__uVersion != _FILE_STDIO_VERSION)
     
    224224}
    225225
    226 static int __inline__ stream_lock(struct _FILE *stream)
     226static int __inline__ stream_lock(struct __sFILE *stream)
    227227{
    228228    if (!stream_validate(stream))
     
    243243}
    244244
    245 static int __inline__ stream_trylock(struct _FILE *stream)
     245static int __inline__ stream_trylock(struct __sFILE *stream)
    246246{
    247247    if (!stream_validate(stream))
     
    262262}
    263263
    264 static int __inline__ stream_unlock(struct _FILE *stream)
     264static int __inline__ stream_unlock(struct __sFILE *stream)
    265265{
    266266    if (!stream_validate(stream))
     
    498498
    499499
    500 int _endbuf1 (struct _FILE *);
    501 void _fbuf (struct _FILE *);
     500int _endbuf1 (struct __sFILE *);
     501void _fbuf (struct __sFILE *);
    502502#define _fd_flags(a)        please do not use this use this! ##a
    503503#define _fd_init(a)         please do not use this use this! ##a
    504504#define _fd_lookahead(a)    please do not use this use this! ##a
    505 struct _FILE *_openstream (struct _FILE *, __const__ char *, __const__ char *,
     505struct __sFILE *_openstream (struct __sFILE *, __const__ char *, __const__ char *,
    506506    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 *);
     507int _flushstream (struct __sFILE *, int);
     508void _closestream (struct __sFILE *);
     509int _fseek_unlocked (struct __sFILE *, off_t, int);
     510off_t _ftello_unlocked (struct __sFILE *);
     511int _input (struct __sFILE *, __const__ char *, char *);
     512struct __sFILE *_newstream (void);
     513int _output (struct __sFILE *, __const__ char *, char *);
    514514int _stream_read (int, void *, size_t);
    515515int _stream_write (int, __const__ void *, size_t);
    516 int _tmpbuf1 (struct _FILE *, void *);
     516int _tmpbuf1 (struct __sFILE *, void *);
    517517int _trslash (__const__ char *, size_t, int);
    518 int _ungetc_nolock (int, struct _FILE *);
     518int _ungetc_nolock (int, struct __sFILE *);
    519519int _vsopen (__const__ char *, int, int, char *);
    520520
  • trunk/src/emx/include/stdio.h

    • Property cvs2svn:cvs-rev changed from 1.17 to 1.18
    r2119 r2120  
    178178#define _FILE_T
    179179#define _FILE_MEMBERS_HAVE_UNDERSCORE
    180 #define _FILE_STDIO_VERSION     (0x06000000 | sizeof(struct _FILE))
    181 typedef struct _FILE
     180#define _FILE_STDIO_VERSION     (0x06000000 | sizeof(struct __sFILE))
     181typedef struct __sFILE
    182182{
    183183    unsigned __uVersion;
     
    194194    unsigned char _ungetc_count;
    195195    short  _mbstate;
    196     int    (*_flush)(struct _FILE *, int);
     196    int    (*_flush)(struct __sFILE *, int);
    197197
    198198    /** The Mutex Semaphore. */
  • trunk/src/emx/include/sys/video.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r2119 r2120  
    6868#define V_SCROLL_CLEAR 4
    6969
    70 struct _FILE;
     70struct __sFILE;
    7171
    7272void v_attrib (int a);
     
    7777void v_delline (int count);
    7878void v_dimen (int *width, int *height);
    79 int v_fclose (struct _FILE *stream);
    80 struct _FILE *v_fopen (void);
     79int v_fclose (struct __sFILE *stream);
     80struct __sFILE *v_fopen (void);
    8181int v_getattr (void);
    8282void v_getctype (int *start, int *end);
  • trunk/src/emx/include/sys/winmgr.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r2119 r2120  
    5454#endif
    5555
    56 struct _FILE;
     56struct __sFILE;
    5757
    5858typedef struct _wm_window *wm_handle;
     
    117117#endif
    118118
    119 int wm_fclose (struct _FILE *stream);
    120 struct _FILE *wm_fopen (wm_handle wh);
     119int wm_fclose (struct __sFILE *stream);
     120struct __sFILE *wm_fopen (wm_handle wh);
    121121
    122122#if defined (__GNUC__)
  • trunk/src/emx/include/wchar.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r2119 r2120  
    110110#endif
    111111
    112 /** @todo struct __sFILE;  */
     112struct __sFILE;
    113113struct tm;
    114114
     
    120120/** @todo wint_t        fputwc(wchar_t, struct __sFILE *); */
    121121/** @todo int   fputws(const wchar_t * __restrict, struct __sFILE * __restrict); */
    122 /** @todo int   fwide(struct __sFILE *, int); */
     122int     fwide(struct __sFILE *, int);
    123123/** @todo int   fwprintf(struct __sFILE * __restrict, const wchar_t * __restrict, ...); */
    124124/** @todo int   fwscanf(struct __sFILE * __restrict, const wchar_t * __restrict, ...); */
  • trunk/src/emx/src/lib/app/stdio.c

    • Property cvs2svn:cvs-rev changed from 1.11 to 1.12
    r2119 r2120  
    5757{
    5858    LIBCLOG_ENTER("\n");
    59     struct _FILE       *pFile;
     59    FILE               *pFile;
    6060    int                 i;
    6161    static char         fInited = 0;
  • trunk/src/emx/src/lib/io/_newstre.c

    • Property cvs2svn:cvs-rev changed from 1.10 to 1.11
    r2119 r2120  
    5454     */
    5555    pSV = _hcalloc(1, sizeof(*pSV) + 15
    56                    + INC * sizeof(struct _FILE)
     56                   + INC * sizeof(FILE)
    5757                   + 15
    5858                   );
    5959    if (pSV)
    6060    {
    61         struct _FILE      *pFile;
     61        FILE *pFile;
    6262
    6363        /*
     
    6565         * Remember everything is ZEROed by calloc()!
    6666         */
    67         pSV->aFiles = pFile = (struct _FILE *)ALIGN(pSV + 1, 16);
     67        pSV->aFiles = pFile = (FILE *)ALIGN(pSV + 1, 16);
    6868        pSV->aFiles         = pFile;
    6969        pSV->cFiles         = INC;
  • trunk/src/emx/src/lib/io/ungetc.c

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r2119 r2120  
    1313/* The implementation of ungetc() has been changed in emx 0.9a fix04
    1414   to fix bugs.  The new implementation adds the `_ungetc_count' field
    15    to `struct _FILE'.  Unfortunately, the new implementation must
     15   to `struct __sFILE'.  Unfortunately, the new implementation must
    1616   still work with the old getc().  Otherwise, old programs using the
    1717   new dynamic library, and old modules (compiled with the inline
  • trunk/src/emx/src/lib/libc.def

    • Property cvs2svn:cvs-rev changed from 1.119 to 1.120
    r2119 r2120  
    17461746    "__std_fgets_unlocked" @1747
    17471747    "__std_gets_unlocked" @1748
     1748    "__std_fwide" @1749
Note: See TracChangeset for help on using the changeset viewer.