putenv tests: Put the putenv() argument strings into writable memory.
[gnulib.git] / modules / time-h
blob3b07845b56614918d8a1ef256618109fbd0011cb
1 Description:
2 A more-standard <time.h>.
4 Files:
5 lib/time.in.h
6 m4/time_h.m4
8 Depends-on:
9 extensions
10 gen-header
11 include_next
12 snippet/arg-nonnull
13 snippet/c++defs
14 snippet/warn-on-use
15 stddef
17 configure.ac:
18 gl_TIME_H
19 gl_TIME_H_REQUIRE_DEFAULTS
20 AC_PROG_MKDIR_P
22 Makefile.am:
23 BUILT_SOURCES += time.h
25 # We need the following in order to create <time.h> when the system
26 # doesn't have one that works with the given compiler.
27 time.h: time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
28 @NMD@   $(AM_V_GEN)$(MKDIR_P) '%reldir%'
29         $(gl_V_at)$(SED_HEADER_STDOUT) \
30               -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
31               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
32               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
33               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
34               -e 's|@''NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \
35               -e 's/@''GNULIB_CTIME''@/$(GNULIB_CTIME)/g' \
36               -e 's/@''GNULIB_LOCALTIME''@/$(GNULIB_LOCALTIME)/g' \
37               -e 's/@''GNULIB_MKTIME''@/$(GNULIB_MKTIME)/g' \
38               -e 's/@''GNULIB_NANOSLEEP''@/$(GNULIB_NANOSLEEP)/g' \
39               -e 's/@''GNULIB_STRFTIME''@/$(GNULIB_STRFTIME)/g' \
40               -e 's/@''GNULIB_STRPTIME''@/$(GNULIB_STRPTIME)/g' \
41               -e 's/@''GNULIB_TIME''@/$(GNULIB_TIME)/g' \
42               -e 's/@''GNULIB_TIMEGM''@/$(GNULIB_TIMEGM)/g' \
43               -e 's/@''GNULIB_TIMESPEC_GET''@/$(GNULIB_TIMESPEC_GET)/g' \
44               -e 's/@''GNULIB_TIMESPEC_GETRES''@/$(GNULIB_TIMESPEC_GETRES)/g' \
45               -e 's/@''GNULIB_TIME_R''@/$(GNULIB_TIME_R)/g' \
46               -e 's/@''GNULIB_TIME_RZ''@/$(GNULIB_TIME_RZ)/g' \
47               -e 's/@''GNULIB_TZSET''@/$(GNULIB_TZSET)/g' \
48               -e 's/@''GNULIB_MDA_TZSET''@/$(GNULIB_MDA_TZSET)/g' \
49               -e 's|@''HAVE_DECL_LOCALTIME_R''@|$(HAVE_DECL_LOCALTIME_R)|g' \
50               -e 's|@''HAVE_NANOSLEEP''@|$(HAVE_NANOSLEEP)|g' \
51               -e 's|@''HAVE_STRPTIME''@|$(HAVE_STRPTIME)|g' \
52               -e 's|@''HAVE_TIMEGM''@|$(HAVE_TIMEGM)|g' \
53               -e 's|@''HAVE_TIMESPEC_GET''@|$(HAVE_TIMESPEC_GET)|g' \
54               -e 's|@''HAVE_TIMESPEC_GETRES''@|$(HAVE_TIMESPEC_GETRES)|g' \
55               -e 's|@''HAVE_TIMEZONE_T''@|$(HAVE_TIMEZONE_T)|g' \
56               -e 's|@''REPLACE_CTIME''@|$(REPLACE_CTIME)|g' \
57               -e 's|@''REPLACE_GMTIME''@|$(REPLACE_GMTIME)|g' \
58               -e 's|@''REPLACE_LOCALTIME''@|$(REPLACE_LOCALTIME)|g' \
59               -e 's|@''REPLACE_LOCALTIME_R''@|$(REPLACE_LOCALTIME_R)|g' \
60               -e 's|@''REPLACE_MKTIME''@|$(REPLACE_MKTIME)|g' \
61               -e 's|@''REPLACE_NANOSLEEP''@|$(REPLACE_NANOSLEEP)|g' \
62               -e 's|@''REPLACE_STRFTIME''@|$(REPLACE_STRFTIME)|g' \
63               -e 's|@''REPLACE_TIME''@|$(REPLACE_TIME)|g' \
64               -e 's|@''REPLACE_TIMEGM''@|$(REPLACE_TIMEGM)|g' \
65               -e 's|@''REPLACE_TIMESPEC_GET''@|$(REPLACE_TIMESPEC_GET)|g' \
66               -e 's|@''REPLACE_TIMESPEC_GETRES''@|$(REPLACE_TIMESPEC_GETRES)|g' \
67               -e 's|@''REPLACE_TZSET''@|$(REPLACE_TZSET)|g' \
68               -e 's|@''PTHREAD_H_DEFINES_STRUCT_TIMESPEC''@|$(PTHREAD_H_DEFINES_STRUCT_TIMESPEC)|g' \
69               -e 's|@''SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(SYS_TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
70               -e 's|@''TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
71               -e 's|@''UNISTD_H_DEFINES_STRUCT_TIMESPEC''@|$(UNISTD_H_DEFINES_STRUCT_TIMESPEC)|g' \
72               -e 's|@''TIME_H_DEFINES_TIME_UTC''@|$(TIME_H_DEFINES_TIME_UTC)|g' \
73               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
74               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
75               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
76               $(srcdir)/time.in.h > $@-t
77         $(AM_V_at)mv $@-t $@
78 MOSTLYCLEANFILES += time.h time.h-t
80 Include:
81 <time.h>
83 License:
84 LGPLv2+
86 Maintainer:
87 all