This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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: 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


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