Gnulib Module List

This is a list of the modules which make up gnulib, with dependencies.

Support for systems lacking ANSI C 89

c-bs-a Determine portability of "\a".
assert Allow the installer to disable assertions through "configure --disable-assert".
exit exit() function: program termination.
atexit atexit() function: register a function to be called at program termination.
strtod strtod() function: convert string to 'double'.
strtol strtol() function: convert string to 'long'.
strtoul strtoul() function: convert string to 'unsigned long'.
memchr memchr() function: scan memory for a byte.
memcmp memcmp() function: compare memory areas.
memcpy memcpy() function: copy memory area.
memmove memmove() function: copy memory area.
memset memset() function: fill memory with a constant byte.
strcspn strcspn() function: search a string for any of a set of characters.
strpbrk strpbrk() function: search a string for any of a set of characters.
strstr strstr() function: search for a substring in a string.
strerror strerror() function: return string describing error code.
mktime mktime() function: convert broken-down time to linear time.
These modules are not listed among dependencies below, for simplicity.

Enhancements for ANSI C 89 functions

Memory management functions <stdlib.h>

malloc malloc() function that is glibc compatible.
realloc realloc() function that is glibc compatible.

Date and time <time.h>

strftime nstrftime() function: convert date and time to string, with GNU extensions.

Extra functions based on ANSI C 89

Memory management functions <stdlib.h>

xalloc Memory allocation with out-of-memory checking.
alloca Memory allocation on the stack.
bumpalloc Increase table allocation by one element.

Integer arithmetic functions <stdlib.h>

gcd Greatest common divisor.
minmax MIN, MAX macros.

Environment variables <stdlib.h>

putenv putenv() function: change or add an environment variable.
setenv setenv() function: set an environment variable. unsetenv() function: remove an environment variable.
xsetenv xsetenv() function: set an environment variable, with out-of-memory checking. unsetenv() function: remove an environment variable.

Character handling <ctype.h>

c-ctype Character handling in C locale.

String handling <string.h>

bcopy Old BSD bcopy() function: copy memory area.
memrchr memrchr() function: scan memory for a byte, from the right end.
stpcpy stpcpy() function: copy a string, returning a pointer to its end.
stpncpy stpncpy() function: copy a size-bounded string, returning a pointer to its end.
strcase Case-insensitive string comparison functions.
strdup strdup() function: duplicate a string.
strnlen strnlen() function: determine the length of a size-bounded string.
strndup strndup() function: duplicate a size-bounded string.

Numeric conversion functions <stdlib.h>

xstrtod Convert string to 'double', with error checking.
xstrtol Convert string to 'long` or 'unsigned long', with error checking.

Date and time <time.h>

getdate Convert a date/time string to linear time.

Input/Output <stdio.h>

unlocked-io Enable faster, non-thread-safe stdio functions if available.
vasnprintf vsprintf with automatic memory allocation and bounded output size.
vasprintf vsprintf with automatic memory allocation.

Command-line arguments

argmatch Search for an exact or abbreviated match of a string in an array of strings.
version-etc Print --version output.
long-options Handle --help and --version options.

Cryptographic computations

md5 Compute MD5 checksum.
sha Compute SHA checksum.

Misc

diacrit Decomposition of composed ISO-8859-1 characters.
getline Read a line from a stream.
linebuffer Read a line from a stream.
obstack Memory allocation, optimized for stack-like allocation patterns.
hash-pjw Compute a hash value for a NUL-terminated string.
hash Parametrizable hash table.
readtokens Read tokens from a stream.
strverscmp Compare strings holding version numbers.

Support for systems lacking ISO C 99

Boolean type and values <stdbool.h>

stdbool An <stdbool.h> that nearly conforms to C99. (Nearly: casts to bool may not work.)

Numeric conversion functions <stdlib.h>

strtoll strtoll() function: convert string to 'long long'.
strtoull strtoull() function: convert string to 'unsigned long long'.

Functions for greatest-width integer types <inttypes.h>

