Changeset 1051
- Timestamp:
- Jan 25, 2004, 3:17:04 AM (22 years ago)
- Location:
- trunk/src/emx/src/lib/sys
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/src/lib/sys/__read.c
-
Property cvs2svn:cvs-rev
changed from
1.5
to1.6
r1050 r1051 10 10 #include <stdlib.h> 11 11 #include <memory.h> 12 #include <sys/fcntl.h> 12 13 #include <emx/umalloc.h> 13 14 #include <emx/io.h> … … 78 79 { 79 80 _sys_set_errno(rc); 81 /* If we don't have read access, EBADF should be returned, not EACCES. */ 82 if ( errno == EACCES 83 && (pFH->fFlags & O_ACCMODE) != O_RDONLY 84 && (pFH->fFlags & O_ACCMODE) != O_RDWR) 85 errno = EBADF; 80 86 return -1; 81 87 } -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/sys/__write.c
-
Property cvs2svn:cvs-rev
changed from
1.5
to1.6
r1050 r1051 10 10 #include <stdlib.h> 11 11 #include <errno.h> 12 #include <sys/fcntl.h> 12 13 #include <emx/io.h> 13 14 #include <emx/umalloc.h> … … 87 88 { 88 89 _sys_set_errno(rc); 90 /* If we don't have write access, EBADF should be returned, not EACCES. */ 91 if ( errno == EACCES 92 && (pFH->fFlags & O_ACCMODE) != O_WRONLY 93 && (pFH->fFlags & O_ACCMODE) != O_RDWR) 94 errno = EBADF; 89 95 return -1; 90 96 } -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.