Fixing a compilation but with xlc.
authorEsteban Meneses <emenese2@illinois.edu>
Thu, 18 Oct 2012 21:52:39 +0000 (21:52 +0000)
committerEsteban Meneses <emenese2@illinois.edu>
Thu, 18 Oct 2012 21:52:39 +0000 (21:52 +0000)
src/ck-core/ckcausalmlog.C
src/ck-core/ckmessagelogging.C

index c47fe3e18fa093093918936e1eb331e43d33e220..1d7360e98908c39c702a2e6c72ae54bd06041810 100644 (file)
@@ -1418,7 +1418,7 @@ void pupArrayElementsSkip(PUP::er &p, CmiBool create, MigrationRecord *listToSki
 void writeCheckpointToDisk(int size,char *chkpt){
        char fNameTemp[100];
        sprintf(fNameTemp,"%s/mlogCheckpoint%d_tmp",checkpointDirectory,CkMyPe());
-       int fd = creat(fNameTemp,S_IRWXU);
+       int fd = fopen(fNameTemp,"w"); 
        int ret = write(fd,chkpt,size);
        CkAssert(ret == size);
        close(fd);
index 8bc09c3919c44f227446238d843f9b14525788a4..77168ac9d5b12d11e7896614ef9948d4b92af894 100644 (file)
@@ -968,7 +968,7 @@ void pupArrayElementsSkip(PUP::er &p, CmiBool create, MigrationRecord *listToSki
 void writeCheckpointToDisk(int size,char *chkpt){
        char fNameTemp[100];
        sprintf(fNameTemp,"%s/mlogCheckpoint%d_tmp",checkpointDirectory,CkMyPe());
-       int fd = creat(fNameTemp,S_IRWXU);
+       int fd = fopen(fNameTemp,"w");
        int ret = write(fd,chkpt,size);
        CkAssert(ret == size);
        close(fd);