Skip to content

Commit 5433a35

Browse files
author
Anantha Kesari H Y
committed
Copyright change and adding some comments.
1 parent dc1d021 commit 5433a35

File tree

1 file changed

+32
-25
lines changed

1 file changed

+32
-25
lines changed

netware/sys/stat.h

Lines changed: 32 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,45 @@
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+
120
#ifndef __sys_stat_h__
221
#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+
2124
#include <time.h>
2225
#include <stddef.h>
2326
#include <sys/mode.h>
2427
#include <sys/time.h>
2528

2629
#include <pshpack1.h>
2730

28-
#ifdef CLIB_STAT_PATCH /* Venkat (7/2/02) */
31+
#ifdef CLIB_STAT_PATCH
2932
/***************** stat structure taken from CLib and modified ***************/
3033
struct stat
3134
{
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 */
3437
unsigned short st_mode; /* emulated file mode */
3538
unsigned short st_pad1; /* reserved for alignment */
3639
unsigned long st_nlink; /* count of hard links (always 1) */
3740
unsigned long st_uid; /* object id of owner */
3841
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 */
4043
off_t st_size; /* total file size--files only */
4144
time_t st_atime; /* last access date--files only */
4245
time_t st_mtime; /* last modify date and time */
@@ -84,7 +87,8 @@ struct stat_libc
8487
uint64_t st_spare4[44];
8588
}; /* sizeof(struct dirent) == 0x200 (512.) */
8689

87-
#else
90+
#else /* CLIB_STAT_PATCH */
91+
8892
struct stat
8993
{
9094
uint32_t st_userspec; /* untouched by stat() */
@@ -111,7 +115,9 @@ struct stat
111115
timespec_t st_btime; /* last archived date and time */
112116
uint64_t st_spare4[44];
113117
}; /* sizeof(struct dirent) == 0x200 (512.) */
114-
#endif
118+
119+
#endif /* CLIB_STAT_PATCH */
120+
115121

116122
#include <poppack.h>
117123

@@ -135,4 +141,5 @@ mode_t umask ( mode_t cmask );
135141
#define stat64 stat /* same structure and function do both */
136142
#define fstat64 fstat /* same function does both */
137143

138-
#endif
144+
145+
#endif /* __sys_stat_h__ */

0 commit comments

Comments
 (0)