This is the mail archive of the
mailing list for the GCC project.
Re: [patch,fortran] Fix corner case where consecutive calls to date_and_time can return times out of sequence (PR30015)
- From: Thomas Koenig <Thomas dot Koenig at online dot de>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, "'fortran at gcc dot gnu dot org'" <fortran at gcc dot gnu dot org>
- Date: Sat, 9 Dec 2006 22:33:53 +0100
- Subject: Re: [patch,fortran] Fix corner case where consecutive calls to date_and_time can return times out of sequence (PR30015)
- References: <456DE55F.email@example.com> <firstname.lastname@example.org>
On Mon, Dec 04, 2006 at 09:44:01PM +0100, Tobias Burnus wrote:
> 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?