void signal_init(void)

{

    struct sigaction act;

    int i;



    /* set all host signal handlers. ALL signals are blocked during

       the handlers to serialize them. */

    sigfillset(&act.sa_mask);

    act.sa_flags = SA_SIGINFO;

    act.sa_sigaction = host_signal_handler;

    for(i = 1; i < NSIG; i++) {

	sigaction(i, &act, NULL);

    }

    

    memset(sigact_table, 0, sizeof(sigact_table));



    first_free = &sigqueue_table[0];

    for(i = 0; i < MAX_SIGQUEUE_SIZE - 1; i++) 

        sigqueue_table[i].next = &sigqueue_table[i + 1];

    sigqueue_table[MAX_SIGQUEUE_SIZE - 1].next = NULL;

}

void signal_init(void)

{

    struct sigaction act;

    int i;



    



    sigfillset(&act.sa_mask);

    act.sa_flags = SA_SIGINFO;

    act.sa_sigaction = host_signal_handler;

    for(i = 1; i < NSIG; i++) {

	sigaction(i, &act, NULL);

    }

    

    memset(sigact_table, 0, sizeof(sigact_table));



    first_free = &sigqueue_table[0];

    for(i = 0; i < MAX_SIGQUEUE_SIZE - 1; i++) 

        sigqueue_table[i].next = &sigqueue_table[i + 1];

    sigqueue_table[MAX_SIGQUEUE_SIZE - 1].next = NULL;

}

	sigaction(i, &act, NULL);
void FUNC_0(void)

{

    struct sigaction VAR_0;

    int VAR_1;



    



    sigfillset(&VAR_0.sa_mask);

    VAR_0.sa_flags = SA_SIGINFO;

    VAR_0.sa_sigaction = host_signal_handler;

    for(VAR_1 = 1; VAR_1 < NSIG; VAR_1++) {

	sigaction(VAR_1, &VAR_0, NULL);

    }

    

    memset(sigact_table, 0, sizeof(sigact_table));



    first_free = &sigqueue_table[0];

    for(VAR_1 = 0; VAR_1 < MAX_SIGQUEUE_SIZE - 1; VAR_1++) 

        sigqueue_table[VAR_1].next = &sigqueue_table[VAR_1 + 1];

    sigqueue_table[MAX_SIGQUEUE_SIZE - 1].next = NULL;

}

void FUNC_0(void)
{ struct sigaction VAR_0; int VAR_1; sigfillset(&VAR_0.sa_mask); VAR_0.sa_flags = SA_SIGINFO; VAR_0.sa_sigaction = host_signal_handler; for(VAR_1 = 1; VAR_1 < NSIG; VAR_1++) { sigaction(VAR_1, &VAR_0, NULL); } memset(sigact_table, 0, sizeof(sigact_table)); first_free = &sigqueue_table[0]; for(VAR_1 = 0; VAR_1 < MAX_SIGQUEUE_SIZE - 1; VAR_1++) sigqueue_table[VAR_1].next = &sigqueue_table[VAR_1 + 1]; sigqueue_table[MAX_SIGQUEUE_SIZE - 1].next = NULL; }