libk  Diff

Differences From Artifact [cb05e98dbe]:

To Artifact [1bb8ef8aa2]:


    41     41   #endif
    42     42   
    43     43   	/* platform flags */
    44     44   	posix_flag_linux_hugetlb = 0x40000
    45     45   };
    46     46   
    47     47   enum posix_signal {
           48  +	/* common signal numbers across arches and OSes */
    48     49   	posix_signal_hangup = 1,
    49     50   	posix_signal_interrupt = 2,
    50     51   	posix_signal_quit = 3,
    51     52   	posix_signal_illegal = 4,
    52     53   	posix_signal_trap = 5,
    53     54   	posix_signal_abort = 6,
    54     55   	posix_signal_float = 8,
    55     56   	posix_signal_kill = 9,
    56     57   	posix_signal_segfault = 11,
    57     58   	posix_signal_pipe = 13,
    58     59   	posix_signal_alarm = 14,
    59     60   	posix_signal_terminate = 15,
    60     61   
    61         -#if KVarch == KA_arch_mips
           62  +#if KVarch == KA_arch_mips && KVos == KA_os_lin
    62     63   	/* for some ungodly reason, some signal
    63     64   	 * numbers on MIPS differ from most other
    64     65   	 * architectures still in contemporary use */
    65     66   	posix_signal_bus = 10,
    66     67   	posix_signal_user_a = 16,
    67     68   	posix_signal_user_b = 17,
    68     69   	posix_signal_child = 18,
................................................................................
    75     76   	posix_signal_limit_cpu = 30,
    76     77   	posix_signal_limit_space = 31,
    77     78   	posix_signal_vt_alarm = 28,
    78     79   	posix_signal_profile = 29,
    79     80   	posix_signal_winch = 20,
    80     81   	posix_signal_poll = 22,
    81     82   	posix_signal_power = 19,
    82         -#else
           83  +#elif KVos == KA_os_lin
    83     84   	/* x86, ARM, and most others use these
    84     85   	 * signal numbers */
    85     86   	posix_signal_bus = 7,
    86     87   	posix_signal_user_a = 10,
    87     88   	posix_signal_user_b = 12,
    88     89   	posix_signal_child = 17,
    89     90   	posix_signal_continue = 18,
................................................................................
    95     96   	posix_signal_io_urgent = 23,
    96     97   	posix_signal_limit_cpu = 24,
    97     98   	posix_signal_limit_space = 25,
    98     99   	posix_signal_vt_alarm = 26,
    99    100   	posix_signal_profile = 27,
   100    101   	posix_signal_winch = 28,
   101    102   	posix_signal_poll = 29,
          103  +	posix_signal_power = 30,
          104  +#elif KVos == KA_os_fbsd
          105  +	posix_signal_bus = 10,
          106  +	posix_signal_user_a = 30,
          107  +	posix_signal_user_b = 31,
          108  +	posix_signal_child = 17,
          109  +	posix_signal_continue = 19,
          110  +	posix_signal_stack_fault = 16,
          111  +	posix_signal_stop = 17,
          112  +	posix_signal_terminal_stop = 18,
          113  +	posix_signal_tty_input = 21,
          114  +	posix_signal_tty_output = 22,
          115  +	posix_signal_io_urgent = 16,
          116  +	posix_signal_limit_cpu = 24,
          117  +	posix_signal_limit_space = 25,
          118  +	posix_signal_vt_alarm = 26,
          119  +	posix_signal_profile = 27,
          120  +	posix_signal_winch = 28,
          121  +	posix_signal_info = 29,
          122  +	posix_signal_poll = 23,
   102    123   	posix_signal_power = 30,
   103    124   #endif
   104    125   };
   105    126   
   106    127   #endif
   107    128   #ifdef KFplatform_define_types
   108    129