From: ts Date: 2001-09-03T00:16:35+09:00 Subject: [ruby-talk:20706] Re: Do we about sub-second [amc]time on files? >>>>> "B" == Brian F Feldman writes: B> That's strange.... well, I got rid of the symlink and just copied it there B> now, so it should work. It work now, thanks B> Hm, your system has timespec but not these macros? Okay, I updated the B> patch to account for that. pigeon% more /usr/include/sys/time.h [...] #ifdef __USE_GNU /* Macros for converting between `struct timeval' and `struct timespec '. */ # define TIMEVAL_TO_TIMESPEC(tv, ts) { \ (ts)->tv_sec = (tv)->tv_sec; \ (ts)->tv_nsec = (tv)->tv_usec * 1000; \ } # define TIMESPEC_TO_TIMEVAL(tv, ts) { \ (tv)->tv_sec = (ts)->tv_sec; \ (tv)->tv_usec = (ts)->tv_nsec / 1000; \ } #endif [...] pigeon% moulon% find /usr/include -name '*.h' -exec grep TIMESPEC_TO_TIMEVAL {} \; -print moulon% moulon% uname -a SunOS moulon 5.7 Generic_106541-02 sun4u sparc moulon% Guy Decoux