Debian Codegraph @

ext/GOTCHA/src/gotcha_auxv.h

raw symbols SCIP
1 /*
2 This file is part of GOTCHA. For copyright information see the COPYRIGHT
3 file in the top level directory, or at
4 https://github.com/LLNL/gotcha/blob/master/COPYRIGHT
5 This program is free software; you can redistribute it and/or modify it under
6 the terms of the GNU Lesser General Public License (as published by the Free
7 Software Foundation) version 2.1 dated February 1999. This program is
8 distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
9 without even the IMPLIED WARRANTY OF MERCHANTABILITY or FITNESS FOR A PARTICULAR
10 PURPOSE. See the terms and conditions of the GNU Lesser General Public License
11 for more details. You should have received a copy of the GNU Lesser General
12 Public License along with this program; if not, write to the Free Software
13 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
14 */
15
16 #ifndef GOTCHA_AUXV_H
17 #define GOTCHA_AUXV_H
18
19 #include <elf.h>
20 #include <errno.h>
21 #include <fcntl.h>
22 #include <link.h>
23 #include <stdio.h>
24 #include <stdlib.h>
25 #include <string.h>
26 #include <sys/stat.h>
27 #include <sys/types.h>
28 #include <unistd.h>
29
30 int is_vdso(const struct link_map *map);
31 unsigned int get_auxv_pagesize();
32
33 // Do not use, exposed only for unit testing
34 int parse_auxv_contents();
35 struct link_map *get_vdso_from_auxv();
36 struct link_map *get_vdso_from_aliases();
37 struct link_map *get_vdso_from_maps();
38
39 #endif