strtoimax strtoimax() function: convert string to 'intmax_t'.
strtoumax strtoumax() function: convert string to 'uintmax_t'.

Enhancements for ISO C 99 functions

Extra functions based on ISO C 99

Numeric conversion functions <stdlib.h>

xstrtoimax Convert string to 'intmax_t', with error checking.
xstrtoumax Convert string to 'uintmax_t', with error checking.

Support for systems lacking POSIX:2001

chown chown() function: change ownership of a file.
dup2 dup2() function: duplicate an open file descriptor.
ftruncate ftruncate() function: truncate an open file to a specified length.
getgroups getgroups() function: return the supplementary group IDs of the current process.
gettimeofday gettimeofday() function: return current time.
mkdir mkdir() function: create a directory.
mkstemp mkstemp() function: create a private temporary file.
stat stat() function: return information about a file, following symbolic links.
lstat stat() function: return information about a file or symbolic link.
timespec struct timespec.
nanosleep nanosleep() function: pause execution for a specified time.
regex Regular expression matching.
rename rename() function: change the name or location of a file.
rmdir rmdir() function: delete a directory.
utime utime() function: change access and/or modification times of a file.

Enhancements for POSIX:2001 functions

dirname Extract specific portions of filenames.
getopt Process command line arguments.
unistd-safer File descriptor functions that avoid clobbering STD{IN,OUT,ERR}_FILENO.
fnmatch GNU fnmatch() implementation.
fnmatch-posix fnmatch() function: wildcard matching.
fnmatch-gnu fnmatch() function: wildcard matching, with GNU extensions.
exclude Manage list of filenames or wildcard patterns for --exclude option processing.

Extra functions based on POSIX:2001

Numeric conversion functions

human Convert a number (usually a file size) to a human readable string, possibly with K/M/G suffix.

File system functions

acl Access control lists of files. (Unportable.)
backupfile Determination of the filename of a backup file, according to user environment variables.
fsusage Return filesystem space usage info.
dirfd Retrieving the file descriptor of an open directory stream. (Unportable.)
euidaccess euidaccess() function: check effective user's permissions for a file.
file-type Return a string describing the type of a file.
fileblocks Estimate number of blocks of a file, if 'struct stat' doesn't have st_blocks.
filemode Return a string (?rwxrwxrwx format) describing the type and permissions of a file.
isdir Determine whether a directory exists.
lchown lchown() function: change ownership of a file.
makepath Ensure that a directory path exists.
modechange Manipulation of mode changes specified by strings (e.g. as first argument of chmod utility).
mountlist Return list of mounted filesystems.
path-concat Construct a full pathname by concatenating a directory name and a relative filename.
pathmax Return maximum size of reasonable pathnames. (Unportable: Hurd has no limit.)
same Determine whether two pathnames refer to the same directory entry of the same directory.
save-cwd Save and restore the current working directory.
savedir Return the entries of a directory (just the names) as an argz string.
xgetcwd Return the current working directory, without size limitations.
xreadlink Return the contents of a symbolic link, without size limitations.

File descriptor based Input/Output

safe-read An interface to read() that retries after interrupts.
safe-write An interface to write() that retries after interrupts.
full-read An interface to read() that reads all it is asked to read.
full-write An interface to write() that writes all it is asked to write.

File stream based Input/Output

fpending Determine the number of bytes waiting in the output buffer of a stream.
closeout Close stdout, checking for errors.
stdio-safer File stream functions that avoid clobbering std{in,out,err}.
getpass getpass() function: read a password from /dev/tty.

Users and groups

getugroups Return the group IDs of a user.
group-member Determine whether the current process has the permissions of a given group ID.
idcache Username <--> uid and groupname <--> gid conversions, with cache for speed.
userspec Parse a specifying a user and/or group (e.g. as first argument of chown utility).

Date and time

gettime Return current time, with nanosecond resolution.
settime Set the current time, with nanosecond resolution.
posixtm Convert a date/time string (POSIX syntax) to linear time or broken-down time.

Networking functions

