This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


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

Re: question about gettimeofday()?


On Fri, Nov 09, 2001 at 12:58:54AM -0800, li hui wrote:
> If I add net package to ecos ,can I use this function?
> if it does,please tell me the detail about configure
> ecos. 

The more portable option would be to use time() and strftime() which
are part of libc. No need to add all the extra stuff in the stack
which you don't need.

      Andrew


> --- Jesper Skov <jskov@redhat.com> wrote:
> > >>>>> "li" == li hui <lhbyron@yahoo.com> writes:
> > 
> > li> In my program ,I use function gettimeofday()
> > which is defined in
> > li> the sys/time.h.But It always note me undefined
> > reference to
> > li> gettimeofday when compiling.  please tell me how
> > can I enactive
> > li> this function.
> > 
> > You can't. The function is not defined in eCos. It's
> > in the header
> > file because that comes from the net stack - which
> > appears to provide
> > its own implementation. See
> > net/tcpip/current/tests/nc_test_master.c
> > 
> > Jesper
> > 
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Find a job, post your resume.
> http://careers.yahoo.com


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