[Scummvm-cvs-logs] SF.net SVN: scummvm:[38690] scummvm/trunk/engines/sci/engine/kfile.cpp

dhewg at users.sourceforge.net dhewg at users.sourceforge.net
Sat Feb 21 13:26:14 CET 2009


Revision: 38690
          http://scummvm.svn.sourceforge.net/scummvm/?rev=38690&view=rev
Author:   dhewg
Date:     2009-02-21 12:26:10 +0000 (Sat, 21 Feb 2009)

Log Message:
-----------
replace obsolete creat() with open()

Modified Paths:
--------------
    scummvm/trunk/engines/sci/engine/kfile.cpp

Modified: scummvm/trunk/engines/sci/engine/kfile.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kfile.cpp	2009-02-21 12:21:15 UTC (rev 38689)
+++ scummvm/trunk/engines/sci/engine/kfile.cpp	2009-02-21 12:26:10 UTC (rev 38690)
@@ -108,7 +108,7 @@
 #ifdef _MSC_VER
 	fd = _open(fname, O_CREAT | O_BINARY | O_RDWR, S_IREAD | S_IWRITE);
 #else
-	fd = creat(fname, 0600);
+	fd = open(fname, O_CREAT | O_BINARY | O_RDWR, S_IREAD | S_IWRITE);
 #endif
 
 	if (!IS_VALID_FD(fd) && buf) {
@@ -486,7 +486,7 @@
 			++testpath[pathlen - 1];
 	}
 
-	fd = creat(testpath, 0600);
+	fd = open(testpath, O_CREAT | O_BINARY | O_RDWR, S_IREAD | S_IWRITE);
 
 	if (!IS_VALID_FD(fd)) {
 		warning("Could not test for disk space: %s", strerror(errno));


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list