annotate modules/exp2l @ 17077:995cc2e74f96

net_if: new module OpenBSD's <net/if.h> is not self-contained; this should compile: | #define _POSIX_C_SOURCE 200809L | #include <net/if.h> | struct if_nameindex i; but fails with: In file included from foo.c:2: /usr/include/net/if.h:112: error: expected specifier-qualifier-list before 'u_int' ... /usr/include/net/if.h:674: error: field 'dstaddr' has incomplete type In file included from /usr/include/net/if.h:691, from foo.c:2: /usr/include/net/if_arp.h:79: error: field 'arp_pa' has incomplete type /usr/include/net/if_arp.h:80: error: field 'arp_ha' has incomplete type *** Error code 1 We already had a test program for systems with the if_* functions (including OpenBSD); but in adding this module, I had to enhance that test to also work on platforms like mingw where we are now providing a new header. * modules/net_if: New module, borrowing ideas from netinet_in. * m4/net_if_h.m4: New file. * lib/net_if.in.h: Likewise. * doc/posix-headers/net_if.texi (net/if.h): Document it. * MODULES.html.sh (lacking POSIX:2008): Likewise. * tests/test-net_if.c: Make function checks conditional. Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>. Signed-off-by: Eric Blake <eblake@redhat.com>
author Eric Blake <eblake@redhat.com>
date Wed, 05 Sep 2012 14:28:47 -0600
parents d19d163c1519
children 1f14c6dd175d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
16620
4a578c3945b8 New module 'exp2l'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 Description:
4a578c3945b8 New module 'exp2l'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2 exp2l() function: exponential base 2 function with long double argument.
4a578c3945b8 New module 'exp2l'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3
4a578c3945b8 New module 'exp2l'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 Files:
4a578c3945b8 New module 'exp2l'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 lib/exp2l.c
4a578c3945b8 New module 'exp2l'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 lib/expl-table.c
4a578c3945b8 New module 'exp2l'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 m4/exp2l.m4
4a578c3945b8 New module 'exp2l'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8
4a578c3945b8 New module 'exp2l'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 Depends-on:
4a578c3945b8 New module 'exp2l'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 math
4a578c3945b8 New module 'exp2l'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 extensions
16628
d19d163c1519 exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
Bruno Haible <bruno@clisp.org>
parents: 16620
diff changeset
12 exp2 [{ test $HAVE_EXP2L = 0 || test $REPLACE_EXP2L = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1]
d19d163c1519 exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
Bruno Haible <bruno@clisp.org>
parents: 16620
diff changeset
13 float [{ test $HAVE_EXP2L = 0 || test $REPLACE_EXP2L = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0]
d19d163c1519 exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
Bruno Haible <bruno@clisp.org>
parents: 16620
diff changeset
14 isnanl [{ test $HAVE_EXP2L = 0 || test $REPLACE_EXP2L = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0]
d19d163c1519 exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
Bruno Haible <bruno@clisp.org>
parents: 16620
diff changeset
15 roundl [{ test $HAVE_EXP2L = 0 || test $REPLACE_EXP2L = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0]
d19d163c1519 exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
Bruno Haible <bruno@clisp.org>
parents: 16620
diff changeset
16 ldexpl [{ test $HAVE_EXP2L = 0 || test $REPLACE_EXP2L = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0]
16620
4a578c3945b8 New module 'exp2l'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17
4a578c3945b8 New module 'exp2l'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18 configure.ac:
4a578c3945b8 New module 'exp2l'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 gl_FUNC_EXP2L
16628
d19d163c1519 exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
Bruno Haible <bruno@clisp.org>
parents: 16620
diff changeset
20 if test $HAVE_EXP2L = 0 || test $REPLACE_EXP2L = 1; then
16620
4a578c3945b8 New module 'exp2l'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 AC_LIBOBJ([exp2l])
4a578c3945b8 New module 'exp2l'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22 AC_LIBOBJ([expl-table])
4a578c3945b8 New module 'exp2l'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23 fi
4a578c3945b8 New module 'exp2l'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 gl_MATH_MODULE_INDICATOR([exp2l])
4a578c3945b8 New module 'exp2l'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25
4a578c3945b8 New module 'exp2l'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26 Makefile.am:
4a578c3945b8 New module 'exp2l'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27
4a578c3945b8 New module 'exp2l'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28 Include:
4a578c3945b8 New module 'exp2l'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29 <math.h>
4a578c3945b8 New module 'exp2l'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30
4a578c3945b8 New module 'exp2l'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
31 Link:
4a578c3945b8 New module 'exp2l'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32 $(EXP2L_LIBM)
4a578c3945b8 New module 'exp2l'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
33
4a578c3945b8 New module 'exp2l'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
34 License:
4a578c3945b8 New module 'exp2l'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
35 LGPL
4a578c3945b8 New module 'exp2l'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
36
4a578c3945b8 New module 'exp2l'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
37 Maintainer:
4a578c3945b8 New module 'exp2l'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
38 Bruno Haible