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 2, or (at your option)
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, write to the Free Software
17 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 # Usage: MODULES.html.sh [--cvs-urls|--git-urls] > MODULES.html
22 # Extend the PATH so that gnulib-tool is found.
23 PATH=`dirname "$0"`:$PATH; export PATH
25 POSIX2001_URL='http://www.opengroup.org/susv3'
28 POSIX2001_URL='file:/packages/www/www.opengroup.org/susv3' ;;
36 # Generate URLs to the official gnulib CVS repository.
37 repo_url_prefix='http://cvs.sv.gnu.org/viewcvs/*checkout*/gnulib/'
38 repo_url_suffix='?root=gnulib&content-type=text/plain'
41 # Generate URLs to the official gnulib git repository.
42 repo_url_prefix='http://git.sv.gnu.org/gitweb/?p=gnulib.git;a=blob_plain;f='
47 # For sed replacements: Escape the '&'.
48 repo_url_suffix_repl=`echo "$repo_url_suffix" | sed -e 's,[&],\\\&,'`
52 sed_escape_dot='s,\.,\\.,g'
53 sed_escape_slash='s,/,\\/,g'
56 sed_alt2='s,^\\|,\\(,'
57 sed_alt3='s,\\|\\|$,\\),'
143 ' | sed -e "$sed_alt1" | tr -d "$trnl" | sed -e "$sed_alt2" -e "$sed_alt3"`
144 posix_functions=`echo '
740 posix_spawn_file_actions_addclose
741 posix_spawn_file_actions_adddup2
742 posix_spawn_file_actions_addopen
743 posix_spawn_file_actions_destroy
744 posix_spawn_file_actions_init
745 posix_spawnattr_destroy
746 posix_spawnattr_getflags
747 posix_spawnattr_getpgroup
748 posix_spawnattr_getschedparam
749 posix_spawnattr_getschedpolicy
750 posix_spawnattr_getsigdefault
751 posix_spawnattr_getsigmask
753 posix_spawnattr_setflags
754 posix_spawnattr_setpgroup
755 posix_spawnattr_setschedparam
756 posix_spawnattr_setschedpolicy
757 posix_spawnattr_setsigdefault
758 posix_spawnattr_setsigmask
760 posix_trace_attr_destroy
761 posix_trace_attr_getclockres
762 posix_trace_attr_getcreatetime
763 posix_trace_attr_getgenversion
764 posix_trace_attr_getinherited
765 posix_trace_attr_getlogfullpolicy
766 posix_trace_attr_getlogsize
767 posix_trace_attr_getmaxdatasize
768 posix_trace_attr_getmaxsystemeventsize
769 posix_trace_attr_getmaxusereventsize
770 posix_trace_attr_getname
771 posix_trace_attr_getstreamfullpolicy
772 posix_trace_attr_getstreamsize
773 posix_trace_attr_init
774 posix_trace_attr_setinherited
775 posix_trace_attr_setlogfullpolicy
776 posix_trace_attr_setlogsize
777 posix_trace_attr_setmaxdatasize
778 posix_trace_attr_setname
779 posix_trace_attr_setstreamfullpolicy
780 posix_trace_attr_setstreamsize
784 posix_trace_create_withlog
786 posix_trace_eventid_equal
787 posix_trace_eventid_get_name
788 posix_trace_eventid_open
789 posix_trace_eventset_add
790 posix_trace_eventset_del
791 posix_trace_eventset_empty
792 posix_trace_eventset_fill
793 posix_trace_eventset_ismember
794 posix_trace_eventtypelist_getnext_id
795 posix_trace_eventtypelist_rewind
798 posix_trace_get_filter
799 posix_trace_get_status
800 posix_trace_getnext_event
803 posix_trace_set_filter
807 posix_trace_timedgetnext_event
808 posix_trace_trid_eventid_open
809 posix_trace_trygetnext_event
810 posix_typed_mem_get_info
820 pthread_attr_getdetachstate
821 pthread_attr_getguardsize
822 pthread_attr_getinheritsched
823 pthread_attr_getschedparam
824 pthread_attr_getschedpolicy
825 pthread_attr_getscope
826 pthread_attr_getstack
827 pthread_attr_getstackaddr
828 pthread_attr_getstacksize
830 pthread_attr_setdetachstate
831 pthread_attr_setguardsize
832 pthread_attr_setinheritsched
833 pthread_attr_setschedparam
834 pthread_attr_setschedpolicy
835 pthread_attr_setscope
836 pthread_attr_setstack
837 pthread_attr_setstackaddr
838 pthread_attr_setstacksize
839 pthread_barrier_destroy
842 pthread_barrierattr_destroy
843 pthread_barrierattr_getpshared
844 pthread_barrierattr_init
845 pthread_barrierattr_setpshared
849 pthread_cond_broadcast
853 pthread_cond_timedwait
855 pthread_condattr_destroy
856 pthread_condattr_getclock
857 pthread_condattr_getpshared
858 pthread_condattr_init
859 pthread_condattr_setclock
860 pthread_condattr_setpshared
865 pthread_getconcurrency
866 pthread_getcpuclockid
867 pthread_getschedparam
873 pthread_mutex_destroy
874 pthread_mutex_getprioceiling
877 pthread_mutex_setprioceiling
878 pthread_mutex_timedlock
879 pthread_mutex_trylock
881 pthread_mutexattr_destroy
882 pthread_mutexattr_getprioceiling
883 pthread_mutexattr_getprotocol
884 pthread_mutexattr_getpshared
885 pthread_mutexattr_gettype
886 pthread_mutexattr_init
887 pthread_mutexattr_setprioceiling
888 pthread_mutexattr_setprotocol
889 pthread_mutexattr_setpshared
890 pthread_mutexattr_settype
892 pthread_rwlock_destroy
894 pthread_rwlock_rdlock
895 pthread_rwlock_timedrdlock
896 pthread_rwlock_timedwrlock
897 pthread_rwlock_tryrdlock
898 pthread_rwlock_trywrlock
899 pthread_rwlock_unlock
900 pthread_rwlock_wrlock
901 pthread_rwlockattr_destroy
902 pthread_rwlockattr_getpshared
903 pthread_rwlockattr_init
904 pthread_rwlockattr_setpshared
906 pthread_setcancelstate
907 pthread_setcanceltype
908 pthread_setconcurrency
909 pthread_setschedparam
978 sched_get_priority_max
981 sched_rr_get_interval
1259 ' | sed -e "$sed_alt1" | tr -d "$trnl" | sed -e "$sed_alt2" -e "$sed_alt3"`
1273 # creates a temporary directory.
1275 # - tmp pathname of freshly created temporary directory
1278 # Use the environment variable TMPDIR, falling back to /tmp. This allows
1279 # users to specify a different temporary directory, for example, if their
1280 # /tmp is filled up or too small.
1283 # Use the mktemp program if available. If not available, hide the error
1285 tmp=`(umask 077 && mktemp -d "$TMPDIR/MDXXXXXX") 2>/dev/null` &&
1286 test -n "$tmp" && test -d "$tmp"
1289 # Use a simple mkdir command. It is guaranteed to fail if the directory
1290 # already exists. $RANDOM is bash specific and expands to empty in shells
1291 # other than bash, ksh and zsh. Its use does not increase security;
1292 # rather, it minimizes the probability of failure in a very cluttered /tmp
1294 tmp=$TMPDIR/MD$$-$RANDOM
1295 (umask 077 && mkdir "$tmp")
1298 echo "$0: cannot create a temporary directory in $TMPDIR" >&2
1303 # func_append var value
1304 # appends the given value to the shell variable var.
1305 if ( foo=bar; foo+=baz && test "$foo" = barbaz ) >/dev/null 2>&1; then
1306 # Use bash's += operator. It reduces complexity of appending repeatedly to
1307 # a single variable from O(n^2) to O(n).
1315 eval "$1=\"\$$1\$2\""
1320 # outputs line with indentation.
1327 # increases the indentation.
1334 # decreases the indentation.
1337 indent=`echo "$indent" | sed -e 's/ $//'`
1340 # func_begin tag [attribute...]
1349 # closes a HTML tag.
1356 # func_wrap tag [attribute...]
1357 # encloses $element in a HTML tag, without line breaks.
1360 element="<$*>${element}</$1>"
1363 # func_section_wrap sectiontag
1364 # encloses $element in a HTML tag referring to the given tag.
1365 func_section_wrap ()
1367 if test -n "$in_toc"; then
1368 func_wrap A "HREF=\"#$1\""
1370 func_wrap A "NAME=\"$1\""
1378 if test -z "$in_toc"; then
1380 func_echo "<TH ALIGN=LEFT>modules/"
1381 func_echo "<TH ALIGN=LEFT>lib/"
1382 func_echo "<TH ALIGN=LEFT>lib/"
1383 func_echo "<TH ALIGN=LEFT>m4/"
1384 func_echo "<TH ALIGN=LEFT> "
1387 func_echo "<TH ALIGN=LEFT>Module"
1388 func_echo "<TH ALIGN=LEFT>Header"
1389 func_echo "<TH ALIGN=LEFT>Implementation"
1390 func_echo "<TH ALIGN=LEFT>Autoconf macro"
1391 func_echo "<TH ALIGN=LEFT>Depends on"
1396 # func_module module
1399 sed_remove_trailing_empty_line='${
1403 if test -n "$in_toc"; then
1405 func_begin TR "WIDTH=\"100%\""
1407 element='<A HREF="#module='$1'">'$1'</A>'
1408 func_echo "<TD ALIGN=LEFT VALIGN=TOP WIDTH=\"20%\">$element"
1410 element=`gnulib-tool --extract-description $1 \
1411 | sed -e "$sed_lt" -e "$sed_gt" -e "$sed_remove_trailing_empty_line" \
1413 -e 's,\([^a-zA-Z]\)'"${posix_functions}"'(),\1<A HREF="'"$POSIX2001_URL"'xsh/\2.html">\2</A>(),g' \
1415 func_echo "<TD ALIGN=LEFT VALIGN=TOP WIDTH=\"80%\">$element"
1423 element='<A NAME="module='$1'"></A><A HREF="'$repo_url_prefix'modules/'$1$repo_url_suffix'">'$1'</A>'
1424 func_echo "<TD ALIGN=LEFT VALIGN=TOP>$element"
1426 includes=`gnulib-tool --extract-include-directive $1`
1427 files=`gnulib-tool --extract-filelist $1 \
1428 | grep -v '^m4/gnulib-common\.m4$'`
1429 element=`echo "$includes" \
1430 | sed -e "$sed_lt" -e "$sed_gt" -e "$sed_remove_trailing_empty_line" \
1431 -e 's,^#include "\(.*\)"$,#include "<A HREF="'$repo_url_prefix'lib/\1'$repo_url_suffix_repl'">\1</A>",' \
1432 -e 's,^#include <'"${posix_headers}"'\.h>$,#include \<<A HREF="'"$POSIX2001_URL"'xbd/\1.h.html">\1.h</A>\>,' \
1433 -e 's/$/<BR>/' | tr -d "$trnl" | sed -e 's/<BR>$//'`
1434 test -n "$element" || element='---'
1435 func_echo "<TD ALIGN=LEFT VALIGN=TOP>$element"
1437 sed_choose_unconditional_nonstandard_include='s,^#include "\(.*\)"$,\1,p'
1438 includefile=`echo "$includes" \
1439 | sed -n -e "$sed_choose_unconditional_nonstandard_include" \
1440 | sed -e "$sed_escape_dot" | tr -d "$trnl"`
1441 sed_choose_lib_files='s,^lib/\(.*\)$,\1,p'
1442 element=`echo "$files" \
1444 | sed -n -e "$sed_choose_lib_files" \
1445 | sed -e '\|^'"${includefile}"'$|d' \
1446 -e 's,^\(.*\)$,<A HREF="'$repo_url_prefix'lib/\1'$repo_url_suffix_repl'">\1</A>,' \
1447 -e 's/$/<BR>/' | tr -d "$trnl" | sed -e 's/<BR>$//'`
1448 test -n "$element" || element='---'
1449 func_echo "<TD ALIGN=LEFT VALIGN=TOP>$element"
1451 sed_choose_m4_files='s,^m4/\(.*\)$,\1,p'
1452 element=`(echo "$files" \
1453 | sed -e "$sed_remove_trailing_empty_line" \
1454 | sed -n -e "$sed_choose_m4_files" \
1455 | sed -e '/^onceonly/d' \
1456 -e 's,^\(.*\)$,<A HREF="'$repo_url_prefix'm4/\1'$repo_url_suffix_repl'">\1</A>,'; \
1457 gnulib-tool --extract-autoconf-snippet $1 \
1458 | sed -e "$sed_remove_trailing_empty_line") \
1459 | sed -e 's/$/<BR>/' | tr -d "$trnl" | sed -e 's/<BR>$//'`
1460 test -n "$element" || element='---'
1461 func_echo "<TD ALIGN=LEFT VALIGN=TOP>$element"
1463 element=`gnulib-tool --extract-dependencies $1 \
1464 | sed -e "$sed_remove_trailing_empty_line" \
1465 -e 's/$/<BR>/' | tr -d "$trnl" | sed -e 's/<BR>$//'`
1466 test -n "$element" || element='---'
1467 func_echo "<TD ALIGN=LEFT VALIGN=TOP>$element"
1471 func_append seen_modules " $1"
1472 func_append seen_files " $files"
1485 element="Support for systems lacking ANSI C 89"
1486 func_section_wrap ansic_sup
1488 func_echo "$element"
1504 func_module strerror
1508 func_echo 'Most of these modules are not listed among dependencies below, for simplicity.'
1510 element="Enhancements for ANSI C 89 functions"
1511 func_section_wrap ansic_enh
1513 func_echo "$element"
1515 element="Diagnostics <assert.h>"
1516 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1517 func_section_wrap ansic_enh_assert_diagnostics
1519 func_echo "$element"
1526 element="Mathematics <math.h>"
1527 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1528 func_section_wrap ansic_enh_math
1530 func_echo "$element"
1536 element="Input/output <stdio.h>"
1537 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1538 func_section_wrap ansic_enh_stdio
1540 func_echo "$element"
1548 element="Memory management functions <stdlib.h>"
1549 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1550 func_section_wrap ansic_enh_stdlib_memory
1552 func_echo "$element"
1560 func_module pagealign_alloc
1563 element="Sorting functions <stdlib.h>"
1564 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1565 func_section_wrap ansic_enh_stdlib_sorting
1567 func_echo "$element"
1573 element="Date and time <time.h>"
1574 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1575 func_section_wrap ansic_enh_time_datetime
1577 func_echo "$element"
1580 func_module fprintftime
1581 func_module strftime
1584 element="Extra functions based on ANSI C 89"
1585 func_section_wrap ansic_ext
1587 func_echo "$element"
1589 element="Memory management functions <stdlib.h>"
1590 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1591 func_section_wrap ansic_ext_stdlib_memory
1593 func_echo "$element"
1598 func_module xalloc-die
1600 func_module alloca-opt
1602 func_module xmalloca
1605 element="Integer arithmetic functions <stdlib.h>"
1606 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1607 func_section_wrap ansic_ext_stdlib_arith
1609 func_echo "$element"
1612 func_module count-one-bits
1617 element="Environment variables <stdlib.h>"
1618 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1619 func_section_wrap ansic_ext_stdlib_env
1621 func_echo "$element"
1629 element="Character handling <ctype.h>"
1630 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1631 func_section_wrap ansic_ext_ctype
1633 func_echo "$element"
1639 element="String handling <string.h>"
1640 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1641 func_section_wrap ansic_ext_string
1643 func_echo "$element"
1652 func_module c-strcase
1654 func_module c-strcaseeq
1655 func_module c-strcasestr
1656 func_module strcasestr
1657 func_module strchrnul
1661 func_module strnlen1
1664 func_module c-strstr
1667 func_module xstrndup
1670 element="Mathematics <math.h>"
1671 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1672 func_section_wrap ansic_ext_math
1674 func_echo "$element"
1677 func_module printf-frexp
1680 element="Numeric conversion functions <stdlib.h>"
1681 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1682 func_section_wrap ansic_ext_stdlib_conv
1684 func_echo "$element"
1687 func_module c-strtod
1688 func_module c-strtold
1691 func_module xstrtold
1694 element="Date and time <time.h>"
1695 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1696 func_section_wrap ansic_ext_time_datetime
1698 func_echo "$element"
1706 element="Input/Output <stdio.h>"
1707 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1708 func_section_wrap ansic_ext_stdio
1710 func_echo "$element"
1713 func_module unlocked-io
1714 func_module fwriteerror
1715 func_module vasnprintf
1716 func_module vasprintf
1717 func_module xvasprintf
1720 element="Signal handling <signal.h>"
1721 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1722 func_section_wrap ansic_ext_signal
1724 func_echo "$element"
1727 func_module fatal-signal
1731 element="Command-line arguments"
1732 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1733 func_section_wrap ansic_ext_argv
1735 func_echo "$element"
1738 func_module argmatch
1739 func_module version-etc
1740 func_module version-etc-fsf
1741 func_module long-options
1744 element="Container data structures"
1745 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1746 func_section_wrap ansic_ext_container
1748 func_echo "$element"
1752 func_module array-list
1753 func_module carray-list
1754 func_module linked-list
1755 func_module avltree-list
1756 func_module rbtree-list
1757 func_module linkedhash-list
1758 func_module avltreehash-list
1759 func_module rbtreehash-list
1762 func_module array-oset
1763 func_module avltree-oset
1764 func_module rbtree-oset
1767 element="Cryptographic computations (low-level)"
1768 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1769 func_section_wrap ansic_ext_crypto
1771 func_echo "$element"
1774 func_module crypto/arcfour
1775 func_module crypto/arctwo
1776 func_module crypto/des
1777 func_module crypto/hmac-md5
1778 func_module crypto/hmac-sha1
1779 func_module crypto/md2
1780 func_module crypto/md4
1781 func_module crypto/md5
1782 func_module crypto/rijndael
1783 func_module crypto/sha1
1786 element="Cryptographic computations (high-level)"
1787 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1788 func_section_wrap ansic_ext_crypto2
1790 func_echo "$element"
1793 func_module crypto/gc
1794 func_module crypto/gc-arcfour
1795 func_module crypto/gc-arctwo
1796 func_module crypto/gc-des
1797 func_module crypto/gc-hmac-md5
1798 func_module crypto/gc-hmac-sha1
1799 func_module crypto/gc-md2
1800 func_module crypto/gc-md4
1801 func_module crypto/gc-md5
1802 func_module crypto/gc-pbkdf2-sha1
1803 func_module crypto/gc-random
1804 func_module crypto/gc-rijndael
1805 func_module crypto/gc-sha1
1809 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1810 func_section_wrap ansic_ext_misc
1812 func_echo "$element"
1816 func_module check-version
1820 func_module getdelim
1821 func_module getnline
1822 func_module getndelim2
1823 func_module linebuffer
1825 func_module hash-pjw
1827 func_module readline
1828 func_module readtokens
1829 func_module readtokens0
1830 func_module strverscmp
1833 element="Support for systems lacking ISO C 99"
1834 func_section_wrap isoc_sup
1836 func_echo "$element"
1838 element="Core language properties"
1839 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1840 func_section_wrap isoc_core_properties
1842 func_echo "$element"
1845 func_module flexmember
1848 func_module vararrays
1851 element="Sizes of integer types <limits.h>"
1852 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1853 func_section_wrap isoc_sup_limits
1855 func_echo "$element"
1858 func_module size_max
1861 element="Variable arguments <stdarg.h>"
1862 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1863 func_section_wrap isoc_sup_stdarg
1865 func_echo "$element"
1871 element="Boolean type and values <stdbool.h>"
1872 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1873 func_section_wrap isoc_sup_stdbool
1875 func_echo "$element"
1881 element="Integer types and values <stdint.h>"
1882 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1883 func_section_wrap isoc_sup_stdint
1885 func_echo "$element"
1891 element="Input/output <stdio.h>"
1892 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1893 func_section_wrap isoc_sup_stdio
1895 func_echo "$element"
1899 func_module snprintf
1900 func_module vsnprintf
1903 element="Numeric conversion functions <stdlib.h>"
1904 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1905 func_section_wrap isoc_sup_stdlib_conv
1907 func_echo "$element"
1911 func_module strtoull
1914 element="Functions for greatest-width integer types <inttypes.h>"
1915 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1916 func_section_wrap isoc_sup_inttypes
1918 func_echo "$element"
1923 func_module inttypes
1924 func_module strtoimax
1925 func_module strtoumax
1928 element="Extended multibyte and wide character utilities <wchar.h>"
1929 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1930 func_section_wrap isoc_sup_wchar
1932 func_echo "$element"
1938 element="Wide character classification and mapping utilities <wctype.h>"
1939 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1940 func_section_wrap isoc_sup_wctype
1942 func_echo "$element"
1948 element="Mathematics <math.h>"
1949 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1950 func_section_wrap isoc_sup_math
1952 func_echo "$element"
1957 func_module isnan-nolibm
1959 func_module isnanl-nolibm
1965 element="Enhancements for ISO C 99 functions"
1966 func_section_wrap isoc_enh
1968 func_echo "$element"
1973 element="Extra functions based on ISO C 99"
1974 func_section_wrap isoc_ext
1976 func_echo "$element"
1978 element="Mathematics <math.h>"
1979 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1980 func_section_wrap isoc_ext_math
1982 func_echo "$element"
1985 func_module printf-frexpl
1988 element="Numeric conversion functions <stdlib.h>"
1989 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
1990 func_section_wrap isoc_ext_stdlib_conv
1992 func_echo "$element"
1995 func_module intprops
1996 func_module inttostr
1997 func_module xstrtoimax
1998 func_module xstrtoumax
2001 element="Extended multibyte and wide character utilities <wchar.h>"
2002 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2003 func_section_wrap isoc_ext_wchar_mb
2005 func_echo "$element"
2014 element="Support for systems lacking POSIX:2001"
2015 func_section_wrap posix_sup
2017 func_echo "$element"
2023 func_module fprintf-posix
2024 func_module ftruncate
2025 func_module getaddrinfo
2027 func_module getgroups
2028 func_module gethostname
2029 func_module getlogin_r
2030 func_module getsubopt
2031 func_module gettimeofday
2032 func_module inet_ntop
2033 func_module inet_pton
2040 func_module printf-posix
2041 func_module readlink
2042 func_module snprintf-posix
2043 func_module sprintf-posix
2045 func_module tempname
2048 func_module timespec
2049 func_module nanosleep
2054 func_module sigprocmask
2057 func_module strptime
2058 func_module strtok_r
2059 func_module sys_select
2060 func_module sys_socket
2061 func_module sys_stat
2062 func_module sys_time
2066 func_module vasnprintf-posix
2067 func_module vasprintf-posix
2068 func_module vfprintf-posix
2069 func_module vprintf-posix
2070 func_module vsnprintf-posix
2071 func_module vsprintf-posix
2075 element="Compatibility checks for POSIX:2001 functions"
2076 func_section_wrap posix_compat
2078 func_echo "$element"
2083 func_module link-follow
2084 func_module rename-dest-slash
2085 func_module rmdir-errno
2086 func_module unlink-busy
2087 func_module winsz-ioctl
2088 func_module winsz-termios
2091 element="Enhancements for POSIX:2001 functions"
2092 func_section_wrap posix_enh
2094 func_echo "$element"
2099 func_module unistd-safer
2101 func_module fnmatch-posix
2102 func_module fnmatch-gnu
2107 element="Extra functions based on POSIX:2001"
2108 func_section_wrap posix_ext
2110 func_echo "$element"
2112 element="Numeric conversion functions"
2113 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2114 func_section_wrap posix_ext_conv
2116 func_echo "$element"
2122 element="File system functions"
2123 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2124 func_section_wrap posix_ext_filesys
2126 func_echo "$element"
2130 func_module backupfile
2131 func_module canonicalize
2132 func_module canonicalize-lgpl
2133 func_module clean-temp
2134 func_module copy-file
2135 func_module cycle-check
2138 func_module double-slash-root
2139 func_module euidaccess
2140 func_module file-type
2141 func_module fileblocks
2142 func_module filemode
2143 func_module filename
2144 func_module filenamecat
2146 func_module fts-lgpl
2150 func_module mkancesdirs
2152 func_module modechange
2153 func_module mountlist
2154 func_module mreadlink-with-size
2158 func_module save-cwd
2161 func_module stat-time
2163 func_module unlinkdir
2164 func_module utimecmp
2166 func_module write-any-file
2168 func_module xreadlink
2171 element="File descriptor based Input/Output"
2172 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2173 func_section_wrap posix_ext_filedesc
2175 func_echo "$element"
2178 func_module fcntl-safer
2179 func_module safe-read
2180 func_module safe-write
2181 func_module full-read
2182 func_module full-write
2183 func_module binary-io
2187 element="File stream based Input/Output"
2188 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2189 func_section_wrap posix_ext_filestream
2191 func_echo "$element"
2194 func_module close-stream
2196 func_module closeout
2197 func_module fopen-safer
2198 func_module fpending
2199 func_module freading
2200 func_module fwriting
2202 func_module getpass-gnu
2203 func_module stdlib-safer
2204 func_module tmpfile-safer
2207 element="Users and groups"
2208 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2209 func_section_wrap posix_ext_uidgid
2211 func_echo "$element"
2214 func_module getugroups
2215 func_module group-member
2217 func_module userspec
2220 element="Date and time"
2221 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2222 func_section_wrap posix_ext_datetime
2224 func_echo "$element"
2230 func_module xnanosleep
2233 element="Networking functions"
2234 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2235 func_section_wrap posix_ext_net
2237 func_echo "$element"
2240 func_module xgethostname
2241 func_module canon-host
2244 element="Multithreading"
2245 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2246 func_section_wrap posix_ext_thread
2248 func_echo "$element"
2255 element="Internationalization functions"
2256 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2257 func_section_wrap posix_ext_i18n
2259 func_echo "$element"
2263 func_module gettext-h
2265 func_module striconv
2266 func_module xstriconv
2267 func_module striconveh
2268 func_module striconveha
2269 func_module localcharset
2270 func_module hard-locale
2276 func_module mbscasecmp
2277 func_module mbsncasecmp
2278 func_module mbspcasecmp
2279 func_module mbscasestr
2284 func_module mbstok_r
2285 func_module mbswidth
2286 func_module memcasecmp
2288 func_module xmemcoll
2289 func_module unicodeio
2292 func_module linebreak
2293 func_module bison-i18n
2296 element="Unicode string functions"
2297 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2298 func_section_wrap posix_ext_unicode
2300 func_echo "$element"
2303 func_module unitypes
2304 func_module ucs4-utf8
2305 func_module ucs4-utf16
2306 func_module utf8-ucs4-unsafe
2307 func_module utf16-ucs4-unsafe
2308 func_module utf8-ucs4
2309 func_module utf16-ucs4
2310 func_module unistr/base
2311 func_module unistr/u8-to-u16
2312 func_module unistr/u8-to-u32
2313 func_module unistr/u16-to-u8
2314 func_module unistr/u16-to-u32
2315 func_module unistr/u32-to-u8
2316 func_module unistr/u32-to-u16
2317 func_module unistr/u8-check
2318 func_module unistr/u16-check
2319 func_module unistr/u32-check
2320 func_module unistr/u8-chr
2321 func_module unistr/u16-chr
2322 func_module unistr/u32-chr
2323 func_module unistr/u8-cmp
2324 func_module unistr/u16-cmp
2325 func_module unistr/u32-cmp
2326 func_module unistr/u8-cpy
2327 func_module unistr/u16-cpy
2328 func_module unistr/u32-cpy
2329 func_module unistr/u8-cpy-alloc
2330 func_module unistr/u16-cpy-alloc
2331 func_module unistr/u32-cpy-alloc
2332 func_module unistr/u8-endswith
2333 func_module unistr/u16-endswith
2334 func_module unistr/u32-endswith
2335 func_module unistr/u8-mblen
2336 func_module unistr/u16-mblen
2337 func_module unistr/u32-mblen
2338 func_module unistr/u8-mbtouc-unsafe
2339 func_module unistr/u16-mbtouc-unsafe
2340 func_module unistr/u32-mbtouc-unsafe
2341 func_module unistr/u8-mbtouc
2342 func_module unistr/u16-mbtouc
2343 func_module unistr/u32-mbtouc
2344 func_module unistr/u8-mbtoucr
2345 func_module unistr/u16-mbtoucr
2346 func_module unistr/u32-mbtoucr
2347 func_module unistr/u8-move
2348 func_module unistr/u16-move
2349 func_module unistr/u32-move
2350 func_module unistr/u8-next
2351 func_module unistr/u16-next
2352 func_module unistr/u32-next
2353 func_module unistr/u8-prev
2354 func_module unistr/u16-prev
2355 func_module unistr/u32-prev
2356 func_module unistr/u8-set
2357 func_module unistr/u16-set
2358 func_module unistr/u32-set
2359 func_module unistr/u8-startswith
2360 func_module unistr/u16-startswith
2361 func_module unistr/u32-startswith
2362 func_module unistr/u8-stpcpy
2363 func_module unistr/u16-stpcpy
2364 func_module unistr/u32-stpcpy
2365 func_module unistr/u8-stpncpy
2366 func_module unistr/u16-stpncpy
2367 func_module unistr/u32-stpncpy
2368 func_module unistr/u8-strcat
2369 func_module unistr/u16-strcat
2370 func_module unistr/u32-strcat
2371 func_module unistr/u8-strchr
2372 func_module unistr/u16-strchr
2373 func_module unistr/u32-strchr
2374 func_module unistr/u8-strcmp
2375 func_module unistr/u16-strcmp
2376 func_module unistr/u32-strcmp
2377 func_module unistr/u8-strcpy
2378 func_module unistr/u16-strcpy
2379 func_module unistr/u32-strcpy
2380 func_module unistr/u8-strcspn
2381 func_module unistr/u16-strcspn
2382 func_module unistr/u32-strcspn
2383 func_module unistr/u8-strdup
2384 func_module unistr/u16-strdup
2385 func_module unistr/u32-strdup
2386 func_module unistr/u8-strlen
2387 func_module unistr/u16-strlen
2388 func_module unistr/u32-strlen
2389 func_module unistr/u8-strmblen
2390 func_module unistr/u16-strmblen
2391 func_module unistr/u32-strmblen
2392 func_module unistr/u8-strmbtouc
2393 func_module unistr/u16-strmbtouc
2394 func_module unistr/u32-strmbtouc
2395 func_module unistr/u8-strncat
2396 func_module unistr/u16-strncat
2397 func_module unistr/u32-strncat
2398 func_module unistr/u8-strncmp
2399 func_module unistr/u16-strncmp
2400 func_module unistr/u32-strncmp
2401 func_module unistr/u8-strncpy
2402 func_module unistr/u16-strncpy
2403 func_module unistr/u32-strncpy
2404 func_module unistr/u8-strnlen
2405 func_module unistr/u16-strnlen
2406 func_module unistr/u32-strnlen
2407 func_module unistr/u8-strpbrk
2408 func_module unistr/u16-strpbrk
2409 func_module unistr/u32-strpbrk
2410 func_module unistr/u8-strrchr
2411 func_module unistr/u16-strrchr
2412 func_module unistr/u32-strrchr
2413 func_module unistr/u8-strspn
2414 func_module unistr/u16-strspn
2415 func_module unistr/u32-strspn
2416 func_module unistr/u8-strstr
2417 func_module unistr/u16-strstr
2418 func_module unistr/u32-strstr
2419 func_module unistr/u8-strtok
2420 func_module unistr/u16-strtok
2421 func_module unistr/u32-strtok
2422 func_module unistr/u8-uctomb
2423 func_module unistr/u16-uctomb
2424 func_module unistr/u32-uctomb
2425 func_module uniconv/base
2426 func_module uniconv/u8-conv-from-enc
2427 func_module uniconv/u16-conv-from-enc
2428 func_module uniconv/u32-conv-from-enc
2429 func_module uniconv/u8-conv-to-enc
2430 func_module uniconv/u16-conv-to-enc
2431 func_module uniconv/u32-conv-to-enc
2432 func_module uniconv/u8-strconv-from-enc
2433 func_module uniconv/u16-strconv-from-enc
2434 func_module uniconv/u32-strconv-from-enc
2435 func_module uniconv/u8-strconv-to-enc
2436 func_module uniconv/u16-strconv-to-enc
2437 func_module uniconv/u32-strconv-to-enc
2438 func_module uniconv/u8-strconv-from-locale
2439 func_module uniconv/u16-strconv-from-locale
2440 func_module uniconv/u32-strconv-from-locale
2441 func_module uniconv/u8-strconv-to-locale
2442 func_module uniconv/u16-strconv-to-locale
2443 func_module uniconv/u32-strconv-to-locale
2444 func_module unistdio/base
2445 func_module unistdio/u-printf-args
2446 func_module unistdio/ulc-asnprintf
2447 func_module unistdio/ulc-asprintf
2448 func_module unistdio/ulc-fprintf
2449 func_module unistdio/ulc-printf-parse
2450 func_module unistdio/ulc-snprintf
2451 func_module unistdio/ulc-sprintf
2452 func_module unistdio/ulc-vasnprintf
2453 func_module unistdio/ulc-vasprintf
2454 func_module unistdio/ulc-vfprintf
2455 func_module unistdio/ulc-vsnprintf
2456 func_module unistdio/ulc-vsprintf
2457 func_module unistdio/u8-asnprintf
2458 func_module unistdio/u8-asprintf
2459 func_module unistdio/u8-printf-parse
2460 func_module unistdio/u8-snprintf
2461 func_module unistdio/u8-sprintf
2462 func_module unistdio/u8-vasnprintf
2463 func_module unistdio/u8-vasprintf
2464 func_module unistdio/u8-vsnprintf
2465 func_module unistdio/u8-vsprintf
2466 func_module unistdio/u8-u8-asnprintf
2467 func_module unistdio/u8-u8-asprintf
2468 func_module unistdio/u8-u8-snprintf
2469 func_module unistdio/u8-u8-sprintf
2470 func_module unistdio/u8-u8-vasnprintf
2471 func_module unistdio/u8-u8-vasprintf
2472 func_module unistdio/u8-u8-vsnprintf
2473 func_module unistdio/u8-u8-vsprintf
2474 func_module unistdio/u16-asnprintf
2475 func_module unistdio/u16-asprintf
2476 func_module unistdio/u16-printf-parse
2477 func_module unistdio/u16-snprintf
2478 func_module unistdio/u16-sprintf
2479 func_module unistdio/u16-vasnprintf
2480 func_module unistdio/u16-vasprintf
2481 func_module unistdio/u16-vsnprintf
2482 func_module unistdio/u16-vsprintf
2483 func_module unistdio/u16-u16-asnprintf
2484 func_module unistdio/u16-u16-asprintf
2485 func_module unistdio/u16-u16-snprintf
2486 func_module unistdio/u16-u16-sprintf
2487 func_module unistdio/u16-u16-vasnprintf
2488 func_module unistdio/u16-u16-vasprintf
2489 func_module unistdio/u16-u16-vsnprintf
2490 func_module unistdio/u16-u16-vsprintf
2491 func_module unistdio/u32-asnprintf
2492 func_module unistdio/u32-asprintf
2493 func_module unistdio/u32-printf-parse
2494 func_module unistdio/u32-snprintf
2495 func_module unistdio/u32-sprintf
2496 func_module unistdio/u32-vasnprintf
2497 func_module unistdio/u32-vasprintf
2498 func_module unistdio/u32-vsnprintf
2499 func_module unistdio/u32-vsprintf
2500 func_module unistdio/u32-u32-asnprintf
2501 func_module unistdio/u32-u32-asprintf
2502 func_module unistdio/u32-u32-snprintf
2503 func_module unistdio/u32-u32-sprintf
2504 func_module unistdio/u32-u32-vasnprintf
2505 func_module unistdio/u32-u32-vasprintf
2506 func_module unistdio/u32-u32-vsnprintf
2507 func_module unistdio/u32-u32-vsprintf
2508 func_module uniname/base
2509 func_module uniname/uniname
2510 func_module uniwidth/base
2511 func_module uniwidth/u8-strwidth
2512 func_module uniwidth/u8-width
2513 func_module uniwidth/u16-strwidth
2514 func_module uniwidth/u16-width
2515 func_module uniwidth/u32-strwidth
2516 func_module uniwidth/u32-width
2517 func_module uniwidth/width
2520 element="Executing programs"
2521 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2522 func_section_wrap posix_ext_exec
2524 func_echo "$element"
2528 func_module findprog
2529 func_module wait-process
2532 func_module sh-quote
2536 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2537 func_section_wrap posix_ext_java
2539 func_echo "$element"
2542 func_module classpath
2543 func_module javacomp-script
2544 func_module javacomp
2545 func_module javaexec-script
2546 func_module javaexec
2547 func_module javaversion
2552 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2553 func_section_wrap posix_ext_csharp
2555 func_echo "$element"
2558 func_module csharpcomp-script
2559 func_module csharpcomp
2560 func_module csharpexec-script
2561 func_module csharpexec
2565 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2566 func_section_wrap posix_ext_misc
2568 func_echo "$element"
2573 func_module byteswap
2574 func_module exitfail
2577 func_module extensions
2578 func_module getdomainname
2579 func_module xgetdomainname
2580 func_module getloadavg
2581 func_module getpagesize
2582 func_module getusershell
2584 func_module posixver
2585 func_module progname
2586 func_module quotearg
2588 func_module readutmp
2590 func_module sysexits
2592 func_module visibility
2595 element="Support for building libraries and executables"
2596 func_section_wrap build_lib
2598 func_echo "$element"
2601 func_module absolute-header
2602 func_module config-h
2603 func_module configmake
2605 func_module elisp-comp
2607 func_module include_next
2609 func_module lib-ignore
2610 func_module link-warning
2612 func_module relocatable-lib
2613 func_module relocatable-lib-lgpl
2614 func_module relocatable-prog
2615 func_module relocatable-prog-wrapper
2616 func_module relocatable-script
2619 element="Support for building documentation"
2620 func_section_wrap build_doc
2622 func_echo "$element"
2629 func_module lgpl-2.1
2630 func_module regexprops-generic
2633 element="Support for maintaining and releasing projects"
2634 func_section_wrap maintain
2636 func_echo "$element"
2639 func_module announce-gen
2640 func_module autobuild
2641 func_module gnupload
2642 func_module maintainer-makefile
2646 func_section_wrap misc
2648 func_echo "$element"
2659 trap 'exit_status=$?
2660 if test "$signal" != 0; then
2661 echo "caught signal $signal" >&2
2664 exit $exit_status' 0
2665 for signal in 1 2 3 13 15; do
2666 trap '{ signal='$signal'; func_exit 1; }' $signal
2670 echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">'
2675 element="Gnulib Module List"
2677 func_echo "$element"
2679 modules=`gnulib-tool --list`
2680 modules=`for m in $modules; do printf "%s, " $m; done | sed -e 's/, $//'`
2681 func_echo '<META NAME="keywords" CONTENT="'"${modules}"'">'
2687 element="Gnulib Module List"
2689 func_echo "$element"
2691 func_echo 'This is a list of the modules which make up gnulib, with dependencies.'
2700 gnulib-tool --list > "$tmp/all-modules"
2701 missed_modules=`for module in $seen_modules; do echo $module; done \
2702 | LC_ALL=C sort -u \
2703 | LC_ALL=C join -v 2 - "$tmp/all-modules"`
2705 if test -n "$missed_modules"; then
2707 element="Unclassified modules - please update MODULES.html.sh"
2708 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2710 func_echo "$element"
2713 for module in $missed_modules; do
2720 LC_ALL=C ls -d lib/* m4/* | sed -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"
2721 missed_files=`for file in $seen_files; do echo $file; done \
2722 | LC_ALL=C sort -u \
2723 | LC_ALL=C join -v 2 - "$tmp/all-files"`
2725 if test -n "$missed_files"; then
2727 element="Lone files - please create new modules containing them"
2728 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2730 func_echo "$element"
2733 echo "$missed_files" | sed -e 's,^\(.*\)$,<A HREF="'$repo_url_prefix'\1'$repo_url_suffix_repl'">\1</A>,'
2738 element="Future developments"
2739 element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
2741 func_echo "$element"
2743 func_echo 'Ideally a module could consist of:'
2745 func_echo '<LI>A header file: lib/<VAR>module</VAR>.h'
2746 func_echo '<LI>One or more implementation files: lib/<VAR>module</VAR>.c et al.'
2747 func_echo '<LI>One or more autoconf macro files: m4/<VAR>module</VAR>.m4 et al.'
2748 func_echo '<LI>A configure.ac fragment, Makefile.am fragment, dependency list: modules/<VAR>module</VAR>'
2749 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'
2750 func_echo '<LI>Some documentation'
2751 func_echo '<LI>A POT file and some PO files'
2755 func_echo 'Generated from <CODE>MODULES.html.sh</CODE> on '`LC_ALL=C date +"%e %B %Y"`.
2762 # Undo the effect of the previous 'trap' command.
2764 trap 'func_exit $?' 1 2 3 13 15
2769 # indent-tabs-mode: nil
2770 # whitespace-check-buffer-indent: nil