STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
types.h
Go to the documentation of this file.
1 /***
2 *sys/types.h - types returned by system level calls for file and time info
3 *
4 * Copyright (c) Microsoft Corporation. All rights reserved.
5 *
6 *Purpose:
7 * This file defines types used in defining values returned by system
8 * level calls for file status and time information.
9 * [System V]
10 *
11 * [Public]
12 *
13 ****/
14 
15 #pragma once
16 
17 #ifndef _INC_TYPES
18 #define _INC_TYPES
19 
20 #if !defined (_WIN32)
21 #error ERROR: Only Win32 target supported!
22 #endif /* !defined (_WIN32) */
23 
24 
25 #if !defined (_W64)
26 #if !defined (__midl) && (defined (_X86_) || defined (_M_IX86))
27 #define _W64 __w64
28 #else /* !defined (__midl) && (defined (_X86_) || defined (_M_IX86)) */
29 #define _W64
30 #endif /* !defined (__midl) && (defined (_X86_) || defined (_M_IX86)) */
31 #endif /* !defined (_W64) */
32 
33 #ifdef _USE_32BIT_TIME_T
34 #ifdef _WIN64
35 #include <crtwrn.h>
36 #endif /* _WIN64 */
37 #endif /* _USE_32BIT_TIME_T */
38 
39 #ifndef _TIME32_T_DEFINED
40 typedef _W64 long __time32_t; /* 32-bit time value */
41 #define _TIME32_T_DEFINED
42 #endif /* _TIME32_T_DEFINED */
43 
44 #ifndef _TIME64_T_DEFINED
45 typedef __int64 __time64_t; /* 64-bit time value */
46 #define _TIME64_T_DEFINED
47 #endif /* _TIME64_T_DEFINED */
48 
49 #ifndef _TIME_T_DEFINED
50 #ifdef _USE_32BIT_TIME_T
51 typedef __time32_t time_t; /* time value */
52 #else /* _USE_32BIT_TIME_T */
53 typedef __time64_t time_t; /* time value */
54 #endif /* _USE_32BIT_TIME_T */
55 #define _TIME_T_DEFINED /* avoid multiple def's of time_t */
56 #endif /* _TIME_T_DEFINED */
57 
58 
59 #ifndef _INO_T_DEFINED
60 
61 typedef unsigned short _ino_t; /* i-node number (not used on DOS) */
62 
63 #if !__STDC__
64 /* Non-ANSI name for compatibility */
65 typedef unsigned short ino_t;
66 #endif /* !__STDC__ */
67 
68 #define _INO_T_DEFINED
69 #endif /* _INO_T_DEFINED */
70 
71 
72 #ifndef _DEV_T_DEFINED
73 
74 typedef unsigned int _dev_t; /* device code */
75 
76 #if !__STDC__
77 /* Non-ANSI name for compatibility */
78 typedef unsigned int dev_t;
79 #endif /* !__STDC__ */
80 
81 #define _DEV_T_DEFINED
82 #endif /* _DEV_T_DEFINED */
83 
84 
85 #ifndef _OFF_T_DEFINED
86 
87 typedef long _off_t; /* file offset value */
88 
89 #if !__STDC__
90 /* Non-ANSI name for compatibility */
91 typedef long off_t;
92 #endif /* !__STDC__ */
93 
94 #define _OFF_T_DEFINED
95 #endif /* _OFF_T_DEFINED */
96 
97 #endif /* _INC_TYPES */
long off_t
Definition: types.h:91
_W64 long __time32_t
Definition: crtdefs.h:567
unsigned short _ino_t
Definition: types.h:61
__time64_t time_t
Definition: types.h:53
__int64 __time64_t
Definition: types.h:45
unsigned int _dev_t
Definition: types.h:74
_W64 long __time32_t
Definition: types.h:40
unsigned short ino_t
Definition: types.h:65
__int64 __time64_t
Definition: crtdefs.h:572
#define _W64
Definition: types.h:29
unsigned int dev_t
Definition: types.h:78
long _off_t
Definition: types.h:87