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: stable/10/sys/compat/svr4/svr4_stat.h 139743 2005-01-05 22:34:37Z imp $
29  */
30 
31 #ifndef	_SVR4_STAT_H_
32 #define	_SVR4_STAT_H_
33 
34 #include <compat/svr4/svr4_types.h>
35 #include <sys/stat.h>
36 
37 struct svr4_stat {
38 	svr4_o_dev_t	st_dev;
39 	svr4_o_ino_t	st_ino;
40 	svr4_o_mode_t	st_mode;
41 	svr4_o_nlink_t	st_nlink;
42 	svr4_o_uid_t	st_uid;
43 	svr4_o_gid_t	st_gid;
44 	svr4_o_dev_t	st_rdev;
45 	svr4_off_t	st_size;
46 	svr4_time_t	st_atim;
47 	svr4_time_t	st_mtim;
48 	svr4_time_t	st_ctim;
49 };
50 
51 struct svr4_xstat {
52 	svr4_dev_t		st_dev;
53 	long			st_pad1[3];
54 	svr4_ino_t		st_ino;
55 	svr4_mode_t		st_mode;
56 	svr4_nlink_t		st_nlink;
57 	svr4_uid_t		st_uid;
58 	svr4_gid_t		st_gid;
59 	svr4_dev_t		st_rdev;
60 	long			st_pad2[2];
61 	svr4_off_t		st_size;
62 	long			st_pad3;
63 	svr4_timestruc_t	st_atim;
64 	svr4_timestruc_t	st_mtim;
65 	svr4_timestruc_t	st_ctim;
66 	long			st_blksize;
67 	svr4_blkcnt_t		st_blocks;
68 	char			st_fstype[16];
69 	long			st_pad4[8];
70 };
71 
72 struct svr4_stat64 {
73 	svr4_dev_t		st_dev;
74 	long			st_pad1[3];
75 	svr4_ino64_t		st_ino;
76 	svr4_mode_t		st_mode;
77 	svr4_nlink_t		st_nlink;
78 	svr4_uid_t		st_uid;
79 	svr4_gid_t		st_gid;
80 	svr4_dev_t		st_rdev;
81 	long			st_pad2[2];
82 	svr4_off64_t		st_size;
83 	svr4_timestruc_t	st_atim;
84 	svr4_timestruc_t	st_mtim;
85 	svr4_timestruc_t	st_ctim;
86 	long			st_blksize;
87 	svr4_blkcnt64_t		st_blocks;
88 	char			st_fstype[16];
89 	long			st_pad4[8];
90 };
91 
92 #define	SVR4_PC_LINK_MAX		1
93 #define	SVR4_PC_MAX_CANON		2
94 #define	SVR4_PC_MAX_INPUT		3
95 #define	SVR4_PC_NAME_MAX		4
96 #define	SVR4_PC_PATH_MAX		5
97 #define	SVR4_PC_PIPE_BUF		6
98 #define	SVR4_PC_NO_TRUNC		7
99 #define	SVR4_PC_VDISABLE		8
100 #define	SVR4_PC_CHOWN_RESTRICTED	9
101 #define	SVR4_PC_ASYNC_IO		10
102 #define	SVR4_PC_PRIO_IO			11
103 #define	SVR4_PC_SYNC_IO			12
104 
105 #endif /* !_SVR4_STAT_H_ */
106