mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-08 07:23:33 +00:00
20 lines
646 B
C
20 lines
646 B
C
|
#ifndef COSMOPOLITAN_LIBC_X_XSIGACTION_H_
|
||
|
#define COSMOPOLITAN_LIBC_X_XSIGACTION_H_
|
||
|
#include "libc/calls/struct/sigaction.h"
|
||
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||
|
COSMOPOLITAN_C_START_
|
||
|
|
||
|
int xsigaction(int, void *, uint64_t, uint64_t, struct sigaction *);
|
||
|
|
||
|
#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
|
||
|
#define xsigaction(SIG, HANDLER, FLAGS, MASK, OLD) \
|
||
|
({ \
|
||
|
__SIGACTION_YOINK(SIG); \
|
||
|
xsigaction(SIG, HANDLER, FLAGS, MASK, OLD); \
|
||
|
})
|
||
|
#endif
|
||
|
|
||
|
COSMOPOLITAN_C_END_
|
||
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||
|
#endif /* COSMOPOLITAN_LIBC_X_XSIGACTION_H_ */
|