[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Why time instead of gettimeofday?
- From: ramsdell@... (John D. Ramsdell)
- Date: 08 Apr 2006 16:19:02 -0400
You were right. My original bug report was misdirected. The lack of
time(2) being fixed by a newlib maintainer.
John
Jeff Johnston <jjohnstn@redhat.com> writes:
> Hmm, the libc/time/time.c code checks for the existence of
> HAVE_GETTIMEOFDAY flag and if not present, it doesn't compile the
> entire time function. The time function is ANSI and ifdefing it out
> is wrong. It also doesn't make sense to check for the syscall before
> calling it as it is one of the basic syscalls (stubbed in libnosys to
> return -1). I will fix this. In your case, you will see time() return
> -1 when libnosys provides the syscall.
>
> -- Jeff J.