Import from coreutils.
[gnulib.git] / MODULES.html.sh
index eeabdb9..3c6ce5f 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# Copyright (C) 2002-2004 Free Software Foundation, Inc.
+# Copyright (C) 2002-2006 Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -14,7 +14,7 @@
 #
 # You should have received a copy of the GNU General Public License
 # along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 #
 
 # Usage: MODULES.html.sh > MODULES.html
 # Extend the PATH so that gnulib-tool is found.
 PATH=`dirname "$0"`:$PATH; export PATH
 
-POSIX2001_URL='http://www.opengroup.org/onlinepubs/007904975/'
+POSIX2001_URL='http://www.opengroup.org/susv3'
 case $USER in
   bruno )
-    POSIX2001_URL='file:/packages/www/www.opengroup.org/susv3/' ;;
+    POSIX2001_URL='file:/packages/www/www.opengroup.org/susv3' ;;
 esac
 
 sed_lt='s,<,\&lt;,g'
@@ -1337,7 +1337,7 @@ func_module ()
     element='<A HREF="#module='$1'">'$1'</A>'
     func_echo "<TD ALIGN=LEFT VALIGN=TOP WIDTH=\"20%\">$element"
 
-    element=`gnulib-tool --extract-description $1 | sed -e "$sed_lt" -e "$sed_gt" -e "$sed_remove_trailing_empty_line" | sed -e 's,^, ,' | sed -e 's,\([^a-zA-Z]\)'"${posix_functions}"'(),\1<A HREF="'"$POSIX2001_URL"'functions/\2.html">\2</A>(),g' | sed -e 's,^ ,,'`
+    element=`gnulib-tool --extract-description $1 | sed -e "$sed_lt" -e "$sed_gt" -e "$sed_remove_trailing_empty_line" | sed -e 's,^, ,' | sed -e 's,\([^a-zA-Z]\)'"${posix_functions}"'(),\1<A HREF="'"$POSIX2001_URL"'xsh/\2.html">\2</A>(),g' | sed -e 's,^ ,,'`
     func_echo "<TD ALIGN=LEFT VALIGN=TOP WIDTH=\"80%\">$element"
 
     func_end TR
@@ -1349,7 +1349,7 @@ func_module ()
     element='<A NAME="module='$1'"></A><A HREF="modules/'$1'">'$1'</A>'
     func_echo "<TD ALIGN=LEFT VALIGN=TOP>$element"
 
-    element=`gnulib-tool --extract-include-directive $1 | sed -e "$sed_lt" -e "$sed_gt" -e "$sed_remove_trailing_empty_line" | sed -e 's,^#include "\(.*\)"$,#include "<A HREF="lib/\1">\1</A>",' -e 's,^#include &lt;'"${posix_headers}"'\.h&gt;$,#include \&lt;<A HREF="'"$POSIX2001_URL"'basedefs/\1.h.html">\1.h</A>\&gt;,' | sed -e 's/$/<BR>/' | tr -d "$trnl" | sed -e 's/<BR>$//'`
+    element=`gnulib-tool --extract-include-directive $1 | sed -e "$sed_lt" -e "$sed_gt" -e "$sed_remove_trailing_empty_line" | sed -e 's,^#include "\(.*\)"$,#include "<A HREF="lib/\1">\1</A>",' -e 's,^#include &lt;'"${posix_headers}"'\.h&gt;$,#include \&lt;<A HREF="'"$POSIX2001_URL"'xbd/\1.h.html">\1.h</A>\&gt;,' | sed -e 's/$/<BR>/' | tr -d "$trnl" | sed -e 's/<BR>$//'`
     test -n "$element" || element='---'
     func_echo "<TD ALIGN=LEFT VALIGN=TOP>$element"
 
@@ -1397,7 +1397,6 @@ func_all_modules ()
   func_echo "$element"
 
   func_begin_table
-  func_module c-bs-a
   func_module assert
   func_module dummy
   func_module exit
@@ -1417,13 +1416,23 @@ func_all_modules ()
   func_module mktime
   func_end_table
 
-  func_echo 'These modules are not listed among dependencies below, for simplicity.'
+  func_echo 'Most of these modules are not listed among dependencies below, for simplicity.'
 
   element="Enhancements for ANSI C 89 functions"
   func_section_wrap ansic_enh
   func_wrap H2
   func_echo "$element"
 
