diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 812f77049..adc1c1b8c 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,11 @@ +2013-11-26 Corinna Vinschen + + * common.din: Export posix_spawn[...] functions. + * exec.cc (execve): Add EXPORT_ALIAS _execve. + * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump. + * posix.sgml (std-susv4): Add posix_spawn[...] here. + (std-notimpl): Drop here. + 2013-11-26 Corinna Vinschen * nlsfuncs.cc (strcoll): Add "__restrict" to definition. diff --git a/winsup/cygwin/common.din b/winsup/cygwin/common.din index c068911ae..613f9592e 100644 --- a/winsup/cygwin/common.din +++ b/winsup/cygwin/common.din @@ -775,6 +775,27 @@ posix_fallocate SIGFE posix_madvise SIGFE posix_memalign SIGFE posix_openpt SIGFE +posix_spawn SIGFE +posix_spawnattr_destroy SIGFE +posix_spawnattr_init SIGFE +posix_spawnattr_getflags NOSIGFE +posix_spawnattr_getpgroup NOSIGFE +posix_spawnattr_getschedparam NOSIGFE +posix_spawnattr_getschedpolicy NOSIGFE +posix_spawnattr_getsigdefault NOSIGFE +posix_spawnattr_getsigmask NOSIGFE +posix_spawnattr_setflags NOSIGFE +posix_spawnattr_setpgroup NOSIGFE +posix_spawnattr_setschedparam NOSIGFE +posix_spawnattr_setschedpolicy NOSIGFE +posix_spawnattr_setsigdefault NOSIGFE +posix_spawnattr_setsigmask NOSIGFE +posix_spawnp SIGFE +posix_spawn_file_actions_destroy SIGFE +posix_spawn_file_actions_init SIGFE +posix_spawn_file_actions_addclose SIGFE +posix_spawn_file_actions_adddup2 SIGFE +posix_spawn_file_actions_addopen SIGFE pow NOSIGFE pow10 NOSIGFE pow10f NOSIGFE diff --git a/winsup/cygwin/exec.cc b/winsup/cygwin/exec.cc index fb92fdcb8..b7342d7c2 100644 --- a/winsup/cygwin/exec.cc +++ b/winsup/cygwin/exec.cc @@ -93,6 +93,7 @@ execve (const char *path, char *const argv[], char *const envp[]) MALLOC_CHECK; return spawnve (_P_OVERLAY, path, argv, envp); } +EXPORT_ALIAS (execve, _execve) /* For newlib */ extern "C" int execvp (const char *file, char * const *argv) diff --git a/winsup/cygwin/include/cygwin/version.h b/winsup/cygwin/include/cygwin/version.h index 6d447a23c..47f610a06 100644 --- a/winsup/cygwin/include/cygwin/version.h +++ b/winsup/cygwin/include/cygwin/version.h @@ -441,12 +441,13 @@ details. */ 269: Allow application override of posix_memalign. 270: Redefine mtget.mt_resid field to contain current partition as well as number of partitions on tape. + 271: Export posix_spawn, posix_spawnp, and helper functions. */ /* Note that we forgot to bump the api for ualarm, strtoll, strtoull */ #define CYGWIN_VERSION_API_MAJOR 0 -#define CYGWIN_VERSION_API_MINOR 270 +#define CYGWIN_VERSION_API_MINOR 271 /* There is also a compatibity version number associated with the shared memory regions. It is incremented when incompatible diff --git a/winsup/cygwin/posix.sgml b/winsup/cygwin/posix.sgml index af9cd2b9a..52c77c5be 100644 --- a/winsup/cygwin/posix.sgml +++ b/winsup/cygwin/posix.sgml @@ -521,6 +521,27 @@ also IEEE Std 1003.1-2008 (POSIX.1-2008). posix_madvise posix_memalign posix_openpt + posix_spawn + posix_spawnattr_destroy + posix_spawnattr_init + posix_spawnattr_getflags + posix_spawnattr_getpgroup + posix_spawnattr_getschedparam + posix_spawnattr_getschedpolicy + posix_spawnattr_getsigdefault + posix_spawnattr_getsigmask + posix_spawnattr_setflags + posix_spawnattr_setpgroup + posix_spawnattr_setschedparam + posix_spawnattr_setschedpolicy + posix_spawnattr_setsigdefault + posix_spawnattr_setsigmask + posix_spawnp + posix_spawn_file_actions_destroy + posix_spawn_file_actions_init + posix_spawn_file_actions_addclose + posix_spawn_file_actions_adddup2 + posix_spawn_file_actions_addopen pow powf pread @@ -1404,7 +1425,6 @@ also IEEE Std 1003.1-2008 (POSIX.1-2008). nexttowardf nexttowardl posix_mem_offset - posix_spawn[...] posix_trace[...] posix_typed_[...] powl diff --git a/winsup/cygwin/release/1.7.26 b/winsup/cygwin/release/1.7.26 index ed4eaf424..12935d38c 100644 --- a/winsup/cygwin/release/1.7.26 +++ b/winsup/cygwin/release/1.7.26 @@ -8,6 +8,9 @@ What's new: - getnameinfo now supports glibc-specific International Domain Name (IDN) extension flags: NI_IDN, NI_IDN_ALLOW_UNASSIGNED, NI_IDN_USE_STD3_ASCII_RULES. +- Preliminary, experimental support of the posix_spawn family of functions. + New associated header /usr/include/spawn.h. + What changed: -------------