This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
time(2) missing for target i386-elf
- From: ramsdell at mitre dot org (John D. Ramsdell)
- To: newlib at sourceware dot org
- Cc: ramsdell at mitre dot org
- Date: 07 Apr 2006 16:08:40 -0400
- Subject: time(2) missing for target i386-elf
I used the latest newlib along with binutils and gcc to build a
cross-compiler with a target i386-elf. This compiler was used Lua
<http://www.lua.org>, with the aim of placing it inside an operating
with consists only of a small kernel and a Lua interpreter. When I
linked Lua with libm, libc, and libnosys, there was still one
undefined symbol, time. The Lua authors claim time(2) is part of ANSI
C, however my GNU/Linux manual page says it conforms to SVr4, SVID,
POSIX, X/OPEN, BSD 4.3. In any event, is there a reason time(2) is
not part of the newlib C library? If the reason is simply no one has
submitted a patch that adds this functionality, I'll gladly supply the
code.
John