summaryrefslogtreecommitdiff
path: root/modules
Commit message (Collapse)AuthorAgeFilesLines
* * lib/xstrtol.h: Include gettext.h.Paul Eggert2006-10-191-0/+1
| | | | | | (_STRTOL_ERROR): Wrap English-language formats inside gettext. Problem reported by Eric Blake. * modules/xstrtol (Depends-on): Add gettext-h.
* * modules/clean-temp (Makefile.am): Don't add to make output...Eric Blake2006-10-171-1/+1
| | | | | (configure.ac): ...instead define SIGNAL_SAFE_LIST inside config.h.
* * modules/configmake (Makefile.am): Add pkglibexecdir support, toEric Blake2006-10-161-3/+4
| | | | match Automake 1.10a.
* New module 'sigprocmask'.Bruno Haible2006-10-162-1/+27
|
* gnulib-tool now synthesizes the EXTRA_DIST line.Bruno Haible2006-10-13215-218/+1
|
* * modules/error (Makefile.am): Distribute files throughPaul Eggert2006-10-121-1/+1
| | | | EXTRA_DIST, not lib_SOURCES.
* * modules/error (Makefile.am): Distribute files in /lib.Eric Blake2006-10-122-0/+2
| | | | * modules/obstack (Makefile.am): Likewise.
* Distribute all lib/* source files through EXTRA_DIST.Bruno Haible2006-10-12180-133/+183
|
* remove trailing blank lineJim Meyering2006-10-121-1/+0
|
* Big performance improvement for fts-based tools that use FTS_NOSTAT.Jim Meyering2006-10-121-1/+2
| | | | | | | | | | | | | | | | | | | | | | | Avoid spurious inode-mismatch problems on non-POSIX file systems. Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416 * lib/fts_.h (FTS_DEFER_STAT): Define new flag. (FTS_OPTIONMASK): Extend the mask to reflect this addition. * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define. (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define. (fts_set_stat_required): New function. (fts_open): Defer the calls to fts_stat, if possible or requested. Move the code that maps a command-line fts_info value FTS_DOT to FTS_D into fts_stat itself. (fts_read): Perform any required (deferred) fts_stat call. (fts_build): Likewise, for the directory we're about to open and read. In the readdir loop, carefully decide whether each entry will require an eventual call to fts_stat, using dirent.d_type info if available. (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on a command line argument into this function. Update all callers. Map a return value of FTS_DOT to FTS_D for a command line argument. * modules/fts (Depends-on): Add d-type. Alphabetize. Thanks to Miklos Szeredi for his tenacity and for the initial bug report about "find" failing on a FUSE-based file system.
* Port to Tandem NSK OSS, which has 64-bit signed int but at mostPaul Eggert2006-10-112-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | 32-bit unsigned int. Problem reported by Matthew Woehlke in: http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html More generally, don't assume that 64-bit signed int is available if unsigned int is, and vice versa. * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on unsigned symbols, not on their signed counterparts. * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t): (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX): (UINT64_C, UINTMAX_C): Likewise. * lib/strtoimax.c (strtoll): Depend on signed symbols, not their unsigned counterparts. (Have_long_long, Unsigned): New macros. (Int): Renamed from INT. (strtoimax): Use the new macros. * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT and substitute HAVE_UNSIGNED_LONG_LONG_INT. * modules/inttypes (inttypes.h): Substitute HAVE_UNSIGNED_LONG_LONG_INT. * modules/stdint (stdint.h): Likewise. (Files): Add m4/ulonglong.m4.
* * modules/inttypes (inttypes.h): Revert what seems to have beenJim Meyering2006-10-071-1/+1
| | | | | an inadvertent part of today's change: use "|", not "/" in the substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
* Mark generated files as "DO NOT EDIT".Bruno Haible2006-10-0719-52/+88
|
* New module 'sublist'.Bruno Haible2006-10-071-0/+25
|
* [ChangeLog]Jim Meyering2006-10-061-1/+1
| | | | | | | * modules/closeout (Description): Mention stderr too. [lib/ChangeLog] * closeout.c (close_stdout): Also close stderr. * closeout.h: Update comment.
* Have clean-temp register file open descriptors to temporary files.Bruno Haible2006-10-061-0/+2
|
* * modules/strnlen (Depends-on): Add extensions.Eric Blake2006-10-031-0/+1
|
* [lib/ChangeLog]Paul Eggert2006-09-301-0/+3
| | | | | | | | | | | | | | | | | | | | | | Work around bug in Solaris 10 /proc file system: /proc/self/fd/NNN/.. isn't the parent directory of the directory whose file descriptor is NNN. This needs to be worked around at run time, not compile time, since a program might be built on Solaris 8, where things work, and run on Solaris 10. * openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed to use the following interface instead: (OPENAT_BUFFER_SIZE): New macro. (openat_proc_name): New function. * at-func.c (AT_FUNC_NAME): Adjust to above changes. * openat.c (openat_permissive, openat_needs_fchdir, fdopendir): Likewise. * openat-proc.c: New file. [ChangeLog] * modules/openat (Files): Add lib/openat-proc.c. (Depends-on): Add same-inode, stdbool. [m4/ChangeLog] * openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
* Use the stdint module.Bruno Haible2006-09-283-3/+3
|
* [ChangeLog]Paul Eggert2006-09-261-0/+1
| | | | | | * modules/savewd (Depends-on): Add 'raise'. [lib/ChangeLog] * savewd.c: Include <signal.h>, for 'raise'.
* [ChangeLog]Paul Eggert2006-09-262-1/+2
| | | | | | | * modules/clock-time (Maintainer): Add self. * modules/getlogin_r (Depends-on): Add extensions. [m4/ChangeLog] * host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
* * modules/clock-time: New module.Ralf Wildenhues2006-09-255-4/+26
| | | | | | | * modules/nanosleep (Depends-on): Add clock-time. * modules/gethrxtime (Depends-on): Likewise. * modules/gettime (Depends-on): Likewise. * modules/settime (Depends-on): Likewise.
* * modules/fts-lgpl: Depend on openat.Ralf Wildenhues2006-09-253-0/+3
| | | | | * modules/mkancesdirs: Depend on savewd. * modules/mkdir-p: Likewise.
* * modules/bison-i18n (Depends-on): Add gettext.Ralf Wildenhues2006-09-221-0/+1
|
* 2006-09-22 Simon Josefsson <jas@extundo.com>Simon Josefsson2006-09-226-0/+6
| | | | | | | | | * modules/gc-sha1: * modules/gc-md4: * modules/gc-hmac-sha1: * modules/gc-hmac-md5: * modules/gc-des: * modules/gc-arcfour: Distribute more files.
* Pass to the gl_GETLOADAVG macro the $gl_source_base from gnulib-tool.Bruno Haible2006-09-221-1/+1
|
* * modules/mkstemp (Files): Add mkstemp.h.Paul Eggert2006-09-201-0/+1
|
* Change mkstemp Include: section to refer to "mkstemp.h".Paul Eggert2006-09-201-1/+1
|
* [ChangeLog]Paul Eggert2006-09-201-0/+2
| | | | | | | | | | | | | | | | | | | | * modules/mkstemp (Depends-on): Add extensions, so that mkstemp is visible on some platforms. (Makefile.am): Add mkstemp.h to EXTRA_DIST. [lib/ChangeLog] * mkstemp.h: New file, since some standard headers #define mkstemp. * mkstemp.c: Revamp to put the !_LIBC code together. Include "mkstemp.h". Make the _LIBC code resemble glibc original more, e.g., use K&R style. * stdlib--.h: Include mkstemp.h. [m4/ChangeLog] * mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE. Check that large offsets work. Modernize Autoconf usages. Prefer "yes" to mean a good thing rather than a bad. Don't put "#define mkstemp" in config.h, as this might interfere with standard system headers that "#define mkstemp mkstemp64".
* Remove inttypes-h.m4 and its gl_HEADER_INTTYES_H macro.Bruno Haible2006-09-181-1/+0
|
* Use the configmake module.Bruno Haible2006-09-181-1/+1
|
* Initial revision.Paul Eggert2006-09-181-0/+29
|
* * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.Paul Eggert2006-09-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | (dirchownmod): New arg FD. All callers changed. Use FD rather than opening the directory ourself, as opening is now the caller's responsibility. * lib/dirchownmod.h: Likewise. * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older hosts that require <sys/types.h> before <sys/stat.h>. Include fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h. (test_dir): Remove. (mkancesdirs): Return length of prefix of FILE that has already been made, or -2 if there is a child doing the work. Redo algorithm so that it is O(N) rather than O(N**2). Optimize away ".", and treat ".." specially since it might stray back into already-created areas. Use a subprocess if necessary. New arg WD; all users changed. MAKE_DIR function should now return 1 if it creates a directory that is not readable. Return -2 if a child process is spun off. * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t. Adjust signature to match code. * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME. (make_dir_parents): Use a subprocess if necessary. New arg WD; all users changed. * lib/savewd.c, lib/savewd.h: New files. * m4/savewd.m4: New file. * modules/mkancesdirs (Depends-on): Add fcntl. * modules/savewd: New file. * MODULES.html.sh (File system functions): Add savewd.
* * modules/configmake (Makefile.am): Add support for thePaul Eggert2006-09-151-0/+5
| | | | Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
* [ChangeLog]Jim Meyering2006-09-151-0/+24
| | | | | | | | | * modules/rename-dest-slash: New module. * MODULES.html.sh (posix_compat): Add it here. [lib/ChangeLog] * rename-dest-slash.c: New file. [m4/ChangeLog] * rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New file.
* [ChangeLog]Jim Meyering2006-09-151-2/+1
| | | | | | * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change. [m4/ChangeLog] * rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
* mkdtemp can now use the full <inttypes.h>.Bruno Haible2006-09-111-4/+1
|
* For libraries not built with libtool:Bruno Haible2006-09-093-6/+12
| | | | | - Fix the _LDFLAGS issue. - Generate _LIBDEPS and _LTLIBDEPS variables.
* Depend on mallocSergey Poznyakoff2006-09-091-0/+1
|
* Don't make generated files read-only. That would bother too manyJim Meyering2006-09-0819-47/+18
| | | | | | | | | | | | | people. However, do retain the ability to work when targets are read-only: remove the destination and temporary files before writing them (when generated via sed or echo), or by using the -f option for both cp and mv commands. Suggestion to use -f from Paul Eggert. * modules/alloca-opt, modules/argz, modules/arpa_inet: * modules/byteswap, modules/configmake, modules/fcntl: * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes: * modules/localcharset, modules/netinet_in, modules/poll: * modules/stdbool, modules/stdint, modules/sys_select: * modules/sys_socket, modules/sys_stat, modules/sysexits:
* Fix global typo in last change: use chmod u-w, not chmod u-x.Jim Meyering2006-09-0719-20/+20
| | | | | | | | | | Spotted by Paul Eggert and Bruce Korb. * modules/alloca-opt, modules/argz, modules/arpa_inet: * modules/byteswap, modules/configmake, modules/fcntl: * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes: * modules/localcharset, modules/netinet_in, modules/poll: * modules/stdbool, modules/stdint, modules/sys_select: * modules/sys_socket, modules/sys_stat, modules/sysexits:
* Make generated files be read-only.Jim Meyering2006-09-0619-2/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * modules/alloca-opt (Makefile.am): Work also when $@ is read-only. Ensure that each generated file is now read-only. * modules/argz: Likewise. * modules/arpa_inet: Likewise. * modules/byteswap: Likewise. * modules/configmake: Likewise. * modules/fcntl: Likewise. * modules/fnmatch: Likewise. * modules/getopt: Likewise. * modules/glob: Likewise. * modules/inttypes: Likewise. * modules/netinet_in: Likewise. * modules/poll: Likewise. * modules/stdbool: Likewise. * modules/stdint: Likewise. * modules/sys_select: Likewise. * modules/sys_socket: Likewise. * modules/sys_stat: Likewise. * modules/sysexits: Likewise. * modules/localcharset: Same as above, but continue using temporary file named "t-$@" (why different?) rather than the "$@-t" used everywhere else. * modules/sysexits (Makefile.am): Replace literal occurrences of "sysexit.h" more readable, and more consistent, "$@".
* _LIBADD is reserved for object files, not -L and -l options.Bruno Haible2006-09-062-3/+7
|
* New module 'xstriconv'.Bruno Haible2006-09-061-0/+26
|
* New module 'striconv'.Bruno Haible2006-09-061-0/+31
|
* New 'trim' module, from Davide Angelocola <davide.angelocola@tiscali.it>.Bruno Haible2006-09-051-0/+24
|
* * modules/getloadavg (Files): Add m4/getloadavg.m4.Paul Eggert2006-08-311-1/+2
| | | | | | | | | | | (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as the former is now obsolescent. * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h or stdbool.h, because they might not exist while configuring. * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is obsolescent, and programs should use gnulib instead. * m4/getloadavg.m4: New file, with contents taken from Autoconf but with prefixes changed.
* * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.Paul Eggert2006-08-311-0/+1
| | | | | | | Don't include unistd.h or limits.h; not needed, since chdir-long.h does that for us. (O_DIRECTORY): Remove. * modules/chdir-long (Depends-on): Add fcntl.
* Work around a bug in both the Linux and SunOS 64-bit kernels:Paul Eggert2006-08-311-0/+1
| | | | | | | | | | | nanosleep mishandles sleeps for longer than 2**31 seconds. Problem reported by Frank v Waveren in <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>. * lib/nanosleep.c (BILLION): New constant. (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions. (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new implementation. * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME. * modules/nanosleep (Depends-on): Add gettime.
* * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.Paul Eggert2006-08-303-2/+40
| | | | | | | * gnulib-tool (func_import): New license type 'unmodifiable license text'. * modules/fdl: Use it. Longer description. * module/gpl, module/lgpl: New files.