mirror of
https://github.com/fluencelabs/musl
synced 2025-06-28 14:11:56 +00:00
fix missing SIG_DFL, SIG_IGN, SIG_ERR without posix in signal.h
This commit is contained in:
@ -25,15 +25,12 @@ extern "C" {
|
|||||||
|
|
||||||
#include <bits/alltypes.h>
|
#include <bits/alltypes.h>
|
||||||
|
|
||||||
|
#define SIG_HOLD ((void (*)(int)) 2)
|
||||||
|
|
||||||
#define SIG_BLOCK 0
|
#define SIG_BLOCK 0
|
||||||
#define SIG_UNBLOCK 1
|
#define SIG_UNBLOCK 1
|
||||||
#define SIG_SETMASK 2
|
#define SIG_SETMASK 2
|
||||||
|
|
||||||
#define SIG_ERR ((void (*)(int))-1)
|
|
||||||
#define SIG_DFL ((void (*)(int)) 0)
|
|
||||||
#define SIG_IGN ((void (*)(int)) 1)
|
|
||||||
#define SIG_HOLD ((void (*)(int)) 2)
|
|
||||||
|
|
||||||
#define SI_ASYNCNL (-60)
|
#define SI_ASYNCNL (-60)
|
||||||
#define SI_TKILL (-6)
|
#define SI_TKILL (-6)
|
||||||
#define SI_SIGIO (-5)
|
#define SI_SIGIO (-5)
|
||||||
@ -217,6 +214,10 @@ int sigisemptyset(const sigset_t *);
|
|||||||
|
|
||||||
#include <bits/signal.h>
|
#include <bits/signal.h>
|
||||||
|
|
||||||
|
#define SIG_ERR ((void (*)(int))-1)
|
||||||
|
#define SIG_DFL ((void (*)(int)) 0)
|
||||||
|
#define SIG_IGN ((void (*)(int)) 1)
|
||||||
|
|
||||||
typedef int sig_atomic_t;
|
typedef int sig_atomic_t;
|
||||||
|
|
||||||
void (*signal(int, void (*)(int)))(int);
|
void (*signal(int, void (*)(int)))(int);
|
||||||
|
Reference in New Issue
Block a user