gnulib.git
14 years agoquotearg: implement custom_quoting_style
Joel E. Denny [Sun, 23 Aug 2009 22:24:53 +0000 (18:24 -0400)]
quotearg: implement custom_quoting_style

* lib/quotearg.c: (struct quoting_options): Add left_quote and
right_quote fields.
(set_custom_quoting): New public function.
(quotearg_buffer_restyled): Add left_quote and right_quote
arguments, handle them very much like locale quoting, and update
all uses.
(quotearg_n_custom): New public function.
(quotearg_n_custom_mem): New public function.
(quotearg_custom): New public function.
(quotearg_custom_mem): New public function.
* lib/quotearg.h: Prototype and document new public functions.
(enum quoting_style): For escape_quoting_style and
clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
ignored even though they're otherwise like c_quoting_style.
Add custom_quoting_style member and document with comparison to
clocale_quoting_style.
* tests/test-quotearg.c (custom_quotes): New array.
(custom_results): New array.
(main): Extend to test custom quoting.

14 years agoquotearg: fix right quote escaping when it's in quote_these_too
Joel E. Denny [Sun, 23 Aug 2009 00:26:46 +0000 (20:26 -0400)]
quotearg: fix right quote escaping when it's in quote_these_too

* lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
quote, be sure to prepend only one backslash.
* tests/test-quotearg.c (use_quote_double_quotes): New function.
(main): Test it.

14 years agoquotearg-tests: test escaping of embedded locale quotes
Joel E. Denny [Sat, 22 Aug 2009 21:55:15 +0000 (17:55 -0400)]
quotearg-tests: test escaping of embedded locale quotes

* tests/test-quotearg.c (struct result_strings): Add member for
new input.
(LQ_ENC, RQ_ENC, RQ_ESC): New macros.
(inputs): Add new input.
(results_g): Add expected results.
(flag_results): Likewise.
(locale_results): Likewise.
(compare_strings): Check those.

14 years agoTests for module 'dup3'.
Bruno Haible [Sun, 23 Aug 2009 22:19:10 +0000 (00:19 +0200)]
Tests for module 'dup3'.

14 years agoNew module 'dup3'.
Bruno Haible [Sun, 23 Aug 2009 22:17:47 +0000 (00:17 +0200)]
New module 'dup3'.

14 years agoTweak the dup2 test.
Bruno Haible [Sun, 23 Aug 2009 21:47:02 +0000 (23:47 +0200)]
Tweak the dup2 test.

14 years agoAvoid test link errors when the modules getopt-gnu, gettext are used.
Bruno Haible [Sun, 23 Aug 2009 21:00:36 +0000 (23:00 +0200)]
Avoid test link errors when the modules getopt-gnu, gettext are used.

14 years agoFix getdtablesize() on mingw.
Bruno Haible [Sun, 23 Aug 2009 19:55:26 +0000 (21:55 +0200)]
Fix getdtablesize() on mingw.

14 years agoNew module 'mkostemp'.
Bruno Haible [Sun, 23 Aug 2009 12:11:27 +0000 (14:11 +0200)]
New module 'mkostemp'.

14 years agoOops, fix last commit.
Bruno Haible [Sun, 23 Aug 2009 11:10:40 +0000 (13:10 +0200)]
Oops, fix last commit.

14 years agoSupport O_TEXT, O_BINARY on all platforms.
Bruno Haible [Sun, 23 Aug 2009 08:46:39 +0000 (10:46 +0200)]
Support O_TEXT, O_BINARY on all platforms.

14 years agoFix test of fcntl's return value.
Bruno Haible [Sun, 23 Aug 2009 08:20:54 +0000 (10:20 +0200)]
Fix test of fcntl's return value.

14 years agoUpdate module dependencies.
Bruno Haible [Sun, 23 Aug 2009 08:18:14 +0000 (10:18 +0200)]
Update module dependencies.

14 years agofcntl-h: add O_TTY_INIT support
Eric Blake [Sun, 23 Aug 2009 03:24:37 +0000 (21:24 -0600)]
fcntl-h: add O_TTY_INIT support

* lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
* tests/test-fcntl-h.c (o): Test it.
* doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agofcntl-h: rename from fcntl, in preparation for fcntl(2)
Eric Blake [Fri, 21 Aug 2009 14:26:40 +0000 (08:26 -0600)]
fcntl-h: rename from fcntl, in preparation for fcntl(2)

