dummy include files for compatibility with Microsoft POSIX
[reactos.git] / posix / include / sys / types.h
1 /* $Id: types.h,v 1.2 2002/02/20 09:17:56 hyperion Exp $
2 */
3 /*
4 * sys/types.h
5 *
6 * data types. Conforming to the Single UNIX(r) Specification Version 2,
7 * System Interface & Headers Issue 5
8 *
9 * This file is part of the ReactOS Operating System.
10 *
11 * Contributors:
12 * Created by KJK::Hyperion <noog@libero.it>
13 *
14 * THIS SOFTWARE IS NOT COPYRIGHTED
15 *
16 * This source code is offered for use in the public domain. You may
17 * use, modify or distribute it freely.
18 *
19 * This code is distributed in the hope that it will be useful but
20 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
21 * DISCLAMED. This includes but is not limited to warranties of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 *
24 */
25 #ifndef __SYS_TYPES_H_INCLUDED__
26 #define __SYS_TYPES_H_INCLUDED__
27
28 /* INCLUDES */
29 #include <inttypes.h>
30
31 /* OBJECTS */
32
33 /* TYPES */
34 /* FIXME: all these types need to be checked */
35 typedef unsigned long int blkcnt_t; /* Used for file block counts */
36 typedef unsigned long int blksize_t; /* Used for block sizes */
37 typedef long long clock_t; /* Used for system times in clock ticks or CLOCKS_PER_SEC */
38 typedef int clockid_t; /* Used for clock ID type in the clock and timer functions. */
39 typedef int dev_t; /* Used for device IDs. */
40 typedef long long fsblkcnt_t; /* Used for file system block counts */
41 typedef long long fsfilcnt_t; /* Used for file system file counts */
42 typedef int gid_t; /* Used for group IDs. */
43 typedef int id_t; /* Used as a general identifier; can be used to contain at least a
44 pid_t, uid_t or a gid_t. */
45 typedef uint64_t ino_t; /* Used for file serial numbers. */
46 typedef int key_t; /* Used for interprocess communication. */
47 typedef int mode_t; /* Used for some file attributes. */
48 typedef int nlink_t; /* Used for link counts. */
49 typedef int64_t off_t; /* Used for file sizes. */
50 typedef unsigned long int pid_t; /* Used for process IDs and process group IDs. */
51
52 /* pthread types */
53 typedef void * pthread_cond_t; /* Used for condition variables. */
54 typedef void * pthread_condattr_t; /* Used to identify a condition attribute object. */
55 typedef void * pthread_key_t; /* Used for thread-specific data keys. */
56 typedef void * pthread_attr_t; /* Used to identify a thread attribute object. */
57
58 typedef void * pthread_mutex_t;
59 typedef void * pthread_mutexattr_t;
60
61 typedef void * pthread_once_t; /* Used for dynamic package initialisation. */
62 typedef void * pthread_rwlock_t; /* Used for read-write locks. */
63 typedef void * pthread_rwlockattr_t; /* Used for read-write lock attributes. */
64 typedef unsigned long int pthread_t; /* Used to identify a thread. */
65
66 typedef unsigned long int size_t; /* Used for sizes of objects. */
67 typedef long int ssize_t; /* Used for a count of bytes or an error indication. */
68 typedef long long suseconds_t; /* Used for time in microseconds */
69 typedef unsigned long int time_t; /* Used for time in seconds. */
70 typedef void * timer_t; /* Used for timer ID returned by timer_create(). */
71 typedef int uid_t; /* Used for user IDs. */
72 typedef unsigned long long useconds_t; /* Used for time in microseconds. */
73
74 /* CONSTANTS */
75
76 /* PROTOTYPES */
77
78 /* MACROS */
79
80 #endif /* __SYS_TYPES_H_INCLUDED__ */
81
82 /* EOF */
83