aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/include/stdlib.h
diff options
context:
space:
mode:
authorMichael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>2016-12-07 11:58:29 +0100
committerCorinna Vinschen <corinna@vinschen.de>2019-02-03 11:16:32 +0100
commitaa88ce13843409443bc9ae0b58b43f72a06ed86f (patch)
tree60614bc11c7bbb320d97fd17793311ba18e20029 /newlib/libc/include/stdlib.h
parent9c28d59f54ebb7b0482b56dc5e50f3affbc432a9 (diff)
downloadnewlib-aa88ce13843409443bc9ae0b58b43f72a06ed86f.zip
newlib-aa88ce13843409443bc9ae0b58b43f72a06ed86f.tar.gz
newlib-aa88ce13843409443bc9ae0b58b43f72a06ed86f.tar.bz2
forkables: Keep hardlinks disabled via shared mem.
To avoid the need for each process to check the filesystem to detect that hardlink creation is impossible or disabled, cache this fact in shared memory. Removing cygfork directory while in use does disable hardlinks creation. To (re-)enable hardlinks creation, the cygfork directory has to exist before the first cygwin process does fork. * forkable.cc (dll_list::forkable_ntnamesize): Short cut forkables needs to impossible when disabled via shared memory. (dll_list::update_forkables_needs): When detecting hardlink creation as impossible (not on NTFS) while still (we are the first one checking) enabled via shared memory, disable the shared memory value. (dll_list::request_forkables): Disable the shared memory value when hardlinks creation became disabled, that is when the cygfork directory was removed. * include/cygwin/version.h: Bump CYGWIN_VERSION_SHARED_DATA 6. * shared_info.h (struct shared_info): Add member prefer_forkable_hardlinks. Update CURR_SHARED_MAGIC. * shared.cc (shared_info::initialize): Initialize prefer_forkable_hardlinks to 1 (Yes).
Diffstat (limited to 'newlib/libc/include/stdlib.h')
0 files changed, 0 insertions, 0 deletions