summaryrefslogtreecommitdiff
path: root/05/util.b
diff options
context:
space:
mode:
Diffstat (limited to '05/util.b')
-rw-r--r--05/util.b10
1 files changed, 10 insertions, 0 deletions
diff --git a/05/util.b b/05/util.b
index d37e4de..09f51f7 100644
--- a/05/util.b
+++ b/05/util.b
@@ -351,6 +351,16 @@ function close
syscall(3, fd)
return
+#define SEEK_SET 0
+#define SEEK_CUR 1
+#define SEEK_END 2
+
+function lseek
+ argument fd
+ argument offset
+ argument whence
+ return syscall(8, fd, offset, whence)
+
function isupper
argument c
if c < 'A goto return_0