"Fossies" - the Fresh Open Source Software Archive

Member "xorriso-1.5.4/libburn/os-freebsd.h" (30 Jan 2021, 2251 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-freebsd.h" see the Fossies "Dox" file reference documentation.

    1 
    2 /* os-freebsd.h
    3    Operating system specific libburn definitions and declarations. Included
    4    by os.h in case of compilation for
    5                                   FreeBSD with CAM
    6 
    7    Copyright (C) 2006 - 2013 Thomas Schmitt <scdbackup@gmx.net>,
    8    Provided under GPLv2+
    9 */
   10 
   11 /** List of all signals which shall be caught by signal handlers and trigger
   12     a graceful abort of libburn. (See man 7 signal.)
   13 */
   14 /* Once as system defined macros */
   15 #define BURN_OS_SIGNAL_MACRO_LIST \
   16  SIGHUP, SIGINT, SIGQUIT, SIGILL, SIGABRT, \
   17  SIGFPE, SIGSEGV, SIGPIPE, SIGALRM, SIGTERM, \
   18  SIGUSR1, SIGUSR2, SIGXCPU, SIGBUS, SIGPROF, \
   19  SIGSYS, SIGTRAP, SIGVTALRM, SIGXCPU, SIGXFSZ 
   20 
   21 /* Once as text 1:1 list of strings for messages and interpreters */
   22 #define BURN_OS_SIGNAL_NAME_LIST \
   23  "SIGHUP", "SIGINT", "SIGQUIT", "SIGILL", "SIGABRT", \
   24  "SIGFPE", "SIGSEGV", "SIGPIPE", "SIGALRM", "SIGTERM", \
   25  "SIGUSR1", "SIGUSR2", "SIGXCPU", "SIGBUS", "SIGPROF", \
   26  "SIGSYS", "SIGTRAP", "SIGVTALRM", "SIGXCPU", "SIGXFSZ"
   27 
   28 /* The number of above list items */
   29 #define BURN_OS_SIGNAL_COUNT 20
   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 /* Older BSD info says that 32 kB is maximum. But 64 kB seems to work well
   42    on 8-STABLE. It is by default only used with BD in streaming mode.
   43    So older systems should still be quite safe with this buffer max size.
   44 */
   45 #define BURN_OS_TRANSPORT_BUFFER_SIZE 65536
   46 
   47 
   48 /** To hold all state information of BSD device enumeration
   49     which are now local in sg_enumerate() . So that sg_give_next_adr()
   50     can work in BSD and sg_enumerate() can use it.
   51 */
   52 #define BURN_OS_DEFINE_DRIVE_ENUMERATOR_T  \
   53 struct burn_drive_enumeration_state; \
   54 typedef struct burn_drive_enumeration_state *burn_drive_enumerator_t;
   55 
   56 
   57 /* The list of operating system dependent elements in struct burn_drive.
   58    To be initialized and used within sg-*.c .
   59 */
   60 #define BURN_OS_TRANSPORT_DRIVE_ELEMENTS \
   61 struct cam_device* cam; \
   62 int lock_fd; \
   63 int is_ahci; \
   64 
   65