Navigation

Operators and Keywords

Function List:

C++ API

sighandlers.h File Reference

#include <signal.h>
#include "syswait.h"
#include "siglist.h"
#include "base-list.h"

Include dependency graph for sighandlers.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Classes

struct  octave_interrupt_handler
class  octave_child
class  octave_child_list
class  octave_child_list::octave_child_list::octave_child_list_rep

Defines

#define octave_sighandlers_h   1
#define RETSIGTYPE   void
#define BADSIG   (RETSIGTYPE (*)(int))-1
#define BLOCK_SIGNAL(sig, nvar, ovar)
#define BLOCK_CHILD(nvar, ovar)   ovar = sigblock (sigmask (SIGCHLD))
#define UNBLOCK_CHILD(ovar)   sigsetmask (ovar)

Typedefs

typedef RETSIGTYPE sig_handler (int)

Functions

OCTINTERP_API sig_handleroctave_set_signal_handler (int, sig_handler *, bool restart_syscalls=true)
OCTINTERP_API void install_signal_handlers (void)
OCTINTERP_API void octave_signal_handler (void)
OCTINTERP_API
octave_interrupt_handler 
octave_catch_interrupts (void)
OCTINTERP_API
octave_interrupt_handler 
octave_ignore_interrupts (void)
OCTINTERP_API
octave_interrupt_handler 
octave_set_interrupt_handler (const volatile octave_interrupt_handler &, bool restart_syscalls=true)

Variables

int pipe_handler_error_count
OCTINTERP_API bool can_interrupt

Define Documentation

#define BADSIG   (RETSIGTYPE (*)(int))-1

#define BLOCK_CHILD ( nvar,
ovar   )     ovar = sigblock (sigmask (SIGCHLD))

#define BLOCK_SIGNAL ( sig,
nvar,
ovar   ) 

Value:

do \
    { \
      sigemptyset (&nvar); \
      sigaddset (&nvar, sig); \
      sigemptyset (&ovar); \
      sigprocmask (SIG_BLOCK, &nvar, &ovar); \
    } \
  while (0)

#define octave_sighandlers_h   1

#define RETSIGTYPE   void

#define UNBLOCK_CHILD ( ovar   )     sigsetmask (ovar)


Typedef Documentation

typedef RETSIGTYPE sig_handler(int)


Function Documentation

OCTINTERP_API void install_signal_handlers ( void   ) 

OCTINTERP_API octave_interrupt_handler octave_catch_interrupts ( void   ) 

OCTINTERP_API octave_interrupt_handler octave_ignore_interrupts ( void   ) 

OCTINTERP_API octave_interrupt_handler octave_set_interrupt_handler ( const volatile octave_interrupt_handler ,
bool  restart_syscalls = true 
)

OCTINTERP_API sig_handler* octave_set_signal_handler ( int  ,
sig_handler ,
bool  restart_syscalls = true 
)

OCTINTERP_API void octave_signal_handler ( void   ) 


Variable Documentation

OCTINTERP_API bool can_interrupt