signal.config 643 B

123456789101112131415161718
  1. # Signal table helper
  2. (defined($owrt:sigs)) {
  3. sig_name="$owrt:sigs"
  4. (($owrt:libc eq 'glibc') || ($owrt:libc eq 'uclibc')) {
  5. sig_name="$sig_name NUM32 NUM33 RTMIN NUM35 NUM36"
  6. }
  7. ($owrt:libc eq 'musl') {
  8. sig_name="$sig_name NUM32 NUM33 NUM34 RTMIN NUM36"
  9. }
  10. sig_name="$sig_name @{[map({qq/NUM\$_/} 37..$owrt:sig_count - 2)]} RTMAX $owrt:sig_name_extra"
  11. sig_num="@{[0..$owrt:sig_count - 1]} $owrt:sig_num_extra "
  12. sig_count="$owrt:sig_count"
  13. sig_size="@{[scalar(split(q/ /, $sig_name))]}"
  14. sig_name_init="@{[join(q/, /, map({qq/\qq\$_\qq/} split(q/ /, $sig_name)))]}, 0"
  15. sig_num_init="@{[join(q/, /, split(q/ /, $sig_num))]}, 0"
  16. }