Added forgotten calls to with-cwd-aligned.

This commit is contained in:
mainzelm 2002-03-05 16:57:43 +00:00
parent 87d82f5011
commit cb6e8572d6
1 changed files with 5 additions and 2 deletions

View File

@ -183,7 +183,7 @@
;;; ports.
(define (generic-file-op thing fd-op fname-op)
(if (string? thing) (fname-op thing)
(if (string? thing) (with-cwd-aligned (fname-op thing))
(call/fdes thing fd-op)))
@ -338,7 +338,10 @@
(lambda (fd) (%truncate-fdes fd length))
(lambda (fname) (%truncate-file fname length))))
(import-os-error-syscall delete-file (path) "scsh_unlink")
(import-os-error-syscall %delete-file (path) "scsh_unlink")
(define (delete-file path)
(with-cwd-aligned (%delete-file path)))
(import-os-error-syscall %sync-file (fd) "scsh_fsync")