- Timestamp:
- Sep 9, 2006, 4:15:12 AM (19 years ago)
- Location:
- trunk/libc
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libc/ChangeLog.LIBC
r2799 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> -
trunk/libc/src/kNIX/os2/b_ioFileOpen.c
r2739 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 -
trunk/libc/src/libc/io/_vsopen.c
r2739 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; -
trunk/libc/tests/libc/Makefile
r2809 r2810 145 145 IO := \ 146 146 io/open-1.c \ 147 io/open-2.c \ 147 148 io/sprintf-1.c \ 148 149 io/sscanf-1.c
Note:
See TracChangeset
for help on using the changeset viewer.