1 // SPDX-License-Identifier: CDDL-1.0 2 /* 3 * CDDL HEADER START 4 * 5 * The contents of this file are subject to the terms of the 6 * Common Development and Distribution License (the "License"). 7 * You may not use this file except in compliance with the License. 8 * 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or https://opensource.org/licenses/CDDL-1.0. 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 2007 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ 26 27 #ifndef _SYS_TYPES32_H 28 #define _SYS_TYPES32_H 29 30 #include <sys/inttypes.h> 31 32 #ifdef __cplusplus 33 extern "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 */ 47 typedef uint32_t caddr32_t; 48 typedef int32_t daddr32_t; 49 typedef int32_t off32_t; 50 typedef uint32_t ino32_t; 51 typedef int32_t blkcnt32_t; 52 typedef uint32_t fsblkcnt32_t; 53 typedef uint32_t fsfilcnt32_t; 54 typedef int32_t id32_t; 55 typedef uint32_t major32_t; 56 typedef uint32_t minor32_t; 57 typedef int32_t key32_t; 58 typedef uint32_t mode32_t; 59 typedef uint32_t uid32_t; 60 typedef uint32_t gid32_t; 61 typedef uint32_t nlink32_t; 62 typedef uint32_t dev32_t; 63 typedef int32_t pid32_t; 64 typedef uint32_t size32_t; 65 typedef int32_t ssize32_t; 66 typedef int32_t time32_t; 67 typedef int32_t clock32_t; 68 69 typedef struct timespec32 { 70 time32_t tv_sec; /* seconds */ 71 int32_t tv_nsec; /* and nanoseconds */ 72 } timespec32_t; 73 74 typedef struct timespec32 timestruc32_t; 75 76 typedef struct itimerspec32 { 77 struct timespec32 it_interval; 78 struct timespec32 it_value; 79 } itimerspec32_t; 80 81 #ifdef __cplusplus 82 } 83 #endif 84 85 #endif /* _SYS_TYPES32_H */ 86