Sync our ieee80211*.9 manual pages with the recent upgrade.
[dragonfly.git] / sys / emulation / 43bsd / stat.h
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.
10  *
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.
22  *
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.
34  *
35  * $DragonFly: src/sys/emulation/43bsd/stat.h,v 1.3 2005/08/02 13:03:54 joerg Exp $
36  */
37
38 #ifndef _EMULATION_43BSD_STAT_H_
39 #define _EMULATION_43BSD_STAT_H_
40
41 #include <sys/types.h>
42
43 struct ostat {
44         u_int16_t st_dev;               /* inode's device */
45         u_int32_t st_ino;               /* inode's number */
46         mode_t    st_mode;              /* inode protection mode */
47         u_int16_t st_nlink;             /* number of hard links */
48         u_int16_t st_uid;               /* user ID of the file's owner */
49         u_int16_t st_gid;               /* group ID of the file's group */
50         u_int16_t st_rdev;              /* device type */
51         int32_t   st_size;              /* file size, in bytes */
52         struct  timespec st_atimespec;  /* time of last access */
53         struct  timespec st_mtimespec;  /* time of last data modification */
54         struct  timespec st_ctimespec;  /* time of last file status change */
55         int32_t   st_blksize;           /* optimal blocksize for I/O */
56         int32_t   st_blocks;            /* blocks allocated for file */
57         u_int32_t st_flags;             /* user defined flags for file */
58         u_int32_t st_gen;               /* file generation number */
59 };
60
61 #endif /* !_EMULATION_43BSD_STAT_H_ */