Lines Matching refs:time
150 Consequently, the signature of time(3), written as
152 time_t time(time_t *);
156 int32_t time(int32_t *);
160 int64_t time(int64_t *);
165 time weak alias for _time
170 time weak alias for _time
177 The header file <time.h> (src/include/time.h) declares
179 time_t time(time_t *) __RENAME(__time50);
181 so that compiling C programs that call time will yield objects that
187 defines `time' as a macro expanding to `_time':
189 #define time _time
191 The source file src/lib/libc/gen/time.c includes "namespace.h" and
192 <time.h> and defines `time' normally:
195 time(time_t *t)
199 Macro expansion replaces `time' by `_time', but the
200 `__RENAME(__time50)' directive on the declaration <time.h> (to which
204 The header file <compat/include/time.h>
205 (src/lib/libc/compat/include/time.h) declares
207 int32_t time(int32_t *);
210 "namespace.h", <compat/include/time.h>, and <time.h>, but suppresses
211 the normal declaration of `time' in <time.h> by defining
212 __LIBC12_SOURCE__ and thus gets it from <compat/include/time.h>
213 instead. Then compat_time.c defines `time' normally:
216 time(int32_t *t)
220 Again, macro expansion replaces `time' by `_time', but since there
221 is no __RENAME directive in <compat/include/time.h>, the resulting
223 `#define time_t int32_t' and `#include "gen/time.c"' to get the same
224 text of the definition of time. The above definition is what we get
229 __weak_alias(time,_time)
231 to define `time' as an ELF weak symbol aliasing `_time'.
234 as NetBSD 5's libc for the symbols `time' and `_time', so that old