equal
deleted
inserted
replaced
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
32 * SUCH DAMAGE. |
32 * SUCH DAMAGE. |
33 * © Portions copyright (c) 2007 Symbian Software Ltd. All rights reserved. |
33 * © * Portions Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. |
34 * @(#)stat.h 8.12 (Berkeley) 6/16/95 |
34 * @(#)stat.h 8.12 (Berkeley) 6/16/95 |
35 * $FreeBSD: src/sys/sys/stat.h,v 1.41 2005/03/22 01:19:18 das Exp $ |
35 * $FreeBSD: src/sys/sys/stat.h,v 1.41 2005/03/22 01:19:18 das Exp $ |
36 */ |
36 */ |
37 |
37 |
38 #ifndef _SYS_STAT_H_ |
38 #ifndef _SYS_STAT_H_ |
46 #define _BLKSIZE_T_DECLARED |
46 #define _BLKSIZE_T_DECLARED |
47 #endif |
47 #endif |
48 |
48 |
49 #ifndef _BLKCNT_T_DECLARED |
49 #ifndef _BLKCNT_T_DECLARED |
50 typedef __blkcnt_t blkcnt_t; |
50 typedef __blkcnt_t blkcnt_t; |
|
51 |
|
52 #if defined(SYMBIAN_OE_LARGE_FILE_SUPPORT) && !defined(SYMBIAN_OE_NO_LFS) |
|
53 typedef __blkcnt_t blkcnt64_t; |
|
54 #endif /* SYMBIAN_OE_LARGE_FILE_SUPPORT && !SYMBIAN_OE_NO_LFS */ |
|
55 |
51 #define _BLKCNT_T_DECLARED |
56 #define _BLKCNT_T_DECLARED |
52 #endif |
57 #endif |
53 |
58 |
54 #ifndef _DEV_T_DECLARED |
59 #ifndef _DEV_T_DECLARED |
55 typedef __dev_t dev_t; |
60 typedef __dev_t dev_t; |
66 #define _GID_T_DECLARED |
71 #define _GID_T_DECLARED |
67 #endif |
72 #endif |
68 |
73 |
69 #ifndef _INO_T_DECLARED |
74 #ifndef _INO_T_DECLARED |
70 typedef __ino_t ino_t; |
75 typedef __ino_t ino_t; |
|
76 |
|
77 #if defined(SYMBIAN_OE_LARGE_FILE_SUPPORT) && !defined(SYMBIAN_OE_NO_LFS) |
|
78 typedef __ino64_t ino64_t; |
|
79 #endif /* SYMBIAN_OE_LARGE_FILE_SUPPORT && !SYMBIAN_OE_NO_LFS */ |
|
80 |
71 #define _INO_T_DECLARED |
81 #define _INO_T_DECLARED |
72 #endif |
82 #endif |
73 |
83 |
74 #ifndef _MODE_T_DECLARED |
84 #ifndef _MODE_T_DECLARED |
75 typedef __mode_t mode_t; |
85 typedef __mode_t mode_t; |
171 long st_birthtimensec; /* nsec of file creation */ |
181 long st_birthtimensec; /* nsec of file creation */ |
172 unsigned int :(8 / 2) * (16 - (int)sizeof(struct __timespec)); |
182 unsigned int :(8 / 2) * (16 - (int)sizeof(struct __timespec)); |
173 unsigned int :(8 / 2) * (16 - (int)sizeof(struct __timespec)); |
183 unsigned int :(8 / 2) * (16 - (int)sizeof(struct __timespec)); |
174 #endif |
184 #endif |
175 }; |
185 }; |
|
186 |
|
187 #if defined(SYMBIAN_OE_LARGE_FILE_SUPPORT) && !defined(SYMBIAN_OE_NO_LFS) |
|
188 #define stat64 stat |
|
189 #endif /* SYMBIAN_OE_LARGE_FILE_SUPPORT && !SYMBIAN_OE_NO_LFS */ |
176 |
190 |
177 #if __BSD_VISIBLE |
191 #if __BSD_VISIBLE |
178 struct nstat { |
192 struct nstat { |
179 __dev_t st_dev; /* inode's device */ |
193 __dev_t st_dev; /* inode's device */ |
180 ino_t st_ino; /* inode's number */ |
194 ino_t st_ino; /* inode's number */ |
322 IMPORT_C int __lxstat (int /* version*/, const char *file, struct stat *buf); |
336 IMPORT_C int __lxstat (int /* version*/, const char *file, struct stat *buf); |
323 IMPORT_C int mkdir(const char *, mode_t); |
337 IMPORT_C int mkdir(const char *, mode_t); |
324 IMPORT_C int mkfifo(const char *, mode_t); |
338 IMPORT_C int mkfifo(const char *, mode_t); |
325 IMPORT_C int stat(const char * __restrict, struct stat * __restrict); |
339 IMPORT_C int stat(const char * __restrict, struct stat * __restrict); |
326 IMPORT_C mode_t umask(mode_t); |
340 IMPORT_C mode_t umask(mode_t); |
|
341 |
|
342 #if defined(SYMBIAN_OE_LARGE_FILE_SUPPORT) && !defined(SYMBIAN_OE_NO_LFS) |
|
343 |
|
344 #define fstat64 fstat |
|
345 #define stat64 stat |
|
346 #define __lxstat64 __lxstat |
|
347 #define __xstat64 __xstat |
|
348 |
|
349 #if __POSIX_VISIBLE >= 200112 |
|
350 #define lstat64 lstat |
|
351 #endif /* __POSIX_VISIBLE >= 200112 */ |
|
352 |
|
353 #endif /* SYMBIAN_OE_LARGE_FILE_SUPPORT && !SYMBIAN_OE_NO_LFS */ |
|
354 |
327 __END_DECLS |
355 __END_DECLS |
328 #endif /* !_KERNEL */ |
356 #endif /* !_KERNEL */ |
329 |
357 |
330 #endif /* !_SYS_STAT_H_ */ |
358 #endif /* !_SYS_STAT_H_ */ |