+  element="Diagnostics <assert.h>"
+  element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
+  func_section_wrap ansic_enh_assert_diagnostics
+  func_wrap H3
+  func_echo "$element"
+
+  func_begin_table
+  func_module verify
+  func_end_table
+
   element="Memory management functions <stdlib.h>"
   element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
   func_section_wrap ansic_enh_stdlib_memory
@@ -1436,6 +1445,7 @@ func_all_modules ()
   func_module free
   func_module malloc
   func_module realloc
+  func_module pagealign_alloc
   func_end_table
 
   element="Date and time <time.h>"
@@ -1445,6 +1455,7 @@ func_all_modules ()
   func_echo "$element"
 
   func_begin_table
+  func_module fprintftime
   func_module strftime
   func_end_table
 
@@ -1510,14 +1521,19 @@ func_all_modules ()
 
   func_begin_table
   func_module bcopy
+  func_module memmem
   func_module mempcpy
   func_module memrchr
   func_module stpcpy
   func_module stpncpy
+  func_module c-strcase
   func_module strcase
+  func_module c-strcasestr
+  func_module strcasestr
   func_module strchrnul
   func_module strdup
   func_module strnlen
+  func_module strnlen1
   func_module strndup
   func_module strsep
   #func_module fstrcmp
@@ -1535,6 +1551,7 @@ func_all_modules ()
   func_module c-strtold
   func_module xstrtod
   func_module xstrtol
+  func_module xstrtold
   func_end_table
 
   element="Date and time <time.h>"
@@ -1583,6 +1600,7 @@ func_all_modules ()
   func_begin_table
   func_module argmatch
   func_module version-etc
+  func_module version-etc-fsf
   func_module long-options
   func_end_table
 
@@ -1604,14 +1622,18 @@ func_all_modules ()
   func_echo "$element"
 
   func_begin_table
+  func_module base64
+  func_module check-version
   func_module diacrit
   func_module getline
+  func_module getdelim
   func_module getnline
   func_module getndelim2
   func_module linebuffer
   func_module obstack
   func_module hash-pjw
   func_module hash
+  func_module readline
   func_module readtokens
   func_module readtokens0
   func_module strverscmp
@@ -1632,6 +1654,27 @@ func_all_modules ()
   func_module restrict
   func_end_table
 
+  element="Sizes of integer types <limits.h>"
+  element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
+  func_section_wrap isoc_sup_limits
+  func_wrap H3
+  func_echo "$element"
+
+  func_begin_table
+  func_module ullong_max
+  func_module size_max
+  func_end_table
+
+  element="Variable arguments <stdarg.h>"
+  element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
+  func_section_wrap isoc_sup_stdarg
+  func_wrap H3
+  func_echo "$element"
+
+  func_begin_table
+  func_module stdarg
+  func_end_table
+
   element="Boolean type and values <stdbool.h>"
   element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
   func_section_wrap isoc_sup_stdbool
@@ -1660,6 +1703,7 @@ func_all_modules ()
 
   func_begin_table
   func_module snprintf
+  func_module vsnprintf
   func_end_table
 
   element="Numeric conversion functions <stdlib.h>"
@@ -1714,11 +1758,25 @@ func_all_modules ()
   func_echo "$element"
 
   func_begin_table
+  func_module intprops
   func_module inttostr
   func_module xstrtoimax
   func_module xstrtoumax
   func_end_table
 
+  element="Extended multibyte and wide character utilities <wchar.h>"
+  element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
+  func_section_wrap isoc_ext_wchar_mb
+  func_wrap H3
+  func_echo "$element"
+
+  func_begin_table
+  func_module mbchar
+  func_module mbiter
+  func_module mbuiter
+  func_module mbfile
+  func_end_table
+
   element="Support for systems lacking POSIX:2001"
   func_section_wrap posix_sup
   func_wrap H2
@@ -1728,17 +1786,20 @@ func_all_modules ()
   func_module chown
   func_module dup2
   func_module ftruncate
+  func_module getaddrinfo
   func_module getcwd
   func_module getgroups
   func_module gethostname
+  func_module getlogin_r
   func_module getsubopt
   func_module gettimeofday
+  func_module inet_ntop
+  func_module inet_pton
   func_module mkdir
   func_module mkstemp
   func_module mkdtemp
   func_module poll
   func_module readlink
-  func_module stat
   func_module lstat
   func_module time_r
   func_module timespec
@@ -1746,7 +1807,12 @@ func_all_modules ()
   func_module regex
   func_module rename
   func_module rmdir
+  func_module ssize_t
+  func_module strtok_r
+  func_module sys_stat
+  func_module unistd
   func_module utime
