3 # Copyright (C) 2002-2007 Free Software Foundation, Inc.
5 # This program is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 # Usage: MODULES.html.sh [--cvs-urls|--git-urls] > MODULES.html
21 # Extend the PATH so that gnulib-tool is found.
22 PATH=`dirname "$0"`:$PATH; export PATH
24 POSIX2001_URL='http://www.opengroup.org/susv3'
27 POSIX2001_URL='file:/packages/www/www.opengroup.org/susv3' ;;
35 # Generate URLs to the official gnulib CVS repository.
36 repo_url_prefix='http://cvs.sv.gnu.org/viewcvs/*checkout*/gnulib/'
37 repo_url_suffix='?root=gnulib&content-type=text/plain'
40 # Generate URLs to the official gnulib git repository.
41 repo_url_prefix='http://git.sv.gnu.org/gitweb/?p=gnulib.git;a=blob_plain;f='
46 # For sed replacements: Escape the '&'.
47 repo_url_suffix_repl=`echo "$repo_url_suffix" | sed -e 's,[&],\\\&,'`
51 sed_escape_dot='s,\.,\\.,g'
52 sed_escape_slash='s,/,\\/,g'
55 sed_alt2='s,^\\|,\\(,'
56 sed_alt3='s,\\|\\|$,\\),'
142 ' | sed -e "$sed_alt1" | tr -d "$trnl" | sed -e "$sed_alt2" -e "$sed_alt3"`
143 posix_functions=`echo '
739 posix_spawn_file_actions_addclose
740 posix_spawn_file_actions_adddup2
741 posix_spawn_file_actions_addopen
742 posix_spawn_file_actions_destroy
743 posix_spawn_file_actions_init
744 posix_spawnattr_destroy
745 posix_spawnattr_getflags
746 posix_spawnattr_getpgroup
747 posix_spawnattr_getschedparam
748 posix_spawnattr_getschedpolicy
749 posix_spawnattr_getsigdefault
750 posix_spawnattr_getsigmask
752 posix_spawnattr_setflags
753 posix_spawnattr_setpgroup
754 posix_spawnattr_setschedparam
755 posix_spawnattr_setschedpolicy
756 posix_spawnattr_setsigdefault
757 posix_spawnattr_setsigmask
759 posix_trace_attr_destroy
760 posix_trace_attr_getclockres
761 posix_trace_attr_getcreatetime
762 posix_trace_attr_getgenversion
763 posix_trace_attr_getinherited
764 posix_trace_attr_getlogfullpolicy
765 posix_trace_attr_getlogsize
766 posix_trace_attr_getmaxdatasize
767 posix_trace_attr_getmaxsystemeventsize
768 posix_trace_attr_getmaxusereventsize
769 posix_trace_attr_getname
770 posix_trace_attr_getstreamfullpolicy
771 posix_trace_attr_getstreamsize
772 posix_trace_attr_init
773 posix_trace_attr_setinherited
774 posix_trace_attr_setlogfullpolicy
775 posix_trace_attr_setlogsize
776 posix_trace_attr_setmaxdatasize
777 posix_trace_attr_setname
778 posix_trace_attr_setstreamfullpolicy
779 posix_trace_attr_setstreamsize
783 posix_trace_create_withlog
785 posix_trace_eventid_equal
786 posix_trace_eventid_get_name
787 posix_trace_eventid_open
788 posix_trace_eventset_add
789 posix_trace_eventset_del
790 posix_trace_eventset_empty
791 posix_trace_eventset_fill
792 posix_trace_eventset_ismember
793 posix_trace_eventtypelist_getnext_id
794 posix_trace_eventtypelist_rewind
797 posix_trace_get_filter
798 posix_trace_get_status
799 posix_trace_getnext_event
802 posix_trace_set_filter
806 posix_trace_timedgetnext_event
807 posix_trace_trid_eventid_open
808 posix_trace_trygetnext_event
809 posix_typed_mem_get_info
819 pthread_attr_getdetachstate
820 pthread_attr_getguardsize
821 pthread_attr_getinheritsched
822 pthread_attr_getschedparam
823 pthread_attr_getschedpolicy
824 pthread_attr_getscope
825 pthread_attr_getstack
826 pthread_attr_getstackaddr
827 pthread_attr_getstacksize
829 pthread_attr_setdetachstate
830 pthread_attr_setguardsize
831 pthread_attr_setinheritsched
832 pthread_attr_setschedparam
833 pthread_attr_setschedpolicy
834 pthread_attr_setscope
835 pthread_attr_setstack
836 pthread_attr_setstackaddr
837 pthread_attr_setstacksize
838 pthread_barrier_destroy
841 pthread_barrierattr_destroy
842 pthread_barrierattr_getpshared
843 pthread_barrierattr_init
844 pthread_barrierattr_setpshared
848 pthread_cond_broadcast
852 pthread_cond_timedwait
854 pthread_condattr_destroy
855 pthread_condattr_getclock
856 pthread_condattr_getpshared
857 pthread_condattr_init
858 pthread_condattr_setclock
859 pthread_condattr_setpshared
864 pthread_getconcurrency
865 pthread_getcpuclockid
866 pthread_getschedparam
872 pthread_mutex_destroy
873 pthread_mutex_getprioceiling
876 pthread_mutex_setprioceiling
877 pthread_mutex_timedlock
878 pthread_mutex_trylock
880 pthread_mutexattr_destroy
881 pthread_mutexattr_getprioceiling
882 pthread_mutexattr_getprotocol
883 pthread_mutexattr_getpshared
884 pthread_mutexattr_gettype
885 pthread_mutexattr_init
886 pthread_mutexattr_setprioceiling
887 pthread_mutexattr_setprotocol
888 pthread_mutexattr_setpshared
889 pthread_mutexattr_settype
891 pthread_rwlock_destroy
893 pthread_rwlock_rdlock
894 pthread_rwlock_timedrdlock
895 pthread_rwlock_timedwrlock
896 pthread_rwlock_tryrdlock
897 pthread_rwlock_trywrlock
898 pthread_rwlock_unlock
899 pthread_rwlock_wrlock
900 pthread_rwlockattr_destroy
901 pthread_rwlockattr_getpshared
902 pthread_rwlockattr_init
903 pthread_rwlockattr_setpshared
905 pthread_setcancelstate
906 pthread_setcanceltype
907 pthread_setconcurrency
908 pthread_setschedparam
977 sched_get_priority_max
980 sched_rr_get_interval
1258 ' | sed -e "$sed_alt1" | tr -d "$trnl" | sed -e "$sed_alt2" -e "$sed_alt3"`
1272 # creates a temporary directory.
1274 # - tmp pathname of freshly created temporary directory
1277 # Use the environment variable TMPDIR, falling back to /tmp. This allows
1278 # users to specify a different temporary directory, for example, if their
1279 # /tmp is filled up or too small.
1282 # Use the mktemp program if available. If not available, hide the error
1284 tmp=`(umask 077 && mktemp -d "$TMPDIR/MDXXXXXX") 2>/dev/null` &&
1285 test -n "$tmp" && test -d "$tmp"
1288 # Use a simple mkdir command. It is guaranteed to fail if the directory
1289 # already exists. $RANDOM is bash specific and expands to empty in shells
1290 # other than bash, ksh and zsh. Its use does not increase security;
1291 # rather, it minimizes the probability of failure in a very cluttered /tmp
1293 tmp=$TMPDIR/MD$$-$RANDOM
1294 (umask 077 && mkdir "$tmp")
1297 echo "$0: cannot create a temporary directory in $TMPDIR" >&2
1302 # func_append var value
1303 # appends the given value to the shell variable var.
1304 if ( foo=bar; foo+=baz && test "$foo" = barbaz ) >/dev/null 2>&1; then
1305 # Use bash's += operator. It reduces complexity of appending repeatedly to
1306 # a single variable from O(n^2) to O(n).
1314 eval "$1=\"\$$1\$2\""
1319 # outputs line with indentation.
1326 # increases the indentation.
1333 # decreases the indentation.
1336 indent=`echo "$indent" | sed -e 's/ $//'`
1339 # func_begin tag [attribute...]
1348 # closes a HTML tag.
1355 # func_wrap tag [attribute...]
1356 # encloses $element in a HTML tag, without line breaks.
1359 element="<$*>${element}</$1>"
1362 # func_section_wrap sectiontag
1363 # encloses $element in a HTML tag referring to the given tag.
1364 func_section_wrap ()
1366 if test -n "$in_toc"; then
1367 func_wrap A "HREF=\"#$1\""
1369 func_wrap A "NAME=\"$1\""
1377 if test -z "$in_toc"; then
1379 func_echo "<TH ALIGN=LEFT>modules/"
1380 func_echo "<TH ALIGN=LEFT>lib/"
1381 func_echo "<TH ALIGN=LEFT>lib/"
1382 func_echo "<TH ALIGN=LEFT>m4/"
1383 func_echo "<TH ALIGN=LEFT> "
1386 func_echo "<TH ALIGN=LEFT>Module"
1387 func_echo "<TH ALIGN=LEFT>Header"
1388 func_echo "<TH ALIGN=LEFT>Implementation"
1389 func_echo "<TH ALIGN=LEFT>Autoconf macro"
1390 func_echo "<TH ALIGN=LEFT>Depends on"
1395 # func_module module
1398 sed_remove_trailing_empty_line='${
1402 if test -n "$in_toc"; then
1404 func_begin TR "WIDTH=\"100%\""
1406 element='<A HREF="#module='$1'">'$1'</A>'
1407 func_echo "<TD ALIGN=LEFT VALIGN=TOP WIDTH=\"20%\">$element"
1409 element=`gnulib-tool --extract-description $1 \
1410 | sed -e "$sed_lt" -e "$sed_gt" -e "$sed_remove_trailing_empty_line" \
1412 -e 's,\([^a-zA-Z_]\)'"${posix_functions}"'(),\1<A HREF="'"$POSIX2001_URL"'xsh/\2.html">\2</A>(),g' \
1414 func_echo "<TD ALIGN=LEFT VALIGN=TOP WIDTH=\"80%\">$element"
1422 element='<A NAME="module='$1'"></A><A HREF="'$repo_url_prefix'modules/'$1$repo_url_suffix'">'$1'</A>'
1423 func_echo "<TD ALIGN=LEFT VALIGN=TOP>$element"
1425 includes=`gnulib-tool --extract-include-directive $1`
1426 files=`gnulib-tool --extract-filelist $1 \
1427 | grep -v '^m4/gnulib-common\.m4$'`
1428 element=`echo "$includes" \
1429 | sed -e "$sed_lt" -e "$sed_gt" -e "$sed_remove_trailing_empty_line" \
1430 -e 's,^#include "\(.*\)"$,#include "<A HREF="'$repo_url_prefix'lib/\1'$repo_url_suffix_repl'">\1</A>",' \
1431 -e 's,^#include <'"${posix_headers}"'\.h>$,#include \<<A HREF="'"$POSIX2001_URL"'xbd/\1.h.html">\1.h</A>\>,' \
1432 -e 's/$/<BR>/' | tr -d "$trnl" | sed -e 's/<BR>$//'`
1433 test -n "$element" || element='---'
1434 func_echo "<TD ALIGN=LEFT VALIGN=TOP>$element"
1436 sed_choose_unconditional_nonstandard_include='s,^#include "\(.*\)"$,\1,p'
1437 includefile=`echo "$includes" \
1438 | sed -n -e "$sed_choose_unconditional_nonstandard_include" \
1439 | sed -e "$sed_escape_dot" | tr -d "$trnl"`
1440 sed_choose_lib_files='s,^lib/\(.*\)$,\1,p'
1441 element=`echo "$files" \
1443 | sed -n -e "$sed_choose_lib_files" \
1444 | sed -e '\|^'"${includefile}"'$|d' \
1445 -e 's,^\(.*\)$,<A HREF="'$repo_url_prefix'lib/\1'$repo_url_suffix_repl'">\1</A>,' \
1446 -e 's/$/<BR>/' | tr -d "$trnl" | sed -e 's/<BR>$//'`
1447 test -n "$element" || element='---'
1448 func_echo "<TD ALIGN=LEFT VALIGN=TOP>$element"
1450 sed_choose_m4_files='s,^m4/\(.*\)$,\1,p'
1451 element=`(echo "$files" \
1452 | sed -e "$sed_remove_trailing_empty_line" \
1453 | sed -n -e "$sed_choose_m4_files" \
1454 | sed -e '/^onceonly/d' \
1455 -e 's,^\(.*\)$,<A HREF="'$repo_url_prefix'm4/\1'$repo_url_suffix_repl'">\1</A>,'; \
1456 gnulib-tool --extract-autoconf-snippet $1 \
1457 | sed -e "$sed_remove_trailing_empty_line") \
1458 | sed -e 's/$/<BR>/' | tr -d "$trnl" | sed -e 's/<BR>$//'`
1459 test -n "$element" || element='---'
1460 func_echo "<TD ALIGN=LEFT VALIGN=TOP>$element"
1462 element=`gnulib-tool --extract-dependencies $1 \
1463 | sed -e "$sed_remove_trailing_empty_line" \
1464 -e 's/$/<BR>/' | tr -d "$trnl" | sed -e 's/<BR>$//'`
1465 test -n "$element" || element='---'
1466 func_echo "<TD ALIGN=LEFT VALIGN=TOP>$element"
1470 func_append seen_modules " $1"
1471 func_append seen_files " $files"
1484 element="Support for systems lacking ANSI C 89"
1485 func_section_wrap ansic_sup
1487 func_echo "$element"
1503 func_module strerror
1507 func_echo 'Most of these modules are not listed among dependencies below, for simplicity.'
1509 element="Enhancements for ANSI C 89 functions"
1510 func_section_wrap ansic_enh
1512 func_echo "$element"
1514 element="Diagnostics <assert.h>"
1515 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1516 func_section_wrap ansic_enh_assert_diagnostics
1518 func_echo "$element"
1525 element="Mathematics <math.h>"
1526 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1527 func_section_wrap ansic_enh_math
1529 func_echo "$element"
1535 element="Input/output <stdio.h>"
1536 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1537 func_section_wrap ansic_enh_stdio
1539 func_echo "$element"
1547 element="Memory management functions <stdlib.h>"
1548 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1549 func_section_wrap ansic_enh_stdlib_memory
1551 func_echo "$element"
1559 func_module pagealign_alloc
1562 element="Sorting functions <stdlib.h>"
1563 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1564 func_section_wrap ansic_enh_stdlib_sorting
1566 func_echo "$element"
1572 element="Date and time <time.h>"
1573 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1574 func_section_wrap ansic_enh_time_datetime
1576 func_echo "$element"
1579 func_module fprintftime
1580 func_module strftime
1583 element="Extra functions based on ANSI C 89"
1584 func_section_wrap ansic_ext
1586 func_echo "$element"
1588 element="Memory management functions <stdlib.h>"
1589 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1590 func_section_wrap ansic_ext_stdlib_memory
1592 func_echo "$element"
1597 func_module xalloc-die
1599 func_module alloca-opt
1601 func_module xmalloca
1604 element="Integer arithmetic functions <stdlib.h>"
1605 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1606 func_section_wrap ansic_ext_stdlib_arith
1608 func_echo "$element"
1611 func_module count-one-bits
1616 element="Environment variables <stdlib.h>"
1617 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1618 func_section_wrap ansic_ext_stdlib_env
1620 func_echo "$element"
1628 element="Character handling <ctype.h>"
1629 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1630 func_section_wrap ansic_ext_ctype
1632 func_echo "$element"
1638 element="String handling <string.h>"
1639 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1640 func_section_wrap ansic_ext_string
1642 func_echo "$element"
1651 func_module c-strcase
1653 func_module c-strcaseeq
1654 func_module c-strcasestr
1655 func_module strcasestr
1656 func_module strchrnul
1660 func_module strnlen1
1663 func_module c-strstr
1666 func_module xstrndup
1669 element="Mathematics <math.h>"
1670 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1671 func_section_wrap ansic_ext_math
1673 func_echo "$element"
1676 func_module printf-frexp
1679 element="Numeric conversion functions <stdlib.h>"
1680 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1681 func_section_wrap ansic_ext_stdlib_conv
1683 func_echo "$element"
1686 func_module c-strtod
1687 func_module c-strtold
1690 func_module xstrtold
1693 element="Date and time <time.h>"
1694 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1695 func_section_wrap ansic_ext_time_datetime
1697 func_echo "$element"
1705 element="Input/Output <stdio.h>"
1706 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1707 func_section_wrap ansic_ext_stdio
1709 func_echo "$element"
1712 func_module unlocked-io
1713 func_module fwriteerror
1714 func_module vasnprintf
1715 func_module vasprintf
1716 func_module xvasprintf
1719 element="Signal handling <signal.h>"
1720 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1721 func_section_wrap ansic_ext_signal
1723 func_echo "$element"
1726 func_module fatal-signal
1730 element="Command-line arguments"
1731 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1732 func_section_wrap ansic_ext_argv
1734 func_echo "$element"
1737 func_module argmatch
1738 func_module version-etc
1739 func_module version-etc-fsf
1740 func_module long-options
1743 element="Container data structures"
1744 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1745 func_section_wrap ansic_ext_container
1747 func_echo "$element"
1751 func_module array-list
1752 func_module carray-list
1753 func_module linked-list
1754 func_module avltree-list
1755 func_module rbtree-list
1756 func_module linkedhash-list
1757 func_module avltreehash-list
1758 func_module rbtreehash-list
1761 func_module array-oset
1762 func_module avltree-oset
1763 func_module rbtree-oset
1766 element="Cryptographic computations (low-level)"
1767 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1768 func_section_wrap ansic_ext_crypto
1770 func_echo "$element"
1773 func_module crypto/arcfour
1774 func_module crypto/arctwo
1775 func_module crypto/des
1776 func_module crypto/hmac-md5
1777 func_module crypto/hmac-sha1
1778 func_module crypto/md2
1779 func_module crypto/md4
1780 func_module crypto/md5
1781 func_module crypto/rijndael
1782 func_module crypto/sha1
1785 element="Cryptographic computations (high-level)"
1786 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1787 func_section_wrap ansic_ext_crypto2
1789 func_echo "$element"
1792 func_module crypto/gc
1793 func_module crypto/gc-arcfour
1794 func_module crypto/gc-arctwo
1795 func_module crypto/gc-des
1796 func_module crypto/gc-hmac-md5
1797 func_module crypto/gc-hmac-sha1
1798 func_module crypto/gc-md2
1799 func_module crypto/gc-md4
1800 func_module crypto/gc-md5
1801 func_module crypto/gc-pbkdf2-sha1
1802 func_module crypto/gc-random
1803 func_module crypto/gc-rijndael
1804 func_module crypto/gc-sha1
1808 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1809 func_section_wrap ansic_ext_misc
1811 func_echo "$element"
1815 func_module check-version
1820 func_module getdelim
1821 func_module getnline
1822 func_module getndelim2
1823 func_module linebuffer
1826 func_module hash-pjw
1828 func_module readline
1829 func_module readtokens
1830 func_module readtokens0
1831 func_module strverscmp
1834 element="Support for systems lacking ISO C 99"
1835 func_section_wrap isoc_sup
1837 func_echo "$element"
1839 element="Core language properties"
1840 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1841 func_section_wrap isoc_core_properties
1843 func_echo "$element"
1846 func_module flexmember
1849 func_module vararrays
1852 element="Sizes of integer types <limits.h>"
1853 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1854 func_section_wrap isoc_sup_limits
1856 func_echo "$element"
1859 func_module size_max
1862 element="Variable arguments <stdarg.h>"
1863 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1864 func_section_wrap isoc_sup_stdarg
1866 func_echo "$element"
1872 element="Boolean type and values <stdbool.h>"
1873 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1874 func_section_wrap isoc_sup_stdbool
1876 func_echo "$element"
1882 element="Integer types and values <stdint.h>"
1883 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1884 func_section_wrap isoc_sup_stdint
1886 func_echo "$element"
1892 element="Input/output <stdio.h>"
1893 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1894 func_section_wrap isoc_sup_stdio
1896 func_echo "$element"
1900 func_module snprintf
1901 func_module vsnprintf
1904 element="Numeric conversion functions <stdlib.h>"
1905 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1906 func_section_wrap isoc_sup_stdlib_conv
1908 func_echo "$element"
1912 func_module strtoull
1915 element="Functions for greatest-width integer types <inttypes.h>"
1916 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1917 func_section_wrap isoc_sup_inttypes
1919 func_echo "$element"
1924 func_module inttypes
1925 func_module strtoimax
1926 func_module strtoumax
1929 element="Extended multibyte and wide character utilities <wchar.h>"
1930 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1931 func_section_wrap isoc_sup_wchar
1933 func_echo "$element"
1939 element="Wide character classification and mapping utilities <wctype.h>"
1940 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1941 func_section_wrap isoc_sup_wctype
1943 func_echo "$element"
1949 element="Characteristics of floating types <float.h>"
1950 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1951 func_section_wrap isoc_sup_float
1953 func_echo "$element"
1959 element="Mathematics <math.h>"
1960 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1961 func_section_wrap isoc_sup_math
1963 func_echo "$element"
1972 func_module frexpl-nolibm
1973 func_module isfinite
1974 func_module isnan-nolibm
1975 func_module isnanf-nolibm
1977 func_module isnanl-nolibm
1990 element="Enhancements for ISO C 99 functions"
1991 func_section_wrap isoc_enh
1993 func_echo "$element"
1995 element="Input/output <stdio.h>"
1996 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1997 func_section_wrap isoc_enh_stdio
1999 func_echo "$element"
2002 func_module printf-safe
2005 element="Extra functions based on ISO C 99"
2006 func_section_wrap isoc_ext
2008 func_echo "$element"
2010 element="Mathematics <math.h>"
2011 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2012 func_section_wrap isoc_ext_math
2014 func_echo "$element"
2017 func_module printf-frexpl
2020 element="Numeric conversion functions <stdlib.h>"
2021 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2022 func_section_wrap isoc_ext_stdlib_conv
2024 func_echo "$element"
2027 func_module intprops
2028 func_module inttostr
2029 func_module xstrtoimax
2030 func_module xstrtoumax
2033 element="Extended multibyte and wide character utilities <wchar.h>"
2034 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2035 func_section_wrap isoc_ext_wchar_mb
2037 func_echo "$element"
2046 element="Support for systems lacking POSIX:2001"
2047 func_section_wrap posix_sup
2049 func_echo "$element"
2052 func_module arpa_inet
2053 func_module calloc-posix
2059 func_module fprintf-posix
2065 func_module ftruncate
2066 func_module getaddrinfo
2068 func_module getgroups
2069 func_module gethostname
2070 func_module getlogin_r
2071 func_module getsubopt
2072 func_module gettimeofday
2073 func_module iconv_open
2074 func_module inet_ntop
2075 func_module inet_pton
2079 func_module malloc-posix
2083 func_module netinet_in
2086 func_module printf-posix
2087 func_module readlink
2088 func_module realloc-posix
2091 func_module snprintf-posix
2092 func_module sprintf-posix
2094 func_module tempname
2097 func_module timespec
2098 func_module nanosleep
2103 func_module sigprocmask
2106 func_module strptime
2107 func_module strtok_r
2108 func_module sys_select
2109 func_module sys_socket
2110 func_module sys_stat
2111 func_module sys_time
2115 func_module vasnprintf-posix
2116 func_module vasprintf-posix
2117 func_module vfprintf-posix
2118 func_module vprintf-posix
2119 func_module vsnprintf-posix
2120 func_module vsprintf-posix
2124 element="Compatibility checks for POSIX:2001 functions"
2125 func_section_wrap posix_compat
2127 func_echo "$element"
2130 func_module clock-time
2133 func_module link-follow
2134 func_module rename-dest-slash
2135 func_module rmdir-errno
2136 func_module unlink-busy
2137 func_module winsz-ioctl
2138 func_module winsz-termios
2141 element="Enhancements for POSIX:2001 functions"
2142 func_section_wrap posix_enh
2144 func_echo "$element"
2147 func_module chdir-long
2150 func_module unistd-safer
2152 func_module fnmatch-posix
2153 func_module fnmatch-gnu
2158 element="Extra functions based on POSIX:2001"
2159 func_section_wrap posix_ext
2161 func_echo "$element"
2163 element="Numeric conversion functions"
2164 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2165 func_section_wrap posix_ext_conv
2167 func_echo "$element"
2173 element="File system functions"
2174 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2175 func_section_wrap posix_ext_filesys
2177 func_echo "$element"
2181 func_module areadlink
2182 func_module areadlink-with-size
2183 func_module backupfile
2184 func_module canonicalize
2185 func_module canonicalize-lgpl
2186 func_module chdir-safer
2187 func_module clean-temp
2188 func_module copy-file
2191 func_module double-slash-root
2192 func_module euidaccess
2193 func_module file-type
2194 func_module fileblocks
2195 func_module filemode
2196 func_module filename
2197 func_module filenamecat
2199 func_module fts-lgpl
2203 func_module mkancesdirs
2205 func_module modechange
2206 func_module mountlist
2209 func_module read-file
2211 func_module save-cwd
2214 func_module stat-time
2216 func_module unlinkdir
2217 func_module utimecmp
2219 func_module write-any-file
2221 func_module xreadlink
2224 element="File system as inode set"
2225 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2226 func_section_wrap posix_ext_inodeset
2228 func_echo "$element"
2231 func_module cycle-check
2233 func_module file-set
2234 func_module hash-triple
2236 func_module same-inode
2239 element="File descriptor based Input/Output"
2240 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2241 func_section_wrap posix_ext_filedesc
2243 func_echo "$element"
2246 func_module fcntl-safer
2247 func_module safe-read
2248 func_module safe-write
2249 func_module full-read
2250 func_module full-write
2251 func_module binary-io
2255 element="File stream based Input/Output"
2256 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2257 func_section_wrap posix_ext_filestream
2259 func_echo "$element"
2262 func_module close-stream
2264 func_module closeout
2265 func_module fbufmode
2266 func_module fopen-safer
2267 func_module fpending
2269 func_module freadable
2270 func_module freadahead
2271 func_module freading
2272 func_module fwritable
2273 func_module fwriting
2275 func_module getpass-gnu
2276 func_module stdlib-safer
2277 func_module tmpfile-safer
2280 element="Users and groups"
2281 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2282 func_section_wrap posix_ext_uidgid
2284 func_echo "$element"
2287 func_module getugroups
2288 func_module group-member
2290 func_module userspec
2293 element="Date and time"
2294 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2295 func_section_wrap posix_ext_datetime
2297 func_echo "$element"
2300 func_module gethrxtime
2304 func_module xnanosleep
2307 element="Networking functions"
2308 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2309 func_section_wrap posix_ext_net
2311 func_echo "$element"
2314 func_module xgethostname
2315 func_module canon-host
2318 element="Multithreading"
2319 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2320 func_section_wrap posix_ext_thread
2322 func_echo "$element"
2330 element="Internationalization functions"
2331 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2332 func_section_wrap posix_ext_i18n
2334 func_echo "$element"
2338 func_module gettext-h
2340 func_module striconv
2341 func_module xstriconv
2342 func_module striconveh
2343 func_module striconveha
2344 func_module localcharset
2345 func_module hard-locale
2346 func_module localename
2352 func_module mbscasecmp
2353 func_module mbsncasecmp
2354 func_module mbspcasecmp
2355 func_module mbscasestr
2360 func_module mbstok_r
2361 func_module mbswidth
2362 func_module memcasecmp
2364 func_module xmemcoll
2365 func_module unicodeio
2368 func_module linebreak
2369 func_module bison-i18n
2372 element="Unicode string functions"
2373 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2374 func_section_wrap posix_ext_unicode
2376 func_echo "$element"
2379 func_module unitypes
2380 func_module ucs4-utf8
2381 func_module ucs4-utf16
2382 func_module utf8-ucs4-unsafe
2383 func_module utf16-ucs4-unsafe
2384 func_module utf8-ucs4
2385 func_module utf16-ucs4
2386 func_module unistr/base
2387 func_module unistr/u8-to-u16
2388 func_module unistr/u8-to-u32
2389 func_module unistr/u16-to-u8
2390 func_module unistr/u16-to-u32
2391 func_module unistr/u32-to-u8
2392 func_module unistr/u32-to-u16
2393 func_module unistr/u8-check
2394 func_module unistr/u16-check
2395 func_module unistr/u32-check
2396 func_module unistr/u8-chr
2397 func_module unistr/u16-chr
2398 func_module unistr/u32-chr
2399 func_module unistr/u8-cmp
2400 func_module unistr/u16-cmp
2401 func_module unistr/u32-cmp
2402 func_module unistr/u8-cpy
2403 func_module unistr/u16-cpy
2404 func_module unistr/u32-cpy
2405 func_module unistr/u8-cpy-alloc
2406 func_module unistr/u16-cpy-alloc
2407 func_module unistr/u32-cpy-alloc
2408 func_module unistr/u8-endswith
2409 func_module unistr/u16-endswith
2410 func_module unistr/u32-endswith
2411 func_module unistr/u8-mblen
2412 func_module unistr/u16-mblen
2413 func_module unistr/u32-mblen
2414 func_module unistr/u8-mbsnlen
2415 func_module unistr/u16-mbsnlen
2416 func_module unistr/u32-mbsnlen
2417 func_module unistr/u8-mbtouc-unsafe
2418 func_module unistr/u16-mbtouc-unsafe
2419 func_module unistr/u32-mbtouc-unsafe
2420 func_module unistr/u8-mbtouc
2421 func_module unistr/u16-mbtouc
2422 func_module unistr/u32-mbtouc
2423 func_module unistr/u8-mbtoucr
2424 func_module unistr/u16-mbtoucr
2425 func_module unistr/u32-mbtoucr
2426 func_module unistr/u8-move
2427 func_module unistr/u16-move
2428 func_module unistr/u32-move
2429 func_module unistr/u8-next
2430 func_module unistr/u16-next
2431 func_module unistr/u32-next
2432 func_module unistr/u8-prev
2433 func_module unistr/u16-prev
2434 func_module unistr/u32-prev
2435 func_module unistr/u8-set
2436 func_module unistr/u16-set
2437 func_module unistr/u32-set
2438 func_module unistr/u8-startswith
2439 func_module unistr/u16-startswith
2440 func_module unistr/u32-startswith
2441 func_module unistr/u8-stpcpy
2442 func_module unistr/u16-stpcpy
2443 func_module unistr/u32-stpcpy
2444 func_module unistr/u8-stpncpy
2445 func_module unistr/u16-stpncpy
2446 func_module unistr/u32-stpncpy
2447 func_module unistr/u8-strcat
2448 func_module unistr/u16-strcat
2449 func_module unistr/u32-strcat
2450 func_module unistr/u8-strchr
2451 func_module unistr/u16-strchr
2452 func_module unistr/u32-strchr
2453 func_module unistr/u8-strcmp
2454 func_module unistr/u16-strcmp
2455 func_module unistr/u32-strcmp
2456 func_module unistr/u8-strcpy
2457 func_module unistr/u16-strcpy
2458 func_module unistr/u32-strcpy
2459 func_module unistr/u8-strcspn
2460 func_module unistr/u16-strcspn
2461 func_module unistr/u32-strcspn
2462 func_module unistr/u8-strdup
2463 func_module unistr/u16-strdup
2464 func_module unistr/u32-strdup
2465 func_module unistr/u8-strlen
2466 func_module unistr/u16-strlen
2467 func_module unistr/u32-strlen
2468 func_module unistr/u8-strmblen
2469 func_module unistr/u16-strmblen
2470 func_module unistr/u32-strmblen
2471 func_module unistr/u8-strmbtouc
2472 func_module unistr/u16-strmbtouc
2473 func_module unistr/u32-strmbtouc
2474 func_module unistr/u8-strncat
2475 func_module unistr/u16-strncat
2476 func_module unistr/u32-strncat
2477 func_module unistr/u8-strncmp
2478 func_module unistr/u16-strncmp
2479 func_module unistr/u32-strncmp
2480 func_module unistr/u8-strncpy
2481 func_module unistr/u16-strncpy
2482 func_module unistr/u32-strncpy
2483 func_module unistr/u8-strnlen
2484 func_module unistr/u16-strnlen
2485 func_module unistr/u32-strnlen
2486 func_module unistr/u8-strpbrk
2487 func_module unistr/u16-strpbrk
2488 func_module unistr/u32-strpbrk
2489 func_module unistr/u8-strrchr
2490 func_module unistr/u16-strrchr
2491 func_module unistr/u32-strrchr
2492 func_module unistr/u8-strspn
2493 func_module unistr/u16-strspn
2494 func_module unistr/u32-strspn
2495 func_module unistr/u8-strstr
2496 func_module unistr/u16-strstr
2497 func_module unistr/u32-strstr
2498 func_module unistr/u8-strtok
2499 func_module unistr/u16-strtok
2500 func_module unistr/u32-strtok
2501 func_module unistr/u8-uctomb
2502 func_module unistr/u16-uctomb
2503 func_module unistr/u32-uctomb
2504 func_module uniconv/base
2505 func_module uniconv/u8-conv-from-enc
2506 func_module uniconv/u16-conv-from-enc
2507 func_module uniconv/u32-conv-from-enc
2508 func_module uniconv/u8-conv-to-enc
2509 func_module uniconv/u16-conv-to-enc
2510 func_module uniconv/u32-conv-to-enc
2511 func_module uniconv/u8-strconv-from-enc
2512 func_module uniconv/u16-strconv-from-enc
2513 func_module uniconv/u32-strconv-from-enc
2514 func_module uniconv/u8-strconv-to-enc
2515 func_module uniconv/u16-strconv-to-enc
2516 func_module uniconv/u32-strconv-to-enc
2517 func_module uniconv/u8-strconv-from-locale
2518 func_module uniconv/u16-strconv-from-locale
2519 func_module uniconv/u32-strconv-from-locale
2520 func_module uniconv/u8-strconv-to-locale
2521 func_module uniconv/u16-strconv-to-locale
2522 func_module uniconv/u32-strconv-to-locale
2523 func_module unistdio/base
2524 func_module unistdio/u-printf-args
2525 func_module unistdio/ulc-asnprintf
2526 func_module unistdio/ulc-asprintf
2527 func_module unistdio/ulc-fprintf
2528 func_module unistdio/ulc-printf-parse
2529 func_module unistdio/ulc-snprintf
2530 func_module unistdio/ulc-sprintf
2531 func_module unistdio/ulc-vasnprintf
2532 func_module unistdio/ulc-vasprintf
2533 func_module unistdio/ulc-vfprintf
2534 func_module unistdio/ulc-vsnprintf
2535 func_module unistdio/ulc-vsprintf
2536 func_module unistdio/u8-asnprintf
2537 func_module unistdio/u8-asprintf
2538 func_module unistdio/u8-printf-parse
2539 func_module unistdio/u8-snprintf
2540 func_module unistdio/u8-sprintf
2541 func_module unistdio/u8-vasnprintf
2542 func_module unistdio/u8-vasprintf
2543 func_module unistdio/u8-vsnprintf
2544 func_module unistdio/u8-vsprintf
2545 func_module unistdio/u8-u8-asnprintf
2546 func_module unistdio/u8-u8-asprintf
2547 func_module unistdio/u8-u8-snprintf
2548 func_module unistdio/u8-u8-sprintf
2549 func_module unistdio/u8-u8-vasnprintf
2550 func_module unistdio/u8-u8-vasprintf
2551 func_module unistdio/u8-u8-vsnprintf
2552 func_module unistdio/u8-u8-vsprintf
2553 func_module unistdio/u16-asnprintf
2554 func_module unistdio/u16-asprintf
2555 func_module unistdio/u16-printf-parse
2556 func_module unistdio/u16-snprintf
2557 func_module unistdio/u16-sprintf
2558 func_module unistdio/u16-vasnprintf
2559 func_module unistdio/u16-vasprintf
2560 func_module unistdio/u16-vsnprintf
2561 func_module unistdio/u16-vsprintf
2562 func_module unistdio/u16-u16-asnprintf
2563 func_module unistdio/u16-u16-asprintf
2564 func_module unistdio/u16-u16-snprintf
2565 func_module unistdio/u16-u16-sprintf
2566 func_module unistdio/u16-u16-vasnprintf
2567 func_module unistdio/u16-u16-vasprintf
2568 func_module unistdio/u16-u16-vsnprintf
2569 func_module unistdio/u16-u16-vsprintf
2570 func_module unistdio/u32-asnprintf
2571 func_module unistdio/u32-asprintf
2572 func_module unistdio/u32-printf-parse
2573 func_module unistdio/u32-snprintf
2574 func_module unistdio/u32-sprintf
2575 func_module unistdio/u32-vasnprintf
2576 func_module unistdio/u32-vasprintf
2577 func_module unistdio/u32-vsnprintf
2578 func_module unistdio/u32-vsprintf
2579 func_module unistdio/u32-u32-asnprintf
2580 func_module unistdio/u32-u32-asprintf
2581 func_module unistdio/u32-u32-snprintf
2582 func_module unistdio/u32-u32-sprintf
2583 func_module unistdio/u32-u32-vasnprintf
2584 func_module unistdio/u32-u32-vasprintf
2585 func_module unistdio/u32-u32-vsnprintf
2586 func_module unistdio/u32-u32-vsprintf
2587 func_module uniname/base
2588 func_module uniname/uniname
2589 func_module uniwidth/base
2590 func_module uniwidth/u8-strwidth
2591 func_module uniwidth/u8-width
2592 func_module uniwidth/u16-strwidth
2593 func_module uniwidth/u16-width
2594 func_module uniwidth/u32-strwidth
2595 func_module uniwidth/u32-width
2596 func_module uniwidth/width
2599 element="Executing programs"
2600 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2601 func_section_wrap posix_ext_exec
2603 func_echo "$element"
2607 func_module findprog
2608 func_module wait-process
2611 func_module sh-quote
2615 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2616 func_section_wrap posix_ext_java
2618 func_echo "$element"
2621 func_module classpath
2622 func_module javacomp-script
2623 func_module javacomp
2624 func_module javaexec-script
2625 func_module javaexec
2626 func_module javaversion
2631 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2632 func_section_wrap posix_ext_csharp
2634 func_echo "$element"
2637 func_module csharpcomp-script
2638 func_module csharpcomp
2639 func_module csharpexec-script
2640 func_module csharpexec
2644 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2645 func_section_wrap posix_ext_misc
2647 func_echo "$element"
2652 func_module byteswap
2653 func_module exitfail
2656 func_module extensions
2657 func_module getdomainname
2658 func_module xgetdomainname
2659 func_module getloadavg
2660 func_module getpagesize
2661 func_module getusershell
2663 func_module posixver
2664 func_module progname
2665 func_module quotearg
2667 func_module readutmp
2669 func_module sysexits
2671 func_module visibility
2674 element="Support for building libraries and executables"
2675 func_section_wrap build_lib
2677 func_echo "$element"
2680 func_module absolute-header
2681 func_module config-h
2682 func_module configmake
2684 func_module elisp-comp
2686 func_module include_next
2688 func_module lib-ignore
2689 func_module link-warning
2691 func_module relocatable-lib
2692 func_module relocatable-lib-lgpl
2693 func_module relocatable-prog
2694 func_module relocatable-prog-wrapper
2695 func_module relocatable-script
2698 element="Support for building documentation"
2699 func_section_wrap build_doc
2701 func_echo "$element"
2708 func_module lgpl-2.1
2709 func_module regexprops-generic
2712 element="Support for maintaining and releasing projects"
2713 func_section_wrap maintain
2715 func_echo "$element"
2718 func_module announce-gen
2719 func_module autobuild
2720 func_module git-version-gen
2721 func_module gnupload
2722 func_module maintainer-makefile
2726 func_section_wrap misc
2728 func_echo "$element"
2739 trap 'exit_status=$?
2740 if test "$signal" != 0; then
2741 echo "caught signal $signal" >&2
2744 exit $exit_status' 0
2745 for signal in 1 2 3 13 15; do
2746 trap '{ signal='$signal'; func_exit 1; }' $signal
2750 echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">'
2755 element="Gnulib Module List"
2757 func_echo "$element"
2759 modules=`gnulib-tool --list`
2760 modules=`for m in $modules; do printf "%s, " $m; done | sed -e 's/, $//'`
2761 func_echo '<META NAME="keywords" CONTENT="'"${modules}"'">'
2767 element="Gnulib Module List"
2769 func_echo "$element"
2771 func_echo 'This is a list of the modules which make up gnulib, with dependencies.'
2780 gnulib-tool --list > "$tmp/all-modules"
2781 missed_modules=`for module in $seen_modules; do echo $module; done \
2782 | LC_ALL=C sort -u \
2783 | LC_ALL=C join -v 2 - "$tmp/all-modules"`
2785 if test -n "$missed_modules"; then
2787 element="Unclassified modules - please update MODULES.html.sh"
2788 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2790 func_echo "$element"
2793 for module in $missed_modules; do
2800 { find lib -type f -print; find m4 -type f -print; } | LC_ALL=C sort | sed -e '/\/\./d' -e /CVS/d -e /README/d -e /ChangeLog/d -e /Makefile/d -e /TODO/d -e '/tags$/d' -e '/TAGS$/d' -e '/~$/d' > "$tmp/all-files"
2801 missed_files=`for file in $seen_files; do echo $file; done \
2802 | LC_ALL=C sort -u \
2803 | LC_ALL=C join -v 2 - "$tmp/all-files"`
2805 if test -n "$missed_files"; then
2807 element="Lone files - please create new modules containing them"
2808 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2810 func_echo "$element"
2813 echo "$missed_files" | sed -e 's,^\(.*\)$,<A HREF="'$repo_url_prefix'\1'$repo_url_suffix_repl'">\1</A>,'
2818 element="Future developments"
2819 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2821 func_echo "$element"
2823 func_echo 'Ideally a module could consist of:'
2825 func_echo '<LI>A header file: lib/<VAR>module</VAR>.h'
2826 func_echo '<LI>One or more implementation files: lib/<VAR>module</VAR>.c et al.'
2827 func_echo '<LI>One or more autoconf macro files: m4/<VAR>module</VAR>.m4 et al.'
2828 func_echo '<LI>A configure.ac fragment, Makefile.am fragment, dependency list: modules/<VAR>module</VAR>'
2829 func_echo '<LI>A testsuite: source files in tests/ and metainformation (a configure.ac fragment, Makefile.am fragment, dependency list) in modules/<VAR>module</VAR>-tests'
2830 func_echo '<LI>Some documentation'
2831 func_echo '<LI>A POT file and some PO files'
2835 func_echo 'Generated from <CODE>MODULES.html.sh</CODE> on '`LC_ALL=C date +"%e %B %Y"`.
2842 # Undo the effect of the previous 'trap' command.
2844 trap 'func_exit $?' 1 2 3 13 15
2849 # indent-tabs-mode: nil
2850 # whitespace-check-buffer-indent: nil