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)  

os-dummy.h
Go to the documentation of this file.
1 
2 /* os-dummy.h
3  Operating system specific libburn definitions and declarations. Included
4  by os.h in case of compilation for
5  Unknown POSIX like systems
6  with the dummy MMC transport adapter sg-dummy.c
7 
8  Copyright (C) 2009 - 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 7 signal.)
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 /** The list of all signals which shall surely not be caught.
32  It depends on the particular signal whether it can be ignored or whether
33  it will lead to sudden death of the process.
34  Some signals are not POSIX,
35  but nevertheless ought to be ignored if they are defined.
36 */
37 
38 #ifdef SIGWINCH
39 #define BURN_OS_SIG_WINCH ,SIGWINCH
40 #define BURN_OS_SIG_WINCH_CNT 1
41 #else
42 #define BURN_OS_SIG_WINCH
43 #define BURN_OS_SIG_WINCH_CNT 0
44 #endif
45 
46 #ifdef SIGURG
47 #define BURN_OS_SIG_URG ,SIGURG
48 #define BURN_OS_SIG_URG_CNT 1
49 #else
50 #define BURN_OS_SIG_URG
51 #define BURN_OS_SIG_URG_CNT 0
52 #endif
53 
54 /** The combined list of all signals which shall not be caught.
55  */
56 #define BURN_OS_NON_SIGNAL_MACRO_LIST \
57 SIGKILL, SIGCHLD, SIGSTOP, SIGTSTP, SIGCONT, SIGTTIN, SIGTTOU \
58 BURN_OS_SIG_WINCH BURN_OS_SIG_URG
59 
60 /* The number of above list items */
61 #define BURN_OS_NON_SIGNAL_COUNT \
62 ( 7 + BURN_OS_SIG_WINCH_CNT + BURN_OS_SIG_URG_CNT )
63 
64 
65 /* The maximum size for a (SCSI) i/o transaction */
66 /* Important : MUST be at least 32768 ! */
67 #define BURN_OS_TRANSPORT_BUFFER_SIZE 65536
68 
69 
70 /* To hold the position of the most recently delivered address from
71  device enumeration.
72 */
74  int pos;
76  char **info_list;
77 };
78 
79 #define BURN_OS_DEFINE_DRIVE_ENUMERATOR_T \
80 typedef struct burn_drive_enumerator_struct burn_drive_enumerator_t;
81 
82 
83 /* The list of operating system dependent elements in struct burn_drive.
84  Usually they are initialized in sg-*.c:enumerate_common().
85 */
86 #define BURN_OS_TRANSPORT_DRIVE_ELEMENTS \
87  int just_a_dummy;
88