This introduces a RESIZE-FILE-LIMIT
[pforth] / csrc / pf_io.c
index 3aedb49..3b48d0a 100644 (file)
@@ -215,11 +215,27 @@ cell_t sdCloseFile( FileStream * Stream )
     return 0;
 }
 
     return 0;
 }
 
-FileStream *sdDeleteFile( const char *FileName )
+cell_t sdDeleteFile( const char *FileName )
 {
     UNIMPLEMENTED("sdDeleteFile");
     TOUCH(FileName);
 {
     UNIMPLEMENTED("sdDeleteFile");
     TOUCH(FileName);
-    return NULL;
+    return -1;
+}
+
+cell_t sdRenameFile( const char *OldName, const char *NewName )
+{
+    UNIMPLEMENTED("sdRenameFile");
+    TOUCH(OldName);
+    TOUCH(NewName);
+    return -1;
 }
 }
+
+ThrowCode sdResizeFile( FileStream * File, uint64_t NewSize )
+{
+    UNIMPLEMENTED("sdResizeFile");
+    TOUCH(NewSize);
+    return THROW_RESIZE_FILE;
+}
+
 #endif
 
 #endif