mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +00:00
Changed file mode
SVN revision: 1253
This commit is contained in:
parent
ec6f3c1b4e
commit
a182d61993
@ -6,6 +6,9 @@
|
|||||||
Contents: Midas XML Library
|
Contents: Midas XML Library
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.5 2005/03/21 07:37:22 ritt
|
||||||
|
Changed file mode
|
||||||
|
|
||||||
Revision 1.4 2005/03/03 15:36:05 ritt
|
Revision 1.4 2005/03/03 15:36:05 ritt
|
||||||
Fixed compiler warnings
|
Fixed compiler warnings
|
||||||
|
|
||||||
@ -38,8 +41,10 @@
|
|||||||
|
|
||||||
typedef int BOOL;
|
typedef int BOOL;
|
||||||
|
|
||||||
|
#ifndef O_TEXT
|
||||||
#define O_TEXT 0
|
#define O_TEXT 0
|
||||||
#define O_BINARY 0
|
#define O_BINARY 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
@ -70,7 +75,7 @@ MXML_WRITER *mxml_open_document(const char *file_name)
|
|||||||
|
|
||||||
writer = malloc(sizeof(MXML_WRITER));
|
writer = malloc(sizeof(MXML_WRITER));
|
||||||
|
|
||||||
writer->fh = open(file_name, O_WRONLY | O_CREAT | O_TRUNC | O_TEXT, 0644);
|
writer->fh = open(file_name, O_RDWR | O_CREAT | O_TRUNC | O_TEXT, 0644);
|
||||||
|
|
||||||
if (writer->fh == -1) {
|
if (writer->fh == -1) {
|
||||||
sprintf(line, "Unable to open file \"%s\": ", file_name);
|
sprintf(line, "Unable to open file \"%s\": ", file_name);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user