The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.


ExtUtils::Typemaps::Signal - A typemap for dealing with signal related types


version 0.006


 use ExtUtils::Typemaps::Signal;
 # First, read my own type maps:
 my $private_map = ExtUtils::Typemaps->new(file => '');

 # Then, get the Signal set and merge it into my maps
 my $map = ExtUtils::Typemaps::Signal->new;
 $private_map->merge(typemap => $map);

 # Now, write the combined map to an output file
 $private_map->write(file => 'typemap');


ExtUtils::Typemaps::Signal is an ExtUtils::Typemaps subclass that provides several useful typemaps when dealing with signalling code. In particular it converts the following C types:

  • signo_t

    Input only. This turns a signal name (e.g. TERM) or number (15) into a signal number. Do note you need to typedef int to this type yourself.

  • sigset_t*

    Input only. This turns a POSIX::SigSet object into a sigset_t*. Alternatively, it will convert a signal name/number into a signal set.

  • siginfo_t

    Output only. This turns a siginfo_t into a hash containing the various values

  • struct timespec

    This turns a numeric duration into a struct timespec. This supports input and output.


Leon Timmermans <>


This software is copyright (c) 2024 by Leon Timmermans.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.