Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:13:31

0001 
0002 /*--------------------------------------------------------------------*/
0003 /*--- Signals stuff.                            pub_tool_signals.h ---*/
0004 /*--------------------------------------------------------------------*/
0005 
0006 /*
0007    This file is part of Valgrind, a dynamic binary instrumentation
0008    framework.
0009 
0010    Copyright (C) 2000-2017 Julian Seward
0011       jseward@acm.org
0012 
0013    This program is free software; you can redistribute it and/or
0014    modify it under the terms of the GNU General Public License as
0015    published by the Free Software Foundation; either version 2 of the
0016    License, or (at your option) any later version.
0017 
0018    This program is distributed in the hope that it will be useful, but
0019    WITHOUT ANY WARRANTY; without even the implied warranty of
0020    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0021    General Public License for more details.
0022 
0023    You should have received a copy of the GNU General Public License
0024    along with this program; if not, see <http://www.gnu.org/licenses/>.
0025 
0026    The GNU General Public License is contained in the file COPYING.
0027 */
0028 
0029 #ifndef __PUB_TOOL_SIGNALS_H
0030 #define __PUB_TOOL_SIGNALS_H
0031 
0032 #include "pub_tool_basics.h"   // Addr
0033 #include "pub_tool_hashtable.h" // VgHashTable
0034 
0035 // Register an interest in apparently internal faults; used code which
0036 // wanders around dangerous memory (ie, leakcheck).  The catcher is
0037 // not expected to return.
0038 // Returns the previously set fault_catcher (NULL if there was no fault
0039 // catcher set)
0040 //
0041 // It's frustrating that we need this header for a single function used
0042 // only by Memcheck during leak checking.  We should find a way to remove
0043 // the need for this file.
0044 typedef void (*fault_catcher_t)(Int sig, Addr addr);
0045 extern fault_catcher_t VG_(set_fault_catcher)(fault_catcher_t catcher);
0046 
0047 /* Hash table of PIDs from which SIGCHLD is ignored.  */
0048 extern VgHashTable *ht_sigchld_ignore;
0049 
0050 /* Hash table node where each key represents a PID.  */
0051 typedef struct _ht_ignore_node {
0052    struct _ht_ignore_node *next;
0053    UWord   key;
0054 } ht_ignore_node;
0055 
0056 #endif   // __PUB_TOOL_SIGNALS_H
0057 
0058 /*--------------------------------------------------------------------*/
0059 /*--- end                                                          ---*/
0060 /*--------------------------------------------------------------------*/