-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlargefile.h
32 lines (29 loc) · 862 Bytes
/
largefile.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
* Copyright (c) 2003 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
*/
#ifndef SIZEOF_OFF_T
#error "sizeof off_t unknown."
#endif
#if SIZEOF_OFF_T == 8
#ifdef HAVE_STRTOLL
#define strtoofft(x,y,z) (strtoll((x),(y),(z)))
#else
#define strtoofft(x,y,z) (strtol((x),(y),(z)))
#endif
#define PRIofft "ll"
#else /* a bit of an assumption, here */
#define strtoofft(x,y,z) (strtol((x),(y),(z)))
#define PRIofft "l"
#endif
#if SIZEOF_TIME_T == 8
#ifdef HAVE_STRTOLL
#define strtotimet(x,y,z) (strtoll((x),(y),(z)))
#else /* !HAVE_STRTOLL */
#define strtotimet(x,y,z) (strtol((x),(y),(z)))
#endif /* HAVE_STRTOLL */
#define PRItimet "ll"
#else /* SIZEOF_TIME_T != 8 */
#define strtotimet(x,y,z) (strtol((x),(y),(z)))
#define PRItimet "l"
#endif /* SIZEOF_TIME_T */