This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: time(2) missing for target i386-elf (corrected)
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.
Thank you.
> In your case, you will see time() return -1 when libnosys provides
> the syscall.
I understand. To be expected.
John