mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-22 00:38:06 +08:00
Add posix_spawn_file_actions_add{f}chdir
POSIX®.1-2024 now defines posix_spawn_file_actions_addchdir and posix_spawn_file_actions_addfchdir. Add these interfaces to spawn.h, guarded as POSIX 202405 symbols. Cygwin-only: Export them as aliases of the *_np counterparts. Bump API minor. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
1e6a3b39f1
commit
23f4aac7e7
@ -70,9 +70,14 @@ int posix_spawn_file_actions_addopen (posix_spawn_file_actions_t * __restrict,
|
||||
int, const char * __restrict, int, mode_t);
|
||||
int posix_spawn_file_actions_adddup2 (posix_spawn_file_actions_t *, int, int);
|
||||
int posix_spawn_file_actions_addclose (posix_spawn_file_actions_t *, int);
|
||||
#if __POSIX_VISIBLE >= 202405
|
||||
int posix_spawn_file_actions_addchdir (posix_spawn_file_actions_t *__restrict,
|
||||
const char *__restrict);
|
||||
int posix_spawn_file_actions_addfchdir (posix_spawn_file_actions_t *__restrict,
|
||||
int);
|
||||
#endif
|
||||
#if __MISC_VISIBLE || __GNU_VISIBLE
|
||||
int posix_spawn_file_actions_addchdir_np (posix_spawn_file_actions_t *__restrict
|
||||
,
|
||||
int posix_spawn_file_actions_addchdir_np (posix_spawn_file_actions_t *__restrict,
|
||||
const char *__restrict);
|
||||
int posix_spawn_file_actions_addfchdir_np (posix_spawn_file_actions_t *__restrict,
|
||||
int);
|
||||
|
@ -1051,9 +1051,11 @@ posix_madvise SIGFE
|
||||
posix_memalign SIGFE
|
||||
posix_openpt SIGFE
|
||||
posix_spawn SIGFE
|
||||
posix_spawn_file_actions_addchdir = posix_spawn_file_actions_addchdir_np SIGFE
|
||||
posix_spawn_file_actions_addchdir_np SIGFE
|
||||
posix_spawn_file_actions_addclose SIGFE
|
||||
posix_spawn_file_actions_adddup2 SIGFE
|
||||
posix_spawn_file_actions_addfchdir = posix_spawn_file_actions_addfchdir_np SIGFE
|
||||
posix_spawn_file_actions_addfchdir_np SIGFE
|
||||
posix_spawn_file_actions_addopen SIGFE
|
||||
posix_spawn_file_actions_destroy SIGFE
|
||||
|
@ -490,12 +490,14 @@ details. */
|
||||
353: Implement fdclosedir.
|
||||
354: Implement posix_getdents.
|
||||
355: Implement setproctitle.
|
||||
356: Export posix_spawn_file_actions_addchdir and
|
||||
posix_spawn_file_actions_addfchdir.
|
||||
|
||||
Note that we forgot to bump the api for ualarm, strtoll, strtoull,
|
||||
sigaltstack, sethostname. */
|
||||
|
||||
#define CYGWIN_VERSION_API_MAJOR 0
|
||||
#define CYGWIN_VERSION_API_MINOR 355
|
||||
#define CYGWIN_VERSION_API_MINOR 356
|
||||
|
||||
/* There is also a compatibity version number associated with the shared memory
|
||||
regions. It is incremented when incompatible changes are made to the shared
|
||||
|
@ -9,6 +9,11 @@ What's new:
|
||||
|
||||
- New API call: timespec_get.
|
||||
|
||||
- New POSIX-defined entry points posix_spawn_file_actions_addchdir and
|
||||
posix_spawn_file_actions_addfchdir. These are the same as the already
|
||||
exported posix_spawn_file_actions_addchdir_np and
|
||||
posix_spawn_file_actions_addfchdir_np.
|
||||
|
||||
- Add FS_IOC_[GS]ETFLAGS FS_PINNED_FL and FS_UNPINNED_FL flags to handle
|
||||
Windows attributes FILE_ATTRIBUTE_PINNED and FILE_ATTRIBUTE_UNPINNED.
|
||||
Add matching 'p' and 'u' mode bits in chattr(1) and lsattr(1).
|
||||
|
Loading…
x
Reference in New Issue
Block a user