From: Julian Seward Date: Wed, 29 Mar 2006 03:15:25 +0000 (+0000) Subject: Delete VG_(sigaltstack) and VG_(sigpending) as they are unused. X-Git-Tag: svn/VALGRIND_3_2_0~160 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bddfd8d600652c8786e0a674d9ca7a3e6c43cc9d;p=thirdparty%2Fvalgrind.git Delete VG_(sigaltstack) and VG_(sigpending) as they are unused. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5799 --- diff --git a/coregrind/m_libcsignal.c b/coregrind/m_libcsignal.c index 4810da308c..4e81234106 100644 --- a/coregrind/m_libcsignal.c +++ b/coregrind/m_libcsignal.c @@ -163,12 +163,6 @@ Int VG_(sigaction) ( Int signum, const struct vki_sigaction* act, } -Int VG_(sigaltstack)( const vki_stack_t* ss, vki_stack_t* oss ) -{ - SysRes res = VG_(do_syscall2)(__NR_sigaltstack, (UWord)ss, (UWord)oss); - return res.isError ? -1 : 0; -} - Int VG_(sigtimedwait)( const vki_sigset_t *set, vki_siginfo_t *info, const struct vki_timespec *timeout ) { @@ -218,20 +212,6 @@ Int VG_(tkill)( ThreadId tid, Int signo ) return res.isError ? -1 : 0; } -Int VG_(sigpending) ( vki_sigset_t* set ) -{ -// Nb: AMD64/Linux doesn't have __NR_sigpending; it only provides -// __NR_rt_sigpending. This function will have to be abstracted in some -// way to account for this. In the meantime, the easy option is to forget -// about it for AMD64 until it's needed. -#if defined(VGA_amd64) - I_die_here; -#else - SysRes res = VG_(do_syscall1)(__NR_sigpending, (UWord)set); - return res.isError ? -1 : 0; -#endif -} - /*--------------------------------------------------------------------*/ /*--- end ---*/ /*--------------------------------------------------------------------*/ diff --git a/include/pub_tool_libcsignal.h b/include/pub_tool_libcsignal.h index 8463bb3ef7..1a222d9d5e 100644 --- a/include/pub_tool_libcsignal.h +++ b/include/pub_tool_libcsignal.h @@ -63,11 +63,9 @@ extern Int VG_(sigtimedwait)( const vki_sigset_t *, vki_siginfo_t *, const struct vki_timespec * ); extern Int VG_(signal) ( Int signum, void (*sighandler)(Int) ); -extern Int VG_(sigaltstack) ( const vki_stack_t* ss, vki_stack_t* oss ); extern Int VG_(kill) ( Int pid, Int signo ); extern Int VG_(tkill) ( ThreadId tid, Int signo ); -extern Int VG_(sigpending) ( vki_sigset_t* set ); #endif // __PUB_TOOL_LIBCBSIGNAL_H