1 /* $NetBSD: svr4_32_stat.h,v 1.1 2001/02/06 16:37:59 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_32_STAT_H_
40 #define _SVR4_32_STAT_H_
41
42 #include <compat/svr4_32/svr4_32_types.h>
43 #include <sys/stat.h>
44 #include <compat/svr4/svr4_stat.h>
45
46 struct svr4_32_stat {
47 svr4_32_o_dev_t st_dev;
48 svr4_32_o_ino_t st_ino;
49 svr4_32_o_mode_t st_mode;
50 svr4_32_o_nlink_t st_nlink;
51 svr4_32_o_uid_t st_uid;
52 svr4_32_o_gid_t st_gid;
53 svr4_32_o_dev_t st_rdev;
54 svr4_32_off_t st_size;
55 svr4_32_time_t st_atim;
56 svr4_32_time_t st_mtim;
57 svr4_32_time_t st_ctim;
58 };
59
60 struct svr4_32_xstat {
61 svr4_32_dev_t st_dev;
62 netbsd32_long st_pad1[3];
63 svr4_32_ino_t st_ino;
64 svr4_32_mode_t st_mode;
65 svr4_32_nlink_t st_nlink;
66 svr4_32_uid_t st_uid;
67 svr4_32_gid_t st_gid;
68 svr4_32_dev_t st_rdev;
69 netbsd32_long st_pad2[2];
70 svr4_32_off_t st_size;
71 netbsd32_long st_pad3;
72 svr4_32_timestruc_t st_atim;
73 svr4_32_timestruc_t st_mtim;
74 svr4_32_timestruc_t st_ctim;
75 netbsd32_long st_blksize;
76 svr4_32_blkcnt_t st_blocks;
77 char st_fstype[16];
78 netbsd32_long st_pad4[8];
79 };
80 typedef netbsd32_caddr_t svr4_32_xstatp;
81
82 struct svr4_32_stat64 {
83 svr4_32_dev_t st_dev;
84 netbsd32_long st_pad1[3];
85 svr4_32_ino64_t st_ino;
86 svr4_32_mode_t st_mode;
87 svr4_32_nlink_t st_nlink;
88 svr4_32_uid_t st_uid;
89 svr4_32_gid_t st_gid;
90 svr4_32_dev_t st_rdev;
91 netbsd32_long st_pad2[2];
92 svr4_32_off64_t st_size;
93 svr4_32_timestruc_t st_atim;
94 svr4_32_timestruc_t st_mtim;
95 svr4_32_timestruc_t st_ctim;
96 netbsd32_long st_blksize;
97 svr4_32_blkcnt64_t st_blocks;
98 char st_fstype[16];
99 netbsd32_long st_pad4[8];
100 };
101 typedef netbsd32_caddr_t svr4_32_xstat64p;
102
103 #endif /* !_SVR4_32_STAT_H_ */
Cache object: 05dcc0d99c7a5565ad0ab9637895d21c
|