gethostname gethostname() function: Return machine's hostname.
xgethostname Return machine's hostname, without size limitations.
canon-host Canonicalize a host name: return a name other hosts can understand, i.e. usually the host name including FQDN.

Internationalization functions

gettext Translate messages to user's native language.
iconv Character set conversion.
localcharset Return current locale's character encoding.
hard-locale Determine whether the current locale is different from the "C" locale.
mbswidth Determine the number of screen columns needed for a string.
memcasecmp Case-insensitive memory area comparison.
memcoll Locale dependent memory area comparison.
xmemcoll Locale dependent memory area comparison, with error checking.
unicodeio Unicode character output to streams with locale dependent encoding.
rpmatch Locale dependent classification of a response as matching "yes" or "no".
yesno Read a response from the user, and its classification as matching "yes" or "no".

Executing programs

Java

Misc

exitfail Set exit status for fatal signal.
c-stack Stack overflow handling, causing program exit.
error error() and error_at_line() functions: Error reporting.
fatal Error reporting for fatal errors.
getloadavg Return the current system load averages.
getpagesize getpagesize() function: Return memory page size.
getusershell Return names of valid user shells.
physmem Return amount of total/available physical memory.
posixver Determine desired POSIX specification version, according to user's environment variables.
quotearg Quote arguments for use in error messages.
quote Quote arguments for use in error messages.
readutmp Read entire utmp file into memory.
sig2str Convert between signal names and signal numbers.

Support for systems lacking ANSI C 89

modules/ lib/ lib/ m4/  
Module Header Implementation Autoconf macro Depends on
c-bs-a --- --- c-bs-a.m4
AC_C_BACKSLASH_A
---
assert #include <assert.h> --- assert.m4
jm_ASSERT
---
exit #include "exit.h" --- --- ---
atexit #include <stdlib.h> atexit.c atexit.m4
gl_FUNC_ATEXIT
---
strtod #include <stdlib.h> strtod.c strtod.m4
gl_FUNC_STRTOD
---
strtol #include <stdlib.h> strtol.c strtol.m4
gl_FUNC_STRTOL
---
strtoul #include <stdlib.h> strtoul.c strtoul.m4
gl_FUNC_STRTOUL
strtol
memchr #include <string.h> memchr.c memchr.m4
gl_FUNC_MEMCHR
---
memcmp #include <string.h> memcmp.c memcmp.m4
jm_FUNC_MEMCMP
---
memcpy #include <string.h> memcpy.c memcpy.m4
gl_FUNC_MEMCPY
---
memmove #include <string.h> memmove.c memmove.m4
gl_FUNC_MEMMOVE
---
memset #include <string.h> memset.c memset.m4
gl_FUNC_MEMSET
---
strcspn #include <string.h> strcspn.c strcspn.m4
gl_FUNC_STRCSPN
---
strpbrk #include "strpbrk.h" strpbrk.c strpbrk.m4
gl_FUNC_STRPBRK
---
strstr #include "strstr.h" strstr.c strstr.m4
gl_FUNC_STRSTR
---
strerror #include <string.h> strerror.c strerror.m4
gl_FUNC_STRERROR
---
mktime #include <time.h> mktime.c mktime.m4
gl_FUNC_MKTIME
---
These modules are not listed among dependencies below, for simplicity.

Enhancements for ANSI C 89 functions

Memory management functions <stdlib.h>

modules/ lib/ lib/ m4/  
Module Header Implementation Autoconf macro Depends on
malloc #include <stdlib.h> malloc.c malloc.m4
jm_FUNC_MALLOC
---
realloc #include <stdlib.h> realloc.c realloc.m4
jm_FUNC_REALLOC
---

Date and time <time.h>

modules/ lib/ lib/ m4/  
Module Header Implementation Autoconf macro Depends on
strftime #include <time.h> strftime.c mbstate_t.m4
tm_gmtoff.m4
strftime.m4
jm_FUNC_GNU_STRFTIME
---

Extra functions based on ANSI C 89

Memory management functions <stdlib.h>

