From: Dave Thomas Date: 2001-05-19T12:02:57+09:00 Subject: [ruby-talk:15387] Re: Bug in time.c (was Time.times problems) matz@zetabits.com (Yukihiro Matsumoto) writes: > |I think you've found a bug. > > Hmm, Linux man page times(2) says: > > On error, (clock_t) -1 is returned, and errno is set > appropriately. > > whereas for time(2) > > On success, the value of time in seconds since the Epoch > is returned. On error, ((time_t)-1) is returned, and > errno is set appropriately. That's strange. On both my boxes, the man page doesn't mention an error for either function. However, if the buffer address is bad, they do indeed return EFAULT. So I retract the bug in Ruby, and claim a bug in my man pages :) Dave