|
version 1.3, 2012/07/22 22:09:47
|
version 1.3.2.1, 2012/11/13 10:00:30
|
|
Line 49 SUCH DAMAGE.
|
Line 49 SUCH DAMAGE.
|
| |
|
| |
|
| inline int |
inline int |
| syncOpen(const char *csFile, int mode) | syncOpen(const char *csFile, int mode, int perm) |
| { |
{ |
| int f; |
int f; |
| |
|
| if (!csFile || (*csFile == '-' && !csFile[1])) |
if (!csFile || (*csFile == '-' && !csFile[1])) |
| return mode; |
return mode; |
| |
|
| f = open(csFile, !mode ? O_RDONLY : O_WRONLY | O_CREAT | O_TRUNC, 0644); | f = open(csFile, !mode ? O_RDONLY : O_WRONLY | O_CREAT | O_TRUNC, |
| | !perm ? 0644 : perm); |
| if (f == -1) |
if (f == -1) |
| SETERR; |
SETERR; |
| |
|