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 2002 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ 26 27 #ifndef _SYS_BOOTSTAT_H 28 #define _SYS_BOOTSTAT_H 29 30 #pragma ident "%Z%%M% %I% %E% SMI" 31 32 #include <sys/stat.h> 33 34 #ifdef __cplusplus 35 extern "C" { 36 #endif 37 38 /* 39 * 32/64-bit neutral stat and time structure to allow booters to be shared 40 * among ILP32 and LP64 kernels. 41 */ 42 typedef struct boottime { 43 int64_t tv_sec; 44 int64_t tv_nsec; 45 } boottime_t; 46 47 /* 48 * Current booters only support mode and size, with the exception of 49 * nfs booter also uses ino. 50 */ 51 struct bootstat { 52 uint64_t st_dev; 53 uint64_t st_ino; 54 uint32_t st_mode; 55 uint32_t st_nlink; 56 int32_t st_uid; 57 int32_t st_gid; 58 uint64_t st_rdev; 59 uint64_t st_size; 60 boottime_t st_atim; 61 boottime_t st_mtim; 62 boottime_t st_ctim; 63 int32_t st_blksize; 64 int64_t st_blocks; 65 char st_fstype[_ST_FSTYPSZ]; 66 }; 67 68 #ifdef __cplusplus 69 } 70 #endif 71 72 #endif /* _SYS_BOOTSTAT_H */ 73