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:
authorChristopher Faylor <me@cgf.cx>2000-07-06 03:46:44 +0400
committerChristopher Faylor <me@cgf.cx>2000-07-06 03:46:44 +0400
commit737a86d32fdaed1b8e29486d793a85896a5e0b95 (patch)
treea205999bafd7339f538b4bfa6d66da7a50675c60 /winsup/cygwin/signal.cc
parent4e734b208bd377dde6cfc95a342dbf8940a8919c (diff)
* dcrt0.cc (__cygwin_user_data): Initialize.
(dll_crt0_1): Eliminate user_data initialization. (dll_crt0): Set up impure_ptr_ptr for older executables. (cygwin_dll_init): Eliminate user_data initializations. (__api_fatal): Don't check for user_data initialization. * dll_init.cc (struct dll): Store entire contents of per_process rather than just a pointer. (add): Ditto. (initOneDll): Don't check for user_data initialization. (DllList::recordDll): Store contents of per_process argument. (DllList::detachDll): Pass address of per_process field. (DllList::initAll): Ditto. (DllList::doGlobalDestructorsOfDlls): Ditto. (DllListIterator::operator *): Ditto. (dll_dllcrt0): Default to __cygwin_user_data if arg is NULL. * include/sys/cygwin.h: Reorganize per_process to eliminate obsolete fields and accomodate new way of initializing. * lib/_cygwin_crt0_common: Initialize _impure_ptr from __cygwin_user_data.impure_ptr.
Diffstat (limited to 'winsup/cygwin/signal.cc')
-rw-r--r--winsup/cygwin/signal.cc20
1 files changed, 0 insertions, 20 deletions
diff --git a/winsup/cygwin/signal.cc b/winsup/cygwin/signal.cc
index 5682b868b..8ca6b7b8f 100644
--- a/winsup/cygwin/signal.cc
+++ b/winsup/cygwin/signal.cc
@@ -76,11 +76,6 @@ sigprocmask (int sig, const sigset_t *set, sigset_t *oldset)
return -1;
}
- /* gcc can call sigprocmask when a builtin contructor is activated.
- This can happen prior to the setup of myself */
- if (!user_data)
- return 0;
-
if (oldset)
*oldset = myself->getsigmask ();
if (set)
@@ -109,21 +104,6 @@ sigprocmask (int sig, const sigset_t *set, sigset_t *oldset)
return 0;
}
-#if 0
-/* This is called _raise because the real raise is in newlib. */
-int
-_raise (int sig)
-{
- if (!user_data)
- {
- set_errno (ESRCH);
- return -1;
- }
-
- return _kill (myself->pid, sig);
-}
-#endif
-
static int
kill_worker (pid_t pid, int sig)
{