vgdb: Handle EAGAIN in read_buf
[valgrind.git] / coregrind / pub_core_vki.h
blob23ea92b7e1a6ec0d96623b211c394e87b1f972bc
2 /*--------------------------------------------------------------------*/
3 /*--- Top level for kernel interface declarations. ---*/
4 /*--- pub_core_vki.h ---*/
5 /*--------------------------------------------------------------------*/
7 /*
8 This file is part of Valgrind, a dynamic binary instrumentation
9 framework.
11 Copyright (C) 2000-2017 Julian Seward
12 jseward@acm.org
13 Copyright (C) 2005-2017 Nicholas Nethercote
14 njn@valgrind.org
15 Copyright (C) 2006-2017 OpenWorks LLP
16 info@open-works.co.uk
18 This program is free software; you can redistribute it and/or
19 modify it under the terms of the GNU General Public License as
20 published by the Free Software Foundation; either version 2 of the
21 License, or (at your option) any later version.
23 This program is distributed in the hope that it will be useful, but
24 WITHOUT ANY WARRANTY; without even the implied warranty of
25 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
26 General Public License for more details.
28 You should have received a copy of the GNU General Public License
29 along with this program; if not, see <http://www.gnu.org/licenses/>.
31 The GNU General Public License is contained in the file COPYING.
34 #ifndef __PUB_CORE_VKI_H
35 #define __PUB_CORE_VKI_H
37 /* Most unfortunately, all the kernel decls are visible to tools. Not
38 really necessary, but to avoid this would require some tedious
39 refactoring of the sources. Anyway, we live with this kludge, and
40 that means the only thing to be done here is ... */
42 #include "pub_tool_vki.h"
43 #include "pub_core_basics.h" // VG_ macro
45 /* Do initial consistency checks on some of the definitions to do with
46 signals (vki_sigset_t and vki_sigaction_{toK,fromK}_t). This stuff
47 is fragile enough that it's important to check at startup that
48 the world looks like what we expect it to look like. */
49 void VG_(vki_do_initial_consistency_checks)(void);
51 #endif // __PUB_CORE_VKI_H
53 /*--------------------------------------------------------------------*/
54 /*--- end ---*/
55 /*--------------------------------------------------------------------*/