Chameleon

Chameleon Svn Source Tree

Root/branches/ErmaC/Modules/i386/include/sys/_types.h

1/*
2 * Copyright (c) 2003-2007 Apple Inc. All rights reserved.
3 *
4 * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
5 *
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. The rights granted to you under the License
10 * may not be used to create, or enable the creation or redistribution of,
11 * unlawful or unlicensed copies of an Apple operating system, or to
12 * circumvent, violate, or enable the circumvention or violation of, any
13 * terms of an Apple operating system software license agreement.
14 *
15 * Please obtain a copy of the License at
16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
17 *
18 * The Original Code and all software distributed under the License are
19 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
20 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
21 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
22 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
23 * Please see the License for the specific language governing rights and
24 * limitations under the License.
25 *
26 * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
27 */
28
29#ifndef _SYS__TYPES_H_
30#define _SYS__TYPES_H_
31
32#include <sys/cdefs.h>
33#include <machine/_types.h>
34
35/*
36 * Type definitions; takes common type definitions that must be used
37 * in multiple header files due to [XSI], removes them from the system
38 * space, and puts them in the implementation space.
39 */
40
41#ifdef __cplusplus
42#ifdef __GNUG__
43#define __DARWIN_NULL __null
44#else /* ! __GNUG__ */
45#ifdef __LP64__
46#define __DARWIN_NULL (0L)
47#else /* !__LP64__ */
48#define __DARWIN_NULL 0
49#endif /* __LP64__ */
50#endif /* __GNUG__ */
51#else /* ! __cplusplus */
52#define __DARWIN_NULL ((void *)0)
53#endif /* __cplusplus */
54
55typedef__int64_t__darwin_blkcnt_t;/* total blocks */
56typedef__int32_t__darwin_blksize_t;/* preferred block size */
57typedef __int32_t__darwin_dev_t;/* dev_t */
58typedef unsigned int__darwin_fsblkcnt_t;/* Used by statvfs and fstatvfs */
59typedef unsigned int__darwin_fsfilcnt_t;/* Used by statvfs and fstatvfs */
60typedef __uint32_t__darwin_gid_t;/* [???] process and group IDs */
61typedef __uint32_t__darwin_id_t;/* [XSI] pid_t, uid_t, or gid_t*/
62typedef __uint64_t__darwin_ino64_t;/* [???] Used for 64 bit inodes */
63#if __DARWIN_64_BIT_INO_T
64typedef __darwin_ino64_t __darwin_ino_t;/* [???] Used for inodes */
65#else /* !__DARWIN_64_BIT_INO_T */
66typedef __uint32_t__darwin_ino_t;/* [???] Used for inodes */
67#endif /* __DARWIN_64_BIT_INO_T */
68typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
69typedef __darwin_mach_port_name_t __darwin_mach_port_t; /* Used by mach */
70typedef __uint16_t__darwin_mode_t;/* [???] Some file attributes */
71typedef __int64_t__darwin_off_t;/* [???] Used for file sizes */
72#ifndef_OFF_T
73#define_OFF_T
74typedef__darwin_off_toff_t;
75#endif
76typedef __int32_t__darwin_pid_t;/* [???] process and group IDs */
77typedef __uint32_t__darwin_sigset_t;/* [???] signal set */
78typedef __int32_t__darwin_suseconds_t;/* [???] microseconds */
79typedef __uint32_t__darwin_uid_t;/* [???] user IDs */
80typedef __uint32_t__darwin_useconds_t;/* [???] microseconds */
81typedefunsigned char__darwin_uuid_t[16];
82typedefchar__darwin_uuid_string_t[37];
83
84#endif/* _SYS__TYPES_H_ */
85

Archive Download this file

Revision: 1621