xorriso  1.5.4.pl02
About: GNU xorriso creates, loads, manipulates and writes ISO 9660 filesystem images with Rock Ridge extensions. It is suitable for incremental data backup and for production of bootable ISO 9660 images. GNU xorriso is a statical compilation of the libraries libburn, libisofs, libisoburn, and libjte.
  Fossies Dox: xorriso-1.5.4.pl02.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

libdax_sigmgr.c File Reference
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/time.h>
#include <signal.h>
#include "libdax_sigmgr.h"
Include dependency graph for libdax_sigmgr.c:

Go to the source code of this file.

Macros

#define LIBDAX_SIGMGR_H_INTERNAL   1
 

Typedefs

typedef void(* sighandler_t) (int)
 

Functions

int libdax_sigmgr_new (struct libdax_sigmgr **m, pid_t control_pid, int flag)
 
int libdax_sigmgr_destroy (struct libdax_sigmgr **m, int flag)
 
static void libdax_sigmgr_central_handler (int signum)
 
int libdax_sigmgr_activate (struct libdax_sigmgr *o, struct libdax_api *api_chain, int flag)
 

Variables

static int signal_list []
 
static char * signal_name_list []
 
static int signal_list_count = 24
 
static int non_signal_list []
 
static int non_signal_list_count = 5
 
struct libdax_sigmgr * libdax_sigmgr_activated = NULL
 

Macro Definition Documentation

◆ LIBDAX_SIGMGR_H_INTERNAL

#define LIBDAX_SIGMGR_H_INTERNAL   1

Definition at line 24 of file libdax_sigmgr.c.

Typedef Documentation

◆ sighandler_t

typedef void(* sighandler_t) (int)

Definition at line 20 of file libdax_sigmgr.c.

Function Documentation

◆ libdax_sigmgr_activate()

int libdax_sigmgr_activate ( struct libdax_sigmgr *  o,
struct libdax_api *  api_chain,
int  flag 
)

◆ libdax_sigmgr_central_handler()

static void libdax_sigmgr_central_handler ( int  signum)
static

◆ libdax_sigmgr_destroy()

int libdax_sigmgr_destroy ( struct libdax_sigmgr **  m,
int  flag 
)

Definition at line 78 of file libdax_sigmgr.c.

◆ libdax_sigmgr_new()

int libdax_sigmgr_new ( struct libdax_sigmgr **  m,
pid_t  control_pid,
int  flag 
)

Definition at line 63 of file libdax_sigmgr.c.

Variable Documentation

◆ libdax_sigmgr_activated

struct libdax_sigmgr* libdax_sigmgr_activated = NULL

Definition at line 57 of file libdax_sigmgr.c.

Referenced by libdax_sigmgr_activate(), and libdax_sigmgr_central_handler().

◆ non_signal_list

int non_signal_list[]
static
Initial value:
= {
SIGKILL, SIGCHLD, SIGSTOP, SIGURG, SIGWINCH, -1
}

Definition at line 50 of file libdax_sigmgr.c.

Referenced by libdax_sigmgr_activate().

◆ non_signal_list_count

int non_signal_list_count = 5
static

Definition at line 53 of file libdax_sigmgr.c.

Referenced by libdax_sigmgr_activate().

◆ signal_list

int signal_list[]
static
Initial value:
= {
SIGHUP, SIGINT, SIGQUIT, SIGILL, SIGABRT,
SIGFPE, SIGSEGV, SIGPIPE, SIGALRM, SIGTERM,
SIGUSR1, SIGUSR2, SIGXCPU, SIGTSTP, SIGTTIN,
SIGTTOU,
SIGBUS, SIGPOLL, SIGPROF, SIGSYS, SIGTRAP,
SIGVTALRM, SIGXCPU, SIGXFSZ, -1
}

Definition at line 31 of file libdax_sigmgr.c.

Referenced by libdax_sigmgr_activate(), and libdax_sigmgr_central_handler().

◆ signal_list_count

int signal_list_count = 24
static

Definition at line 47 of file libdax_sigmgr.c.

Referenced by libdax_sigmgr_activate(), and libdax_sigmgr_central_handler().

◆ signal_name_list

char* signal_name_list[]
static
Initial value:
= {
"SIGHUP", "SIGINT", "SIGQUIT", "SIGILL", "SIGABRT",
"SIGFPE", "SIGSEGV", "SIGPIPE", "SIGALRM", "SIGTERM",
"SIGUSR1", "SIGUSR2", "SIGXCPU", "SIGTSTP", "SIGTTIN",
"SIGTTOU",
"SIGBUS", "SIGPOLL", "SIGPROF", "SIGSYS", "SIGTRAP",
"SIGVTALRM", "SIGXCPU", "SIGXFSZ", "@"
}

Definition at line 39 of file libdax_sigmgr.c.

Referenced by libdax_sigmgr_central_handler().