1
+ /*
2
+ +----------------------------------------------------------------------+
3
+ | PHP Version 4 |
4
+ +----------------------------------------------------------------------+
5
+ | Copyright (c) 1997-2002 The PHP Group |
6
+ +----------------------------------------------------------------------+
7
+ | This source file is subject to version 2.02 of the PHP license, |
8
+ | that is bundled with this package in the file LICENSE, and is |
9
+ | available at through the world-wide-web at |
10
+ | http://www.php.net/license/2_02.txt. |
11
+ | If you did not receive a copy of the PHP license and are unable to |
12
+ | obtain it through the world-wide-web, please send a note to |
13
+ | license@php.net so we can mail you a copy immediately. |
14
+ +----------------------------------------------------------------------+
15
+ | Authors: Novell, Inc. |
16
+ +----------------------------------------------------------------------+
17
+ */
18
+
19
+
1
20
#ifndef __sys_stat_h__
2
21
#define __sys_stat_h__
3
- /*============================================================================
4
- = Novell Software Development Kit
5
- =
6
- = Copyright (C) 1999-2002 Novell, Inc. All Rights Reserved.
7
- =
8
- = This work is subject to U.S. and international copyright laws and treaties.
9
- = Use and redistribution of this work is subject to the license agreement
10
- = accompanying the software development kit (SDK) that contains this work.
11
- = However, no part of this work may be revised and/or modified without the
12
- = prior written consent of Novell, Inc. Any use or exploitation of this work
13
- = without authorization could subject the perpetrator to criminal and civil
14
- = liability.
15
- =
16
- = Source(s): ISO/IEC (POSIX) 9845:1996
17
- =
18
- = sys/stat.h
19
- ==============================================================================
20
- */
22
+
23
+
21
24
#include <time.h>
22
25
#include <stddef.h>
23
26
#include <sys/mode.h>
24
27
#include <sys/time.h>
25
28
26
29
#include <pshpack1.h>
27
30
28
- #ifdef CLIB_STAT_PATCH /* Venkat (7/2/02) */
31
+ #ifdef CLIB_STAT_PATCH
29
32
/***************** stat structure taken from CLib and modified ***************/
30
33
struct stat
31
34
{
32
- long st_dev ; /* volume number */ /* dev_t replaced by long : Venkat (19/3/02) */
33
- MACHINE_WORD st_ino ; /* directory entry number of the st_name */ /* ino_t replaced by MACHINE_WORD : Venkat (19/3/02) */
35
+ long st_dev ; /* volume number */ /* dev_t replaced by long */
36
+ MACHINE_WORD st_ino ; /* directory entry number of the st_name */ /* ino_t replaced by MACHINE_WORD */
34
37
unsigned short st_mode ; /* emulated file mode */
35
38
unsigned short st_pad1 ; /* reserved for alignment */
36
39
unsigned long st_nlink ; /* count of hard links (always 1) */
37
40
unsigned long st_uid ; /* object id of owner */
38
41
unsigned long st_gid ; /* group-id (always 0) */
39
- long st_rdev ; /* device type (always 0) */ /* dev_t replaced by long : Venkat (19/3/02) */
42
+ long st_rdev ; /* device type (always 0) */ /* dev_t replaced by long */
40
43
off_t st_size ; /* total file size--files only */
41
44
time_t st_atime ; /* last access date--files only */
42
45
time_t st_mtime ; /* last modify date and time */
@@ -84,7 +87,8 @@ struct stat_libc
84
87
uint64_t st_spare4 [44 ];
85
88
}; /* sizeof(struct dirent) == 0x200 (512.) */
86
89
87
- #else
90
+ #else /* CLIB_STAT_PATCH */
91
+
88
92
struct stat
89
93
{
90
94
uint32_t st_userspec ; /* untouched by stat() */
@@ -111,7 +115,9 @@ struct stat
111
115
timespec_t st_btime ; /* last archived date and time */
112
116
uint64_t st_spare4 [44 ];
113
117
}; /* sizeof(struct dirent) == 0x200 (512.) */
114
- #endif
118
+
119
+ #endif /* CLIB_STAT_PATCH */
120
+
115
121
116
122
#include <poppack.h>
117
123
@@ -135,4 +141,5 @@ mode_t umask ( mode_t cmask );
135
141
#define stat64 stat /* same structure and function do both */
136
142
#define fstat64 fstat /* same function does both */
137
143
138
- #endif
144
+
145
+ #endif /* __sys_stat_h__ */
0 commit comments