annotate modules/stdlib @ 11868:67c2b22aff08

annotate automake snippets with $(AM_V_GEN) and $(AM_V_at) This makes it so packages using automake-1.11's silent-rules option can print e.g., a single "GEN configmake.h" line, rather than the 30+ statements that perform the job. If you want to see the actual commands, you can still run "make V=1". Improved-by: Bruno Haible <bruno@clisp.org> * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes so that make output is abbreviated when those variables are defined appropriately. * modules/argz: Likewise. * modules/arpa_inet: Likewise. * modules/byteswap: Likewise. * modules/configmake: Likewise. * modules/dirent: Likewise. * modules/errno: Likewise. * modules/fcntl: Likewise. * modules/float: Likewise. * modules/fnmatch: Likewise. * modules/getopt-posix: Likewise. * modules/glob: Likewise. * modules/iconv_open: Likewise. * modules/inttypes: Likewise. * modules/localcharset: Likewise. * modules/locale: Likewise. * modules/math: Likewise. * modules/netdb: Likewise. * modules/netinet_in: Likewise. * modules/poll: Likewise. * modules/posix_spawnp-tests: Likewise. * modules/sched: Likewise. * modules/search: Likewise. * modules/selinux-h: Likewise. * modules/signal: Likewise. * modules/spawn: Likewise. * modules/stdarg: Likewise. * modules/stdbool: Likewise. * modules/stddef: Likewise. * modules/stdint: Likewise. * modules/stdio: Likewise. * modules/stdlib: Likewise. * modules/string: Likewise. * modules/strings: Likewise. * modules/sys_file: Likewise. * modules/sys_ioctl: Likewise. * modules/sys_select: Likewise. * modules/sys_socket: Likewise. * modules/sys_stat: Likewise. * modules/sys_time: Likewise. * modules/sys_times: Likewise. * modules/sys_utsname: Likewise. * modules/sys_wait: Likewise. * modules/sysexits: Likewise. * modules/time: Likewise. * modules/unistd: Likewise. * modules/wchar: Likewise. * modules/wctype: Likewise.
author Jim Meyering <meyering@redhat.com>
date Sat, 22 Aug 2009 11:28:08 +0200
parents ff3dd373542b
children 52791eb62094
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8190
6917857967a1 New module 'stdlib'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 Description:
6917857967a1 New module 'stdlib'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2 A GNU-like <stdlib.h>.
6917857967a1 New module 'stdlib'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3
6917857967a1 New module 'stdlib'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 Files:
9263
bb62a6456893 Rename stdlib_.h to stdlib.in.h.
Bruno Haible <bruno@clisp.org>
parents: 9192
diff changeset
5 lib/stdlib.in.h
8190
6917857967a1 New module 'stdlib'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 m4/stdlib_h.m4
6917857967a1 New module 'stdlib'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7
6917857967a1 New module 'stdlib'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8 Depends-on:
9781
118f0bb3f732 Fix commit from 2007-06-20.
Bruno Haible <bruno@clisp.org>
parents: 9545
diff changeset
9 include_next
8190
6917857967a1 New module 'stdlib'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 link-warning
8459
530f0ba2b795 Ensure we get the mkstemp() declaration. On MacOS X, it comes from <unistd.h>.
Bruno Haible <bruno@clisp.org>
parents: 8198
diff changeset
11 unistd
11832
ff3dd373542b stddef: fix NetBSD 5.0 NULL bug, rather than working around it
Eric Blake <ebb9@byu.net>
parents: 11428
diff changeset
12 stddef
11428
766299801152 modules/stdlib (Depends-on): Add stdint.
Simon Josefsson <simon@josefsson.org>
parents: 11086
diff changeset
13 stdint
8190
6917857967a1 New module 'stdlib'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14
6917857967a1 New module 'stdlib'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 configure.ac:
6917857967a1 New module 'stdlib'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16 gl_STDLIB_H
6917857967a1 New module 'stdlib'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17
6917857967a1 New module 'stdlib'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18 Makefile.am:
6917857967a1 New module 'stdlib'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 BUILT_SOURCES += stdlib.h
6917857967a1 New module 'stdlib'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20
6917857967a1 New module 'stdlib'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 # We need the following in order to create <stdlib.h> when the system
6917857967a1 New module 'stdlib'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22 # doesn't have one that works with the given compiler.
9263
bb62a6456893 Rename stdlib_.h to stdlib.in.h.
Bruno Haible <bruno@clisp.org>
parents: 9192
diff changeset
23 stdlib.h: stdlib.in.h
11868
67c2b22aff08 annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
Jim Meyering <meyering@redhat.com>
parents: 11832
diff changeset
24 $(AM_V_GEN)rm -f $@-t $@ && \
8190
6917857967a1 New module 'stdlib'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
10375
f96e845fc36d Avoid some "gcc -pedantic" warnings.
Bruno Haible <bruno@clisp.org>
parents: 10001
diff changeset
26 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
f96e845fc36d Avoid some "gcc -pedantic" warnings.
Bruno Haible <bruno@clisp.org>
parents: 10001
diff changeset
27 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
8995
1025663f7658 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
Paul Eggert <eggert@cs.ucla.edu>
parents: 8819
diff changeset
28 -e 's|@''NEXT_STDLIB_H''@|$(NEXT_STDLIB_H)|g' \
11086
77f9dee073d2 Avoid redefining 'struct random_data' on OSF/1 5.1.
Bruno Haible <bruno@clisp.org>
parents: 10719
diff changeset
29 -e 's|@''HAVE_RANDOM_H''@|$(HAVE_RANDOM_H)|g' \
9192
1050562322a4 New module 'malloc-posix'.
Bruno Haible <bruno@clisp.org>
parents: 9191
diff changeset
30 -e 's|@''GNULIB_MALLOC_POSIX''@|$(GNULIB_MALLOC_POSIX)|g' \
9191
c7875dab3c3e New module 'realloc-posix'.
Bruno Haible <bruno@clisp.org>
parents: 9190
diff changeset
31 -e 's|@''GNULIB_REALLOC_POSIX''@|$(GNULIB_REALLOC_POSIX)|g' \
9190
a4f83e0e605c New module 'calloc-posix'.
Bruno Haible <bruno@clisp.org>
parents: 8995
diff changeset
32 -e 's|@''GNULIB_CALLOC_POSIX''@|$(GNULIB_CALLOC_POSIX)|g' \
10673
8e54ec4dc691 New module 'atoll'.
Bruno Haible <bruno@clisp.org>
parents: 10672
diff changeset
33 -e 's|@''GNULIB_ATOLL''@|$(GNULIB_ATOLL)|g' \
8e54ec4dc691 New module 'atoll'.
Bruno Haible <bruno@clisp.org>
parents: 10672
diff changeset
34 -e 's|@''GNULIB_GETLOADAVG''@|$(GNULIB_GETLOADAVG)|g' \
8198
d84ab7c183f4 getsubopt.h is replaced with <stdlib.h>.
Bruno Haible <bruno@clisp.org>
parents: 8190
diff changeset
35 -e 's|@''GNULIB_GETSUBOPT''@|$(GNULIB_GETSUBOPT)|g' \
8190
6917857967a1 New module 'stdlib'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
36 -e 's|@''GNULIB_MKDTEMP''@|$(GNULIB_MKDTEMP)|g' \
6917857967a1 New module 'stdlib'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
37 -e 's|@''GNULIB_MKSTEMP''@|$(GNULIB_MKSTEMP)|g' \
9434
b839560eec9f Define the putenv substitute in <stdlib.h> rather than in <config.h>.
Bruno Haible <bruno@clisp.org>
parents: 9315
diff changeset
38 -e 's|@''GNULIB_PUTENV''@|$(GNULIB_PUTENV)|g' \
10704
c1911eda16bd random_r: new module
Jim Meyering <meyering@redhat.com>
parents: 10673
diff changeset
39 -e 's|@''GNULIB_RANDOM_R''@|$(GNULIB_RANDOM_R)|g' \
10001
facc928673d7 Declare rpmatch.
Bruno Haible <bruno@clisp.org>
parents: 9821
diff changeset
40 -e 's|@''GNULIB_RPMATCH''@|$(GNULIB_RPMATCH)|g' \
9545
c596ca4e89b4 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
Bruno Haible <bruno@clisp.org>
parents: 9434
diff changeset
41 -e 's|@''GNULIB_SETENV''@|$(GNULIB_SETENV)|g' \
9821
18bab9955c43 Document various strtod bugs, with some fixes.
Eric Blake <ebb9@byu.net>
parents: 9781
diff changeset
42 -e 's|@''GNULIB_STRTOD''@|$(GNULIB_STRTOD)|g' \
10671
459974cd8b12 Add strtoll() declaration to <stdlib.h>.
Bruno Haible <bruno@clisp.org>
parents: 10665
diff changeset
43 -e 's|@''GNULIB_STRTOLL''@|$(GNULIB_STRTOLL)|g' \
10672
66414a3e577c Add strtoull() declaration to <stdlib.h>.
Bruno Haible <bruno@clisp.org>
parents: 10671
diff changeset
44 -e 's|@''GNULIB_STRTOULL''@|$(GNULIB_STRTOULL)|g' \
9545
c596ca4e89b4 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
Bruno Haible <bruno@clisp.org>
parents: 9434
diff changeset
45 -e 's|@''GNULIB_UNSETENV''@|$(GNULIB_UNSETENV)|g' \
10673
8e54ec4dc691 New module 'atoll'.
Bruno Haible <bruno@clisp.org>
parents: 10672
diff changeset
46 -e 's|@''HAVE_ATOLL''@|$(HAVE_ATOLL)|g' \
9190
a4f83e0e605c New module 'calloc-posix'.
Bruno Haible <bruno@clisp.org>
parents: 8995
diff changeset
47 -e 's|@''HAVE_CALLOC_POSIX''@|$(HAVE_CALLOC_POSIX)|g' \
8198
d84ab7c183f4 getsubopt.h is replaced with <stdlib.h>.
Bruno Haible <bruno@clisp.org>
parents: 8190
diff changeset
48 -e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \
9192
1050562322a4 New module 'malloc-posix'.
Bruno Haible <bruno@clisp.org>
parents: 9191
diff changeset
49 -e 's|@''HAVE_MALLOC_POSIX''@|$(HAVE_MALLOC_POSIX)|g' \
8190
6917857967a1 New module 'stdlib'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
50 -e 's|@''HAVE_MKDTEMP''@|$(HAVE_MKDTEMP)|g' \
9191
c7875dab3c3e New module 'realloc-posix'.
Bruno Haible <bruno@clisp.org>
parents: 9190
diff changeset
51 -e 's|@''HAVE_REALLOC_POSIX''@|$(HAVE_REALLOC_POSIX)|g' \
10704
c1911eda16bd random_r: new module
Jim Meyering <meyering@redhat.com>
parents: 10673
diff changeset
52 -e 's|@''HAVE_RANDOM_R''@|$(HAVE_RANDOM_R)|g' \
10001
facc928673d7 Declare rpmatch.
Bruno Haible <bruno@clisp.org>
parents: 9821
diff changeset
53 -e 's|@''HAVE_RPMATCH''@|$(HAVE_RPMATCH)|g' \
9545
c596ca4e89b4 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
Bruno Haible <bruno@clisp.org>
parents: 9434
diff changeset
54 -e 's|@''HAVE_SETENV''@|$(HAVE_SETENV)|g' \
9821
18bab9955c43 Document various strtod bugs, with some fixes.
Eric Blake <ebb9@byu.net>
parents: 9781
diff changeset
55 -e 's|@''HAVE_STRTOD''@|$(HAVE_STRTOD)|g' \
10671
459974cd8b12 Add strtoll() declaration to <stdlib.h>.
Bruno Haible <bruno@clisp.org>
parents: 10665
diff changeset
56 -e 's|@''HAVE_STRTOLL''@|$(HAVE_STRTOLL)|g' \
10672
66414a3e577c Add strtoull() declaration to <stdlib.h>.
Bruno Haible <bruno@clisp.org>
parents: 10671
diff changeset
57 -e 's|@''HAVE_STRTOULL''@|$(HAVE_STRTOULL)|g' \
10719
620520e8b04c stdlib: Provide struct random_data.
Simon Josefsson <simon@josefsson.org>
parents: 10704
diff changeset
58 -e 's|@''HAVE_STRUCT_RANDOM_DATA''@|$(HAVE_STRUCT_RANDOM_DATA)|g' \
10665
5394a3a10398 Add a getloadavg() declaration to <stdlib.h>.
Bruno Haible <bruno@clisp.org>
parents: 10375
diff changeset
59 -e 's|@''HAVE_SYS_LOADAVG_H''@|$(HAVE_SYS_LOADAVG_H)|g' \
9545
c596ca4e89b4 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
Bruno Haible <bruno@clisp.org>
parents: 9434
diff changeset
60 -e 's|@''HAVE_UNSETENV''@|$(HAVE_UNSETENV)|g' \
10665
5394a3a10398 Add a getloadavg() declaration to <stdlib.h>.
Bruno Haible <bruno@clisp.org>
parents: 10375
diff changeset
61 -e 's|@''HAVE_DECL_GETLOADAVG''@|$(HAVE_DECL_GETLOADAVG)|g' \
8190
6917857967a1 New module 'stdlib'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
62 -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \
9434
b839560eec9f Define the putenv substitute in <stdlib.h> rather than in <config.h>.
Bruno Haible <bruno@clisp.org>
parents: 9315
diff changeset
63 -e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \
9821
18bab9955c43 Document various strtod bugs, with some fixes.
Eric Blake <ebb9@byu.net>
parents: 9781
diff changeset
64 -e 's|@''REPLACE_STRTOD''@|$(REPLACE_STRTOD)|g' \
9545
c596ca4e89b4 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
Bruno Haible <bruno@clisp.org>
parents: 9434
diff changeset
65 -e 's|@''VOID_UNSETENV''@|$(VOID_UNSETENV)|g' \
8190
6917857967a1 New module 'stdlib'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
66 -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
9263
bb62a6456893 Rename stdlib_.h to stdlib.in.h.
Bruno Haible <bruno@clisp.org>
parents: 9192
diff changeset
67 < $(srcdir)/stdlib.in.h; \
11868
67c2b22aff08 annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
Jim Meyering <meyering@redhat.com>
parents: 11832
diff changeset
68 } > $@-t && \
8190
6917857967a1 New module 'stdlib'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
69 mv $@-t $@
6917857967a1 New module 'stdlib'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
70 MOSTLYCLEANFILES += stdlib.h stdlib.h-t
6917857967a1 New module 'stdlib'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
71
6917857967a1 New module 'stdlib'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
72 Include:
6917857967a1 New module 'stdlib'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
73 #include <stdlib.h>
6917857967a1 New module 'stdlib'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
74
6917857967a1 New module 'stdlib'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
75 License:
9315
be88e4511678 Change license to LGPLv2+ on dummy, float, realloc, stdlib.
Simon Josefsson <simon@josefsson.org>
parents: 9263
diff changeset
76 LGPLv2+
8190
6917857967a1 New module 'stdlib'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
77
6917857967a1 New module 'stdlib'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
78 Maintainer:
6917857967a1 New module 'stdlib'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
79 all