summaryrefslogtreecommitdiff
path: root/ChangeLog
Commit message (Collapse)AuthorAgeFilesLines
* version-etc: update copyright year reported by --versionJim Meyering2012-01-011-1/+6
| | | | | | * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012. Copyright (C) 1997-2012 Free Software Foundation, Inc.
* canonicalize: only stat() when requiredPádraig Brady2011-12-311-0/+8
| | | | | | | * lib/canonicalize.c (canonicalize_filename_mode): Avoid calling l?stat() when both CAN_MISSING, and CAN_NOLINKS are set, as then we neither need to resolve symlinks or test component existence.
* doc: cover st_ino issues once; add OpenVMS etc.Paul Eggert2011-12-311-0/+12
| | | | | | | | | | | | | * doc/posix-functions/stat.texi (stat): * doc/posix-functions/lstat.texi (lstat): * doc/posix-functions/fstatat.texi (fstatat): * doc/posix-functions/fstat.texi (fstat): Move general 'struct stat' stuff to sys_stat.texi, leaving behind a pointer. * doc/posix-headers/sys_stat.texi (sys/stat.h): Merge duplicate info about 'struct stat' problems into here. Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase, and suggest partial workarounds.
* same-inode: port to OpenVMSPaul Eggert2011-12-311-0/+6
| | | | | * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all three st_ino values.
* canonicalize: fix references to stat() and lstat()Pádraig Brady2011-12-301-0/+7
| | | | | | | | | * lib/canonicalize.c (canonicalize_filename_mode): Ensure references always resolve to a replacement function if required (even via a macro). The issue was spotted by Eric Blake and is adequately documented in the docs for stat and lstat.
* gitlog-to-changelog: remove a little duplicationJim Meyering2011-12-301-0/+6
| | | | | * build-aux/gitlog-to-changelog (main): Grep @lines once, rather than twice.
* canonicalize: add support for not resolving symlinksPádraig Brady2011-12-301-0/+16
| | | | | | | | | | | | | | | | | This will initially be used by a new coreutils realpath command. * lib/canonicalize.h: Add the CAN_NOLINKS flag to indicate we don't want to follow symlinks. Also provide CAN_MODE_MASK to aid setting these existing mutually exclusive values. * lib/canonicalize.c (canonicalize_filename_mode): Extract the flags from can_mode parameter, which are currently just used to select between stat() and lstat(). Also ensure that mutually exclusive values are flagged immediately as invalid. * tests/test-canonicalize.c: Verify symlinks are not followed, and that invalid flag combinations are diagnosed.
* gitlog-to-changelog: do not clump multi-paragraph entriesJim Meyering2011-12-261-0/+14
| | | | | | | | | | | | | Identical header lines (date,name,email+coauthors) are suppressed, thus putting all entries with those same characteristics under a single header. However, when a log entry consists of two or more paragraphs, it may not be clear where it starts and ends. This change makes it so that such an entry is always separated from others by a header line, even when that header would otherwise be suppressed. * build-aux/gitlog-to-changelog: Implement the above. Inspired by a related request from Stefano Lattarini in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
* announce-gen: fix `cmd' typo in diagnosticPaul Eggert2011-12-251-0/+6
| | | | | * build-aux/announce-gen (print_changelog_deltas): Fix typo in diagnostic: a missing '$' meant that the command was not output.
* test-framework-sh: distribute init.shJim Meyering2011-12-231-0/+5
| | | | | | * modules/test-framework-sh (EXTRA_DIST): Append init.sh. Otherwise, "make -C gnulib-tests check" (at least in grep) would fail due to the lack of init.sh.
* maint: remove explicit Files: tests/init.sh; depend on test-framework-shJim Meyering2011-12-231-0/+20
| | | | | | | | | | | | | | | | | | | * modules/atexit-tests: Rather than listing tests/init.sh, now that there's a module for it, simply depend on that new module. * modules/closein-tests: Likewise. * modules/exclude-tests: Likewise. * modules/getcwd-tests: Likewise. * modules/perror-tests: Likewise. * modules/pread-tests: Likewise. * modules/pwrite-tests: Likewise. * modules/vc-list-files-tests: Likewise. * modules/verify-tests: Likewise. * modules/xalloc-die-tests: Likewise. * modules/xstrtoimax-tests: Likewise. * modules/xstrtol-tests: Likewise. * modules/xstrtoll-tests: Likewise. * modules/xstrtoumax-tests: Likewise. * modules/yesno-tests: Likewise.
* test-framework-sh: add minimal tests of init.sh's compare functionJim Meyering2011-12-231-0/+4
| | | | | * modules/test-framework-sh-tests: New file. * tests/test-init.sh: New file.
* test-framework-sh: new moduleJim Meyering2011-12-231-0/+5
| | | | | | * modules/test-framework-sh: New file. * MODULES.html.sh (Support for maintaining and releasing projects): List it.
* init.sh: do not emit simulated diff output to stderrJim Meyering2011-12-231-0/+5
| | | | * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
* .gitignore: ignore gnulib.dvi and regex.infoReuben Thomas2011-12-221-0/+5
| | | | * doc/.gitignore:add gnulib.dvi and regex.info
* init.sh: correct previous changeJim Meyering2011-12-221-0/+4
| | | | | * tests/init.sh (compare): My previous change was wrong. Don't clobber "$?". Spotted by Stefano Lattarini and Pádraig Brady.
* correct previous ChangeLog entry: s/set -x/set -e/Jim Meyering2011-12-221-2/+2
| | | | Spotted by Stefano Lattarini.
* init.sh: avoid unwarranted test failure when using "set -x"Jim Meyering2011-12-221-0/+7
| | | | | | * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_. Otherwise, in a test script that uses "set -x" (like many in vc-dwim) a use like "compare exp out" would get evoke an unconditional failure.
* bootstrap: fix it to honor $ACLOCAL_FLAGS once againAlfred M. Szmidt2011-12-211-0/+9
| | | | | | | | The 2011-12-17 change, commit 767ccd40, replaced a manual invocation of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of autoreconf that did not. * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf. Reported by Mats Erik Andersson <gnu@gisladisker.se>.
* bootstrap: remove some now-unneeded codeJim Meyering2011-12-201-0/+18
| | | | | | | | | | | | | | | | | This script arose back when gnulib-tool was young. Since then, it has seen improvements that render much of this script unnecessary. In particular, it can now make symlinks to the files it uses. Also, I no longer see as much value in marking files as read-only via comments. If you relied on the symlink-creation feature of the preceding version of this script, you can get most of that functionality by adding the --symlink option to the definition of gnulib_tool_option_extras in your bootstrap.conf file. * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions. Run autopoint and libtoolize *before* gnulib-tool. After it, run an abbreviated autoreconf, rather than a loop around all tools. (slirp, bt_mark_as_generated): Remove functions.
* ftoastr: fix typoPaul Eggert2011-12-181-0/+5
| | | | * lib/ftoastr.h: Fix misspelling in comment.
* README-release: fix punctuationReuben Thomas2011-12-181-0/+4
| | | | * top/README-release: s/:/./
* bootstrap: correct the recent buildreq changeJim Meyering2011-12-171-0/+9
| | | | | | | | The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus had no effect. * build-aux/bootstrap (buildreq): Bracket each search term with "*...*", so that the shell "case" statement works as intended. Add comments.
* build: let bootstrap resort to wget for downloading .po filesBernhard Voelker2011-12-171-0/+7
| | | | | | * build-aux/bootstrap (download_po_files): Fallback to wget when downloading the .po files via rsync failed. This is necessary to bootstrap behind a strict firewall.
* stdint: don't assume C++11 when compiling with g++Paul Eggert2011-12-151-0/+9
| | | | | | | | Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>. * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it work also in C++ before C++11, as that improperly inhibits generating a substitute stdint.h for that case.
* alloca: protect comment from gnulib-toolPaul Eggert2011-12-151-0/+7
| | | | | | * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so that gnulib-tool doesn't think it's a license, and munge it to say "GCC version 3".
* ChangeLog: fix encoding typoPaul Eggert2011-12-151-1/+1
|
* localcharset: Use an absolute path in TESTS_ENVIRONMENT.Ludovic Courtès2011-12-151-0/+6
| | | | | * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use $(abs_top_builddir) instead of $(top_builddir).
* strftime-tests: also test nanosecondsAlex Nelson2011-12-141-0/+5
| | | | | | | | | The test-strftime program did not test the display of nanoseconds. This patch clarifies the expected output for a number of nanoseconds with trailing zeroes. * tests/test-strftime.c (T): Add a test of %N. Signed-off-by: Alex Nelson <ajnelson@cs.ucsc.edu>
* inttypes, stdint: add C++11 supportPaul Eggert2011-12-131-0/+22
| | | | | | | | | | | | | | | | | | | | | C++11 says there's no need to define __STDC_CONSTANT_MACROS etc. when including inttypes.h and stdint.h. Support this change to the standard. * doc/posix-headers/inttypes.texi (inttypes.h): * doc/posix-headers/stdint.texi (stdint.h): Document this. * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]: Define if not defined already, for the benefit of pre-C++11 hosts. Define the standard format macros (e.g., PRId8) always. * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS): Likewise, if __cpluspus. Define the standard constant and limit macros (e.g., INT8_C, INT8_MAX) always. * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed. * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros. * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS) (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now. * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS): Likewise.
* Fix ChangeLog typo in previous commit.Paul Eggert2011-12-131-1/+1
|
* nonblocking tests: Fix test failure on Linux/MIPS.Paul Eggert2011-12-121-0/+8
| | | | | | | Suggested by Prerna Saxena in <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>. * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]: Set to 1100000.
* argmatch: don't hard-code `' when listing valid option argumentsJim Meyering2011-12-121-0/+7
| | | | | | * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'. Instead, use the quote function to add quotes. Use fputs rather than fprintf for the format string with no format directive.
* bootstrap: detect tools required by gnulib-toolEric Blake2011-12-071-0/+7
| | | | | | | | | | | | | List tools needed by gnulib-tool, whether or not the project also requires the tools in cfg.mk $buildreq. In particular, detect if the project uses gnulib-local diffs, in which case patch is a prerequisite. * build-aux/bootstrap (buildreq): Provide minimum implicit dependencies. * DEPENDENCIES: Mention patch as a prereq. Signed-off-by: Eric Blake <eblake@redhat.com>
* sethostname: Port to Windows platforms.Bruno Haible2011-12-051-0/+9
| | | | | | | | | | * lib/sethostname.c: Provide an alternate implementation for Windows platforms. * tests/test-sethostname2.c (geteuid): Redefine on Cygwin. (main): Skip the test if sethostname() fails with EPERM. On Windows platforms, don't check the result of gethostname(). 2011-12-04 Bruno Haible <bruno@clisp.org>
* tests: Avoid spurious error message on platforms without mktemp program.Bruno Haible2011-12-051-0/+6
| | | | * tests/init.sh (mktempd_): Run mktemp in a subcommand.
* sethostname: Fix documentation.Bruno Haible2011-12-041-0/+6
| | | | | * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the "not fixed" section.
* gnulib-tool: Verify that the License field is present and non-empty.Bruno Haible2011-12-031-0/+9
| | | | | | | | * gnulib-tool (func_get_license_raw): New function, extracted from func_get_license. (func_get_license): Use it. Warn if the module is not a test module and has no license. Suggested by Jim Meyering.
* sethostname tests: Fix link error on mingw.Bruno Haible2011-12-031-0/+12
| | | | | | | | | | | | | * tests/test-sethostname1.c: New file, extracted from tests/test-sethostname.c. * tests/test-sethostname2.c: New file, extracted from tests/test-sethostname.c. * tests/test-sethostname.c: Remove file. * modules/sethostname-tests (Files): Add tests/test-sethostname1.c, tests/test-sethostname2.c. Remove tests/test-sethostname.c. (Depends-on): Add gethostname. (Makefile.am): Compile both test-sethostname1 and test-sethostname2. Link the latter with $(GETHOSTNAME_LIB).
* sethostname tests: Fix compilation error on mingw.Bruno Haible2011-12-031-0/+5
| | | | | | * tests/test-sethostname.c: Don't include <sys/types.h>. (geteuid): Use a dummy value without uid_t. * modules/sethostname-tests (Depends-on): Remove sys_types.
* sethostname tests: Avoid a gcc warning.Bruno Haible2011-12-031-0/+3
| | | | * tests/test-sethostname.c (main): Remove an unused variable.
* Tweak last commit.Bruno Haible2011-12-031-0/+10
| | | | | | | | | * modules/sethostname-tests (Files): Sort by decreasing importance. (configure.ac): Check for geteuid. * tests/test-sethostname.c (main): Emit error messages to stderr. Skip the test when there's nothing to test. Drop an unnecessary cast. Improve an error message. Verify that the final sethostname() call succeeds.
* Add a test suite for the sethostname module.Ben Walton2011-12-031-0/+7
| | | | | | | | | | Provide a module that tests the functionality of sethostname(). * modules/sethostname-tests: New file. A test program for the sethostname module. * tests/test-sethostname.c: Likewise. Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
* Tweak last commit.Bruno Haible2011-12-031-0/+8
| | | | | | | * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order. Fix preprocessor directives indentation. Fix typos. * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order. * modules/unistd (Makefile): Likewise.
* Integrate the sethostname module into unistdBen Walton2011-12-031-0/+10
| | | | | | | | | | | | | Ensure that sethostname is accounted for within the unistd module. * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling into the unistd.h header. * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME preprocessor directives. * modules/unistd: Setup the Makefile substitutions of the SETHOSTNAME preprocessor directives. Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
* Tweak last commit.Bruno Haible2011-12-031-0/+12
| | | | | | | | | | | * lib/sethostname.c: Don't include <string.h>. (sethostname): No need to copy the argument string to the stack. Don't call clearerr. Preserve errno when fprintf failed. * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX. Don't invoke AC_REPLACE_FUNCS. * modules/sethostname (Link): Remove empty section. * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS failure problem.
* Add a new sethostname moduleBen Walton2011-12-031-0/+9
| | | | | | | | | | | | | | | Define sethostname on platforms that do not provide the declaration. Provide a function for platforms that lack it. The general handling of the provided function is to simply return -1 and set errno to ENOSYS. A specific handler is provided for Minix. * lib/sethostname.c (sethostname): New file. Provide sethostname for systems that lack it. * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file. Detection of sethostname declaration and function. * modules/sethostname: New file. Define the sethostname module. Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
* Tweak last commit.Bruno Haible2011-12-031-0/+5
| | | | * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
* Split the HOST_NAME_MAX detection into a separate m4 macroBen Walton2011-12-031-0/+6
| | | | | | | | | | The sethostname module will rely on this code too, so make it a separate function. * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate macro so it can be used by the pending sethostname module. Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
* Fix module descriptions syntax.Bruno Haible2011-12-031-0/+8
| | | | | | | * modules/argv-iter (License): Fix syntax. * modules/di-set (License): Likewise. * modules/ino-map (License): Likewise. Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.