(linenum→info "unix/slp.c:2238")

ruby/1.9.0/missing/x68.c

    1: /* x68 compatibility functions -- follows Ruby's license */
    2: 
    3: #include "ruby/config.h"
    4: 
    5: #if !HAVE_SELECT
    6: #include "x68/select.c"
    7: #endif
    8: #if MISSING__DTOS18
    9: #include "x68/_dtos18.c"
   10: #endif
   11: #if MISSING_FCONVERT
   12: #include "x68/_round.c"
   13: #include "x68/fconvert.c"
   14: #endif
   15: 
   16: /* missing some basic syscalls */
   17: int
   18: link(const char *src, const char *dst)
   19: {
   20:     return symlink(src, dst);
   21: }
   22: 
   23: #ifndef HAVE_GETTIMEOFDAY
   24: #include <time.h>
   25: #include <sys/time.h>
   26: 
   27: struct timezone {
   28:     int tz_minuteswest;
   29:     int tz_dsttime;
   30: };
   31: 
   32: int
   33: gettimeofday(struct timeval *tv, struct timezone *tz)
   34: {
   35:     tv->tv_sec = (long)time((time_t*)0);
   36:     tv->tv_usec = 0;
   37: 
   38:     return 0;
   39: }
   40: #endif
Syntax (Markdown)