Rev 6433 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6433 | Rev 7172 | ||
---|---|---|---|
Line 10... | Line 10... | ||
10 | { |
10 | { |
11 | errno = E_INVALIDPTR; |
11 | errno = E_INVALIDPTR; |
12 | return 0; |
12 | return 0; |
13 | } |
13 | } |
Line 14... | Line 14... | ||
14 | 14 | ||
15 | if ((file->mode &3)!=FILE_OPEN_READ && (file->mode & FILE_OPEN_PLUS==0)) |
15 | if ((file->mode &3)!=FILE_OPEN_READ && (file->mode & FILE_OPEN_PLUS)==0) |
16 | { |
16 | { |
17 | errno = E_ACCESS; |
17 | errno = E_ACCESS; |
18 | return 0; |
18 | return 0; |