"Fossies" - the Fresh Open Source Software Archive

Member "radmind-1.15.3/radmind-/largefile.h" (30 Nov 2020, 862 Bytes) of package /linux/privat/radmind-1.15.3.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.

    1 /*
    2  * Copyright (c) 2003 Regents of The University of Michigan.
    3  * All Rights Reserved.  See COPYRIGHT.
    4  */
    5 
    6 #ifndef SIZEOF_OFF_T
    7 #error "sizeof off_t unknown."
    8 #endif
    9 
   10 #if SIZEOF_OFF_T == 8
   11     #ifdef HAVE_STRTOLL
   12     #define strtoofft(x,y,z)    (strtoll((x),(y),(z)))
   13     #else
   14     #define strtoofft(x,y,z)        (strtol((x),(y),(z)))
   15     #endif
   16 #define PRIofft         "ll"
   17 #else   /* a bit of an assumption, here */
   18 #define strtoofft(x,y,z)    (strtol((x),(y),(z)))
   19 #define PRIofft         "l"
   20 #endif
   21 
   22 #if SIZEOF_TIME_T == 8
   23     #ifdef HAVE_STRTOLL
   24     #define strtotimet(x,y,z)   (strtoll((x),(y),(z)))
   25     #else /* !HAVE_STRTOLL */
   26     #define strtotimet(x,y,z)   (strtol((x),(y),(z)))
   27     #endif /* HAVE_STRTOLL */
   28     #define PRItimet        "ll"
   29 #else /* SIZEOF_TIME_T != 8 */
   30     #define strtotimet(x,y,z)   (strtol((x),(y),(z)))
   31     #define PRItimet        "l"
   32 #endif /* SIZEOF_TIME_T */