This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch,fortran] Fix corner case where consecutive calls to date_and_time can return times out of sequence (PR30015)


On Mon, Dec 04, 2006 at 09:44:01PM +0100, Tobias Burnus wrote:
> *ping*
> 
> This patch removes one corner case in favour of another occurring corner
> case & reduces the change that the corner case occurs.

Sorry, I am still confused (not even after reading the thread).

If I understand the system calls correctly, gettimeofday() returns
both the seconds and the milliseconds since epoch.  That's all we
need to fill out the fields of DATE_AND_TIME

If gettimeofday succeeds, why is there a need to call time() at all?

	Thomas


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]