* modules/fcntl: Move <fcntl.h> header replacement...
* modules/fcntl-h: ...to new name, so as not to collide with
like-named function.
* tests/test-fcntl.c: Rename...
* tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
* modules/fcntl-tests: Rename...
* modules/fcntl-h-tests: ...to this.  Update test file name.
* modules/chdir-long (Depends-on): Update clients.
* modules/chdir-safer (Depends-on): Likewise.
* modules/fcntl-safer (Depends-on): Likewise.
* modules/fts (Depends-on): Likewise.
* modules/mkancesdirs (Depends-on): Likewise.
* modules/mkdir-p (Depends-on): Likewise.
* modules/open (Depends-on): Likewise.
* modules/savewd (Depends-on): Likewise.
* MODULES.html.sh (systems lacking POSIX:2008): Update name.
* doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agoRelicense under LGPL.
Bruno Haible [Sun, 23 Aug 2009 00:43:53 +0000 (02:43 +0200)]
Relicense under LGPL.

14 years agoImprove comment about pipe2.
Bruno Haible [Sun, 23 Aug 2009 00:39:38 +0000 (02:39 +0200)]
Improve comment about pipe2.

14 years agoFix test of fcntl's return value.
Bruno Haible [Sat, 22 Aug 2009 23:37:15 +0000 (01:37 +0200)]
Fix test of fcntl's return value.

14 years agoUse module pipe2.
Bruno Haible [Sat, 22 Aug 2009 16:58:09 +0000 (18:58 +0200)]
Use module pipe2.

14 years agoTests for module 'pipe2'.
Bruno Haible [Sat, 22 Aug 2009 16:48:19 +0000 (18:48 +0200)]
Tests for module 'pipe2'.

14 years agoNew module 'pipe2'.
Bruno Haible [Sat, 22 Aug 2009 16:46:44 +0000 (18:46 +0200)]
New module 'pipe2'.

14 years agoReference some new glibc functions.
Bruno Haible [Sat, 22 Aug 2009 13:25:51 +0000 (15:25 +0200)]
Reference some new glibc functions.

14 years agoannotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
Jim Meyering [Sat, 22 Aug 2009 09:28:08 +0000 (11:28 +0200)]
annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)

This makes it so packages using automake-1.11's silent-rules option
can print e.g., a single "GEN    configmake.h" line, rather than
the 30+ statements that perform the job.  If you want to see the
actual commands, you can still run "make V=1".

Improved-by: Bruno Haible <bruno@clisp.org>
* modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
so that make output is abbreviated when those variables are defined
appropriately.
* modules/argz: Likewise.
* modules/arpa_inet: Likewise.
* modules/byteswap: Likewise.
* modules/configmake: Likewise.
* modules/dirent: Likewise.
* modules/errno: Likewise.
* modules/fcntl: Likewise.
* modules/float: Likewise.
* modules/fnmatch: Likewise.
* modules/getopt-posix: Likewise.
* modules/glob: Likewise.
* modules/iconv_open: Likewise.
* modules/inttypes: Likewise.
* modules/localcharset: Likewise.
* modules/locale: Likewise.
* modules/math: Likewise.
* modules/netdb: Likewise.
* modules/netinet_in: Likewise.
* modules/poll: Likewise.
* modules/posix_spawnp-tests: Likewise.
* modules/sched: Likewise.
* modules/search: Likewise.
* modules/selinux-h: Likewise.
* modules/signal: Likewise.
* modules/spawn: Likewise.
* modules/stdarg: Likewise.
* modules/stdbool: Likewise.
* modules/stddef: Likewise.
* modules/stdint: Likewise.
* modules/stdio: Likewise.
* modules/stdlib: Likewise.
* modules/string: Likewise.
* modules/strings: Likewise.
* modules/sys_file: Likewise.
* modules/sys_ioctl: Likewise.
* modules/sys_select: Likewise.
* modules/sys_socket: Likewise.
* modules/sys_stat: Likewise.
* modules/sys_time: Likewise.
* modules/sys_times: Likewise.
* modules/sys_utsname: Likewise.
* modules/sys_wait: Likewise.
* modules/sysexits: Likewise.
* modules/time: Likewise.
* modules/unistd: Likewise.
* modules/wchar: Likewise.
* modules/wctype: Likewise.

