Main MRPT website > C++ reference for MRPT 1.5.7
xsfilepos.h
Go to the documentation of this file.
1 /* +---------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2017, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +---------------------------------------------------------------------------+ */
9 #ifndef XSFILEPOS_H
10 #define XSFILEPOS_H
11 
12 /*! \addtogroup cinterface C Interface
13  @{
14 */
15 
16 /*! \typedef XsFilePos
17  \brief The type that is used for positioning inside a file
18 */
19 /*! \typedef XsIoHandle
20  \brief The type that is used for low-level identification of an open I/O device
21 */
22 /*! \typedef XsFileHandle
23  \brief The type that is used for low-level identification of an open file
24 */
25 
26 /*! @} */
27 
28 #include <stdio.h>
29 #ifdef _WIN32
30 #ifndef _PSTDINT_H_INCLUDED
31 # include "pstdint.h"
32 #endif
33 typedef __int64 XsFilePos;
34 #ifndef HANDLE
35 # include <windows.h>
36 #endif
37 typedef HANDLE XsIoHandle;
38 #else
39 #include <sys/types.h>
40 /* off_t is practically guaranteed not to be 64 bits on non64 bit systems.
41  We'd better explicitly use __off64_t to be sure of it's size.
42 */
43 #ifdef __APPLE__
44 typedef int64_t XsFilePos;
45 #else
46 typedef __off64_t XsFilePos;
47 #endif
48 typedef int32_t XsIoHandle;
49 #endif
50 typedef FILE XsFileHandle;
51 
52 #endif // file guard
HANDLE XsIoHandle
Definition: xsfilepos.h:37
__int64 XsFilePos
The type that is used for positioning inside a file.
Definition: xsfilepos.h:33
__int64 int64_t
Definition: rptypes.h:51
__int32 int32_t
Definition: rptypes.h:48
FILE XsFileHandle
Definition: xsfilepos.h:50



Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019