Changeset 1366
- Timestamp:
- Apr 15, 2004, 12:50:33 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/src/emx/src/lib/sys/filehandles.c (modified) (5 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/src/lib/sys/filehandles.c
-
Property cvs2svn:cvs-rev
changed from
1.7to1.8
r1365 r1366 22 22 * 23 23 */ 24 25 26 27 28 29 30 31 24 32 25 33 /******************************************************************************* … … 247 255 * How many handles? 248 256 * Now, we must be somewhat sensibel about incrementing this number 249 * into unreasonable values. If an application requires 10000+ files 250 * it must take steps to tell that to OS/2. If he has we'll receive 251 * cMin > 10000, else keep 10000 as a max limit for auto increase. 257 * into unreasonable values. If an application requires __LIBC_MAX_FHS+ 258 * files it must take steps to tell that to OS/2. If he has we'll receive 259 * cMin > __LIBC_MAX_FHS, else keep __LIBC_MAX_FHS as a max limit for 260 * auto increase. 252 261 */ 253 262 lDeltaFHs = 0; … … 260 269 if (cMin < cNewMaxFHs) 261 270 { /* auto increment. */ 262 cMin = cNewMaxFHs + 100;263 if (cMin > 10000 && gcFHs > 10000)271 cMin = cNewMaxFHs + ; 272 if (cMin > ) 264 273 { 265 FS_RESTORE(); 266 return ERROR_TOO_MANY_OPEN_FILES; 274 if (gcFHs >= __LIBC_MAX_FHS) 275 { 276 FS_RESTORE(); 277 return ERROR_TOO_MANY_OPEN_FILES; 278 } 279 cMin = __LIBC_MAX_FHS; 267 280 } 268 281 } … … 281 294 if (!rc) 282 295 { 283 284 296 /* 285 297 * Reallocate the array of handle pointers. … … 327 339 } 328 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 329 359 330 360 -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.