+  func_module wcwidth
   func_end_table
 
   element="Enhancements for POSIX:2001 functions"
@@ -1757,11 +1823,11 @@ func_all_modules ()
   func_begin_table
   func_module dirname
   func_module getopt
-  func_module fcntl-safer
   func_module unistd-safer
   func_module fnmatch
   func_module fnmatch-posix
   func_module fnmatch-gnu
+  func_module glob
   func_module exclude
   func_end_table
 
@@ -1798,17 +1864,22 @@ func_all_modules ()
   func_module file-type
   func_module fileblocks
   func_module filemode
+  func_module filenamecat
+  func_module fts
+  func_module fts-lgpl
   func_module isdir
   func_module lchown
-  func_module makepath
+  func_module mkancestors
+  func_module mkdir-p
   func_module modechange
   func_module mountlist
-  func_module path-concat
   func_module pathname
   func_module pathmax
   func_module same
   func_module save-cwd
   func_module savedir
+  func_module stat-time
+  func_module unlinkdir
   func_module utimecmp
   func_module utimens
   func_module xgetcwd
@@ -1822,6 +1893,7 @@ func_all_modules ()
   func_echo "$element"
 
   func_begin_table
+  func_module fcntl-safer
   func_module safe-read
   func_module safe-write
   func_module full-read
@@ -1880,6 +1952,17 @@ func_all_modules ()
   func_module canon-host
   func_end_table
 
+  element="Multithreading"
+  element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
+  func_section_wrap posix_ext_thread
+  func_wrap H3
+  func_echo "$element"
+
+  func_begin_table
+  func_module lock
+  func_module tls
+  func_end_table
+
   element="Internationalization functions"
   element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
   func_section_wrap posix_ext_i18n
@@ -1888,7 +1971,9 @@ func_all_modules ()
 
   func_begin_table
   func_module gettext
+  func_module gettext-h
   func_module iconv
+  func_module iconvme
   func_module localcharset
   func_module hard-locale
   func_module mbswidth
@@ -1917,7 +2002,7 @@ func_all_modules ()
   func_module wait-process
   func_module execute
   func_module pipe
-  #func_module sh-quote
+  func_module sh-quote
   func_end_table
 
   element="Java"
@@ -1926,12 +2011,23 @@ func_all_modules ()
   func_wrap H3
   func_echo "$element"
 
-  #func_begin_table
-  #func_module classpath
-  #func_module javacomp
-  #func_module javaexec
+  func_begin_table
+  func_module classpath
+  func_module javacomp
+  func_module javaexec
   #func_module gcj
-  #func_end_table
+  func_end_table
+
+  element="C#"
+  element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
+  func_section_wrap posix_ext_csharp
+  func_wrap H3
+  func_echo "$element"
+
+  func_begin_table
+  func_module csharpcomp
+  func_module csharpexec
+  func_end_table
 
   element="Misc"
   element=`printf "%s" "$element" | sed -e "$sed_lt" -e "$sed_gt"`
@@ -1942,6 +2038,7 @@ func_all_modules ()
   func_begin_table
   func_module argp
   func_module argz
+  func_module byteswap
   func_module exitfail
   func_module c-stack
   func_module error
@@ -1959,6 +2056,26 @@ func_all_modules ()
   func_module readutmp
   func_module sig2str
   func_module sysexits
+  func_module visibility
+  func_end_table
+
+  element="Support for building libraries and executables"
+  func_section_wrap build_lib
+  func_wrap H2
+  func_echo "$element"
+
+  func_begin_table
+  func_module ldd
+  func_module lib-ignore
+  func_end_table
+
+  element="Support for building documentation"
+  func_section_wrap build_lib
+  func_wrap H2
+  func_echo "$element"
+
+  func_module fdl
+  func_module gendocs
   func_end_table
 }
 
@@ -2031,9 +2148,9 @@ func_echo '<LI>A header file: lib/<VAR>module</VAR>.h'
 func_echo '<LI>One or more implementation files: lib/<VAR>module</VAR>.c et al.'
 func_echo '<LI>One or more autoconf macro files: m4/<VAR>module</VAR>.m4 et al.'
 func_echo '<LI>A configure.ac fragment, Makefile.am fragment, dependency list: modules/<VAR>module</VAR>'
+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'
 func_echo '<LI>Some documentation'
 func_echo '<LI>A POT file and some PO files'
-func_echo '<LI>A testsuite'
 func_end UL
 
 func_echo '<HR>'