gnulib.git
14 years agonanosleep: Fix C++ test error on mingw.
Bruno Haible [Sun, 4 Apr 2010 00:12:01 +0000 (02:12 +0200)]
nanosleep: Fix C++ test error on mingw.

14 years agostrptime: Fix C++ test error on mingw.
Bruno Haible [Sat, 3 Apr 2010 18:23:47 +0000 (20:23 +0200)]
strptime: Fix C++ test error on mingw.

14 years agoOops, fix default value in the last commits.
Bruno Haible [Sat, 3 Apr 2010 17:54:49 +0000 (19:54 +0200)]
Oops, fix default value in the last commits.

14 years agotimegm: Fix C++ test error on mingw.
Bruno Haible [Sat, 3 Apr 2010 17:15:04 +0000 (19:15 +0200)]
timegm: Fix C++ test error on mingw.

14 years agotimegm: Assume declaration if function exists.
Bruno Haible [Sat, 3 Apr 2010 17:33:13 +0000 (19:33 +0200)]
timegm: Assume declaration if function exists.

14 years agotime_r: Fix C++ test error on mingw.
Bruno Haible [Sat, 3 Apr 2010 16:52:49 +0000 (18:52 +0200)]
time_r: Fix C++ test error on mingw.

14 years agotime_r: Minor updates.
Bruno Haible [Sat, 3 Apr 2010 16:43:42 +0000 (18:43 +0200)]
time_r: Minor updates.

14 years agotime: Fix regression introduced on 2010-03-08.
Bruno Haible [Sat, 3 Apr 2010 16:24:34 +0000 (18:24 +0200)]
time: Fix regression introduced on 2010-03-08.

14 years agomaint.mk: don't silently disable project-specific syntax-check rules
Jim Meyering [Sat, 3 Apr 2010 16:03:16 +0000 (18:03 +0200)]
maint.mk: don't silently disable project-specific syntax-check rules

* top/maint.mk (_prohibit_regexp): Define, to help people realize
that they need to convert their project-specific syntax-check rules
to use the new _sc_search_regexp.

14 years agofchdir: Fix regression introduced on 2010-03-08.
Bruno Haible [Sat, 3 Apr 2010 13:59:25 +0000 (15:59 +0200)]
fchdir: Fix regression introduced on 2010-03-08.

14 years agogetpagesize: Fix C++ test error on mingw.
Bruno Haible [Sat, 3 Apr 2010 13:43:45 +0000 (15:43 +0200)]
getpagesize: Fix C++ test error on mingw.

14 years agostdio: Make C++ tests work on mingw.
Bruno Haible [Sat, 3 Apr 2010 12:34:57 +0000 (14:34 +0200)]
stdio: Make C++ tests work on mingw.

14 years agoftello: Fix C++ test error on mingw.
Bruno Haible [Sat, 3 Apr 2010 12:25:24 +0000 (14:25 +0200)]
ftello: Fix C++ test error on mingw.

14 years agofseeko: Fix C++ test error on mingw.
Bruno Haible [Sat, 3 Apr 2010 12:08:25 +0000 (14:08 +0200)]
fseeko: Fix C++ test error on mingw.

14 years agomkstemp: Fix C++ test error on mingw.
Bruno Haible [Sat, 3 Apr 2010 11:44:41 +0000 (13:44 +0200)]
mkstemp: Fix C++ test error on mingw.

14 years agostpncpy: Fix C++ test error on mingw.
Bruno Haible [Sat, 3 Apr 2010 11:21:17 +0000 (13:21 +0200)]
stpncpy: Fix C++ test error on mingw.

14 years agosys_stat: Fix C++ test error on mingw.
Bruno Haible [Sat, 3 Apr 2010 10:55:17 +0000 (12:55 +0200)]
sys_stat: Fix C++ test error on mingw.

14 years agopty: Update doc.
Bruno Haible [Sat, 3 Apr 2010 10:37:54 +0000 (12:37 +0200)]
pty: Update doc.

14 years agounistd: Fix C++ test error on mingw.
Bruno Haible [Sat, 3 Apr 2010 10:30:09 +0000 (12:30 +0200)]
unistd: Fix C++ test error on mingw.

