about summary refs log tree commit diff stats
path: root/400.mu
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-11-11 22:58:29 -0800
committerKartik Agaram <vc@akkartik.com>2020-11-11 23:25:55 -0800
commit307745bcc2efbd4c5b8191b45d5e1885be1c0089 (patch)
treea0da43e2258fea744143b24e2560e042c481125a /400.mu
parent7d15b0884eb57657b130b98f3701544fedaf4b7f (diff)
downloadmu-307745bcc2efbd4c5b8191b45d5e1885be1c0089.tar.gz
7225
Both manual tests described in commit 7222 now work.

To make them work I had to figure out how to copy a file. It
requires a dependency on a new syscall: lseek.
Diffstat (limited to '400.mu')
-rw-r--r--400.mu2
1 files changed, 2 insertions, 0 deletions
diff --git a/400.mu b/400.mu
index 75d21c0b..d3442cdf 100644
--- a/400.mu
+++ b/400.mu
@@ -183,3 +183,5 @@ sig stream-first s: (addr stream byte) -> result/eax: byte
 sig stream-final s: (addr stream byte) -> result/eax: byte
 
 #sig copy-bytes src: (addr byte), dest: (addr byte), n: int
+sig copy-array-object src: (addr array _), dest-ah: (addr handle array _)
+sig copy-file src: (addr buffered-file), dest-ah: (addr handle buffered-file), filename: (addr array byte)