File tree 1 file changed +2
-36
lines changed
1 file changed +2
-36
lines changed Original file line number Diff line number Diff line change 37
37
# include <sys/vfs.h>
38
38
#endif
39
39
40
- #ifdef OS2
41
- # define INCL_DOS
42
- # include <os2.h>
43
- #endif
44
-
45
40
#if defined(__APPLE__ )
46
41
/*
47
42
Apple statvfs has an interger overflow in libc copying to statvfs.
@@ -133,21 +128,7 @@ static int php_disk_total_space(char *path, double *space) /* {{{ */
133
128
return SUCCESS ;
134
129
}
135
130
/* }}} */
136
- #elif defined(OS2 ) /* {{{ */
137
- {
138
- double bytestotal = 0 ;
139
- FSALLOCATE fsinfo ;
140
- char drive = path [0 ] & 95 ;
141
-
142
- if (DosQueryFSInfo ( drive ? drive - 64 : 0 , FSIL_ALLOC , & fsinfo , sizeof ( fsinfo ) ) == 0 ) {
143
- bytestotal = (double )fsinfo .cbSector * fsinfo .cSectorUnit * fsinfo .cUnit ;
144
- * space = bytestotal ;
145
- return SUCCESS ;
146
- }
147
- return FAILURE ;
148
- }
149
- /* }}} */
150
- #else /* {{{ if !defined(OS2) && !defined(WINDOWS) */
131
+ #else /* {{{ if !defined(WINDOWS) */
151
132
{
152
133
double bytestotal = 0 ;
153
134
#if defined(HAVE_SYS_STATVFS_H ) && defined(HAVE_STATVFS )
@@ -230,22 +211,7 @@ static int php_disk_free_space(char *path, double *space) /* {{{ */
230
211
231
212
return SUCCESS ;
232
213
}
233
- /* }}} */
234
- #elif defined(OS2 ) /* {{{ */
235
- {
236
- double bytesfree = 0 ;
237
- FSALLOCATE fsinfo ;
238
- char drive = path [0 ] & 95 ;
239
-
240
- if (DosQueryFSInfo ( drive ? drive - 64 : 0 , FSIL_ALLOC , & fsinfo , sizeof ( fsinfo ) ) == 0 ) {
241
- bytesfree = (double )fsinfo .cbSector * fsinfo .cSectorUnit * fsinfo .cUnitAvail ;
242
- * space = bytesfree ;
243
- return SUCCESS ;
244
- }
245
- return FAILURE ;
246
- }
247
- /* }}} */
248
- #else /* {{{ if !defined(OS2) && !defined(WINDOWS) */
214
+ #else /* {{{ if !defined(WINDOWS) */
249
215
{
250
216
double bytesfree = 0 ;
251
217
#if defined(HAVE_SYS_STATVFS_H ) && defined(HAVE_STATVFS )
You can’t perform that action at this time.
0 commit comments