浏览代码

FileCreate must truncate the file

michael 26 年之前
父节点
当前提交
3ac470a880
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      rtl/linux/filutil.inc

+ 5 - 2
rtl/linux/filutil.inc

@@ -34,7 +34,7 @@ end;
 Function FileCreate (Const FileName : String) : Longint;
 Function FileCreate (Const FileName : String) : Longint;
 
 
 begin
 begin
-  FileCreate:=fdOpen(FileName,Open_RdWr or Open_Creat);
+  FileCreate:=fdOpen(FileName,Open_RdWr or Open_Creat or Open_Trunc);
 end;
 end;
 
 
 
 
@@ -236,7 +236,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.5  1999-02-02 21:20:34  michael
+  Revision 1.6  1999-02-04 21:43:08  michael
+  FileCreate must truncate the file
+
+  Revision 1.5  1999/02/02 21:20:34  michael
   + Added filetruncate, corrected FileCreate
   + Added filetruncate, corrected FileCreate
 
 
   Revision 1.4  1998/12/15 22:43:07  peter
   Revision 1.4  1998/12/15 22:43:07  peter