diff options
Diffstat (limited to 'ace/OS_NS_signal.inl')
-rw-r--r-- | ace/OS_NS_signal.inl | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/ace/OS_NS_signal.inl b/ace/OS_NS_signal.inl index a2159ad2604..a56956e4aa0 100644 --- a/ace/OS_NS_signal.inl +++ b/ace/OS_NS_signal.inl @@ -1,28 +1,32 @@ // -*- C++ -*- +// // $Id$ #include "ace/OS_NS_macros.h" #include "ace/OS_NS_errno.h" -namespace ACE_OS { +ACE_BEGIN_VERSIONED_NAMESPACE_DECL + +namespace ACE_OS +{ ACE_INLINE int kill (pid_t pid, int signum) { ACE_OS_TRACE ("ACE_OS::kill"); -#if defined (ACE_WIN32) || defined (CHORUS) || defined (ACE_PSOS) +#if defined (ACE_LACKS_KILL) ACE_UNUSED_ARG (pid); ACE_UNUSED_ARG (signum); ACE_NOTSUP_RETURN (-1); #else ACE_OSCALL_RETURN (::kill (pid, signum), int, -1); -#endif /* ACE_WIN32 || CHORUS || ACE_PSOS */ +#endif /* ACE_LACKS_KILL */ } ACE_INLINE int pthread_sigmask (int how, const sigset_t *nsp, sigset_t *osp) { -#if defined (ACE_HAS_PTHREADS_STD) && !defined (ACE_LACKS_PTHREAD_SIGMASK) +#if defined (ACE_HAS_PTHREADS_STD) && !defined (ACE_LACKS_PTHREAD_SIGMASK) int result; ACE_OSCALL_RETURN (ACE_ADAPT_RETVAL (::pthread_sigmask (how, nsp, osp), result), @@ -37,7 +41,7 @@ pthread_sigmask (int how, const sigset_t *nsp, sigset_t *osp) } ACE_INLINE int -sigaction (int signum, const struct sigaction *nsa, struct sigaction *osa) +sigaction (int signum, const ACE_SIGACTION *nsa, ACE_SIGACTION *osa) { ACE_OS_TRACE ("ACE_OS::sigaction"); if (signum == 0) @@ -56,8 +60,7 @@ sigaction (int signum, const struct sigaction *nsa, struct sigaction *osa) else osa->sa_handler = ::signal (signum, nsa->sa_handler); return osa->sa_handler == SIG_ERR ? -1 : 0; -#elif defined (CHORUS) || defined (ACE_HAS_WINCE) || defined(ACE_PSOS) - ACE_UNUSED_ARG (signum); +#elif defined (ACE_LACKS_SIGACTION) ACE_UNUSED_ARG (nsa); ACE_UNUSED_ARG (osa); ACE_NOTSUP_RETURN (-1); @@ -271,3 +274,5 @@ sigsuspend (const sigset_t *sigset) } } /* end namespace ACE_OS */ + +ACE_END_VERSIONED_NAMESPACE_DECL |