Rizin
unix-like reverse engineering framework and cli tools
rz_signal.h
Go to the documentation of this file.
1
#ifndef RZ_SIGNAL_H
2
#define RZ_SIGNAL_H
3
4
#include <
rz_types.h
>
5
6
#if __UNIX__
7
#include <signal.h>
8
#endif
9
10
#ifdef __cplusplus
11
extern
"C"
{
12
#endif
13
14
/* Returns atoi(str) if signal with `str` name not found. */
15
RZ_API
int
rz_signal_from_string
(
const
char
*
str
);
16
17
/* Return NULL if signal with `code` not found. */
18
RZ_API
const
char
*
rz_signal_to_string
(
int
code
);
19
20
// XXX this function should be portable, not-unix specific
21
#if __UNIX__
22
RZ_API
void
rz_signal_sigmask(
int
how,
const
sigset_t
*newmask,
sigset_t
*oldmask);
23
#endif
24
25
#ifdef __cplusplus
26
}
27
#endif
28
29
#endif
// RZ_SIGNAL_H
RZ_API
#define RZ_API
Definition:
core_plugin_example.c:36
cmd_descs_generate.str
str
Definition:
cmd_descs_generate.py:785
rz_signal_to_string
RZ_API const char * rz_signal_to_string(int code)
Definition:
signal.c:63
rz_signal_from_string
RZ_API int rz_signal_from_string(const char *str)
Definition:
signal.c:52
rz_types.h
sigset_t
int sigset_t
Definition:
sftypes.h:63
code
Definition:
inftree9.h:24
librz
include
rz_util
rz_signal.h
Generated by
1.9.1