GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
signal-wrappers.c File Reference
#include <sys/types.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include "signal-wrappers.h"

Go to the source code of this file.

Functions

void * octave_alloc_signal_mask (void)
 
void * octave_block_child (void)
 
void octave_block_interrupt_signal (void)
 
void octave_block_signal_by_name (const char *signame)
 
void octave_free_signal_mask (void *mask)
 
bool octave_get_sig_number (const char *signame, int *signum)
 
void octave_get_signal_mask (void *mask)
 
bool octave_have_kill (void)
 
int octave_kill_wrapper (pid_t pid, int signum)
 
int octave_num_signals (void)
 
int octave_raise_wrapper (int signum)
 
void octave_restore_signal_mask (void)
 
void octave_save_signal_mask (void)
 
octave_sig_handleroctave_set_default_signal_handler (int sig)
 
octave_sig_handleroctave_set_default_signal_handler_by_name (const char *signame)
 
octave_sig_handleroctave_set_signal_handler_by_name (const char *signame, octave_sig_handler *handler, bool restart_syscalls)
 
octave_sig_handleroctave_set_signal_handler_internal (int sig, octave_sig_handler *handler, bool restart_syscalls)
 
void octave_set_signal_mask (void *mask)
 
void octave_show_sigmask (const char *msg)
 
char * octave_strsignal_wrapper (int signum)
 
void octave_unblock_child (void *context_arg)
 
void octave_unblock_interrupt_signal (void)
 
void octave_unblock_signal_by_name (const char *signame)
 

Function Documentation

◆ octave_alloc_signal_mask()

void* octave_alloc_signal_mask ( void  )

Definition at line 556 of file signal-wrappers.c.

References malloc().

◆ octave_block_child()

void* octave_block_child ( void  )

Definition at line 423 of file signal-wrappers.c.

References malloc().

◆ octave_block_interrupt_signal()

void octave_block_interrupt_signal ( void  )

Definition at line 493 of file signal-wrappers.c.

◆ octave_block_signal_by_name()

void octave_block_signal_by_name ( const char *  signame)

Definition at line 522 of file signal-wrappers.c.

◆ octave_free_signal_mask()

void octave_free_signal_mask ( void *  mask)

Definition at line 562 of file signal-wrappers.c.

References free().

◆ octave_get_sig_number()

bool octave_get_sig_number ( const char *  signame,
int *  signum 
)

◆ octave_get_signal_mask()

void octave_get_signal_mask ( void *  mask)

Definition at line 568 of file signal-wrappers.c.

◆ octave_have_kill()

bool octave_have_kill ( void  )

Definition at line 73 of file signal-wrappers.c.

Referenced by kill().

◆ octave_kill_wrapper()

int octave_kill_wrapper ( pid_t  pid,
int  signum 
)

Definition at line 50 of file signal-wrappers.c.

References kill(), and signum().

Referenced by interpreter::interrupt(), and kill().

◆ octave_num_signals()

int octave_num_signals ( void  )

Definition at line 411 of file signal-wrappers.c.

Referenced by respond_to_pending_signals().

◆ octave_raise_wrapper()

int octave_raise_wrapper ( int  signum)

Definition at line 580 of file signal-wrappers.c.

References signum().

◆ octave_restore_signal_mask()

void octave_restore_signal_mask ( void  )

Definition at line 550 of file signal-wrappers.c.

Referenced by interpreter::recover_from_exception().

◆ octave_save_signal_mask()

void octave_save_signal_mask ( void  )

Definition at line 544 of file signal-wrappers.c.

Referenced by interpreter::initialize().

◆ octave_set_default_signal_handler()

octave_sig_handler* octave_set_default_signal_handler ( int  sig)

Definition at line 399 of file signal-wrappers.c.

References octave_set_signal_handler_internal().

◆ octave_set_default_signal_handler_by_name()

octave_sig_handler* octave_set_default_signal_handler_by_name ( const char *  signame)

Definition at line 405 of file signal-wrappers.c.

References octave_set_signal_handler_by_name().

◆ octave_set_signal_handler_by_name()

octave_sig_handler* octave_set_signal_handler_by_name ( const char *  signame,
octave_sig_handler handler,
bool  restart_syscalls 
)

◆ octave_set_signal_handler_internal()

octave_sig_handler* octave_set_signal_handler_internal ( int  sig,
octave_sig_handler handler,
bool  restart_syscalls 
)

◆ octave_set_signal_mask()

void octave_set_signal_mask ( void *  mask)

Definition at line 574 of file signal-wrappers.c.

◆ octave_show_sigmask()

void octave_show_sigmask ( const char *  msg)

Definition at line 625 of file signal-wrappers.c.

◆ octave_strsignal_wrapper()

char* octave_strsignal_wrapper ( int  signum)

Definition at line 67 of file signal-wrappers.c.

References signum().

◆ octave_unblock_child()

void octave_unblock_child ( void *  context_arg)

Definition at line 452 of file signal-wrappers.c.

References free().

◆ octave_unblock_interrupt_signal()

void octave_unblock_interrupt_signal ( void  )

Definition at line 503 of file signal-wrappers.c.

◆ octave_unblock_signal_by_name()

void octave_unblock_signal_by_name ( const char *  signame)

Definition at line 528 of file signal-wrappers.c.