-
Notifications
You must be signed in to change notification settings - Fork 7
/
bismon.h
114 lines (99 loc) · 2.9 KB
/
bismon.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
// file bismon.h
#ifndef BISMON_INCLUDED
#define BISMON_INCLUDED
// SPDX-License-Identifier: GPL-3.0-or-later
/**
BISMON
Copyright © 2018 - 2022 CEA (Commissariat à l'énergie atomique et aux énergies alternatives)
contributed by Basile Starynkevitch.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
----
Contact me (Basile Starynkevitch) by email
basile@starynkevitch.net and/or basile.starynkevitch@cea.fr
**/
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <stddef.h>
#include <stdint.h>
#if __cplusplus
#include <memory>
#include <atomic>
using std::atomic_bool;
using std::atomic_int;
using std::atomic_load;
using std::atomic_store;
#else
// notice that <stdatomic.h> is not C++11 compatible
#include <stdatomic.h>
/// Glibc dont have yet threads.h
#define thread_local _Thread_local
#endif
/// usual GNU/Linux header files
/// see also man7.org/linux/man-pages/man2/syscalls.2.html
/// and man7.org/linux/man-pages/man3/intro.3.html
#include <stdlib.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <assert.h>
#include <time.h>
#include <utime.h>
#include <setjmp.h>
#include <math.h>
#include <dlfcn.h>
#include <dirent.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/wait.h>
#include <fcntl.h>
#include <poll.h>
#include <termios.h>
#include <sys/ioctl.h>
#include <sys/file.h>
#include <sys/signalfd.h>
#include <sys/timerfd.h>
#include <elf.h>
#include <errno.h>
#include <netdb.h>
#include <locale.h>
#include <crypt.h>
#include <string.h>
#include <sys/syscall.h>
#include <unistd.h>
#include <pthread.h>
#include <execinfo.h>
#include <backtrace.h>
#include <regex.h>
/// the Jansson JSON library from digip.org/jansson/ - see also
/// www.json.org/json-en.html for more about JSON
#include <jansson.h>
/// the Glib low-level utility library from developer.gnome.org/glib/
#include <glib.h>
/// We need the GNU readline 8 library from www.gnu.org/software/readline/
#include <readline/readline.h>
#include "cmacros_BM.h"
#include "id_BM.h"
#include "types_BM.h"
#include "globals_BM.h"
#include "fundecl_BM.h"
#include "inline_BM.h"
/****************
** for Emacs...
** Local Variables: ;;
** compile-command: "./Build" ;;
** End: ;;
****************/
#endif /*BISMON_INCLUDED */