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
#define RZ_API
RZ_API const char * rz_signal_to_string(int code)
Definition: signal.c:63
RZ_API int rz_signal_from_string(const char *str)
Definition: signal.c:52
int sigset_t
Definition: sftypes.h:63
Definition: inftree9.h:24