"Fossies" - the Fresh Open Source Software Archive

Member "xorriso-1.5.4/libburn/os-solaris.h" (30 Jan 2021, 2004 Bytes) of package /linux/misc/xorriso-1.5.4.pl02.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "os-solaris.h" see the Fossies "Dox" file reference documentation.

    1 
    2 /* os-solaris.h
    3    Operating system specific libburn definitions and declarations. Included
    4    by os.h in case of compilation for
    5            Solaris based systems, e.g. SunOS 5.11
    6            with Solaris uscsi MMC transport adapter sg-solaris.c
    7 
    8    Copyright (C) 2010 - 2013 Thomas Schmitt <scdbackup@gmx.net>
    9    provided under GPLv2+
   10 */
   11 
   12 
   13 /** List of all signals which shall be caught by signal handlers and trigger
   14     a graceful abort of libburn. (See man signal.h)
   15 */
   16 /* Once as system defined macros */
   17 #define BURN_OS_SIGNAL_MACRO_LIST \
   18  SIGHUP, SIGINT, SIGQUIT, SIGILL, SIGABRT, \
   19  SIGFPE, SIGSEGV, SIGPIPE, SIGALRM, SIGTERM, \
   20  SIGUSR1, SIGUSR2, SIGXCPU
   21 
   22 /* Once as text 1:1 list of strings for messages and interpreters */
   23 #define BURN_OS_SIGNAL_NAME_LIST \
   24  "SIGHUP", "SIGINT", "SIGQUIT", "SIGILL", "SIGABRT", \
   25  "SIGFPE", "SIGSEGV", "SIGPIPE", "SIGALRM", "SIGTERM", \
   26  "SIGUSR1", "SIGUSR2", "SIGXCPU"
   27 
   28 /* The number of above list items */
   29 #define BURN_OS_SIGNAL_COUNT 13
   30 
   31 /** To list all signals which shall surely not be caught */
   32 #define BURN_OS_NON_SIGNAL_MACRO_LIST \
   33 SIGKILL, SIGCHLD, SIGSTOP, SIGTSTP, SIGCONT, SIGTTIN, SIGTTOU, SIGURG, SIGWINCH
   34 
   35 /* The number of above list items */
   36 #define BURN_OS_NON_SIGNAL_COUNT 9
   37 
   38 
   39 /* The maximum size for a (SCSI) i/o transaction */
   40 /* Important : MUST be at least 32768 ! */
   41 /* My Blu-ray burner LG GGW-H20 writes junk if stream recording is combined
   42    with buffer size 32 kB. So stream recording is allowed only with size 64k.
   43 */
   44 #define BURN_OS_TRANSPORT_BUFFER_SIZE 65536
   45 
   46 
   47 /* >>> */
   48 
   49 /* To hold the position of the most recently delivered address from
   50    device enumeration.
   51 */
   52 struct burn_drive_enumerator_struct {
   53     void *dir;
   54 };
   55 
   56 #define BURN_OS_DEFINE_DRIVE_ENUMERATOR_T \
   57 typedef struct burn_drive_enumerator_struct burn_drive_enumerator_t;
   58 
   59 
   60 /* The list of operating system dependent elements in struct burn_drive.
   61    Usually they are initialized in  sg-*.c:enumerate_common().
   62 */
   63 #define BURN_OS_TRANSPORT_DRIVE_ELEMENTS \
   64     int fd;
   65