gnulib.git
15 years agohave bootstrap initialize git-merge-changelog if found
Paolo Bonzini [Thu, 2 Oct 2008 09:01:16 +0000 (11:01 +0200)]
have bootstrap initialize git-merge-changelog if found

2008-10-02  Paolo Bonzini  <bonzini@gnu.org>

* build-aux/bootstrap: Install git-merge-changelog configuration
items into .gitconfig if needed.

15 years agohave bootstrap initialize a `gnulib' submodule in a git checkout
Paolo Bonzini [Thu, 2 Oct 2008 08:57:50 +0000 (10:57 +0200)]
have bootstrap initialize a `gnulib' submodule in a git checkout

2008-10-02  Paolo Bonzini  <bonzini@gnu.org>

* build-aux/bootstrap: Recognize `gnulib' being a submodule in a
git repository, and initialize/update it accordingly.

15 years agofts.c: sync with similar code from coreutils' remove.c
Jim Meyering [Thu, 2 Oct 2008 08:00:46 +0000 (10:00 +0200)]
fts.c: sync with similar code from coreutils' remove.c

* lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
Guard also with "#if defined __linux__", since for now at least,
this code is Linux-kernel-specific.

15 years agofsync: new module
Richard W.M. Jones [Wed, 1 Oct 2008 12:54:44 +0000 (13:54 +0100)]
fsync: new module

* lib/fsync.c: New file.
* m4/fsync.m4: New file.
* modules/fsync: New file.
* modules/fsync-tests: New file.
* tests/test-fsync.c: New file.
* modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
* m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST
both GNULIB_FSYNC and HAVE_FSYNC.
* lib/unistd.in.h (@GNULIB_FSYNC@): Add a block for fsync.
* MODULES.html.sh (posix_functions): Add fsync.
* doc/posix-functions/fsync.texi: Update.

15 years agofts: bug fixes
Jim Meyering [Thu, 2 Oct 2008 06:44:01 +0000 (08:44 +0200)]
fts: bug fixes

* lib/fts.c: Remove unnecessary "defined" in cpp directive.
Include <sys/vfs.h>, not <sys/statfs.h>.
* m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
Include <sys/vfs.h>, not <sys/statfs.h>.

15 years agoAvoid the broken posix_spawn function on AIX 5.3 and 6.1.
Bruno Haible [Wed, 1 Oct 2008 23:26:13 +0000 (01:26 +0200)]
Avoid the broken posix_spawn function on AIX 5.3 and 6.1.

15 years agoremove trailing spaces
Jim Meyering [Wed, 1 Oct 2008 07:43:40 +0000 (09:43 +0200)]
remove trailing spaces

* NEWS: Likewise.
* lib/poll.c (poll): Likewise.
* lib/sys_socket.in.h (SHUT_RDWR): Likewise.
* lib/winsock.c (rpl_close): Likewise.
* m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
* modules/yield: Likewise.
* tests/test-poll.c (connect_to_socket, poll1): Likewise.
* tests/test-sys_select.c (connect_to_socket): Likewise.

15 years agofts.c: adjust a new interface to be more generally useful
Jim Meyering [Wed, 1 Oct 2008 07:22:11 +0000 (09:22 +0200)]
fts.c: adjust a new interface to be more generally useful

* lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
(fts_build): Adjust caller.

15 years agoTests for module 'cond'.
Yoann Vandoorselaere [Wed, 1 Oct 2008 01:39:40 +0000 (03:39 +0200)]
Tests for module 'cond'.

15 years agoNeeds to depend on modules 'errno' and 'time'.
Bruno Haible [Wed, 1 Oct 2008 01:12:31 +0000 (03:12 +0200)]
Needs to depend on modules 'errno' and 'time'.

15 years agoNeeds to depend on modules 'errno' and 'time'.
Bruno Haible [Wed, 1 Oct 2008 01:11:20 +0000 (03:11 +0200)]
Needs to depend on modules 'errno' and 'time'.

15 years agoFix detection of pthread_atfork function.
Bruno Haible [Wed, 1 Oct 2008 01:01:43 +0000 (03:01 +0200)]
Fix detection of pthread_atfork function.

15 years agoMake use of the modules 'thread', 'yield' in the 'tls' test.
Bruno Haible [Wed, 1 Oct 2008 00:49:47 +0000 (02:49 +0200)]
Make use of the modules 'thread', 'yield' in the 'tls' test.

15 years agoMake use of the modules 'thread', 'yield' in the 'lock' test.
Bruno Haible [Wed, 1 Oct 2008 00:40:17 +0000 (02:40 +0200)]
Make use of the modules 'thread', 'yield' in the 'lock' test.

15 years agoFix the Win32 implementation of the 'thread' module.
Bruno Haible [Wed, 1 Oct 2008 00:28:35 +0000 (02:28 +0200)]
Fix the Win32 implementation of the 'thread' module.

15 years agoTreat the special case of regular files more efficiently.
Bruno Haible [Tue, 30 Sep 2008 21:50:26 +0000 (23:50 +0200)]
Treat the special case of regular files more efficiently.

15 years agofts.m4: correct the test for statfs.f_type
Jim Meyering [Tue, 30 Sep 2008 15:56:01 +0000 (17:56 +0200)]
fts.m4: correct the test for statfs.f_type

* m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
when checking for statfs.f_type.

15 years agotests: avoid some compiler warnings
Simon Josefsson [Tue, 30 Sep 2008 06:34:56 +0000 (08:34 +0200)]
tests: avoid some compiler warnings
* tests/test-memchr.c (main): Pass NULL indirectly.
* tests/test-getdate.c (main): Remove unused variable 'ret'.

Signed-off-by: Simon Josefsson <simon@josefsson.org>
15 years agoChangeLog: replace 8 leading spaces with a TAB
Jim Meyering [Mon, 29 Sep 2008 21:20:34 +0000 (23:20 +0200)]
ChangeLog: replace 8 leading spaces with a TAB

15 years agogetdate.y: disallow countable dayshifts like "4 yesterday ago"
Ondřej Vašík [Fri, 26 Sep 2008 13:28:49 +0000 (15:28 +0200)]
getdate.y: disallow countable dayshifts like "4 yesterday ago"

* lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
exactly specified dayshifts.
(dayshift): New rule.
(rel): Add dayshift.
(relative_time_table) [tomorrow, yesterday, today, now]:
Use tDAY_SHIFT in place of tDAY_UNIT.
* tests/test-getdate.c: Add tests for now-disallowed countable
dayshifts, e.g., "4 yesterday ago".

15 years agoRemove trailing spaces.
Bruno Haible [Mon, 29 Sep 2008 19:50:01 +0000 (21:50 +0200)]
Remove trailing spaces.

15 years agoA new test for posix_spawn.
Bruno Haible [Mon, 29 Sep 2008 19:42:51 +0000 (21:42 +0200)]
A new test for posix_spawn.

15 years agoPropagate effects of putenv/setenv/unsetenv to child processes.
Bruno Haible [Mon, 29 Sep 2008 13:25:12 +0000 (15:25 +0200)]
Propagate effects of putenv/setenv/unsetenv to child processes.

15 years agoautoupdate
Karl Berry [Mon, 29 Sep 2008 13:24:03 +0000 (06:24 -0700)]
autoupdate

15 years agoEnable use of shell scripts as executables in mingw.
Bruno Haible [Mon, 29 Sep 2008 13:13:25 +0000 (15:13 +0200)]
Enable use of shell scripts as executables in mingw.

15 years agoarpa_inet_h.m4: fix typo in previous patch
Eric Blake [Mon, 29 Sep 2008 12:27:29 +0000 (06:27 -0600)]
arpa_inet_h.m4: fix typo in previous patch

* m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agodocumentation update for mingw socket functions
Paolo Bonzini [Mon, 29 Sep 2008 11:23:50 +0000 (13:23 +0200)]
documentation update for mingw socket functions

2008-08-24  Paolo Bonzini  <bonzini@gnu.org>

* doc/posix-functions/accept.texi: Update mingw problems.
* doc/posix-functions/bind.texi: Update mingw problems.
* doc/posix-functions/close.texi: Update mingw problems.
* doc/posix-functions/connect.texi: Update mingw problems.
* doc/posix-functions/getpeername.texi: Update mingw problems.
* doc/posix-functions/getsockname.texi: Update mingw problems.
* doc/posix-functions/getsockopt.texi: Update mingw problems.
* doc/posix-functions/ioctl.texi: Update mingw problems.
* doc/posix-functions/listen.texi: Update mingw problems.
* doc/posix-functions/recv.texi: Update mingw problems.
* doc/posix-functions/recvfrom.texi: Update mingw problems.
* doc/posix-functions/select.texi: Update mingw problems.
* doc/posix-functions/send.texi: Update mingw problems.
* doc/posix-functions/sendto.texi: Update mingw problems.
* doc/posix-functions/setsockopt.texi: Update mingw problems.
* doc/posix-functions/socket.texi: Update mingw problems.

15 years agostrengthen self-containedness check for sys/select.h
Paolo Bonzini [Mon, 29 Sep 2008 10:02:35 +0000 (12:02 +0200)]
strengthen self-containedness check for sys/select.h

2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
            Bruno Haible  <bruno@clisp.org>

* lib/sys_select.in.h: Include sys/time.h.
* m4/sys_select.h.m4: Test that struct timeval is fully defined.
* modules/sys_select: Depend on sys_time.
* tests/test-sys_select.c: Test that sys/select.h defines struct
timeval fully.

15 years agoSet LIBSOCKET instead of augmenting LIBS. Also handle Solaris -lsocket.
Bruno Haible [Mon, 29 Sep 2008 10:08:01 +0000 (12:08 +0200)]
Set LIBSOCKET instead of augmenting LIBS. Also handle Solaris -lsocket.

15 years agoMake the headers usable in C++.
Bruno Haible [Mon, 29 Sep 2008 09:37:15 +0000 (11:37 +0200)]
Make the headers usable in C++.

15 years agoRemove unused variables.
Bruno Haible [Mon, 29 Sep 2008 09:36:12 +0000 (11:36 +0200)]
Remove unused variables.

15 years agoSet LIBSOCKET instead of augmenting LIBS. Also handle Solaris -lsocket.
Bruno Haible [Mon, 29 Sep 2008 09:34:31 +0000 (11:34 +0200)]
Set LIBSOCKET instead of augmenting LIBS. Also handle Solaris -lsocket.

15 years agoAvoid assigning ARPA_INET_H in different .m4 files.
Bruno Haible [Mon, 29 Sep 2008 09:16:25 +0000 (11:16 +0200)]
Avoid assigning ARPA_INET_H in different .m4 files.

15 years agoEnsure correct syntax when sys/select.h is replaced but sys/socket.h is not.
Bruno Haible [Sun, 28 Sep 2008 15:41:17 +0000 (17:41 +0200)]
Ensure correct syntax when sys/select.h is replaced but sys/socket.h is not.

15 years agoOSF/1 4.0 has a <sys/select.h> that lacks 'struct timeval'.
Bruno Haible [Sun, 28 Sep 2008 15:02:37 +0000 (17:02 +0200)]
OSF/1 4.0 has a <sys/select.h> that lacks 'struct timeval'.

15 years agoOverride open more carefully.
Bruno Haible [Sun, 28 Sep 2008 14:19:57 +0000 (16:19 +0200)]
Override open more carefully.

15 years agoOverride freopen more carefully.
Bruno Haible [Sun, 28 Sep 2008 14:17:51 +0000 (16:17 +0200)]
Override freopen more carefully.

15 years agoOverride fopen more carefully.
Bruno Haible [Sun, 28 Sep 2008 14:12:20 +0000 (16:12 +0200)]
Override fopen more carefully.

15 years agoAdd comment about SIGPIPE.
Bruno Haible [Sun, 28 Sep 2008 14:07:52 +0000 (16:07 +0200)]
Add comment about SIGPIPE.

15 years agoAvoid test failure on glibc with LinuxThreads.
Bruno Haible [Sun, 28 Sep 2008 14:04:07 +0000 (16:04 +0200)]
Avoid test failure on glibc with LinuxThreads.

15 years agoTweak patch that overrides open() and fopen().
Bruno Haible [Sun, 28 Sep 2008 12:59:52 +0000 (14:59 +0200)]
Tweak patch that overrides open() and fopen().

15 years agoTests for module 'posix_spawnp'.
Bruno Haible [Sun, 28 Sep 2008 12:14:31 +0000 (14:14 +0200)]
Tests for module 'posix_spawnp'.

15 years agoNew module 'posix_spawnp'.
Bruno Haible [Sun, 28 Sep 2008 12:13:29 +0000 (14:13 +0200)]
New module 'posix_spawnp'.

15 years agoNew module 'posix_spawn'.
Bruno Haible [Sun, 28 Sep 2008 12:12:27 +0000 (14:12 +0200)]
New module 'posix_spawn'.

15 years agoNew module 'posix_spawnattr_destroy'.
Bruno Haible [Sun, 28 Sep 2008 12:10:42 +0000 (14:10 +0200)]
New module 'posix_spawnattr_destroy'.

15 years agoNew module 'posix_spawnattr_setsigmask'.
Bruno Haible [Sun, 28 Sep 2008 12:08:51 +0000 (14:08 +0200)]
New module 'posix_spawnattr_setsigmask'.

15 years agoNew module 'posix_spawnattr_getsigmask'.
Bruno Haible [Sun, 28 Sep 2008 12:08:04 +0000 (14:08 +0200)]
New module 'posix_spawnattr_getsigmask'.

15 years agoNew module 'posix_spawnattr_setsigdefault'.
Bruno Haible [Sun, 28 Sep 2008 12:06:01 +0000 (14:06 +0200)]
New module 'posix_spawnattr_setsigdefault'.

15 years agoNew module 'posix_spawnattr_getsigdefault'.
Bruno Haible [Sun, 28 Sep 2008 12:05:12 +0000 (14:05 +0200)]
New module 'posix_spawnattr_getsigdefault'.

15 years agoNew module 'posix_spawnattr_setschedpolicy'.
Bruno Haible [Sun, 28 Sep 2008 12:03:11 +0000 (14:03 +0200)]
New module 'posix_spawnattr_setschedpolicy'.

15 years agoNew module 'posix_spawnattr_getschedpolicy'.
Bruno Haible [Sun, 28 Sep 2008 12:02:21 +0000 (14:02 +0200)]
New module 'posix_spawnattr_getschedpolicy'.

15 years agoNew module 'posix_spawnattr_setschedparam'.
Bruno Haible [Sun, 28 Sep 2008 12:00:30 +0000 (14:00 +0200)]
New module 'posix_spawnattr_setschedparam'.

15 years agoNew module 'posix_spawnattr_getschedparam'.
Bruno Haible [Sun, 28 Sep 2008 11:59:47 +0000 (13:59 +0200)]
New module 'posix_spawnattr_getschedparam'.

15 years agoNew module 'posix_spawnattr_setpgroup'.
Bruno Haible [Sun, 28 Sep 2008 11:57:30 +0000 (13:57 +0200)]
New module 'posix_spawnattr_setpgroup'.

15 years agoNew module 'posix_spawnattr_getpgroup'.
Bruno Haible [Sun, 28 Sep 2008 11:56:42 +0000 (13:56 +0200)]
New module 'posix_spawnattr_getpgroup'.

15 years agoNew module 'posix_spawnattr_setflags'.
Bruno Haible [Sun, 28 Sep 2008 11:54:55 +0000 (13:54 +0200)]
New module 'posix_spawnattr_setflags'.

15 years agoNew module 'posix_spawnattr_getflags'.
Bruno Haible [Sun, 28 Sep 2008 11:54:09 +0000 (13:54 +0200)]
New module 'posix_spawnattr_getflags'.

15 years agoNew module 'posix_spawnattr_init'.
Bruno Haible [Sun, 28 Sep 2008 11:52:28 +0000 (13:52 +0200)]
New module 'posix_spawnattr_init'.

15 years agoNew module 'posix_spawn_file_actions_destroy'.
Bruno Haible [Sun, 28 Sep 2008 11:49:24 +0000 (13:49 +0200)]
New module 'posix_spawn_file_actions_destroy'.

15 years agoNew module 'posix_spawn_file_actions_addopen'.
Bruno Haible [Sun, 28 Sep 2008 11:47:46 +0000 (13:47 +0200)]
New module 'posix_spawn_file_actions_addopen'.

15 years agoNew module 'posix_spawn_file_actions_adddup2'.
Bruno Haible [Sun, 28 Sep 2008 11:46:16 +0000 (13:46 +0200)]
New module 'posix_spawn_file_actions_adddup2'.

15 years agoNew module 'posix_spawn_file_actions_addclose'.
Bruno Haible [Sun, 28 Sep 2008 11:44:29 +0000 (13:44 +0200)]
New module 'posix_spawn_file_actions_addclose'.

15 years agoNew module 'posix_spawn_file_actions_init'.
Bruno Haible [Sun, 28 Sep 2008 11:42:34 +0000 (13:42 +0200)]
New module 'posix_spawn_file_actions_init'.

15 years agoNew module 'posix_spawn-internal'.
Bruno Haible [Sun, 28 Sep 2008 11:30:49 +0000 (13:30 +0200)]
New module 'posix_spawn-internal'.

15 years agoNew module 'spawn'.
Bruno Haible [Sun, 28 Sep 2008 11:26:56 +0000 (13:26 +0200)]
New module 'spawn'.

15 years agoTests for module 'sched'.
Bruno Haible [Sun, 28 Sep 2008 11:24:13 +0000 (13:24 +0200)]
Tests for module 'sched'.

15 years agoNew module 'sched'.
Bruno Haible [Sun, 28 Sep 2008 11:22:59 +0000 (13:22 +0200)]
New module 'sched'.

15 years agoFix previous patch, and tweak references to $0.
Eric Blake [Fri, 26 Sep 2008 20:47:41 +0000 (14:47 -0600)]
Fix previous patch, and tweak references to $0.

* posix-modules: Call func_gnulib_dir before using $gnulib_dir.
(func_version, func_gnulib_dir): Don't call this program
gnulib-tool.
(func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
with using $0 in function.
* gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
(func_fatal_error): Reuse the name the user invoked us with.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoAvoid assigning ICONV_H in two different files. Fixes a bug.
Bruno Haible [Sat, 27 Sep 2008 17:14:53 +0000 (19:14 +0200)]
Avoid assigning ICONV_H in two different files. Fixes a bug.

15 years agoAvoid assigning WCHAR_H in different .m4 files.
Bruno Haible [Sat, 27 Sep 2008 17:13:21 +0000 (19:13 +0200)]
Avoid assigning WCHAR_H in different .m4 files.

15 years agoProvide the definition of GL_LINK-WARNING.
Bruno Haible [Sat, 27 Sep 2008 15:55:04 +0000 (17:55 +0200)]
Provide the definition of GL_LINK-WARNING.

15 years agoEPIPE requires errno module.
Bruno Haible [Sat, 27 Sep 2008 14:52:41 +0000 (16:52 +0200)]
EPIPE requires errno module.

15 years agoCopy --version support from gnulib-tool to posix-modules.
Bruno Haible [Fri, 26 Sep 2008 18:35:36 +0000 (20:35 +0200)]
Copy --version support from gnulib-tool to posix-modules.

15 years agoMake "gnulib-tool --version" work from any directory.
Bruno Haible [Fri, 26 Sep 2008 18:31:48 +0000 (20:31 +0200)]
Make "gnulib-tool --version" work from any directory.

15 years agoMake this script work again (broken since 2008-01-19).
Bruno Haible [Fri, 26 Sep 2008 18:13:32 +0000 (20:13 +0200)]
Make this script work again (broken since 2008-01-19).

15 years agoModule EOVERFLOW is removed.
Bruno Haible [Fri, 26 Sep 2008 18:09:32 +0000 (20:09 +0200)]
Module EOVERFLOW is removed.

15 years agoIgnore error EPIPE when closing a stream.
Bruno Haible [Fri, 26 Sep 2008 14:10:07 +0000 (16:10 +0200)]
Ignore error EPIPE when closing a stream.

15 years agoExplain reason for skipping tests.
Bruno Haible [Fri, 26 Sep 2008 13:44:43 +0000 (15:44 +0200)]
Explain reason for skipping tests.

15 years agoCast the _get_osfhandle result, to avoid a warning.
Bruno Haible [Fri, 26 Sep 2008 13:12:55 +0000 (15:12 +0200)]
Cast the _get_osfhandle result, to avoid a warning.

15 years agoReorder items.
Bruno Haible [Fri, 26 Sep 2008 12:44:52 +0000 (14:44 +0200)]
Reorder items.

15 years agoDepend on module 'sigpipe'.
Bruno Haible [Fri, 26 Sep 2008 11:39:05 +0000 (13:39 +0200)]
Depend on module 'sigpipe'.

15 years agoSupport SIGPIPE in stdio functions for writing.
Bruno Haible [Fri, 26 Sep 2008 11:37:33 +0000 (13:37 +0200)]
Support SIGPIPE in stdio functions for writing.

15 years agoDepend on module 'write', in case module 'sigpipe' is used also.
Bruno Haible [Fri, 26 Sep 2008 11:33:00 +0000 (13:33 +0200)]
Depend on module 'write', in case module 'sigpipe' is used also.

15 years agoTests for module 'sigpipe'.
Bruno Haible [Fri, 26 Sep 2008 11:31:55 +0000 (13:31 +0200)]
Tests for module 'sigpipe'.

15 years agoNew module 'write'.
Bruno Haible [Fri, 26 Sep 2008 11:29:53 +0000 (13:29 +0200)]
New module 'write'.

15 years agoSupport signal handling with SIGPIPE on native Windows platforms.
Bruno Haible [Fri, 26 Sep 2008 11:25:57 +0000 (13:25 +0200)]
Support signal handling with SIGPIPE on native Windows platforms.

15 years agofts: tweak inode comparison function
Jim Meyering [Fri, 26 Sep 2008 11:43:00 +0000 (13:43 +0200)]
fts: tweak inode comparison function

* lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
inode numbers, as documented.

SCALAR(0xeb1b20)

15 years agofts: sort dirent entries on inode number before traversing
Jim Meyering [Tue, 16 Sep 2008 08:05:47 +0000 (10:05 +0200)]
fts: sort dirent entries on inode number before traversing

This avoids a quadratic, seek-related performance penalty when
operating on a directory containing many entries (measurable at 10k;
3.5 hours at 2 million entries with a cold cache) on certain types
of file systems, including ext3 and ext4, but not tmpfs.
* lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
(FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
(S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
(fs_handles_readdir_ordered_dirents_efficiently): New function.
(dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
(fts_build): Set the stat.st_ino member from D_INO.
If it is likely to be useful, sort dirent entries on inode number.
* m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
and the struct statfs.f_type member.
* modules/fts (Depends-on): Add d-ino.

15 years agoNew module 'sigpipe'.
Bruno Haible [Fri, 26 Sep 2008 11:23:08 +0000 (13:23 +0200)]
New module 'sigpipe'.

15 years agoReport all license incompatibilities during --import.
Bruno Haible [Thu, 25 Sep 2008 18:33:12 +0000 (20:33 +0200)]
Report all license incompatibilities during --import.

15 years agoOops, tweak last commit so that it also works in the first gnulib-tool run.
Bruno Haible [Thu, 25 Sep 2008 14:02:58 +0000 (16:02 +0200)]
Oops, tweak last commit so that it also works in the first gnulib-tool run.

15 years agomodules/sys_select-tests (Depends-on): Remove sys_select.
Simon Josefsson [Thu, 25 Sep 2008 12:36:14 +0000 (14:36 +0200)]
modules/sys_select-tests (Depends-on): Remove sys_select.

15 years agoDon't ask the user to perform edits in the generated Makefile.ams.
Bruno Haible [Thu, 25 Sep 2008 12:32:17 +0000 (14:32 +0200)]
Don't ask the user to perform edits in the generated Makefile.ams.

15 years agoStore the --tests-base option in the comment in gnulib-cache.m4.
Yoann Vandoorselaere [Thu, 25 Sep 2008 10:56:07 +0000 (12:56 +0200)]
Store the --tests-base option in the comment in gnulib-cache.m4.

15 years agoimplement full-blown select(2) for winsock
Paolo Bonzini [Tue, 23 Sep 2008 13:11:23 +0000 (15:11 +0200)]
implement full-blown select(2) for winsock

2008-09-24  Paolo Bonzini  <bonzini@gnu.org>

* NEWS: Document increased portability that sys_select now provides.

* lib/sys_select.in.h: Install select wrapper.
* lib/sys_socket.in.h: Use more descriptive name when there is no
select wrapper.
* lib/winsock-select.c: New.
* m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
Require gl_HEADER_SYS_SOCKET.
* modules/sys_select: Depend on alloca, add lib/winsock-select.c.
* modules/sys_select-tests: Copy dependencies from modules/poll-tests.
* tests/test-sys_select.c: Add functional tests.

15 years agoopen, fopen: close fd leak in last patch
Eric Blake [Wed, 24 Sep 2008 16:55:19 +0000 (10:55 -0600)]
open, fopen: close fd leak in last patch

* lib/open.c (rpl_open): Close fd before returning error.
* lib/fopen.c (rpl_fopen): Close fd before returning error.
* doc/posix-functions/open.texi (open): Document that Irix also
has the bug.
* doc/posix-functions/fopen.texi (fopen): Likewise.
Reported by Paolo Bonzini.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoEnsure that a filename ending in a slash cannot be used to access a non-directory.
Bruno Haible [Wed, 24 Sep 2008 11:50:02 +0000 (13:50 +0200)]
Ensure that a filename ending in a slash cannot be used to access a non-directory.

15 years agoc-stack: avoid compiler optimizations when provoking overflow
Eric Blake [Tue, 23 Sep 2008 14:56:10 +0000 (08:56 -0600)]
c-stack: avoid compiler optimizations when provoking overflow

* m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
recursion harder to optimize, to ensure a stack overflow occurs.
* tests/test-c-stack.c (recurse): Likewise.
Borrowed from libsigsegv.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoc-stack: work around Irix sigaltstack bug
Eric Blake [Tue, 23 Sep 2008 14:47:26 +0000 (08:47 -0600)]
c-stack: work around Irix sigaltstack bug

* m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
whether sigaltstack uses wrong end of stack_t (copied in part from
libsigsegv).
* lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
Irix bug, without requiring an over-allocation.
* doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
bug.

Signed-off-by: Eric Blake <ebb9@byu.net>
15 years agoupdate NEWS for previous change
Paolo Bonzini [Tue, 23 Sep 2008 13:26:12 +0000 (15:26 +0200)]
update NEWS for previous change