diff options
author | David Mitchell <davem@iabyn.com> | 2019-11-07 12:30:14 +0000 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2019-11-18 09:34:40 +0000 |
commit | e7124897b9f4ae403795f9db247a331b6da9751e (patch) | |
tree | e94c1474a2d2b018fb99f4f151b1de15abf6b00c /mg.c | |
parent | 42d0f81a97a0084ad17af6ac19853db794e41ab5 (diff) | |
download | perl-e7124897b9f4ae403795f9db247a331b6da9751e.tar.gz |
add Siginfo_t
From the code comments:
This is an alias for the OS's siginfo_t, except that where the OS
doesn't support it, declare a dummy version instead. This allows us to
have signal handler functions which always have a Siginfo_t parameter
regardless of platform, (and which will just be passed a NULL value
where the OS doesn't support HAS_SIGACTION).
It doesn't actually do anything useful yet, but will shortly allow
signal handler functions to be rationalised.
Diffstat (limited to 'mg.c')
-rw-r--r-- | mg.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -63,7 +63,7 @@ tie. #endif #if defined(HAS_SIGACTION) && defined(SA_SIGINFO) -Signal_t Perl_csighandler(int sig, siginfo_t *, void *); +Signal_t Perl_csighandler(int sig, Siginfo_t *, void *); #else Signal_t Perl_csighandler(int sig); #endif @@ -1488,7 +1488,7 @@ Perl_magic_clearsig(pTHX_ SV *sv, MAGIC *mg) Signal_t #if defined(HAS_SIGACTION) && defined(SA_SIGINFO) -Perl_csighandler(int sig, siginfo_t *sip PERL_UNUSED_DECL, void *uap PERL_UNUSED_DECL) +Perl_csighandler(int sig, Siginfo_t *sip PERL_UNUSED_DECL, void *uap PERL_UNUSED_DECL) #else Perl_csighandler(int sig) #endif @@ -3319,7 +3319,7 @@ Perl_whichsig_pvn(pTHX_ const char *sig, STRLEN len) Signal_t #if defined(HAS_SIGACTION) && defined(SA_SIGINFO) -Perl_sighandler(int sig, siginfo_t *sip, void *uap) +Perl_sighandler(int sig, Siginfo_t *sip, void *uap) #else Perl_sighandler(int sig) #endif |