Mercurial > hg > octave-kai > gnulib-hg
comparison lib/spawn.in.h @ 16257:a5001764146b
posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
* m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
* m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
macro.
* lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
* lib/spawn_faction_addopen.c: Add workaround implementation if
HAVE_WORKING_POSIX_SPAWN.
* modules/spawn (Makefile): Substitute
REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
* modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
(Depends-on): Update conditions.
* doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
the Solaris 11 bug.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 08 Jan 2012 22:31:53 +0100 |
parents | e32fc9c363fe |
children | e542fd46ad6f |
comparison
equal
deleted
inserted
replaced
16256:e32fc9c363fe | 16257:a5001764146b |
---|---|
772 #endif | 772 #endif |
773 | 773 |
774 #if @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN@ | 774 #if @GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN@ |
775 /* Add an action to FILE-ACTIONS which tells the implementation to call | 775 /* Add an action to FILE-ACTIONS which tells the implementation to call |
776 'open' for the given file during the 'spawn' call. */ | 776 'open' for the given file during the 'spawn' call. */ |
777 # if @REPLACE_POSIX_SPAWN@ | 777 # if @REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN@ |
778 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | 778 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) |
779 # define posix_spawn_file_actions_addopen rpl_posix_spawn_file_actions_addopen | 779 # define posix_spawn_file_actions_addopen rpl_posix_spawn_file_actions_addopen |
780 # endif | 780 # endif |
781 _GL_FUNCDECL_RPL (posix_spawn_file_actions_addopen, int, | 781 _GL_FUNCDECL_RPL (posix_spawn_file_actions_addopen, int, |
782 (posix_spawn_file_actions_t *_Restrict_ __file_actions, | 782 (posix_spawn_file_actions_t *_Restrict_ __file_actions, |