annotate modules/arpa_inet @ 15887:89c762414427

New module 'atanf'. * lib/math.in.h (atanf): New declaration. * lib/atanf.c: New file. * m4/atanf.m4: New file. * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared. (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF. * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF. * modules/atanf: New file. * tests/test-math-c++.cc: Check the declaration of atanf. * doc/posix-functions/atanf.texi: Mention the new module.
author Bruno Haible <bruno@clisp.org>
date Sat, 08 Oct 2011 23:55:44 +0200
parents bcecbef40a05
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6937
b2e746cf6f89 Add arpa_inet module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
1 Description:
10010
d26ac8a528f7 Enable gnulib's <arpa/inet.h> replacement also when inet_ntop or inet_pton need to be declared.
Bruno Haible <bruno@clisp.org>
parents: 10007
diff changeset
2 A GNU-like <arpa/inet.h>.
6937
b2e746cf6f89 Add arpa_inet module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
3
b2e746cf6f89 Add arpa_inet module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
4 Files:
9964
d0caaa0ca4a6 Add inet_ntop and inet_pton declarations to arpa/inet.h, for MinGW.
Simon Josefsson <simon@josefsson.org>
parents: 9102
diff changeset
5 lib/arpa_inet.in.h
6937
b2e746cf6f89 Add arpa_inet module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
6 m4/arpa_inet_h.m4
b2e746cf6f89 Add arpa_inet module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
7
b2e746cf6f89 Add arpa_inet module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
8 Depends-on:
10010
d26ac8a528f7 Enable gnulib's <arpa/inet.h> replacement also when inet_ntop or inet_pton need to be declared.
Bruno Haible <bruno@clisp.org>
parents: 10007
diff changeset
9 include_next
15415
768296dab89a Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
Bruno Haible <bruno@clisp.org>
parents: 14894
diff changeset
10 snippet/arg-nonnull
15416
10b35faca629 Rename module 'c++defs' to 'snippet/c++defs'.
Bruno Haible <bruno@clisp.org>
parents: 15415
diff changeset
11 snippet/c++defs
15419
d2437ed29d20 Rename module 'warn-on-use' to 'snippet/warn-on-use'.
Bruno Haible <bruno@clisp.org>
parents: 15416
diff changeset
12 snippet/warn-on-use
6937
b2e746cf6f89 Add arpa_inet module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
13 sys_socket
b2e746cf6f89 Add arpa_inet module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
14
b2e746cf6f89 Add arpa_inet module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
15 configure.ac:
b2e746cf6f89 Add arpa_inet module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
16 gl_HEADER_ARPA_INET
8072
c31253d5c505 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
Jim Meyering <jim@meyering.net>
parents: 8067
diff changeset
17 AC_PROG_MKDIR_P
6937
b2e746cf6f89 Add arpa_inet module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
18
b2e746cf6f89 Add arpa_inet module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
19 Makefile.am:
12536
cd64e80f94e4 link-warning: always build headers with link warnings
Eric Blake <ebb9@byu.net>
parents: 12422
diff changeset
20 BUILT_SOURCES += arpa/inet.h
6937
b2e746cf6f89 Add arpa_inet module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
21
b2e746cf6f89 Add arpa_inet module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
22 # We need the following in order to create <arpa/inet.h> when the system
b2e746cf6f89 Add arpa_inet module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
23 # doesn't have one.
14527
049942251f65 Ensure to rebuild generated .h files when config.status has changed.
Bruno Haible <bruno@clisp.org>
parents: 14273
diff changeset
24 arpa/inet.h: arpa_inet.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
11926
79c91e5cce7a Use $(MKDIR_P) instead of @MKDIR_P@.
Simon Josefsson <simon@josefsson.org>
parents: 11868
diff changeset
25 $(AM_V_at)$(MKDIR_P) arpa
11868
67c2b22aff08 annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
Jim Meyering <meyering@redhat.com>
parents: 11450
diff changeset
26 $(AM_V_GEN)rm -f $@-t $@ && \
7421
8bace4b08db5 Mark generated files as "DO NOT EDIT".
Bruno Haible <bruno@clisp.org>
parents: 7274
diff changeset
27 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
14840
5f709022a256 Allow multiple gnulib generated include files to be combined.
Bruno Haible <bruno@clisp.org>
parents: 14527
diff changeset
28 sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
5f709022a256 Allow multiple gnulib generated include files to be combined.
Bruno Haible <bruno@clisp.org>
parents: 14527
diff changeset
29 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
10375
f96e845fc36d Avoid some "gcc -pedantic" warnings.
Bruno Haible <bruno@clisp.org>
parents: 10010
diff changeset
30 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
13761
a19ace3ba849 Avoid line length limitation from HP NonStop system header files.
Bruno Haible <bruno@clisp.org>
parents: 12766
diff changeset
31 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
13887
ff73aa93842c Ensure that <features.h> is included before __GLIBC__ is tested.
Bruno Haible <bruno@clisp.org>
parents: 13761
diff changeset
32 -e 's|@''HAVE_FEATURES_H''@|$(HAVE_FEATURES_H)|g' \
10010
d26ac8a528f7 Enable gnulib's <arpa/inet.h> replacement also when inet_ntop or inet_pton need to be declared.
Bruno Haible <bruno@clisp.org>
parents: 10007
diff changeset
33 -e 's|@''NEXT_ARPA_INET_H''@|$(NEXT_ARPA_INET_H)|g' \
d26ac8a528f7 Enable gnulib's <arpa/inet.h> replacement also when inet_ntop or inet_pton need to be declared.
Bruno Haible <bruno@clisp.org>
parents: 10007
diff changeset
34 -e 's|@''HAVE_ARPA_INET_H''@|$(HAVE_ARPA_INET_H)|g' \
14894
b22360ddefc4 gnulib-tool: Better isolation between different gnulib-tool invocations.
Bruno Haible <bruno@clisp.org>
parents: 14840
diff changeset
35 -e 's/@''GNULIB_INET_NTOP''@/$(GNULIB_INET_NTOP)/g' \
b22360ddefc4 gnulib-tool: Better isolation between different gnulib-tool invocations.
Bruno Haible <bruno@clisp.org>
parents: 14840
diff changeset
36 -e 's/@''GNULIB_INET_PTON''@/$(GNULIB_INET_PTON)/g' \
10007
bef830fad24f Make arpa/inet module build under MinGW.
Simon Josefsson <simon@josefsson.org>
parents: 9964
diff changeset
37 -e 's|@''HAVE_DECL_INET_NTOP''@|$(HAVE_DECL_INET_NTOP)|g' \
bef830fad24f Make arpa/inet module build under MinGW.
Simon Josefsson <simon@josefsson.org>
parents: 9964
diff changeset
38 -e 's|@''HAVE_DECL_INET_PTON''@|$(HAVE_DECL_INET_PTON)|g' \
15633
c2c292001fc0 inet_ntop: Support for MSVC on Windows Vista or newer.
Bruno Haible <bruno@clisp.org>
parents: 15419
diff changeset
39 -e 's|@''REPLACE_INET_NTOP''@|$(REPLACE_INET_NTOP)|g' \
15634
bcecbef40a05 inet_pton: Support for MSVC on Windows Vista or newer.
Bruno Haible <bruno@clisp.org>
parents: 15633
diff changeset
40 -e 's|@''REPLACE_INET_PTON''@|$(REPLACE_INET_PTON)|g' \
14036
c475f1b6d204 arpa_inet: Use the common idioms with C++ support.
Bruno Haible <bruno@clisp.org>
parents: 13887
diff changeset
41 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
12422
f7842310a565 New module 'arg-nonnull'. Declare which arguments expect non-NULL values.
Bruno Haible <bruno@clisp.org>
parents: 12410
diff changeset
42 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
12766
2c14f1e449e5 warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents: 12536
diff changeset
43 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
9964
d0caaa0ca4a6 Add inet_ntop and inet_pton declarations to arpa/inet.h, for MinGW.
Simon Josefsson <simon@josefsson.org>
parents: 9102
diff changeset
44 < $(srcdir)/arpa_inet.in.h; \
11868
67c2b22aff08 annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
Jim Meyering <meyering@redhat.com>
parents: 11450
diff changeset
45 } > $@-t && \
6937
b2e746cf6f89 Add arpa_inet module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
46 mv $@-t $@
b2e746cf6f89 Add arpa_inet module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
47 MOSTLYCLEANFILES += arpa/inet.h arpa/inet.h-t
b2e746cf6f89 Add arpa_inet module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
48 MOSTLYCLEANDIRS += arpa
b2e746cf6f89 Add arpa_inet module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
49
b2e746cf6f89 Add arpa_inet module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
50 Include:
12008
18ea6ab4e81d maint: make Include sections of modules consistent
Eric Blake <ebb9@byu.net>
parents: 11926
diff changeset
51 <arpa/inet.h>
6937
b2e746cf6f89 Add arpa_inet module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
52
b2e746cf6f89 Add arpa_inet module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
53 License:
9102
404dc8725caf Use the synonymous term LGPLv2.
Bruno Haible <bruno@clisp.org>
parents: 8072
diff changeset
54 LGPLv2+
6937
b2e746cf6f89 Add arpa_inet module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
55
b2e746cf6f89 Add arpa_inet module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
56 Maintainer:
b2e746cf6f89 Add arpa_inet module.
Simon Josefsson <simon@josefsson.org>
parents:
diff changeset
57 Simon Josefsson