unicodeio: Fix wrong result on FreeBSD.
[gnulib.git] / modules / sys_random
blobb88507bb92cbf20f772913021dfefe6711914c29
1 Description:
2 A GNU-like <sys/random.h>.
4 Files:
5 lib/sys_random.in.h
6 m4/sys_random_h.m4
8 Depends-on:
9 include_next
10 snippet/arg-nonnull
11 snippet/c++defs
12 snippet/warn-on-use
14 configure.ac:
15 gl_HEADER_SYS_RANDOM
16 AC_PROG_MKDIR_P
18 Makefile.am:
19 BUILT_SOURCES += sys/random.h
21 # We need the following in order to create <sys/random.h> when the system
22 # doesn't have one.
23 sys/random.h: sys_random.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
24         $(AM_V_at)$(MKDIR_P) sys
25         $(AM_V_GEN)rm -f $@-t $@ && \
26         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
27           sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
28               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
29               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
30               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
31               -e 's|@''NEXT_SYS_RANDOM_H''@|$(NEXT_SYS_RANDOM_H)|g' \
32               -e 's|@''HAVE_SYS_RANDOM_H''@|$(HAVE_SYS_RANDOM_H)|g' \
33               -e 's/@''GNULIB_GETRANDOM''@/$(GNULIB_GETRANDOM)/g' \
34               -e 's/@''HAVE_GETRANDOM''@/$(HAVE_GETRANDOM)/g' \
35               -e 's/@''REPLACE_GETRANDOM''@/$(REPLACE_GETRANDOM)/g' \
36               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
37               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
38               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
39               < $(srcdir)/sys_random.in.h; \
40         } > $@-t && \
41         mv -f $@-t $@
42 MOSTLYCLEANFILES += sys/random.h sys/random.h-t
43 MOSTLYCLEANDIRS += sys
45 Include:
46 <sys/random.h>
48 License:
49 LGPLv2+
51 Maintainer:
52 all