14 years agoUpdate doc regarding mingw.
Bruno Haible [Sat, 3 Apr 2010 10:14:13 +0000 (12:14 +0200)]
Update doc regarding mingw.

14 years agostdlib: Avoid compilation failure of c-strtold on mingw.
Bruno Haible [Sat, 3 Apr 2010 10:07:56 +0000 (12:07 +0200)]
stdlib: Avoid compilation failure of c-strtold on mingw.

14 years agolocale: Make C++ tests work on Cygwin and mingw.
Bruno Haible [Sat, 3 Apr 2010 09:57:20 +0000 (11:57 +0200)]
locale: Make C++ tests work on Cygwin and mingw.

14 years agolocalename: Port to MacOS X 10.6.
Bruno Haible [Sat, 3 Apr 2010 08:46:26 +0000 (10:46 +0200)]
localename: Port to MacOS X 10.6.

14 years agognulib-tool: Ensure that long-running tests are executed last.
Bruno Haible [Fri, 2 Apr 2010 18:04:45 +0000 (20:04 +0200)]
gnulib-tool: Ensure that long-running tests are executed last.

14 years agognulib-tool: Ensure the tests in the main directory are executed first.
Bruno Haible [Fri, 2 Apr 2010 17:44:45 +0000 (19:44 +0200)]
gnulib-tool: Ensure the tests in the main directory are executed first.

14 years agoOops, fix small mistake in last commit.
Bruno Haible [Fri, 2 Apr 2010 16:17:06 +0000 (18:17 +0200)]
Oops, fix small mistake in last commit.

14 years agoTests for module 'havelib', moved here from GNU gettext.
Bruno Haible [Fri, 2 Apr 2010 16:09:43 +0000 (18:09 +0200)]
Tests for module 'havelib', moved here from GNU gettext.

14 years agognulib-tool: Create distributed built sources also for the tests.
Bruno Haible [Fri, 2 Apr 2010 15:09:37 +0000 (17:09 +0200)]
gnulib-tool: Create distributed built sources also for the tests.

14 years agognulib-tool: Obey user's environment variables.
Bruno Haible [Fri, 2 Apr 2010 14:57:08 +0000 (16:57 +0200)]
gnulib-tool: Obey user's environment variables.

14 years agognulib-tool: Provide the value of --m4-base to modules.
Bruno Haible [Fri, 2 Apr 2010 14:51:12 +0000 (16:51 +0200)]
gnulib-tool: Provide the value of --m4-base to modules.

14 years agomaint.mk: fix some fallout
Eric Blake [Fri, 2 Apr 2010 14:47:05 +0000 (08:47 -0600)]
maint.mk: fix some fallout

Also rearrange ChangeLog to match commit order.

* NEWS: Document the incompatible change, and its effect on cfg.mk.
* top/maint.mk (sc_prohibit_test_minus_ao): Update.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agomaint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
Jose E. Marchesi [Mon, 29 Mar 2010 13:38:39 +0000 (15:38 +0200)]
maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp

