xref: /illumos-gate/usr/src/uts/common/sys/types32.h (revision 355b4669e025ff377602b6fc7caaf30dbc218371)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright (c) 1997-1998 by Sun Microsystems, Inc.
24  * All rights reserved.
25  */
26 
27 #ifndef _SYS_TYPES32_H
28 #define	_SYS_TYPES32_H
29 
30 #pragma ident	"%Z%%M%	%I%	%E% SMI"
31 
32 #include <sys/int_types.h>
33 
34 #ifdef	__cplusplus
35 extern "C" {
36 #endif
37 
38 /*
39  * Interoperability types for programs. Used for:
40  *
41  * Crossing between 32-bit and 64-bit domains.
42  *
43  * On disk data formats such as filesystem meta data
44  * and disk label.
45  *
46  * Note: Applications should never include this
47  *       header file.
48  */
49 typedef	uint32_t	caddr32_t;
50 typedef	int32_t		daddr32_t;
51 typedef	int32_t		off32_t;
52 typedef	uint32_t	ino32_t;
53 typedef	int32_t		blkcnt32_t;
54 typedef uint32_t	fsblkcnt32_t;
55 typedef	uint32_t	fsfilcnt32_t;
56 typedef	int32_t		id32_t;
57 typedef	uint32_t	major32_t;
58 typedef	uint32_t	minor32_t;
59 typedef	int32_t		key32_t;
60 typedef	uint32_t	mode32_t;
61 typedef	int32_t		uid32_t;
62 typedef	int32_t		gid32_t;
63 typedef	uint32_t	nlink32_t;
64 typedef	uint32_t	dev32_t;
65 typedef	int32_t		pid32_t;
66 typedef	uint32_t	size32_t;
67 typedef	int32_t		ssize32_t;
68 typedef	int32_t		time32_t;
69 typedef	int32_t		clock32_t;
70 
71 struct timeval32 {
72 	time32_t	tv_sec;		/* seconds */
73 	int32_t		tv_usec;	/* and microseconds */
74 };
75 
76 typedef struct timespec32 {
77 	time32_t	tv_sec;		/* seconds */
78 	int32_t		tv_nsec;	/* and nanoseconds */
79 } timespec32_t;
80 
81 typedef struct timespec32 timestruc32_t;
82 
83 typedef	struct itimerspec32 {
84 	struct timespec32 it_interval;
85 	struct timespec32 it_value;
86 } itimerspec32_t;
87 
88 #ifdef	__cplusplus
89 }
90 #endif
91 
92 #endif	/* _SYS_TYPES32_H */
93