Ignore:
Timestamp:
May 24, 2009, 7:17:10 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update Samba 3.3 to 3.3.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/source/lib/time.c

    r206 r221  
    904904        ret.tv_nsec = pst->st_atimensec;
    905905        return ret;
     906#elif defined(HAVE_STAT_ST_ATIME_N)
     907        struct timespec ret;
     908        ret.tv_sec = pst->st_atime;
     909        ret.tv_nsec = pst->st_atime_n;
     910        return ret;
     911#elif defined(HAVE_STAT_ST_UATIME)
     912        struct timespec ret;
     913        ret.tv_sec = pst->st_atime;
     914        ret.tv_nsec = pst->st_uatime * 1000;
     915        return ret;
     916#elif defined(HAVE_STAT_ST_ATIMESPEC)
     917        return pst->st_atimespec;
    906918#else
    907919#error  CONFIGURE_ERROR_IN_DETECTING_TIMESPEC_IN_STAT
     
    920932#elif defined(HAVE_STAT_ST_ATIMENSEC)
    921933        pst->st_atime = ts.tv_sec;
    922         pst->st_atimensec = ts.tv_nsec
     934        pst->st_atimensec = ts.tv_nsec;
     935#elif defined(HAVE_STAT_ST_ATIME_N)
     936        pst->st_atime = ts.tv_sec;
     937        pst->st_atime_n = ts.tv_nsec;
     938#elif defined(HAVE_STAT_ST_UATIME)
     939        pst->st_atime = ts.tv_sec;
     940        pst->st_uatime = ts.tv_nsec / 1000;
     941#elif defined(HAVE_STAT_ST_ATIMESPEC)
     942        pst->st_atimespec = ts;
    923943#else
    924944#error  CONFIGURE_ERROR_IN_DETECTING_TIMESPEC_IN_STAT
     
    944964        ret.tv_nsec = pst->st_mtimensec;
    945965        return ret;
     966#elif defined(HAVE_STAT_ST_MTIME_N)
     967        struct timespec ret;
     968        ret.tv_sec = pst->st_mtime;
     969        ret.tv_nsec = pst->st_mtime_n;
     970        return ret;
     971#elif defined(HAVE_STAT_ST_UMTIME)
     972        struct timespec ret;
     973        ret.tv_sec = pst->st_mtime;
     974        ret.tv_nsec = pst->st_umtime * 1000;
     975        return ret;
     976#elif defined(HAVE_STAT_ST_MTIMESPEC)
     977        return pst->st_mtimespec;
    946978#else
    947979#error  CONFIGURE_ERROR_IN_DETECTING_TIMESPEC_IN_STAT
     
    960992#elif defined(HAVE_STAT_ST_MTIMENSEC)
    961993        pst->st_mtime = ts.tv_sec;
    962         pst->st_mtimensec = ts.tv_nsec
     994        pst->st_mtimensec = ts.tv_nsec;
     995#elif defined(HAVE_STAT_ST_MTIME_N)
     996        pst->st_mtime = ts.tv_sec;
     997        pst->st_mtime_n = ts.tv_nsec;
     998#elif defined(HAVE_STAT_ST_UMTIME)
     999        pst->st_mtime = ts.tv_sec;
     1000        pst->st_umtime = ts.tv_nsec / 1000;
     1001#elif defined(HAVE_STAT_ST_MTIMESPEC)
     1002        pst->st_mtimespec = ts;
    9631003#else
    9641004#error  CONFIGURE_ERROR_IN_DETECTING_TIMESPEC_IN_STAT
     
    9841024        ret.tv_nsec = pst->st_ctimensec;
    9851025        return ret;
     1026#elif defined(HAVE_STAT_ST_CTIME_N)
     1027        struct timespec ret;
     1028        ret.tv_sec = pst->st_ctime;
     1029        ret.tv_nsec = pst->st_ctime_n;
     1030        return ret;
     1031#elif defined(HAVE_STAT_ST_UCTIME)
     1032        struct timespec ret;
     1033        ret.tv_sec = pst->st_ctime;
     1034        ret.tv_nsec = pst->st_uctime * 1000;
     1035        return ret;
     1036#elif defined(HAVE_STAT_ST_CTIMESPEC)
     1037        return pst->st_ctimespec;
    9861038#else
    9871039#error  CONFIGURE_ERROR_IN_DETECTING_TIMESPEC_IN_STAT
     
    10001052#elif defined(HAVE_STAT_ST_CTIMENSEC)
    10011053        pst->st_ctime = ts.tv_sec;
    1002         pst->st_ctimensec = ts.tv_nsec
     1054        pst->st_ctimensec = ts.tv_nsec;
     1055#elif defined(HAVE_STAT_ST_CTIME_N)
     1056        pst->st_ctime = ts.tv_sec;
     1057        pst->st_ctime_n = ts.tv_nsec;
     1058#elif defined(HAVE_STAT_ST_UCTIME)
     1059        pst->st_ctime = ts.tv_sec;
     1060        pst->st_uctime = ts.tv_nsec / 1000;
     1061#elif defined(HAVE_STAT_ST_CTIMESPEC)
     1062        pst->st_ctimespec = ts;
    10031063#else
    10041064#error  CONFIGURE_ERROR_IN_DETECTING_TIMESPEC_IN_STAT
Note: See TracChangeset for help on using the changeset viewer.