1 /* $NetBSD: svr4_stat.h,v 1.9 2002/05/03 01:34:48 eeh Exp $ */
2
3 /*-
4 * Copyright (c) 1994 The NetBSD Foundation, Inc.
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Christos Zoulas.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
18 * 3. All advertising materials mentioning features or use of this software
19 * must display the following acknowledgement:
20 * This product includes software developed by the NetBSD
21 * Foundation, Inc. and its contributors.
22 * 4. Neither the name of The NetBSD Foundation nor the names of its
23 * contributors may be used to endorse or promote products derived
24 * from this software without specific prior written permission.
25 *
26 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
27 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
28 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
29 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
30 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 * POSSIBILITY OF SUCH DAMAGE.
37 */
38
39 #ifndef _SVR4_STAT_H_
40 #define _SVR4_STAT_H_
41
42 #include <compat/svr4/svr4_types.h>
43 #include <sys/stat.h>
44
45 struct svr4_stat {
46 svr4_o_dev_t st_dev;
47 svr4_o_ino_t st_ino;
48 svr4_o_mode_t st_mode;
49 svr4_o_nlink_t st_nlink;
50 svr4_o_uid_t st_uid;
51 svr4_o_gid_t st_gid;
52 svr4_o_dev_t st_rdev;
53 svr4_off32_t st_size;
54 svr4_time32_t st_atim;
55 svr4_time32_t st_mtim;
56 svr4_time32_t st_ctim;
57 };
58
59 struct svr4_xstat {
60 svr4_dev_t st_dev;
61 #ifndef _LP64
62 long st_pad1[3];
63 #endif
64 svr4_ino_t st_ino;
65 svr4_mode_t st_mode;
66 svr4_nlink_t st_nlink;
67 svr4_uid_t st_uid;
68 svr4_gid_t st_gid;
69 svr4_dev_t st_rdev;
70 #ifndef _LP64
71 long st_pad2[2];
72 #endif
73 svr4_off_t st_size;
74 #ifndef _LP64
75 long st_pad3;
76 #endif
77 svr4_timestruc_t st_atim;
78 svr4_timestruc_t st_mtim;
79 svr4_timestruc_t st_ctim;
80
81 int st_blksize;
82 svr4_blkcnt_t st_blocks;
83 char st_fstype[16];
84 #ifndef _LP64
85 long st_pad4[8];
86 #endif
87 };
88
89 struct svr4_stat64 {
90 svr4_dev_t st_dev;
91 #ifndef _LP64
92 long st_pad1[3];
93 #endif
94 svr4_ino64_t st_ino;
95 svr4_mode_t st_mode;
96 svr4_nlink_t st_nlink;
97 svr4_uid_t st_uid;
98 svr4_gid_t st_gid;
99 svr4_dev_t st_rdev;
100 #ifndef _LP64
101 long st_pad2[2];
102 #endif
103 svr4_off64_t st_size;
104 svr4_timestruc_t st_atim;
105 svr4_timestruc_t st_mtim;
106 svr4_timestruc_t st_ctim;
107 int st_blksize;
108 svr4_blkcnt64_t st_blocks;
109 char st_fstype[16];
110 #ifndef _LP64
111 long st_pad4[8];
112 #endif
113 };
114
115 #define SVR4_PC_LINK_MAX 1
116 #define SVR4_PC_MAX_CANON 2
117 #define SVR4_PC_MAX_INPUT 3
118 #define SVR4_PC_NAME_MAX 4
119 #define SVR4_PC_PATH_MAX 5
120 #define SVR4_PC_PIPE_BUF 6
121 #define SVR4_PC_NO_TRUNC 7
122 #define SVR4_PC_VDISABLE 8
123 #define SVR4_PC_CHOWN_RESTRICTED 9
124 #define SVR4_PC_ASYNC_IO 10
125 #define SVR4_PC_PRIO_IO 11
126 #define SVR4_PC_SYNC_IO 12
127 #define SVR4_PC_FILESIZEBITS 67
128
129 #endif /* !_SVR4_STAT_H_ */
Cache object: fe3ee69fd9a7eaaca555951c19253784
|