modules/ lib/ lib/ m4/  
Module Header Implementation Autoconf macro Depends on
xalloc #include "xalloc.h" xmalloc.c
xstrdup.c
xalloc.m4
gl_XALLOC
malloc
realloc
error
gettext
alloca #include <alloca.h> alloca_.h
alloca.c
alloca.m4
gl_FUNC_ALLOCA
xalloc
bumpalloc #include "bumpalloc.h" --- --- xalloc

Integer arithmetic functions <stdlib.h>

modules/ lib/ lib/ m4/  
Module Header Implementation Autoconf macro Depends on
gcd #include "gcd.h" gcd.c --- ---
minmax #include "minmax.h" --- --- ---

Environment variables <stdlib.h>

modules/ lib/ lib/ m4/  
Module Header Implementation Autoconf macro Depends on
putenv --- putenv.c putenv.m4
jm_FUNC_PUTENV
---
setenv #include "setenv.h" setenv.c
unsetenv.c
setenv.m4
gt_FUNC_SETENV
alloca
xsetenv #include "xsetenv.h" xsetenv.c --- setenv
error
exit
gettext

Character handling <ctype.h>

modules/ lib/ lib/ m4/  
Module Header Implementation Autoconf macro Depends on
c-ctype #include "c-ctype.h" c-ctype.c --- stdbool

String handling <string.h>

modules/ lib/ lib/ m4/  
Module Header Implementation Autoconf macro Depends on
bcopy --- bcopy.c AC_REPLACE_FUNCS(bcopy) ---
memrchr --- memrchr.c memrchr.m4
gl_FUNC_MEMRCHR
---
stpcpy #include "stpcpy.h" stpcpy.c stpcpy.m4
gl_FUNC_STPCPY
---
stpncpy #include "stpncpy.h" stpncpy.c stpncpy.m4
gl_FUNC_STPNCPY
---
strcase #include "strcase.h" strcasecmp.c
strncasecmp.c
strcase.m4
gl_STRCASE
---
strdup --- strdup.c strdup.m4
gl_FUNC_STRDUP
---
strnlen --- strnlen.c strnlen.m4
gl_FUNC_STRNLEN
---
strndup --- strndup.c strndup.m4
gl_FUNC_STRNDUP
strnlen

Numeric conversion functions <stdlib.h>

modules/ lib/ lib/ m4/  
Module Header Implementation Autoconf macro Depends on
xstrtod #include "xstrtod.h" xstrtod.c xstrtod.m4
gl_XSTRTOD
---
xstrtol #include "xstrtol.h" xstrtol.c
xstrtoul.c
ulonglong.m4
longlong.m4
stdint_h.m4
inttypes_h.m4
uintmax_t.m4
intmax_t.m4
xstrtol.m4
gl_XSTRTOL
---

Date and time <time.h>

modules/ lib/ lib/ m4/  
Module Header Implementation Autoconf macro Depends on
getdate #include "getdate.h" getdate.y bison.m4
tm_gmtoff.m4
getdate.m4
gl_GETDATE
unlocked-io

Input/Output <stdio.h>

modules/ lib/ lib/ m4/  
Module Header Implementation Autoconf macro Depends on
unlocked-io #include "unlocked-io.h" --- unlocked-io.m4
jm_FUNC_GLIBC_UNLOCKED_IO
---
vasnprintf #include "vasnprintf.h" printf-args.h
printf-args.c
printf-parse.h
printf-parse.c
vasnprintf.c
asnprintf.c
signed.m4
longdouble.m4
wchar_t.m4
wint_t.m4
longlong.m4
intmax_t.m4
vasnprintf.m4
gl_FUNC_VASNPRINTF
alloca
vasprintf #include "vasprintf.h" vasprintf.c
asprintf.c
vasprintf.m4
gl_FUNC_VASPRINTF
vasnprintf

Command-line arguments