14 years agoannounce-gen: remove now-duplicate code at top
Jim Meyering [Sat, 22 Aug 2009 08:07:00 +0000 (10:07 +0200)]
announce-gen: remove now-duplicate code at top

* build-aux/announce-gen: Remove equivalent-but-more-verbose block.

14 years agoannounce-gen: detect write failure
Jim Meyering [Sat, 22 Aug 2009 08:02:19 +0000 (10:02 +0200)]
announce-gen: detect write failure

* build-aux/announce-gen: Add Coda.

14 years agocheck-module: revive
Jim Meyering [Fri, 21 Aug 2009 21:12:35 +0000 (23:12 +0200)]
check-module: revive

* check-module: Ignore legit, duplicate-inclusion violations.

14 years agobootstrap: --help to stdout.
Akim Demaille [Wed, 19 Aug 2009 13:40:08 +0000 (15:40 +0200)]
bootstrap: --help to stdout.

* bootstrap (usage): Don't send --help to stderr.
Use a here doc instead of a long string.

14 years agotest-popen-safer: split from test-popen
Eric Blake [Fri, 21 Aug 2009 13:22:12 +0000 (07:22 -0600)]
test-popen-safer: split from test-popen

* tests/test-popen.c (main): Move...
* tests/test-popen.h: ...into new file.
* tests/test-popen-safer2.c: New file.
* modules/popen-tests (Files): Add test-popen.h.
* modules/popen-safer-tests (Files): Add test-popen-safer2.c.
Suggested by Bruno Haible.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agotest-fcntl-safer: split from test-open
Eric Blake [Fri, 21 Aug 2009 13:18:10 +0000 (07:18 -0600)]
test-fcntl-safer: split from test-open

* tests/test-open.c (main): Move...
* tests/test-open.h: ...into new file.
* tests/test-fcntl-safer.c: New file.
* modules/open-tests (Files): Add test-open.h.
* modules/fcntl-safer-tests: New file.
Suggested by Bruno Haible.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agotest-fopen-safer: split from test-fopen
Eric Blake [Fri, 21 Aug 2009 05:19:20 +0000 (23:19 -0600)]
test-fopen-safer: split from test-fopen

* tests/test-fopen.c (main): Move...
* tests/test-fopen.h: ...into new file.
* tests/test-fopen-safer.c: New file.
* modules/fopen-tests (Files): Add test-fopen.h.
* modules/fopen-safer-tests: New file.
Suggested by Bruno Haible.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agopopen-safer: test O_CLOEXEC at run-time.
Paolo Bonzini [Fri, 21 Aug 2009 07:36:14 +0000 (09:36 +0200)]
popen-safer: test O_CLOEXEC at run-time.

* lib/popen-safer.c: Test O_CLOEXEC at run-time.

14 years agoMove more flags to lib/fcntl.in.h.
Paolo Bonzini [Thu, 20 Aug 2009 08:24:19 +0000 (10:24 +0200)]
Move more flags to lib/fcntl.in.h.

* lib/cloexec.c: Do not define FD_CLOEXEC here.
* lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
* lib/fcntl.in.h: Do both things here.

14 years agoconsistently remove $@-t before redirecting to it
Jim Meyering [Fri, 21 Aug 2009 08:56:58 +0000 (10:56 +0200)]
consistently remove $@-t before redirecting to it

* modules/argz: Remove $@-t and $@ before redirecting to the former.
* modules/alloca-opt: Likewise.
* modules/byteswap: Likewise.
* modules/fnmatch: Likewise.
* modules/getopt-posix: Likewise.
* modules/glob: Likewise.
* modules/poll: Likewise.
* modules/posix_spawnp-tests: Likewise.
* modules/sys_socket: Likewise.
* modules/sysexits: Likewise.

14 years agopopen: simplify access to original popen
Eric Blake [Fri, 21 Aug 2009 00:14:41 +0000 (18:14 -0600)]
popen: simplify access to original popen

* lib/popen.c (rpl_popen): No need to worry about popen being a
macro.
Reported by Bruno Haible.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agobuild: avoid some compiler warnings
Eric Blake [Thu, 20 Aug 2009 14:21:46 +0000 (08:21 -0600)]
build: avoid some compiler warnings

* lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
* lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
type.
(new_exclude_segment, excluded_file_pattern_p)
(excluded_file_name_p): Reduce scope.
* lib/vasnprintf.c (decimal_point_char): Avoid warning on
old-style declaration.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agoexclude-tests: Handle Windows EOL.
Simon Josefsson [Thu, 20 Aug 2009 13:21:27 +0000 (15:21 +0200)]
exclude-tests: Handle Windows EOL.

14 years agobootstrap: find sha1sum when named gsha1sum.
Akim Demaille [Wed, 19 Aug 2009 13:37:23 +0000 (15:37 +0200)]
bootstrap: find sha1sum when named gsha1sum.

* bootstrap (find_tool): New.
($SHA1SUM): New.
Use it.

14 years agomaint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
Jim Meyering [Thu, 20 Aug 2009 09:04:20 +0000 (11:04 +0200)]
maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism

* top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
expression that converts "." in a file name to "\." in the resulting
regexp.  Start with a dummy statement, so that prior shell variable
definitions are expanded portably.  Reported by Simon Josefsson.

14 years agoFix polling for writeability of a screen buffer.
Paolo Bonzini [Tue, 4 Aug 2009 16:06:07 +0000 (18:06 +0200)]
Fix polling for writeability of a screen buffer.

* lib/poll.c: Distinguish input and screen buffers for the
Win32 implementation.
* lib/select.c: Likewise.

14 years agoautoupdate
Karl Berry [Wed, 19 Aug 2009 20:04:16 +0000 (13:04 -0700)]
autoupdate

14 years agopopen-safer: prevent popen from clobbering std descriptors
Eric Blake [Wed, 19 Aug 2009 16:02:19 +0000 (10:02 -0600)]
popen-safer: prevent popen from clobbering std descriptors

* modules/popen-safer: New file.
* lib/popen-safer.c: Likewise.
* m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
* lib/stdio--.h (popen): Provide override.
* lib/stdio-safer.h (popen_safer): Provide declaration.
* tests/test-popen.c (includes): Partially test this.
* modules/popen-safer-tests: New file, for more tests.
* tests/test-popen-safer.c: Likewise.
* MODULES.html.sh (file stream based Input/Output): Mention it.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agotests: test some of the *-safer modules
Eric Blake [Wed, 19 Aug 2009 15:54:54 +0000 (09:54 -0600)]
tests: test some of the *-safer modules

* modules/fopen-safer (Depends-on): Add fopen.
* modules/fcntl-safer (Depends-on): Add fcntl.
* modules/stdlib-safer (Depends-on): Add stdlib.
(configure.ac): Set indicator.
* modules/unistd-safer (configure.ac): Likewise.
* modules/tmpfile-safer (configure.ac): Likewise.
(Depends-on): Add tmpfile.
* lib/stdio--.h (fopen, tmpfile): Don't override unless module is
active.
* tests/test-fopen.c (includes): Test safer versions when they are
in use.
* tests/test-open.c (includes): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agopopen: fix cygwin 1.5 bug when stdin closed
Eric Blake [Wed, 19 Aug 2009 13:15:54 +0000 (07:15 -0600)]
popen: fix cygwin 1.5 bug when stdin closed

* doc/posix-functions/popen.texi (popen): Document cygwin bugs.
* modules/popen: New file.
* modules/popen-tests: Likewise.
* tests/test-popen.c: Likewise.
* m4/popen.m4: Likewise.
* lib/popen.c: Likewise.
* lib/stdio.in.h (popen): New declaration.
* m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
* modules/stdio (Makefile.am): Likewise.
* MODULES.html.sh (systems lacking POSIX:2008): Mention it.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agomaint.mk: give full control over update-copyright exclusions
Joel E. Denny [Tue, 18 Aug 2009 01:41:57 +0000 (21:41 -0400)]
maint.mk: give full control over update-copyright exclusions

* top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
(update-copyright): Don't force inclusion of top-level
ChangeLog.  Don't force exclusion of all COPYING files, but make
them the default exclusion instead.

14 years agoautoupdate
Karl Berry [Mon, 17 Aug 2009 13:51:21 +0000 (06:51 -0700)]
autoupdate

14 years agoAvoid test failures on Solaris 10.
Bruno Haible [Sun, 16 Aug 2009 21:00:33 +0000 (23:00 +0200)]
Avoid test failures on Solaris 10.

