1130365Smlaier/*-
2130365Smlaier * Copyright (c) 1998 Mark Newton
3130365Smlaier * Copyright (c) 1994 Christos Zoulas
4130365Smlaier * All rights reserved.
5130365Smlaier *
6130365Smlaier * Redistribution and use in source and binary forms, with or without
7130365Smlaier * modification, are permitted provided that the following conditions
8130365Smlaier * are met:
9130365Smlaier * 1. Redistributions of source code must retain the above copyright
10130365Smlaier *    notice, this list of conditions and the following disclaimer.
11130365Smlaier * 2. Redistributions in binary form must reproduce the above copyright
12130365Smlaier *    notice, this list of conditions and the following disclaimer in the
13130365Smlaier *    documentation and/or other materials provided with the distribution.
14130365Smlaier * 3. The name of the author may not be used to endorse or promote products
15130365Smlaier *    derived from this software without specific prior written permission
16130365Smlaier *
17130365Smlaier * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18130365Smlaier * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19130365Smlaier * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20130365Smlaier * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21130365Smlaier * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22130365Smlaier * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23130365Smlaier * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24130365Smlaier * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25130365Smlaier * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26130365Smlaier * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27130365Smlaier *
28130365Smlaier * $FreeBSD: releng/10.3/sys/compat/svr4/svr4_stat.h 139743 2005-01-05 22:34:37Z imp $
29130365Smlaier */
30130365Smlaier
31130365Smlaier#ifndef	_SVR4_STAT_H_
32130365Smlaier#define	_SVR4_STAT_H_
33130365Smlaier
34130365Smlaier#include <compat/svr4/svr4_types.h>
35130365Smlaier#include <sys/stat.h>
36130365Smlaier
37130365Smlaierstruct svr4_stat {
38130365Smlaier	svr4_o_dev_t	st_dev;
39130365Smlaier	svr4_o_ino_t	st_ino;
40130365Smlaier	svr4_o_mode_t	st_mode;
41130365Smlaier	svr4_o_nlink_t	st_nlink;
42130365Smlaier	svr4_o_uid_t	st_uid;
43130365Smlaier	svr4_o_gid_t	st_gid;
44130365Smlaier	svr4_o_dev_t	st_rdev;
45130365Smlaier	svr4_off_t	st_size;
46130365Smlaier	svr4_time_t	st_atim;
47130365Smlaier	svr4_time_t	st_mtim;
48130365Smlaier	svr4_time_t	st_ctim;
49130365Smlaier};
50130365Smlaier
51130365Smlaierstruct svr4_xstat {
52130365Smlaier	svr4_dev_t		st_dev;
53130365Smlaier	long			st_pad1[3];
54130365Smlaier	svr4_ino_t		st_ino;
55130365Smlaier	svr4_mode_t		st_mode;
56130365Smlaier	svr4_nlink_t		st_nlink;
57130365Smlaier	svr4_uid_t		st_uid;
58130365Smlaier	svr4_gid_t		st_gid;
59130365Smlaier	svr4_dev_t		st_rdev;
60130365Smlaier	long			st_pad2[2];
61130365Smlaier	svr4_off_t		st_size;
62130365Smlaier	long			st_pad3;
63130365Smlaier	svr4_timestruc_t	st_atim;
64130365Smlaier	svr4_timestruc_t	st_mtim;
65130365Smlaier	svr4_timestruc_t	st_ctim;
66130365Smlaier	long			st_blksize;
67130365Smlaier	svr4_blkcnt_t		st_blocks;
68130365Smlaier	char			st_fstype[16];
69130365Smlaier	long			st_pad4[8];
70130365Smlaier};
71130365Smlaier
72130365Smlaierstruct svr4_stat64 {
73130365Smlaier	svr4_dev_t		st_dev;
74130365Smlaier	long			st_pad1[3];
75130365Smlaier	svr4_ino64_t		st_ino;
76130365Smlaier	svr4_mode_t		st_mode;
77130365Smlaier	svr4_nlink_t		st_nlink;
78130365Smlaier	svr4_uid_t		st_uid;
79130365Smlaier	svr4_gid_t		st_gid;
80130365Smlaier	svr4_dev_t		st_rdev;
81130365Smlaier	long			st_pad2[2];
82130365Smlaier	svr4_off64_t		st_size;
83130365Smlaier	svr4_timestruc_t	st_atim;
84130365Smlaier	svr4_timestruc_t	st_mtim;
85130365Smlaier	svr4_timestruc_t	st_ctim;
86130365Smlaier	long			st_blksize;
87130365Smlaier	svr4_blkcnt64_t		st_blocks;
88130365Smlaier	char			st_fstype[16];
89130365Smlaier	long			st_pad4[8];
90130365Smlaier};
91130365Smlaier
92130365Smlaier#define	SVR4_PC_LINK_MAX		1
93130365Smlaier#define	SVR4_PC_MAX_CANON		2
94130365Smlaier#define	SVR4_PC_MAX_INPUT		3
95130365Smlaier#define	SVR4_PC_NAME_MAX		4
96130365Smlaier#define	SVR4_PC_PATH_MAX		5
97130365Smlaier#define	SVR4_PC_PIPE_BUF		6
98130365Smlaier#define	SVR4_PC_NO_TRUNC		7
99130365Smlaier#define	SVR4_PC_VDISABLE		8
100130365Smlaier#define	SVR4_PC_CHOWN_RESTRICTED	9
101130365Smlaier#define	SVR4_PC_ASYNC_IO		10
102130365Smlaier#define	SVR4_PC_PRIO_IO			11
103130365Smlaier#define	SVR4_PC_SYNC_IO			12
104130365Smlaier
105130365Smlaier#endif /* !_SVR4_STAT_H_ */
106130365Smlaier