modules/ lib/ lib/ m4/  
Module Header Implementation Autoconf macro Depends on
argmatch #include "argmatch.h" argmatch.c --- gettext
error
quotearg
quote
unlocked-io
version-etc #include "version-etc.h" version-etc.c --- unlocked-io
gettext
long-options #include "long-options.h" long-options.c long-options.m4
gl_LONG_OPTIONS
version-etc

Cryptographic computations

modules/ lib/ lib/ m4/  
Module Header Implementation Autoconf macro Depends on
md5 #include "md5.h" md5.c md5.m4
gl_MD5
unlocked-io
sha #include "sha.h" sha.c sha.m4
gl_SHA
unlocked-io
md5

Misc

modules/ lib/ lib/ m4/  
Module Header Implementation Autoconf macro Depends on
diacrit #include "diacrit.h" diacrit.c --- ---
getline #include "getline.h" getline.c getline.m4
AM_FUNC_GETLINE
unlocked-io
linebuffer #include "linebuffer.h" linebuffer.c --- xalloc
unlocked-io
obstack #include "obstack.h" obstack.c obstack.m4
gl_OBSTACK
gettext
hash-pjw #include "hash-pjw.h" hash-pjw.c --- ---
hash #include "hash.h" hash.c hash.m4
gl_HASH
malloc
realloc
stdbool
readtokens #include "readtokens.h" readtokens.c readtokens.m4
gl_READTOKENS
xalloc
unlocked-io
strverscmp #include "strverscmp.h" strverscmp.c strverscmp.m4
gl_FUNC_STRVERSCMP
---

Support for systems lacking ISO C 99

Boolean type and values <stdbool.h>

modules/ lib/ lib/ m4/  
Module Header Implementation Autoconf macro Depends on
stdbool #include <stdbool.h> stdbool.h.in stdbool.m4
AM_STDBOOL_H
---

Numeric conversion functions <stdlib.h>

modules/ lib/ lib/ m4/  
Module Header Implementation Autoconf macro Depends on
strtoll #include <stdlib.h> strtoll.c longlong.m4
strtoll.m4
gl_FUNC_STRTOLL
strtol
strtoull #include <stdlib.h> strtoull.c ulonglong.m4
strtoull.m4
gl_FUNC_STRTOULL
strtoul

Functions for greatest-width integer types <inttypes.h>

modules/ lib/ lib/ m4/  
Module Header Implementation Autoconf macro Depends on
strtoimax --- strtoimax.c longlong.m4
stdint_h.m4
inttypes_h.m4
intmax_t.m4
strtoimax.m4
gl_FUNC_STRTOIMAX
strtoll
strtoumax --- strtoumax.c ulonglong.m4
stdint_h.m4
inttypes_h.m4
uintmax_t.m4
strtoumax.m4
gl_FUNC_STRTOUMAX
strtoimax
strtoull

Enhancements for ISO C 99 functions

modules/ lib/ lib/ m4/  
Module Header Implementation Autoconf macro Depends on

Extra functions based on ISO C 99

Numeric conversion functions <stdlib.h>

modules/ lib/ lib/ m4/  
Module Header Implementation Autoconf macro Depends on
xstrtoimax #include "xstrtol.h" xstrtoimax.c xstrtoimax.m4
jm_XSTRTOIMAX
xstrtol
strtoimax
xstrtoumax #include "xstrtol.h" xstrtoumax.c xstrtoumax.m4
jm_XSTRTOUMAX
xstrtol
strtoumax

Support for systems lacking POSIX:2001

