kernel - disklabel64 - Increase partition start alignment to 1 megabyte.
[dragonfly.git] / sys / emulation / dragonfly12 / stat.h
blobff87d5dd1b9ca168a11c386fca7f48bd94957fd9
1 /*-
2 * Copyright (c) 2005 The DragonFly Project. All rights reserved.
3 * Copyright (c) 1982, 1986, 1989, 1993
4 * The Regents of the University of California. All rights reserved.
5 * (c) UNIX System Laboratories, Inc.
6 * All or some portions of this file are derived from material licensed
7 * to the University of California by American Telephone and Telegraph
8 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
9 * the permission of UNIX System Laboratories, Inc.
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
13 * are met:
14 * 1. Redistributions of source code must retain the above copyright
15 * notice, this list of conditions and the following disclaimer.
16 * 2. Redistributions in binary form must reproduce the above copyright
17 * notice, this list of conditions and the following disclaimer in the
18 * documentation and/or other materials provided with the distribution.
19 * 3. Neither the name of the University nor the names of its contributors
20 * may be used to endorse or promote products derived from this software
21 * without specific prior written permission.
23 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * SUCH DAMAGE.
35 * $DragonFly: src/sys/emulation/dragonfly12/stat.h,v 1.1 2005/08/02 13:03:54 joerg Exp $
38 #ifndef _EMULATION_DRAGONFLY12_STAT_H_
39 #define _EMULATION_DRAGONFLY12_STAT_H_
41 #include <sys/types.h>
43 struct dfbsd12_stat {
44 udev_t st_dev; /* inode's device */
45 uint32_t st_ino; /* inode's number */
46 mode_t st_mode; /* inode protection mode */
47 uint16_t st_nlink; /* number of hard links */
48 uid_t st_uid; /* user ID of the file's owner */
49 gid_t st_gid; /* group ID of the file's group */
50 udev_t st_rdev; /* device type */
51 struct timespec st_atimespec; /* time of last access */
52 struct timespec st_mtimespec; /* time of last data modification */
53 struct timespec st_ctimespec; /* time of last file status change */
54 off_t st_size; /* file size, in bytes */
55 int64_t st_blocks; /* blocks allocated for file */
56 u_int32_t st_blksize; /* optimal blocksize for I/O */
57 u_int32_t st_flags; /* user defined flags for file */
58 u_int32_t st_gen; /* file generation number */
59 int32_t st_lspare;
60 int64_t st_qspare[2];
63 #endif /* !_EMULATION_DRAGONFLY12_STAT_H_ */