New module 'arg-nonnull'. Declare which arguments expect non-NULL values.
[gnulib.git] / modules / time
1 Description:
2 A more-standard <time.h>.
3
4 Files:
5 lib/time.in.h
6 m4/time_h.m4
7
8 Depends-on:
9 extensions
10 include_next
11 arg-nonnull
12 stddef
13
14 configure.ac:
15 gl_HEADER_TIME_H
16
17 Makefile.am:
18 BUILT_SOURCES += time.h
19
20 # We need the following in order to create <time.h> when the system
21 # doesn't have one that works with the given compiler.
22 time.h: time.in.h $(ARG_NONNULL_H)
23         $(AM_V_GEN)rm -f $@-t $@ && \
24         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
25           sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
26               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
27               -e 's|@NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \
28               -e 's|@REPLACE_LOCALTIME_R''@|$(REPLACE_LOCALTIME_R)|g' \
29               -e 's|@REPLACE_MKTIME''@|$(REPLACE_MKTIME)|g' \
30               -e 's|@REPLACE_NANOSLEEP''@|$(REPLACE_NANOSLEEP)|g' \
31               -e 's|@REPLACE_STRPTIME''@|$(REPLACE_STRPTIME)|g' \
32               -e 's|@REPLACE_TIMEGM''@|$(REPLACE_TIMEGM)|g' \
33               -e 's|@SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(SYS_TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
34               -e 's|@TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
35               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
36               < $(srcdir)/time.in.h; \
37         } > $@-t && \
38         mv $@-t $@
39 MOSTLYCLEANFILES += time.h time.h-t
40
41 Include:
42 <time.h>
43
44 License:
45 LGPLv2+
46
47 Maintainer:
48 all