modules/ lib/ lib/ m4/  
Module Header Implementation Autoconf macro Depends on
chown #include <unistd.h> chown.c chown.m4
jm_FUNC_CHOWN
---
dup2 #include <unistd.h> dup2.c dup2.m4
gl_FUNC_DUP2
---
ftruncate #include <unistd.h> ftruncate.c ftruncate.m4
jm_FUNC_FTRUNCATE
---
getgroups #include <unistd.h> getgroups.c getgroups.m4
jm_FUNC_GETGROUPS
xalloc
gettimeofday #include <sys/time.h> gettimeofday.c gettimeofday.m4
AC_FUNC_GETTIMEOFDAY_CLOBBER
---
mkdir #include <sys/stat.h> mkdir.c mkdir-slash.m4
UTILS_FUNC_MKDIR_TRAILING_SLASH
xalloc
dirname
mkstemp #include <stdlib.h> mkstemp.c
tempname.c
ulonglong.m4
stdint_h.m4
inttypes_h.m4
uintmax_t.m4
mkstemp.m4
UTILS_FUNC_MKSTEMP
---
stat #include <sys/stat.h> stat.c stat.m4
jm_FUNC_STAT
---
lstat #include <sys/stat.h> lstat.c lstat.m4
jm_FUNC_LSTAT
stat
xalloc
timespec #include "timespec.h" --- st_mtim.m4
timespec.m4
gl_TIMESPEC
---
nanosleep #include <time.h> nanosleep.c nanosleep.m4
jm_FUNC_NANOSLEEP
timespec
regex #include "regex.h" regex.c regex.m4
gl_REGEX
alloca
unlocked-io
gettext
rename #include <stdio.h> rename.c rename.m4
vb_FUNC_RENAME
xalloc
dirname
rmdir #include <unistd.h> rmdir.c rmdir.m4
gl_FUNC_RMDIR
---
utime #if HAVE_UTIME_H
# include <utime.h>
#else
# include <sys/utime.h>
#endif
utime.c utimbuf.m4
utimes.m4
utime.m4
jm_FUNC_UTIME
safe-read
full-write

Enhancements for POSIX:2001 functions

modules/ lib/ lib/ m4/  
Module Header Implementation Autoconf macro Depends on
dirname #include "dirname.h" dirname.c
basename.c
stripslash.c
dos.m4
dirname.m4
gl_DIRNAME
xalloc
getopt #include "getopt.h" getopt.c
getopt1.c
getopt.m4
gl_GETOPT
gettext
unistd-safer #include "unistd-safer.h" dup-safer.c unistd-safer.m4
gl_UNISTD_SAFER
---
fnmatch #include <fnmatch.h> fnmatch_.h
fnmatch.c
fnmatch_loop.c
mbstate_t.m4
fnmatch.m4
# No macro. You should also use one of fnmatch-posix or fnmatch-gnu.
alloca
fnmatch-posix #include "fnmatch.h" --- gl_FUNC_FNMATCH_POSIX fnmatch
fnmatch-gnu #include "fnmatch.h" --- gl_FUNC_FNMATCH_GNU fnmatch
exclude #include "exclude.h" exclude.c exclude.m4
gl_EXCLUDE
xalloc
strcase
unlocked-io
fnmatch-gnu
stdbool

Extra functions based on POSIX:2001

Numeric conversion functions

modules/ lib/ lib/ m4/  
Module Header Implementation Autoconf macro Depends on
human #include "human.h" human.c ulonglong.m4
stdint_h.m4
inttypes_h.m4
uintmax_t.m4
human.m4
gl_HUMAN
gettext
argmatch
error
xstrtol

File system functions

