Per-CPU VFS Namecache Effectiveness Statistics:
[dragonfly.git] / sys / emulation / svr4 / svr4_stat.h
1 /*
2  * Copyright (c) 1998 Mark Newton
3  * Copyright (c) 1994 Christos Zoulas
4  * All rights reserved.
5  *
6  * Redistribution and use in source and binary forms, with or without
7  * modification, are permitted provided that the following conditions
8  * are met:
9  * 1. Redistributions of source code must retain the above copyright
10  *    notice, this list of conditions and the following disclaimer.
11  * 2. Redistributions in binary form must reproduce the above copyright
12  *    notice, this list of conditions and the following disclaimer in the
13  *    documentation and/or other materials provided with the distribution.
14  * 3. The name of the author may not be used to endorse or promote products
15  *    derived from this software without specific prior written permission
16  *
17  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27  * 
28  * $FreeBSD: src/sys/svr4/svr4_stat.h,v 1.3 1999/08/28 00:51:23 peter Exp $
29  * $DragonFly: src/sys/emulation/svr4/Attic/svr4_stat.h,v 1.3 2003/08/07 21:17:19 dillon Exp $
30  */
31
32 #ifndef _SVR4_STAT_H_
33 #define _SVR4_STAT_H_
34
35 #include "svr4_types.h"
36 #include <sys/stat.h>
37
38 struct svr4_stat {
39         svr4_o_dev_t    st_dev;
40         svr4_o_ino_t    st_ino;
41         svr4_o_mode_t   st_mode;
42         svr4_o_nlink_t  st_nlink;
43         svr4_o_uid_t    st_uid;
44         svr4_o_gid_t    st_gid;
45         svr4_o_dev_t    st_rdev;
46         svr4_off_t      st_size;
47         svr4_time_t     st_atim;
48         svr4_time_t     st_mtim;
49         svr4_time_t     st_ctim;
50 };
51
52 struct svr4_xstat {
53         svr4_dev_t              st_dev;
54         long                    st_pad1[3];
55         svr4_ino_t              st_ino;
56         svr4_mode_t             st_mode;
57         svr4_nlink_t            st_nlink;
58         svr4_uid_t              st_uid;
59         svr4_gid_t              st_gid;
60         svr4_dev_t              st_rdev;
61         long                    st_pad2[2];
62         svr4_off_t              st_size;
63         long                    st_pad3;
64         svr4_timestruc_t        st_atim;
65         svr4_timestruc_t        st_mtim;
66         svr4_timestruc_t        st_ctim;
67         long                    st_blksize;
68         svr4_blkcnt_t           st_blocks;
69         char                    st_fstype[16];
70         long                    st_pad4[8];
71 };
72
73 struct svr4_stat64 {
74         svr4_dev_t              st_dev;
75         long                    st_pad1[3];
76         svr4_ino64_t            st_ino;
77         svr4_mode_t             st_mode;
78         svr4_nlink_t            st_nlink;
79         svr4_uid_t              st_uid;
80         svr4_gid_t              st_gid;
81         svr4_dev_t              st_rdev;
82         long                    st_pad2[2];
83         svr4_off64_t            st_size;
84         svr4_timestruc_t        st_atim;
85         svr4_timestruc_t        st_mtim;
86         svr4_timestruc_t        st_ctim;
87         long                    st_blksize;
88         svr4_blkcnt64_t         st_blocks;
89         char                    st_fstype[16];
90         long                    st_pad4[8];
91 };
92
93 #define SVR4_PC_LINK_MAX                1
94 #define SVR4_PC_MAX_CANON               2
95 #define SVR4_PC_MAX_INPUT               3
96 #define SVR4_PC_NAME_MAX                4
97 #define SVR4_PC_PATH_MAX                5
98 #define SVR4_PC_PIPE_BUF                6
99 #define SVR4_PC_NO_TRUNC                7
100 #define SVR4_PC_VDISABLE                8
101 #define SVR4_PC_CHOWN_RESTRICTED        9
102 #define SVR4_PC_ASYNC_IO                10
103 #define SVR4_PC_PRIO_IO                 11
104 #define SVR4_PC_SYNC_IO                 12
105
106 #endif /* !_SVR4_STAT_H_ */