This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
_gettimeofday is not implemented
- From: "Wilkes, John" <John dot Wilkes at amd dot com>
- To: "newlib at sourceware dot org" <newlib at sourceware dot org>
- Cc: "Wilkes, John" <John dot Wilkes at amd dot com>
- Date: Fri, 15 Jul 2016 17:02:29 +0000
- Subject: _gettimeofday is not implemented
- Authentication-results: sourceware.org; auth=none
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=John dot Wilkes at amd dot com;
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
I have a syscalls.c file with a _gettimeofday() function, and I expected this to be used instead of the one in libnosys, but it does not. I get a warning from the linker:
warning: _gettimeofday is not implemented and will always fail
If I remove "-llibnosys" I get an undefined symbol error:
undefined reference to `gettimeofday'
My syscalls.c file has read() and write(), and I get those instead of the libnosys versions. Why not _gettimeofday()?
Thanks,
John
--
John Wilkes | AMD Research | john.wilkes@amd.com | office: +1 425.586.6412 (x26412)