Changeset 2810 for branches/libc-0.6/src/emx
- Timestamp:
- Sep 9, 2006, 4:15:12 AM (19 years ago)
- Location:
- branches/libc-0.6/src/emx
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/libc-0.6/src/emx/ChangeLog.LIBC
r2798 r2810 2 2 3 3 TODO: open replace on RAMFS fails with error 32! 4 5 2006-09-08: knut st. osmundsen <bird-gccos2-spam@anduin.net> 6 - libc: 7 o #122: Fixed file creation when opening with read-only access. 4 8 5 9 2006-08-27: knut st. osmundsen <bird-gccos2-spam@anduin.net> -
branches/libc-0.6/src/emx/src/lib/io/_vsopen.c
r2316 r2810 39 39 * Validate input 40 40 */ 41 if ( (fOpen & O_ACCMODE) == O_RDONLY 42 && (fOpen & (O_TRUNC | O_CREAT))) 41 if ((fOpen & O_ACCMODE) == O_ACCMODE) 43 42 { 44 43 errno = EINVAL; … … 155 154 156 155 /* 157 * Reopen the file in write-only Mode if Ctrl-Z hack applied.156 * Reopen the file in write-only mode if Ctrl-Z hack applied. 158 157 */ 159 158 if (fCtrlZKludge) -
branches/libc-0.6/src/emx/src/lib/sys/b_ioFileOpen.c
r2522 r2810 74 74 * Validate input. 75 75 */ 76 if ( (fLibc & O_ACCMODE) == O_RDONLY 77 && (fLibc & (O_TRUNC | O_CREAT))) 76 if ((fOpen & O_ACCMODE) == O_ACCMODE) 78 77 LIBCLOG_ERROR_RETURN_INT(-EINVAL); 79 78
Note:
See TracChangeset
for help on using the changeset viewer.