17c478bd9Sstevel@tonic-gate /* 27c478bd9Sstevel@tonic-gate * CDDL HEADER START 37c478bd9Sstevel@tonic-gate * 47c478bd9Sstevel@tonic-gate * The contents of this file are subject to the terms of the 5f48205beScasper * Common Development and Distribution License (the "License"). 6f48205beScasper * You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate * 87c478bd9Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate * See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate * and limitations under the License. 127c478bd9Sstevel@tonic-gate * 137c478bd9Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate * 197c478bd9Sstevel@tonic-gate * CDDL HEADER END 207c478bd9Sstevel@tonic-gate */ 217c478bd9Sstevel@tonic-gate /* 22f48205beScasper * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 23f48205beScasper * Use is subject to license terms. 24*2bfbf3e3SHans Rosenfeld * Copyright 2015 Nexenta Systems, Inc. 257c478bd9Sstevel@tonic-gate */ 267c478bd9Sstevel@tonic-gate 277c478bd9Sstevel@tonic-gate #ifndef _SYS_TYPES32_H 287c478bd9Sstevel@tonic-gate #define _SYS_TYPES32_H 297c478bd9Sstevel@tonic-gate 307c478bd9Sstevel@tonic-gate #include <sys/int_types.h> 317c478bd9Sstevel@tonic-gate 327c478bd9Sstevel@tonic-gate #ifdef __cplusplus 337c478bd9Sstevel@tonic-gate extern "C" { 347c478bd9Sstevel@tonic-gate #endif 357c478bd9Sstevel@tonic-gate 367c478bd9Sstevel@tonic-gate /* 377c478bd9Sstevel@tonic-gate * Interoperability types for programs. Used for: 387c478bd9Sstevel@tonic-gate * 397c478bd9Sstevel@tonic-gate * Crossing between 32-bit and 64-bit domains. 407c478bd9Sstevel@tonic-gate * 417c478bd9Sstevel@tonic-gate * On disk data formats such as filesystem meta data 427c478bd9Sstevel@tonic-gate * and disk label. 437c478bd9Sstevel@tonic-gate * 447c478bd9Sstevel@tonic-gate * Note: Applications should never include this 457c478bd9Sstevel@tonic-gate * header file. 467c478bd9Sstevel@tonic-gate */ 477c478bd9Sstevel@tonic-gate typedef uint32_t caddr32_t; 487c478bd9Sstevel@tonic-gate typedef int32_t daddr32_t; 497c478bd9Sstevel@tonic-gate typedef int32_t off32_t; 507c478bd9Sstevel@tonic-gate typedef uint32_t ino32_t; 517c478bd9Sstevel@tonic-gate typedef int32_t blkcnt32_t; 527c478bd9Sstevel@tonic-gate typedef uint32_t fsblkcnt32_t; 537c478bd9Sstevel@tonic-gate typedef uint32_t fsfilcnt32_t; 547c478bd9Sstevel@tonic-gate typedef int32_t id32_t; 557c478bd9Sstevel@tonic-gate typedef uint32_t major32_t; 567c478bd9Sstevel@tonic-gate typedef uint32_t minor32_t; 577c478bd9Sstevel@tonic-gate typedef int32_t key32_t; 587c478bd9Sstevel@tonic-gate typedef uint32_t mode32_t; 59f48205beScasper typedef uint32_t uid32_t; 60f48205beScasper typedef uint32_t gid32_t; 617c478bd9Sstevel@tonic-gate typedef uint32_t nlink32_t; 627c478bd9Sstevel@tonic-gate typedef uint32_t dev32_t; 637c478bd9Sstevel@tonic-gate typedef int32_t pid32_t; 647c478bd9Sstevel@tonic-gate typedef uint32_t size32_t; 657c478bd9Sstevel@tonic-gate typedef int32_t ssize32_t; 667c478bd9Sstevel@tonic-gate typedef int32_t time32_t; 677c478bd9Sstevel@tonic-gate typedef int32_t clock32_t; 68*2bfbf3e3SHans Rosenfeld typedef uint32_t uintptr32_t; 69*2bfbf3e3SHans Rosenfeld typedef int32_t intptr32_t; 707c478bd9Sstevel@tonic-gate 717c478bd9Sstevel@tonic-gate struct timeval32 { 727c478bd9Sstevel@tonic-gate time32_t tv_sec; /* seconds */ 737c478bd9Sstevel@tonic-gate int32_t tv_usec; /* and microseconds */ 747c478bd9Sstevel@tonic-gate }; 757c478bd9Sstevel@tonic-gate 767c478bd9Sstevel@tonic-gate typedef struct timespec32 { 777c478bd9Sstevel@tonic-gate time32_t tv_sec; /* seconds */ 787c478bd9Sstevel@tonic-gate int32_t tv_nsec; /* and nanoseconds */ 797c478bd9Sstevel@tonic-gate } timespec32_t; 807c478bd9Sstevel@tonic-gate 817c478bd9Sstevel@tonic-gate typedef struct timespec32 timestruc32_t; 827c478bd9Sstevel@tonic-gate 837c478bd9Sstevel@tonic-gate typedef struct itimerspec32 { 847c478bd9Sstevel@tonic-gate struct timespec32 it_interval; 857c478bd9Sstevel@tonic-gate struct timespec32 it_value; 867c478bd9Sstevel@tonic-gate } itimerspec32_t; 877c478bd9Sstevel@tonic-gate 887c478bd9Sstevel@tonic-gate #ifdef __cplusplus 897c478bd9Sstevel@tonic-gate } 907c478bd9Sstevel@tonic-gate #endif 917c478bd9Sstevel@tonic-gate 927c478bd9Sstevel@tonic-gate #endif /* _SYS_TYPES32_H */ 93