Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2020-02-18 13:17:43 +0300
committerCorinna Vinschen <corinna@vinschen.de>2020-02-18 13:25:12 +0300
commit40245925ce9d6b9a9c4ed6140cea39d948d10898 (patch)
tree45355d822e6cebdc912930b23aee1b5c56214c40 /winsup/cygwin/sigproc.cc
parentf3793803a7dcdaa8319a30bea26dd4f9c9507559 (diff)
Cygwin: rename NSIG to _NSIG, change visibility of NSIG to MISC
NSIG is a deprecated symbol only visible under MISC visibility. _NSIG is used widely instead, and on most systems NSIG is defined in terms of _NSIG. Follow suit: Change NSIG to _NSIG throughout and change visiblity of NSIG to be defined only in __MISC_VISIBLE case. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/sigproc.cc')
-rw-r--r--winsup/cygwin/sigproc.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc
index aff1ed61b..7286e3238 100644
--- a/winsup/cygwin/sigproc.cc
+++ b/winsup/cygwin/sigproc.cc
@@ -71,7 +71,7 @@ static void WINAPI wait_sig (VOID *arg);
class pending_signals
{
- sigpacket sigs[NSIG + 1];
+ sigpacket sigs[_NSIG + 1];
sigpacket start;
bool retry;
@@ -91,7 +91,7 @@ void __stdcall
sigalloc ()
{
cygheap->sigs = global_sigs =
- (struct sigaction *) ccalloc_abort (HEAP_SIGS, NSIG, sizeof (struct sigaction));
+ (struct sigaction *) ccalloc_abort (HEAP_SIGS, _NSIG, sizeof (struct sigaction));
global_sigs[SIGSTOP].sa_flags = SA_RESTART | SA_NODEFER;
}
@@ -100,7 +100,7 @@ signal_fixup_after_exec ()
{
global_sigs = cygheap->sigs;
/* Set up child's signal handlers */
- for (int i = 0; i < NSIG; i++)
+ for (int i = 0; i < _NSIG; i++)
{
global_sigs[i].sa_mask = 0;
if (global_sigs[i].sa_handler != SIG_IGN)
@@ -449,7 +449,7 @@ sigproc_init ()
char char_sa_buf[1024];
PSECURITY_ATTRIBUTES sa = sec_user_nih ((PSECURITY_ATTRIBUTES) char_sa_buf, cygheap->user.sid());
DWORD err = fhandler_pipe::create (sa, &my_readsig, &my_sendsig,
- NSIG * sizeof (sigpacket), "sigwait",
+ _NSIG * sizeof (sigpacket), "sigwait",
PIPE_ADD_PID);
if (err)
{