14 years agoFix test failures on Solaris 10.
Bruno Haible [Sun, 16 Aug 2009 20:40:51 +0000 (22:40 +0200)]
Fix test failures on Solaris 10.

14 years agoupdate from texinfo
Karl Berry [Sun, 16 Aug 2009 16:20:30 +0000 (09:20 -0700)]
update from texinfo

14 years agofpurge: fix previous commits
Eric Blake [Sun, 16 Aug 2009 14:59:54 +0000 (08:59 -0600)]
fpurge: fix previous commits

* modules/fpurge (Makefile.am): Make replacement conditional,
partially reverting 2007-04-29 change; missed in previous
attempt.
* m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
is missing.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agoClarify fpurge's effect on the file position.
Bruno Haible [Sun, 16 Aug 2009 13:51:23 +0000 (15:51 +0200)]
Clarify fpurge's effect on the file position.

14 years agoTweak last commit.
Bruno Haible [Sun, 16 Aug 2009 12:46:39 +0000 (14:46 +0200)]
Tweak last commit.

14 years agofpurge: don't wrap working cygwin implementation
Eric Blake [Sat, 15 Aug 2009 22:43:58 +0000 (16:43 -0600)]
fpurge: don't wrap working cygwin implementation

* lib/fpurge.c (fpurge): Fix comment typo.
* modules/fpurge (Makefile.am): Make replacement conditional,
partially reverting 2007-04-29 change.
* tests/test-fpurge.c (main): Enhance test.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agotest-update-copyright: skip if perl is insufficient
Eric Blake [Sat, 15 Aug 2009 16:28:30 +0000 (10:28 -0600)]
test-update-copyright: skip if perl is insufficient

* tests/test-update-copyright.sh: Failure to run maintainer tool
should not cause testsuite failure on cygwin 1.5.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agodoc: mention more functions added in cygwin 1.7.0
Eric Blake [Thu, 13 Aug 2009 20:21:43 +0000 (14:21 -0600)]
doc: mention more functions added in cygwin 1.7.0

* doc/posix-headers/limits.texi (limits.h): Update for recent
cygwin additions.
* doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
* doc/posix-functions/wordexp.texi (wordexp): Likewise.
* doc/posix-functions/wordfree.texi (wordfree): Likewise.
* doc/posix-functions/setlocale.texi (setlocale): Likewise.
* doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agomaint.mk: simplify update-copyright rule
Eric Blake [Fri, 14 Aug 2009 15:40:53 +0000 (09:40 -0600)]
maint.mk: simplify update-copyright rule

