"Fossies" - the Fresh Open Source Software Archive

Member "dmidecode-3.3/config.h" (14 Oct 2020, 549 Bytes) of package /linux/privat/dmidecode-3.3.tar.xz:


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 "config.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 3.2_vs_3.3.

    1 /*
    2  * Configuration
    3  */
    4 
    5 #ifndef CONFIG_H
    6 #define CONFIG_H
    7 
    8 /* Default memory device file */
    9 #if defined(__BEOS__) || defined(__HAIKU__)
   10 #define DEFAULT_MEM_DEV "/dev/misc/mem"
   11 #else
   12 #ifdef __sun
   13 #define DEFAULT_MEM_DEV "/dev/xsvc"
   14 #else
   15 #define DEFAULT_MEM_DEV "/dev/mem"
   16 #endif
   17 #endif
   18 
   19 /* Use mmap or not */
   20 #ifndef __BEOS__
   21 #define USE_MMAP
   22 #endif
   23 
   24 /* Use memory alignment workaround or not */
   25 #ifdef __ia64__
   26 #define ALIGNMENT_WORKAROUND
   27 #endif
   28 
   29 /* Avoid unaligned memcpy on /dev/mem */
   30 #ifdef __aarch64__
   31 #define USE_SLOW_MEMCPY
   32 #endif
   33 
   34 #endif