Annotation of gforth/arch/sharc/systypes.h, revision 1.1

1.1     ! pazsan      1: /* types needed for a standalone system */
        !             2: 
        !             3: typedef Cell time_t;
        !             4: 
        !             5: #define SHARC
        !             6: 
        !             7: #ifdef __DOUBLES_ARE_FLOATS__
        !             8: #define double float
        !             9: #endif
        !            10: 
        !            11: struct timeval {
        !            12:   Cell tv_sec;        /* seconds */
        !            13:   Cell tv_usec;  /* microseconds */
        !            14: };
        !            15: 
        !            16: struct timezone {
        !            17:   Cell tz_minuteswest;
        !            18:   /* minutes west of Greenwich */
        !            19:   Cell tz_dsttime;
        !            20:   /* type of dst correction */
        !            21: };
        !            22: 
        !            23: struct tm
        !            24: {
        !            25:   Cell    tm_sec;         /* seconds */
        !            26:   Cell    tm_min;         /* minutes */
        !            27:   Cell    tm_hour;        /* hours */
        !            28:   Cell    tm_mday;        /* day of the month */
        !            29:   Cell    tm_mon;         /* month */
        !            30:   Cell    tm_year;        /* year */
        !            31:   Cell    tm_wday;        /* day of the week */
        !            32:   Cell    tm_yday;        /* day in the year */
        !            33:   Cell    tm_isdst;       /* daylight saving time */
        !            34: };
        !            35: 
        !            36: struct stat {
        !            37:   Cell st_inode;
        !            38:   time_t st_time;
        !            39:   Cell st_size;
        !            40: };
        !            41: 
        !            42: #define F_OK 0
        !            43: #define W_OK 2
        !            44: #define R_OK 4
        !            45: 
        !            46: #include <io.h>
        !            47: #include <fcntl.h>
        !            48: 
        !            49: double atanh(double r1);
        !            50: double asinh(double r1);
        !            51: double acosh(double r1);
        !            52: char* ecvt(double x, int len, int* exp, int* sign);
        !            53: char *strsignal(int sig);
        !            54: 
        !            55: #define AUTO_INCREMENT 1
        !            56: #undef HAVE_RINT
        !            57: #undef HAVE_ECVT
        !            58: #undef HAVE_SYS_MMAN_H
        !            59: #undef HAVE_MMAP
        !            60: #undef HAVE_GETPAGESIZE
        !            61: #undef HAVE_SYSCONF
        !            62: 
        !            63: #define PAGESIZE 0x1000
        !            64: 
        !            65: #define perror(string) fprintf(stderr, "%s: error %d\n", string, errno)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>