Perform whitespace cleanup throughout.
* dcrt0.cc (signal_shift_subtract): Eliminate ancient backwards compatibility. (check_sanity_and_sync): Ditto. * winsup.h (SIGTOMASK): Ditto. Just use constant in signal calculation. * include/cygwin/version: Remove backwards signal mask compatibility define. * path.cc (symlink_info::check_sysfile): Cosmetic change. * registry.cc (get_registry_hive_path): Remove unneeded variable. * exceptions.cc (handle_sigsuspend): Eliminate thread signal mask and use either main sigmask or current thread sigmask. (set_process_mask): Ditto. (sighold): Ditto. (sigrelse): Ditto. (sigset): Ditto. (set_process_mask_delta): Ditto. (_cygtls::call_signal_handler): Ditto. * fhandler_process.cc (format_process_status): Ditto. * fhandler_termios.cc (fhandler_termios::bg_check): Ditto. * pinfo.h (class pinfo): Ditto. * select.cc (pselect): Ditto. * signal.cc (sigprocmask): Ditto. (abort): Ditto. (sigpause): Ditto. (sigsend): Ditto. (wait_sig): Ditto. * thread.h (pthread::parent_tls): New member. * thread.cc (pthread::pthread): Record parent_tls here. (pthread::thread_init_wrapper): Initialize sigmask from parent thread.
This commit is contained in:
@@ -25,11 +25,11 @@ extern "C" {
|
||||
which will be used throughout the library whereever there is a _r
|
||||
version of a function that takes _REENT. This saves the overhead
|
||||
of a function call for what amounts to a simple computation.
|
||||
|
||||
|
||||
The definition below is essentially equivalent to the one in cygtls.h
|
||||
(&_my_tls.local_clib) however it uses a fixed precomputed
|
||||
offset rather than dereferencing a field of a structure.
|
||||
|
||||
|
||||
Including tlsoffets.h here in order to get this constant offset
|
||||
tls_local_clib is a bit of a hack, but the alternative would require
|
||||
dragging the entire definition of struct _cygtls (a large and complex
|
||||
|
Reference in New Issue
Block a user