* top/maint.mk (update-copyright-local): Delete, and document how
to do it in cfg.mk instead.
(update-copyright-exclude-regexp): Delete, and document how to do
it in .x-update-copyright instead.
(update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
exclude ChangeLog.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agoUndo invalid optimization in last commit.
Bruno Haible [Sat, 15 Aug 2009 00:38:33 +0000 (02:38 +0200)]
Undo invalid optimization in last commit.

14 years agomaint.mk: support update-copyright-env
Joel E. Denny [Fri, 14 Aug 2009 19:26:20 +0000 (15:26 -0400)]
maint.mk: support update-copyright-env

* top/maint.mk (update-copyright-env): Define place-holder.
(update-copyright): Expand $(update-copyright-env) before
invoking update-copyright.

14 years agoupdate-copyright: implement forced reformatting
Joel E. Denny [Fri, 14 Aug 2009 17:12:54 +0000 (13:12 -0400)]
update-copyright: implement forced reformatting

* build-aux/update-copyright: Implement and document
UPDATE_COPYRIGHT_FORCE.
* tests/test-update-copyright.sh: Test it.

14 years agostddef: fix NetBSD 5.0 NULL bug, rather than working around it
Eric Blake [Wed, 12 Aug 2009 16:23:03 +0000 (10:23 -0600)]
stddef: fix NetBSD 5.0 NULL bug, rather than working around it

* tests/test-locale.c: Revert previous patch related to NULL.
* tests/test-stdio.c: Likewise.
* tests/test-stdlib.c: Likewise.
* tests/test-string.c: Likewise.
* tests/test-unistd.c: Likewise.
* modules/time-tests (Depends-on): Add verify.
* modules/wchar-tests (Depends-on): Likewise.
* tests/test-time.c: Test for NULL compliance.
* tests/test-wchar.c: Likewise.
* modules/locale (Depends-on): Add stddef.
* modules/stdio (Depends-on): Likewise.
* modules/stdlib (Depends-on): Likewise.
* modules/string (Depends-on): Likewise.
* modules/time (Depends-on): Likewise.
* modules/unistd (Depends-on): Likewise.
* modules/wchar (Depends-on): Likewise.
* lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
* lib/stdlib.in.h (includes): Likewise.
* lib/string.in.h (includes): Likewise.
* lib/time.in.h (includes): Likewise.
* lib/unistd.in.h (includes): Likewise.
* m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
replaced.
* m4/wchar.m4 (gl_WCHAR_H): Likewise.
* m4/stddef_h.m4: New file.
* modules/stddef: Likewise.
* lib/stddef.in.h: Likewise.
* modules/stddef-tests: Likewise.
* tests/test-stddef.c: Likewise.
* MODULES.html.sh (Basic types <stddef.h>): Mention new module.
* doc/posix-headers/stddef.texi (stddef.h): Document the bug.
* doc/posix-headers/locale.texi (locale.h): Likewise.
* doc/posix-headers/stdio.texi (stdio.h): Likewise.
* doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
* doc/posix-headers/string.texi (string.h): Likewise.
* doc/posix-headers/time.texi (time.h): Likewise.
* doc/posix-headers/unistd.texi (unistd.h): Likewise.
* doc/posix-headers/wchar.texi (wchar.h): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agoRevert "Avoid compilation error on NetBSD 5.0."
Eric Blake [Wed, 12 Aug 2009 14:31:14 +0000 (08:31 -0600)]
Revert "Avoid compilation error on NetBSD 5.0."

This reverts commit b8521e81e705f88784e7a6709bcd6c5a3ea440e0.

14 years agodoc: improve git diff of texinfo files
Eric Blake [Thu, 13 Aug 2009 13:15:28 +0000 (07:15 -0600)]
doc: improve git diff of texinfo files

* .gitattributes: Add rule for *.texi files, with hint on how to
use it.
Copied from m4, and based on a report by Bruno Haible.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agoDisable multithread support by default on Cygwin 1.5.x for real.
Bruno Haible [Fri, 14 Aug 2009 10:01:12 +0000 (12:01 +0200)]
Disable multithread support by default on Cygwin 1.5.x for real.

14 years agoupdate-copyright: much ado about intervals
Joel E. Denny [Fri, 14 Aug 2009 05:10:08 +0000 (01:10 -0400)]
update-copyright: much ado about intervals

* build-aux/update-copyright: Implement and document
UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
of copyright year intervals.
Also, document UPDATE_COPYRIGHT_YEAR.
* tests/test-update-copyright.sh: Test it.

14 years agoupdate-copyright: convert 2-digit to 4-digit years
Joel E. Denny [Fri, 14 Aug 2009 02:40:34 +0000 (22:40 -0400)]
update-copyright: convert 2-digit to 4-digit years

* build-aux/update-copyright: Implement and document.
* tests/test-update-copyright.sh: Update.

14 years agotest-exclude: avoid coreutils "make check" failure
Jim Meyering [Fri, 14 Aug 2009 06:17:46 +0000 (08:17 +0200)]
test-exclude: avoid coreutils "make check" failure

* tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
just as in test-argmatch.c.

14 years agotest-dup2: fix bad assumption
Eric Blake [Thu, 13 Aug 2009 18:11:47 +0000 (12:11 -0600)]
test-dup2: fix bad assumption

* tests/test-dup2.c (main): Tolerate leaked fds from environment.
Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agotest-version-etc: fix CRLF portability issue
Eric Blake [Thu, 13 Aug 2009 17:22:26 +0000 (11:22 -0600)]
test-version-etc: fix CRLF portability issue

* tests/test-version-etc.sh: Use tr, not sed, as not all sed
recognize \r.
* tests/test-argp-version-etc-1.sh: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agogetopt: update client modules
Eric Blake [Thu, 13 Aug 2009 17:42:00 +0000 (11:42 -0600)]
getopt: update client modules

* modules/argp (Depends-on): Use getopt-gnu.
* modules/git-merge-changelog (Depends-on): Likewise.
* modules/long-options (Depends-on): Likewise.
* modules/xstrtol (Depends-on): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agotest-version-etc, test-argp-version-etc: Fix CRLF issue. Reduce forks.
Simon Josefsson [Thu, 13 Aug 2009 11:22:41 +0000 (13:22 +0200)]
test-version-etc, test-argp-version-etc: Fix CRLF issue.  Reduce forks.

14 years agoversion-etc-test: Make it work imported into projects.
Simon Josefsson [Thu, 13 Aug 2009 11:10:21 +0000 (13:10 +0200)]
version-etc-test: Make it work imported into projects.

14 years agoTests for modules 'getopt-posix', 'getopt-gnu'.
Bruno Haible [Wed, 12 Aug 2009 23:25:48 +0000 (01:25 +0200)]
Tests for modules 'getopt-posix', 'getopt-gnu'.

14 years agoNew modules 'getopt-posix', 'getopt-gnu'.
Bruno Haible [Wed, 12 Aug 2009 23:23:35 +0000 (01:23 +0200)]
New modules 'getopt-posix', 'getopt-gnu'.

14 years agoEnsure that optarg etc. get declared by <unistd.h>.
Bruno Haible [Wed, 12 Aug 2009 23:09:50 +0000 (01:09 +0200)]
Ensure that optarg etc. get declared by <unistd.h>.

14 years agoAvoid test link errors.
Bruno Haible [Wed, 12 Aug 2009 21:34:12 +0000 (23:34 +0200)]
Avoid test link errors.

14 years agoRestore the gl_GETOPT_SUBSTITUTE macro, under a new name.
Bruno Haible [Wed, 12 Aug 2009 20:18:21 +0000 (22:18 +0200)]
Restore the gl_GETOPT_SUBSTITUTE macro, under a new name.

14 years agoPut the recent ChangeLog entries in order.
Bruno Haible [Wed, 12 Aug 2009 18:55:31 +0000 (20:55 +0200)]
Put the recent ChangeLog entries in order.

14 years agoUpdate ChangeLog
Sergey Poznyakoff [Wed, 12 Aug 2009 18:47:56 +0000 (21:47 +0300)]
Update ChangeLog

14 years agoReorder macros.
Bruno Haible [Wed, 12 Aug 2009 17:37:21 +0000 (19:37 +0200)]
Reorder macros.

14 years agoMinor improvement in gitlog-to-changelog
Sergey Poznyakoff [Wed, 12 Aug 2009 16:48:51 +0000 (19:48 +0300)]
Minor improvement in gitlog-to-changelog

* build-aux/gitlog-to-changelog: New option `--format' makes
output format string configurable.

14 years agoOptimize exclude: use hash tables for non-wildcard patterns.
Sergey Poznyakoff [Wed, 12 Aug 2009 16:03:07 +0000 (19:03 +0300)]
Optimize exclude: use hash tables for non-wildcard patterns.

* lib/exclude.c: Include hash.h and mbuiter.h
(struct exclude_pattern, exclude_segment): New data types.
(struct exclude): Rewrite.
(fnmatch_pattern_has_wildcards): New function.
(new_exclude_segment, free_exclude_segment): New functions.
(excluded_file_pattern_p, excluded_file_name_p): New functions.
(excluded_file_name, add_exclude): Rewrite using new struct exclude.
* lib/exclude.h (is_fnmatch_pattern): New prototype.
* modules/exclude: Depend on hash and mbuiter.

* modules/exclude-tests: New file.
* tests/test-exclude.c: New file.
* tests/test-exclude1.sh: New file.
* tests/test-exclude2.sh: New file.
* tests/test-exclude3.sh: New file.
* tests/test-exclude4.sh: New file.
* tests/test-exclude5.sh: New file.
* tests/test-exclude6.sh: New file.
* tests/test-exclude7.sh: New file.

14 years agoEnsure that getopt() gets declared by <unistd.h>.
Bruno Haible [Wed, 12 Aug 2009 15:25:09 +0000 (17:25 +0200)]
Ensure that getopt() gets declared by <unistd.h>.

14 years agoClarify logic; Separate gl_replace_getopt and GETOPT_H.
Bruno Haible [Wed, 12 Aug 2009 15:18:53 +0000 (17:18 +0200)]
Clarify logic; Separate gl_replace_getopt and GETOPT_H.

14 years agoAdd comments.
Bruno Haible [Wed, 12 Aug 2009 15:10:21 +0000 (17:10 +0200)]
Add comments.

14 years agoDisable multithread support by default on Cygwin 1.5.x.
Bruno Haible [Wed, 12 Aug 2009 14:25:16 +0000 (16:25 +0200)]
Disable multithread support by default on Cygwin 1.5.x.

14 years agoAvoid compilation error on NetBSD 5.0.
Bruno Haible [Tue, 11 Aug 2009 19:06:43 +0000 (21:06 +0200)]
Avoid compilation error on NetBSD 5.0.

14 years agoMost tests don't need module 'close' any more.
Bruno Haible [Tue, 11 Aug 2009 10:52:19 +0000 (12:52 +0200)]
Most tests don't need module 'close' any more.

14 years agoUndefine DCHAR_SET after use.
Bruno Haible [Mon, 10 Aug 2009 23:06:54 +0000 (01:06 +0200)]
Undefine DCHAR_SET after use.

14 years agoFix a gcc warning.
Bruno Haible [Mon, 10 Aug 2009 23:03:08 +0000 (01:03 +0200)]
Fix a gcc warning.

14 years agoDon't optimize AC_LIBOBJs, as they may appear in different contexts.
Bruno Haible [Mon, 10 Aug 2009 21:54:09 +0000 (23:54 +0200)]
Don't optimize AC_LIBOBJs, as they may appear in different contexts.

14 years agoMake it possible to use module 'gethostname' without module 'close' or 'ioctl'.
Bruno Haible [Mon, 10 Aug 2009 21:00:13 +0000 (23:00 +0200)]
Make it possible to use module 'gethostname' without module 'close' or 'ioctl'.

14 years agoAdd comment.
Bruno Haible [Mon, 10 Aug 2009 20:53:54 +0000 (22:53 +0200)]
Add comment.

14 years agoTypo in comment.
Bruno Haible [Mon, 10 Aug 2009 20:38:22 +0000 (22:38 +0200)]
Typo in comment.

14 years agoAvoid collision between gnulib wrapper and libintl wrapper.
Bruno Haible [Mon, 10 Aug 2009 11:29:20 +0000 (13:29 +0200)]
Avoid collision between gnulib wrapper and libintl wrapper.

14 years agoMake <sys/select.h> really self-contained, also on Solaris 10.
Bruno Haible [Sun, 9 Aug 2009 22:26:10 +0000 (00:26 +0200)]
Make <sys/select.h> really self-contained, also on Solaris 10.

14 years agoAvoid warnings from 'aclocal' when AM_XGETTEXT_OPTION is not defined.
Bruno Haible [Sun, 9 Aug 2009 17:58:07 +0000 (19:58 +0200)]
Avoid warnings from 'aclocal' when AM_XGETTEXT_OPTION is not defined.

14 years agoAvoid compilation error in C++ mode.
Bruno Haible [Sun, 9 Aug 2009 07:15:28 +0000 (09:15 +0200)]
Avoid compilation error in C++ mode.

14 years agoDefine HOST_NAME_MAX also for the various Unix platforms.
Bruno Haible [Sat, 8 Aug 2009 09:18:41 +0000 (11:18 +0200)]
Define HOST_NAME_MAX also for the various Unix platforms.

14 years agoselinux-at: fix typo in a comment
Jim Meyering [Fri, 7 Aug 2009 21:22:51 +0000 (23:22 +0200)]
selinux-at: fix typo in a comment

* lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
Spotted by Paolo Bonzini.

14 years agoselinux-at: remove redundant m4 code, add documentation
Jim Meyering [Fri, 7 Aug 2009 08:57:17 +0000 (10:57 +0200)]
selinux-at: remove redundant m4 code, add documentation

* modules/selinux-at (configure.ac): Remove redundant code.
LIB_SELINUX is already set via the dependent module, selinux-h.
(Include): Add quotes around selinux-at.h.
* lib/selinux-at.h: Add documentation.
Reported by Bruno Haible in
http://marc.info/?l=gnulib-bug&m=124958988300749

14 years agoAvoid link error on MacOS X 10.3 and 10.4.
Bruno Haible [Fri, 7 Aug 2009 07:06:45 +0000 (09:06 +0200)]
Avoid link error on MacOS X 10.3 and 10.4.