Changeset 221 for branches/samba-3.3.x/source/lib/time.c
- Timestamp:
- May 24, 2009, 7:17:10 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/lib/time.c
r206 r221 904 904 ret.tv_nsec = pst->st_atimensec; 905 905 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; 906 918 #else 907 919 #error CONFIGURE_ERROR_IN_DETECTING_TIMESPEC_IN_STAT … … 920 932 #elif defined(HAVE_STAT_ST_ATIMENSEC) 921 933 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; 923 943 #else 924 944 #error CONFIGURE_ERROR_IN_DETECTING_TIMESPEC_IN_STAT … … 944 964 ret.tv_nsec = pst->st_mtimensec; 945 965 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; 946 978 #else 947 979 #error CONFIGURE_ERROR_IN_DETECTING_TIMESPEC_IN_STAT … … 960 992 #elif defined(HAVE_STAT_ST_MTIMENSEC) 961 993 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; 963 1003 #else 964 1004 #error CONFIGURE_ERROR_IN_DETECTING_TIMESPEC_IN_STAT … … 984 1024 ret.tv_nsec = pst->st_ctimensec; 985 1025 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; 986 1038 #else 987 1039 #error CONFIGURE_ERROR_IN_DETECTING_TIMESPEC_IN_STAT … … 1000 1052 #elif defined(HAVE_STAT_ST_CTIMENSEC) 1001 1053 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; 1003 1063 #else 1004 1064 #error CONFIGURE_ERROR_IN_DETECTING_TIMESPEC_IN_STAT
Note:
See TracChangeset
for help on using the changeset viewer.