Changeset 879
- Timestamp:
- Dec 8, 2003, 6:32:51 AM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/src/lib/sys/filehandles.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.2
r878 r879 55 55 /** Number of free handles in the preallocated array. */ 56 56 static unsigned gcPreAllocatedAvail; 57 58 extern int _fmode_bin; 57 59 58 60 … … 627 629 * were successful or if the handle has become invalid. 628 630 */ 629 if (!rc || rc == ERROR_INVALID_HANDLE )631 if (!rc || rc == ERROR_INVALID_HANDLE || rc == -EBADF) 630 632 { 631 633 int rc2; … … 658 660 659 661 if (rc) 660 _sys_set_errno(rc); 662 { 663 if (rc > 0) 664 _sys_set_errno(rc); 665 else 666 errno = rc; 667 } 661 668 662 669 return rc; … … 735 742 * Textflag. 736 743 */ 737 extern int _fmode_bin;738 744 if (!_fmode_bin) 739 745 fLibc |= O_TEXT; -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.