modules/ lib/ lib/ m4/  
Module Header Implementation Autoconf macro Depends on
acl #include "acl.h" acl.c acl.m4
AC_FUNC_ACL
---
backupfile #include "backupfile.h" backupfile.c
addext.c
dos.m4
d-ino.m4
backupfile.m4
gl_BACKUPFILE
argmatch
dirname
fsusage #include "fsusage.h" fsusage.c ulonglong.m4
stdint_h.m4
inttypes_h.m4
uintmax_t.m4
fsusage.m4
gl_FSUSAGE
full-read
dirfd #include "dirfd.h" dirfd.c dirfd.m4
UTILS_FUNC_DIRFD
---
euidaccess --- euidaccess.c euidaccess.m4
gl_FUNC_EUIDACCESS
group-member
file-type #include "file-type.h" file-type.c file-type.m4
gl_FILE_TYPE
gettext
fileblocks --- fileblocks.c fileblocks.m4
gl_FILEBLOCKS
---
filemode #include "filemode.h" filemode.c filemode.m4
gl_FILEMODE
---
isdir --- isdir.c isdir.m4
gl_ISDIR
---
lchown --- lchown.h
lchown.c
lchown.m4
jm_FUNC_LCHOWN
chown
makepath #include "makepath.h" makepath.c afs.m4
makepath.m4
gl_MAKEPATH
alloca
chown
gettext
save-cwd
dirname
error
quote
modechange #include "modechange.h" modechange.c modechange.m4
gl_MODECHANGE
xstrtol
mountlist #include "mountlist.h" mountlist.c ls-mntd-fs.m4
fstypename.m4
mountlist.m4
gl_MOUNTLIST
xalloc
unlocked-io
path-concat #include "path-concat.h" path-concat.c dos.m4
path-concat.m4
gl_PATH_CONCAT
strdup
xalloc
dirname
pathmax #include "pathmax.h" --- pathmax.m4
gl_PATHMAX
---
same #include "same.h" same.c same.m4
gl_SAME
xalloc
error
dirname
save-cwd #include "save-cwd.h" save-cwd.c save-cwd.m4
gl_SAVE_CWD
error
savedir #include "savedir.h" savedir.c savedir.m4
gl_SAVEDIR
xalloc
xgetcwd #include "xgetcwd.h" xgetcwd.c getcwd.m4
xgetcwd.m4
gl_XGETCWD
xalloc
pathmax
xreadlink #include "xreadlink.h" xreadlink.c xreadlink.m4
gl_XREADLINK
xalloc

File descriptor based Input/Output

modules/ lib/ lib/ m4/  
Module Header Implementation Autoconf macro Depends on
safe-read #include "safe-read.h" safe-read.c safe-read.m4
gl_SAFE_READ
---
safe-write #include "safe-write.h" safe-write.c safe-write.m4
gl_SAFE_WRITE
safe-read
full-read #include "full-read.h" full-read.c --- safe-read
full-write
full-write #include "full-write.h" full-write.c --- safe-write

File stream based Input/Output

modules/ lib/ lib/ m4/  
Module Header Implementation Autoconf macro Depends on
fpending #include "__fpending.h" __fpending.c fpending.m4
jm_FUNC_FPENDING
---
closeout #include "closeout.h" closeout.c closeout.m4
gl_CLOSEOUT
unlocked-io
gettext
error
quotearg
fpending
stdio-safer #include "stdio-safer.h" fopen-safer.c stdio-safer.m4
gl_STDIO_SAFER
unistd-safer
getpass --- getpass.c getpass.m4
gl_FUNC_GETPASS
unlocked-io
getline

Users and groups

modules/ lib/ lib/ m4/  
Module Header Implementation Autoconf macro Depends on
getugroups --- getugroups.c getugroups.m4
gl_GETUGROUPS
---
group-member #include "group-member.h" group-member.c group-member.m4
jm_FUNC_GROUP_MEMBER
xalloc
idcache --- idcache.c idcache.m4
gl_IDCACHE
xalloc
userspec --- userspec.c userspec.m4
gl_USERSPEC
alloca
xalloc
xstrtol
strdup
gettext

Date and time

modules/ lib/ lib/ m4/  
Module Header Implementation Autoconf macro Depends on
gettime --- gettime.c clock_time.m4
gettime.m4
gl_GETTIME
gettimeofday
timespec
settime --- settime.c clock_time.m4
settime.m4
gl_SETTIME
timespec
posixtm #include "posixtm.h" posixtm.c posixtm.m4
gl_POSIXTM
unlocked-io

Networking functions

modules/ lib/ lib/ m4/  
Module Header Implementation Autoconf macro Depends on
gethostname --- gethostname.c gethostname.m4
gl_FUNC_GETHOSTNAME
---
xgethostname --- xgethostname.c --- gethostname
xalloc
error
canon-host --- canon-host.c canon-host.m4
gl_CANON_HOST
---

Internationalization functions