Adapt existing rules to use the new factorization, which provides
a more declarative syntax for pattern searching syntax checks.
* top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
(sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
(sc_cast_of_x_alloc_return_value): Likewise.
(sc_cast_of_alloca_return_value): Likewise.
(sc_space_tab): Likewise.
(sc_prohibit_atoi_atof): Likewise.
(sc_prohibit_magic_number_exit): Likewise.
(sc_error_exit_success): Likewise.
(sc_file_system): Likewise.
(sc_prohibit_have_config_h): Likewise.
(sc_require_config_h): Likewise.
(sc_prohibit_HAVE_MBRTOWC): Likewise.
(sc_obsolete_symbols): Likewise.
(sc_changelog): Likewise.
(sc_program_name): Likewise.
(sc_the_the): Likewise.
(sc_trailing_blank): Likewise.
(sc_two_space_separator_in_usage): Likewise.
(sc_useless_cpp_parens): Likewise.
(sc_GPL_version): Likewise.
(sc_GFDL_version): Likewise.
(sc_texinfo_acronym): Likewise.
(sc_prohibit_cvs_keyword): Likewise.
(sc_prohibit_stat_st_blocks): Likewise.
(sc_prohibit_S_IS_definition): Likewise.
(sc_redundant_const): Likewise.
(sc_makefile_TAB_only_indentation): Likewise.
(sc_m4_quote_check): Likewise.
(sc_makefile_path_separator_check): Likewise.
(sc_copyright_check): Likewise.
(sc_Wundef_boolean): Likewise.
(sc_vulnerable_makefile_CVE-2009-4029): Likewise.

14 years agomaint.mk: match 0 or more whitespace-before-function-call '('
Jose E. Marchesi [Sun, 28 Mar 2010 11:35:24 +0000 (13:35 +0200)]
maint.mk: match 0 or more whitespace-before-function-call '('

* top/maint.mk (sc_error_exit_success): Relax regexp to match uses
that have zero or two-and-more spaces between the function name
and the open parenthesis.
(sc_error_message_warn_fatal): Likewise.
(sc_error_message_uppercase): Likewise.
(sc_error_message_period): Likewise.

14 years agomaint.mk: check for [ as well as test
Eric Blake [Wed, 31 Mar 2010 21:33:55 +0000 (15:33 -0600)]
maint.mk: check for [ as well as test

A word on the regex: \<\[ never matches, so the match instead
looks for a leading space in that case.  Although configure.ac
should generally use test instead of [ (because the latter has
to be spelled [[ because of m4 processing), libvirt had a case
of the latter that would have been detected with this rule.

* top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
Based on a libvirt report by Matthias Bolte.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agognumakefile: don't squelch _version output
Eric Blake [Tue, 30 Mar 2010 21:56:17 +0000 (15:56 -0600)]
gnumakefile: don't squelch _version output

Borrowing from a trick I discovered on the libvirt list.
More details about how this trick works:

GNU make parses all Makefiles, then checks whether they are
up-to-date, all before making anything else; if any Makefile
timestamps change, then it restarts with the original arguments and
repeats the check for up-to-date Makefiles (assuming that this time
the check will pass).  Since all the rules are parsed before Makefile
is updated, proceeding without reloading Makefiles would result in the
use of the stale $(VERSION) string that was in effect when we first
started, so we must update a timestamp to force the reload.  However,
if we made Makefile depend on _version, we would end up running
_version twice.  So instead, we make _version run a recursive make to
update Makefile (the recursive make skips the rules for checking
whether the version string needs an update, avoiding any extra runs of
_version), then ensure that GNUmakefile has an updated timestamp to
force the reload of the updated Makefile.

* top/GNUmakefile (GNUmakefile): Create one-shot dependency rather
than using $(shell) to run _version target.
(_autoreconf): Run verbosely, by default.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agosys_time: avoid compiler warnings
Eric Blake [Wed, 31 Mar 2010 13:57:51 +0000 (07:57 -0600)]
sys_time: avoid compiler warnings

sys/time uses #if/#else/#endif, and is therefore not subject
to the gcc optimization.  The #pragma GCC system_header must
occur up front.

* lib/sys_time.in.h (includes): Ensure gcc pragma is
unconditional, fixing regression from 2010-03-29.
Reported by Simon Josefsson.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agomaint.mk: split a long line
Jim Meyering [Mon, 29 Mar 2010 14:43:00 +0000 (16:43 +0200)]
maint.mk: split a long line

* top/maint.mk: Split a line to fit in 80 columns.

14 years agomaint.mk: s/_header_without_use/_sc_header_without_use/
Jose E. Marchesi [Sun, 28 Mar 2010 11:28:34 +0000 (13:28 +0200)]
maint.mk: s/_header_without_use/_sc_header_without_use/

* top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
(sc_prohibit_assert_without_use): Use the new name.
(sc_prohibit_close_stream_without_use): Likewise.
(sc_prohibit_getopt_without_use): Likewise.
(sc_prohibit_quotearg_without_use): Likewise.
(sc_prohibit_quote_without_use): Likewise.
(sc_prohibit_long_options_without_use): Likewise.
(sc_prohibit_inttostr_without_use): Likewise.
(sc_prohibit_ignore_value_without_use): Likewise.
(sc_prohibit_error_without_use): Likewise.
(sc_prohibit_xalloc_without_use): Likewise.
(sc_prohibit_hash_without_use): Likewise.
(sc_prohibit_hash_pjw_without_use): Likewise.
(sc_prohibit_safe_read_without_use): Likewise.
(sc_prohibit_argmatch_without_use): Likewise.
(sc_prohibit_canonicalize_without_use): Likewise.
(sc_prohibit_root_dev_ino_without_use): Likewise.
(sc_prohibit_openat_without_use): Likewise.
(sc_prohibit_c_ctype_without_use): Likewise.
(sc_prohibit_signal_without_use): Likewise.
(sc_prohibit_intprops_without_use): Likewise.

14 years agomaint: improve module indicators
Eric Blake [Tue, 30 Mar 2010 14:47:41 +0000 (08:47 -0600)]
maint: improve module indicators

* m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
(gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
columns, and avoid extra macro expansion.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agofdopendir: work around FreeBSD bug
Eric Blake [Mon, 29 Mar 2010 21:08:59 +0000 (15:08 -0600)]
fdopendir: work around FreeBSD bug

Without a declaration, at least tar would core dump on 64-bit
FreeBSD because gcc only used 32 bits of the resulting pointer.

* m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
* m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
* modules/dirent (Makefile.am): Substitute it.
* lib/dirent.in.h (fdopendir): Supply missing FreeBSD
declaration.
* doc/posix-functions/fdopendir.texi (fdopendir): Document the
fix.
Reported by Christian Weisgerber <naddy@mips.inka.de>.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoEmit #pragma system_header after the inclusion guard, not before.
Bruno Haible [Tue, 30 Mar 2010 00:35:49 +0000 (02:35 +0200)]
Emit #pragma system_header after the inclusion guard, not before.

14 years agoFix indentation.
Bruno Haible [Tue, 30 Mar 2010 00:33:35 +0000 (02:33 +0200)]
Fix indentation.

14 years agosave-cwd: don't leak a file descriptor when the caller execs
James Youngman [Mon, 29 Mar 2010 10:30:23 +0000 (12:30 +0200)]
save-cwd: don't leak a file descriptor when the caller execs

* lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
saved file descriptor.
* modules/save-cwd (Depends-on): Depend on cloexec.

14 years agoRemove vestiges of fts-lgpl module.
Bruno Haible [Mon, 29 Mar 2010 08:41:20 +0000 (10:41 +0200)]
Remove vestiges of fts-lgpl module.

14 years agoFix definition of tests witness macro.
Bruno Haible [Mon, 29 Mar 2010 02:21:23 +0000 (04:21 +0200)]
Fix definition of tests witness macro.

14 years agoFix definition of tests witness macro.
Bruno Haible [Mon, 29 Mar 2010 01:04:51 +0000 (03:04 +0200)]
Fix definition of tests witness macro.

14 years agoFix ioctl's protoype on glibc systems.
Bruno Haible [Mon, 29 Mar 2010 00:27:39 +0000 (02:27 +0200)]
Fix ioctl's protoype on glibc systems.

14 years agoNormalize copyright line formatting.
Bruno Haible [Sun, 28 Mar 2010 23:17:33 +0000 (01:17 +0200)]
Normalize copyright line formatting.

14 years agoexclude: fix the case of globs vs. EXCLUDE_INCLUDE
Javier Villavicencio [Sun, 28 Mar 2010 18:42:01 +0000 (20:42 +0200)]
exclude: fix the case of globs vs. EXCLUDE_INCLUDE

* lib/exclude.c (excluded_file_pattern_p): Fix logic error that
made it so grep -r --include=GLOB* ... did not work.

14 years agomaint.mk: prohibit use of test's -o and -a operators
Jim Meyering [Fri, 26 Mar 2010 08:04:29 +0000 (09:04 +0100)]
maint.mk: prohibit use of test's -o and -a operators

* top/maint.mk (sc_prohibit_test_minus_ao): New rule.

14 years agoRemove unused GNULIB_XYZ macro definitions.
Bruno Haible [Sun, 28 Mar 2010 17:39:32 +0000 (19:39 +0200)]
Remove unused GNULIB_XYZ macro definitions.

14 years agoMark privileged tests modules.
Bruno Haible [Sun, 28 Mar 2010 17:15:43 +0000 (19:15 +0200)]
Mark privileged tests modules.

14 years agoSplit C++ tests into separate tests modules.
Bruno Haible [Sun, 28 Mar 2010 17:07:33 +0000 (19:07 +0200)]
Split C++ tests into separate tests modules.

14 years agognulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
Bruno Haible [Sun, 28 Mar 2010 16:32:36 +0000 (18:32 +0200)]
gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.

14 years agognulib-tool: Add support for special categories of tests.
Bruno Haible [Sun, 28 Mar 2010 16:01:18 +0000 (18:01 +0200)]
gnulib-tool: Add support for special categories of tests.

14 years agoansi-c++-opt: Allow turning off the C++ build by default.
Bruno Haible [Sun, 28 Mar 2010 13:30:39 +0000 (15:30 +0200)]
ansi-c++-opt: Allow turning off the C++ build by default.

14 years agounistd: Avoid #define replacements in C++ mode.
Bruno Haible [Sun, 28 Mar 2010 12:26:15 +0000 (14:26 +0200)]
unistd: Avoid #define replacements in C++ mode.

14 years agoFix link errors on mingw.
Bruno Haible [Sun, 28 Mar 2010 12:21:28 +0000 (14:21 +0200)]
Fix link errors on mingw.

14 years agolib-ignore: Determine different options for different compilers.
Bruno Haible [Sun, 28 Mar 2010 09:23:57 +0000 (11:23 +0200)]
lib-ignore: Determine different options for different compilers.

14 years agoRemove unused GNULIB_XYZ macro definitions.
Bruno Haible [Sun, 28 Mar 2010 00:48:22 +0000 (01:48 +0100)]
Remove unused GNULIB_XYZ macro definitions.

14 years agoAdd a remark about certain modules.
Bruno Haible [Sun, 28 Mar 2010 00:37:25 +0000 (01:37 +0100)]
Add a remark about certain modules.

14 years agoResolve conflict between the two kinds of module indicators.
Bruno Haible [Sun, 28 Mar 2010 00:29:52 +0000 (01:29 +0100)]
Resolve conflict between the two kinds of module indicators.

14 years agoautoupdate
Karl Berry [Sun, 28 Mar 2010 00:08:29 +0000 (17:08 -0700)]
autoupdate

14 years agoDistinguish two kinds of module indicators.
Bruno Haible [Sat, 27 Mar 2010 23:31:39 +0000 (00:31 +0100)]
Distinguish two kinds of module indicators.

14 years agoNew module description field 'Comment'.
Bruno Haible [Sat, 27 Mar 2010 19:52:28 +0000 (20:52 +0100)]
New module description field 'Comment'.

14 years agoAddendum to 2010-02-07 commit.
Bruno Haible [Sat, 27 Mar 2010 19:45:57 +0000 (20:45 +0100)]
Addendum to 2010-02-07 commit.

14 years agoUse GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
Bruno Haible [Sat, 27 Mar 2010 19:09:55 +0000 (20:09 +0100)]
Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.

14 years agoAvoid side effects from tests-related modules on the compilation of lib.
Bruno Haible [Sat, 27 Mar 2010 17:54:30 +0000 (18:54 +0100)]
Avoid side effects from tests-related modules on the compilation of lib.

14 years agoFactorize common .m4 code.
Bruno Haible [Sat, 27 Mar 2010 17:38:53 +0000 (18:38 +0100)]
Factorize common .m4 code.

14 years agoFix a compilation error on Cygwin with g++ >= 4.3.
Bruno Haible [Sat, 27 Mar 2010 13:30:20 +0000 (14:30 +0100)]
Fix a compilation error on Cygwin with g++ >= 4.3.

14 years agoRename gl_GETLOGIN.
Bruno Haible [Sat, 27 Mar 2010 13:02:37 +0000 (14:02 +0100)]
Rename gl_GETLOGIN.

14 years agoRename gl_GETLOGIN_R.
Bruno Haible [Sat, 27 Mar 2010 13:01:58 +0000 (14:01 +0100)]
Rename gl_GETLOGIN_R.

14 years agoRename gl_INET_NTOP.
Bruno Haible [Sat, 27 Mar 2010 13:01:23 +0000 (14:01 +0100)]
Rename gl_INET_NTOP.

14 years agoRename gl_INET_PTON.
Bruno Haible [Sat, 27 Mar 2010 13:00:37 +0000 (14:00 +0100)]
Rename gl_INET_PTON.

14 years agoRename gl_MBSLEN.
Bruno Haible [Sat, 27 Mar 2010 12:59:59 +0000 (13:59 +0100)]
Rename gl_MBSLEN.

14 years agoRename gl_FORKPTY and gl_OPENPTY.
Bruno Haible [Sat, 27 Mar 2010 12:59:19 +0000 (13:59 +0100)]
Rename gl_FORKPTY and gl_OPENPTY.

14 years agotop/maint.mk (sc_texinfo_acronym): Don't infloop if there is no *.texi files.
Simon Josefsson [Fri, 26 Mar 2010 08:14:34 +0000 (09:14 +0100)]
top/maint.mk (sc_texinfo_acronym): Don't infloop if there is no *.texi files.

Reported by Eric Blake <eblake@redhat.com>.

14 years agoautoupdate
Karl Berry [Thu, 25 Mar 2010 23:01:21 +0000 (16:01 -0700)]
autoupdate

14 years agoautoupdate
Karl Berry [Thu, 25 Mar 2010 22:57:35 +0000 (15:57 -0700)]
autoupdate

14 years agomaint: use pragma consistently across replacement headers
Eric Blake [Thu, 25 Mar 2010 22:28:02 +0000 (16:28 -0600)]
maint: use pragma consistently across replacement headers

Several headers set #pragma GCC system_header prior to checking
any multiple inclusion guards; maintenance is easiest if all
replacement headers follow the same paradigm.

* lib/ctype.in.h (system_header): Hoist for consistent placement.
* lib/dirent.in.h (system_header): Likewise.
* lib/errno.in.h (system_header): Likewise.
* lib/float.in.h (system_header): Likewise.
* lib/getopt.in.h (system_header): Likewise.
* lib/iconv.in.h (system_header): Likewise.
* lib/inttypes.in.h (system_header): Likewise.
* lib/langinfo.in.h (system_header): Likewise.
* lib/locale.in.h (system_header): Likewise.
* lib/math.in.h (system_header): Likewise.
* lib/netdb.in.h (system_header): Likewise.
* lib/netinet_in.in.h (system_header): Likewise.
* lib/pty.in.h (system_header): Likewise.
* lib/sched.in.h (system_header): Likewise.
* lib/se-selinux.in.h (system_header): Likewise.
* lib/search.in.h (system_header): Likewise.
* lib/spawn.in.h (system_header): Likewise.
* lib/stdarg.in.h (system_header): Likewise.
* lib/stdint.in.h (system_header): Likewise.
* lib/string.in.h (system_header): Likewise.
* lib/strings.in.h (system_header): Likewise.
* lib/sys_file.in.h (system_header): Likewise.
* lib/sys_ioctl.in.h (system_header): Likewise.
* lib/sys_socket.in.h (system_header): Likewise.
* lib/sys_times.in.h (system_header): Likewise.
* lib/sys_utsname.in.h (system_header): Likewise.
* lib/sys_wait.in.h (system_header): Likewise.
* lib/sysexits.in.h (system_header): Likewise.
* lib/unistd.in.h (system_header): Likewise.
* lib/wctype.in.h (system_header): Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoarpa/inet: fix mingw compilation warning
Eric Blake [Wed, 24 Mar 2010 23:25:49 +0000 (17:25 -0600)]
arpa/inet: fix mingw compilation warning

Mingw doesn't have <arpa/inet.h>, so a conditional use of the
pragma was never encountered, and led to mingw's gcc issuing
warnings about duplicate declarations under -Wredundant-decls.
Making the #pragma unconditional (as was already done in at
least fcntl.in.h) shuts up gcc.

* lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
Reported by Matthew Bolte.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoAvoid collision between gnulib wrapper and libintl wrapper.
Bruno Haible [Thu, 25 Mar 2010 07:06:00 +0000 (08:06 +0100)]
Avoid collision between gnulib wrapper and libintl wrapper.

14 years agoUse ANSI C.
Bruno Haible [Thu, 25 Mar 2010 06:50:53 +0000 (07:50 +0100)]
Use ANSI C.

14 years agoMinor formatting changes.
Bruno Haible [Thu, 25 Mar 2010 06:48:14 +0000 (07:48 +0100)]
Minor formatting changes.

14 years agoChangeLog entry formatting.
Bruno Haible [Thu, 25 Mar 2010 06:44:50 +0000 (07:44 +0100)]
ChangeLog entry formatting.

14 years agoautoupdate
Karl Berry [Wed, 24 Mar 2010 14:11:17 +0000 (07:11 -0700)]
autoupdate

14 years agomaint.mk (sc_Wundef_boolean): Skip test if no config.h.
Pádraig Brady [Wed, 24 Mar 2010 12:49:51 +0000 (13:49 +0100)]
maint.mk (sc_Wundef_boolean): Skip test if no config.h.

Signed-off-by: Simon Josefsson <simon@josefsson.org>
14 years agopt_chown: Make it work with automake < 1.11.
Bruno Haible [Wed, 24 Mar 2010 00:14:18 +0000 (01:14 +0100)]
pt_chown: Make it work with automake < 1.11.

14 years agopt_chown: Don't depend on GPLed modules.
Bruno Haible [Wed, 24 Mar 2010 00:08:56 +0000 (01:08 +0100)]
pt_chown: Don't depend on GPLed modules.

14 years agotop/maint.mk (sc_texinfo_acronym): Add rule.
Simon Josefsson [Wed, 24 Mar 2010 07:45:04 +0000 (08:45 +0100)]
top/maint.mk (sc_texinfo_acronym): Add rule.

Based on suggestions from karl@freefriends.org (Karl Berry).

14 years agountabify
Karl Berry [Tue, 23 Mar 2010 23:36:37 +0000 (16:36 -0700)]
untabify

14 years agogethostname: further tweaks
Eric Blake [Mon, 22 Mar 2010 20:01:55 +0000 (14:01 -0600)]
gethostname: further tweaks

* lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
are overriding gethostname.
Suggested by Bruno Haible.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoFix comments.
Bruno Haible [Mon, 22 Mar 2010 20:09:14 +0000 (21:09 +0100)]
Fix comments.

14 years agogethostname: fix build on mingw
Eric Blake [Fri, 19 Mar 2010 22:57:28 +0000 (16:57 -0600)]
gethostname: fix build on mingw

Since commit 4e86671a, gethostname failed to compile on mingw.
Gnulib's sys/socket.h includes winsock2.h, which then includes
unistd.h prior to declaring gethostname.  The fix is to ensure
that our replacement unistd.h does not declare any replacements
until we are sure that winsock2.h is completely included.

* lib/unistd.in.h (includes): Work around fact that mingw
<winsock2.h> re-includes <unistd.h>, by avoiding any
redeclarations if we are being included by <winsock2.h>.
Reported by Matthias Bolte.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoforkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
Bruno Haible [Mon, 22 Mar 2010 01:46:57 +0000 (02:46 +0100)]
forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.

14 years agoUse the common template. Make test stricter.
Bruno Haible [Mon, 22 Mar 2010 01:20:29 +0000 (02:20 +0100)]
Use the common template. Make test stricter.

14 years agoUse the common module description template.
Bruno Haible [Mon, 22 Mar 2010 01:15:18 +0000 (02:15 +0100)]
Use the common module description template.

14 years agoTests for module 'login_tty'.
Bruno Haible [Mon, 22 Mar 2010 01:14:08 +0000 (02:14 +0100)]
Tests for module 'login_tty'.

14 years agoNew module 'login_tty'.
Bruno Haible [Mon, 22 Mar 2010 01:13:15 +0000 (02:13 +0100)]
New module 'login_tty'.

14 years agologin_tty: Documentation.
Bruno Haible [Sun, 21 Mar 2010 23:39:46 +0000 (00:39 +0100)]
login_tty: Documentation.