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