Ignore:
Timestamp:
Apr 10, 2003, 12:28:07 PM (22 years ago)
Author:
sandervl
Message:

PF: MSVCRT update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/msvcrt/emxheader.h

    r9633 r10005  
    22#define _EMXSTDDEF_H
    33
    4 #if !defined (_SIZE_T)
    5 #define _SIZE_T
    6 typedef unsigned long size_t;
    7 #endif
    8 
    9    #ifndef __time_t
    10       #define __time_t
    11       typedef long time_t;
    12    #endif
    13 
    14    #ifndef __tm_t
    15       #define __tm_t
    16       struct tm
    17          {
    18          int tm_sec;      /* seconds after the minute [0-61]        */
    19          int tm_min;      /* minutes after the hour [0-59]          */
    20          int tm_hour;     /* hours since midnight [0-23]            */
    21          int tm_mday;     /* day of the month [1-31]                */
    22          int tm_mon;      /* months since January [0-11]            */
    23          int tm_year;     /* years since 1900                       */
    24          int tm_wday;     /* days since Sunday [0-6]                */
    25          int tm_yday;     /* days since January 1 [0-365]           */
    26          int tm_isdst;    /* Daylight Saving Time flag              */
    27       };
    28    #endif
    29 
    30    typedef struct _div_t
    31        {
    32        int quot;        /* quotient of integer division       */
    33        int rem;         /* remainder of integer division      */
    34        } div_t;
    35 
    36    typedef struct _ldiv_t
    37        {
    38        long int quot;   /* quotient of long integer division  */
    39        long int rem;    /* remainder of long integer division */
    40        } ldiv_t;
    41 
    42     div_t    div( int, int );
    43     ldiv_t   ldiv( long int, long int );
    44 
    45 #define STDIN_FILENO  0
    46 #define STDOUT_FILENO 1
    47 #define STDERR_FILENO 2
    48 
    49 /* more file._flag flags, but these conflict with Unix */
    50 #define _IOFBF    0x0000
    51 #define _IONBF    0x0004
    52 #define _IOLBF    0x0040
    53 
    54 #define EOF       (-1)
    55 #define FILENAME_MAX 260
    56 #define FOPEN_MAX 20
    57 #define L_tmpnam  260
    58 
    59 #define BUFSIZ    512
    60 
    61 #ifndef SEEK_SET
    62 #define SEEK_SET  0
    63 #define SEEK_CUR  1
    64 #define SEEK_END  2
    65 #endif
    664
    675#define __ASM_NAME(name) "_" name
Note: See TracChangeset for help on using the changeset viewer.