[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Why time instead of gettimeofday?
- From: ramsdell@... (John D. Ramsdell)
- Date: 07 Apr 2006 07:20:50 -0400
I built a cross-compiler using binutils, gcc, and newlib
<http://sources.redhat.com/newlib/>, and then used it to compile the
lua program. The program fails to link because it refers to the
time(2) library call. This call is obsoleted by gettimeofday(2). Why
not use it instead of time(2)? Are there environments in which time
is available, but not gettimeofday?
John