|
From: <sv...@va...> - 2006-10-05 00:41:10
|
Author: sewardj
Date: 2006-10-05 01:41:05 +0100 (Thu, 05 Oct 2006)
New Revision: 6176
Log:
m_libcsignal: move VG_(sigtimedwait_zero) out of tool view and
delete unused fn VG_(signal).
Modified:
branches/AIX5/coregrind/m_libcsignal.c
branches/AIX5/coregrind/pub_core_libcsignal.h
branches/AIX5/include/pub_tool_libcsignal.h
Modified: branches/AIX5/coregrind/m_libcsignal.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- branches/AIX5/coregrind/m_libcsignal.c 2006-10-05 00:39:55 UTC (rev 6=
175)
+++ branches/AIX5/coregrind/m_libcsignal.c 2006-10-05 00:41:05 UTC (rev 6=
176)
@@ -166,24 +166,6 @@
}
=20
=20
-Int VG_(signal)(Int signum, void (*sighandler)(Int))
-{
- SysRes res;
- Int n;
- struct vki_sigaction sa;
- sa.ksa_handler =3D sighandler;
- sa.sa_flags =3D VKI_SA_ONSTACK | VKI_SA_RESTART;
-# if !defined(VGO_aix5)
- sa.sa_restorer =3D NULL;
-# endif
- n =3D VG_(sigemptyset)( &sa.sa_mask );
- vg_assert(n =3D=3D 0);
- res =3D VG_(do_syscall4)(__NR_rt_sigaction, signum, (UWord)&sa, (UWor=
d)NULL,
- _VKI_NSIG_WORDS * sizeof(UWord));
- return res.isError ? -1 : 0;
-}
-
-
Int VG_(kill)( Int pid, Int signo )
{
SysRes res =3D VG_(do_syscall2)(__NR_kill, pid, signo);
Modified: branches/AIX5/coregrind/pub_core_libcsignal.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- branches/AIX5/coregrind/pub_core_libcsignal.h 2006-10-05 00:39:55 UTC=
(rev 6175)
+++ branches/AIX5/coregrind/pub_core_libcsignal.h 2006-10-05 00:41:05 UTC=
(rev 6176)
@@ -65,14 +65,19 @@
const struct vki_sigaction* act,
struct vki_sigaction* oldact );
=20
-extern Int VG_(sigtimedwait)( const vki_sigset_t *, vki_siginfo_t *,=20
- const struct vki_timespec * );
-
-extern Int VG_(signal) ( Int signum, void (*sighandler)(Int) );
-
extern Int VG_(kill) ( Int pid, Int signo );
extern Int VG_(tkill) ( ThreadId tid, Int signo );
=20
+/* A cut-down version of POSIX sigtimedwait: poll for pending signals
+ mentioned in the sigset_t, and if any are present, select one
+ arbitrarily, return its number (which must be > 0), and put
+ auxiliary info about it in the siginfo_t, and make it
+ not-pending-any-more. If none are pending, return zero. The _zero
+ refers to the fact that there is zero timeout, so if no signals are
+ pending it returns immediately. Perhaps a better name would be
+ 'sigpoll'. Returns -1 on error, 0 if no signals pending, and n > 0
+ if signal n was selected. */
+extern Int VG_(sigtimedwait_zero)( const vki_sigset_t *, vki_siginfo_t *=
);
=20
#endif // __PUB_CORE_LIBCSIGNAL_H
=20
Modified: branches/AIX5/include/pub_tool_libcsignal.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- branches/AIX5/include/pub_tool_libcsignal.h 2006-10-05 00:39:55 UTC (=
rev 6175)
+++ branches/AIX5/include/pub_tool_libcsignal.h 2006-10-05 00:41:05 UTC (=
rev 6176)
@@ -40,17 +40,6 @@
extern Int VG_(sigprocmask) ( Int how, const vki_sigset_t* set,
vki_sigset_t* oldset );
=20
-/* A cut-down version of POSIX sigtimedwait: poll for pending signals
- mentioned in the sigset_t, and if any are present, select one
- arbitrarily, return its number (which must be > 0), and put
- auxiliary info about it in the siginfo_t, and make it
- not-pending-any-more. If none are pending, return zero. The _zero
- refers to the fact that there is zero timeout, so if no signals are
- pending it returns immediately. Perhaps a better name would be
- 'sigpoll'. Returns -1 on error, 0 if no signals pending, and n > 0
- if signal n was selected. */
-extern Int VG_(sigtimedwait_zero)( const vki_sigset_t *, vki_siginfo_t *=
);
-
#endif // __PUB_TOOL_LIBCBSIGNAL_H
=20
/*--------------------------------------------------------------------*/
|