modules/ lib/ lib/ m4/  
Module Header Implementation Autoconf macro Depends on
gettext #include "gettext.h" --- codeset.m4
gettext.m4
glibc21.m4
iconv.m4
intdiv0.m4
inttypes.m4
inttypes_h.m4
inttypes-pri.m4
isc-posix.m4
lcmessage.m4
lib-ld.m4
lib-link.m4
lib-prefix.m4
progtest.m4
stdint_h.m4
uintmax_t.m4
ulonglong.m4
AM_GNU_GETTEXT([external])
---
iconv #include <iconv.h> --- iconv.m4
lib-ld.m4
lib-link.m4
lib-prefix.m4
AM_ICONV
---
localcharset #include "localcharset.h" localcharset.c
config.charset
ref-add.sin
ref-del.sin
codeset.m4
glibc21.m4
localcharset.m4
gl_LOCALCHARSET
---
hard-locale #include "hard-locale.h" hard-locale.c hard-locale.m4
gl_HARD_LOCALE
---
mbswidth #include "mbswidth.h" mbswidth.c mbstate_t.m4
mbrtowc.m4
mbswidth.m4
gl_MBSWIDTH
---
memcasecmp #include "memcasecmp.h" memcasecmp.c memcasecmp.m4
gl_MEMCASECMP
---
memcoll #include "memcoll.h" memcoll.c memcoll.m4
gl_MEMCOLL
---
xmemcoll #include "xmemcoll.h" xmemcoll.c --- memcoll
gettext
error
quotearg
unicodeio #include "unicodeio.h" unicodeio.c unicodeio.m4
gl_UNICODEIO
iconv
gettext
localcharset
error
rpmatch --- rpmatch.c rpmatch.m4
gl_FUNC_RPMATCH
gettext
regex
yesno --- yesno.c yesno.m4
gl_YESNO
unlocked-io
rpmatch

Executing programs

Java

Misc

modules/ lib/ lib/ m4/  
Module Header Implementation Autoconf macro Depends on
exitfail #include "exitfail.h" exitfail.c exitfail.m4
gl_EXITFAIL
---
c-stack #include "c-stack.h" c-stack.c c-stack.m4
gl_C_STACK
gettext
exitfail
error #include "error.h" error.c error.m4
gl_ERROR
unlocked-io
gettext
fatal #include "fatal.h" fatal.c fatal.m4
gl_FATAL
unlocked-io
error
getloadavg --- getloadavg.c getloadavg.m4
gl_FUNC_GETLOADAVG
---
getpagesize #include "getpagesize.h" --- getpagesize.m4
gl_GETPAGESIZE
---
getusershell --- getusershell.c getusershell.m4
gl_PREREQ_GETUSERSHELL
xalloc
unlocked-io
physmem #include "physmem.h" physmem.c physmem.m4
gl_PHYSMEM
---
posixver #include "posixver.h" posixver.c posixver.m4
gl_POSIXVER
---
quotearg #include "quotearg.h" quotearg.c mbstate_t.m4
mbrtowc.m4
quotearg.m4
gl_QUOTEARG
xalloc
gettext
quote #include "quote.h" quote.c quote.m4
gl_QUOTE
quotearg
readutmp #include "readutmp.h" readutmp.c readutmp.m4
gl_READUTMP
xalloc
unlocked-io
sig2str #include "sig2str.h" sig2str.c sig2str.m4
gl_FUNC_SIG2STR
---

Lone files - please create new modules containing them

lib/getversion.c
m4/check-decl.m4
m4/d-type.m4
m4/glibc.m4
m4/gnu-source.m4
m4/host-os.m4
m4/jm-macros.m4
m4/jm-winsz1.m4
m4/jm-winsz2.m4
m4/lib-check.m4
m4/link-follow.m4
m4/onceonly.m4
m4/perl.m4
m4/prereq.m4
m4/readdir.m4
m4/rmdir-errno.m4
m4/search-libs.m4
m4/st_dm_mode.m4
m4/strerror_r.m4
m4/unlink-busy.m4
m4/uptime.m4

Future developments

Ideally a module could consist of:
Generated from MODULES.html.sh on 31 January 2003.