aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrahflow <drahflow@gmx.de>2015-06-23 11:04:25 +0200
committerDrahflow <drahflow@gmx.de>2015-06-23 11:04:25 +0200
commitfea39670a874e164c559c11859257dbd162cb31a (patch)
tree3dfcfd16cdd79bf7b879f8ba754a90ac0721eb26
parent745d1e3cdf2ea0275f4a955a353e3a3a04cafd69 (diff)
symlink + unlink syscalls
-rw-r--r--TODO1
-rw-r--r--elymas/lib/sys/linux.ey8
2 files changed, 7 insertions, 2 deletions
diff --git a/TODO b/TODO
index f8071be..6e57499 100644
--- a/TODO
+++ b/TODO
@@ -1,4 +1,5 @@
* apply the trace extractor to non-tail situations
+* reduze ./optimized binary size (clean up lib/sys/opt.ey code)
* inline trivial functions when optimizer generates ... /rax :movqImmReg /rax :callqReg sequence
* parse }" created constant pushers into PUSH in optimizer
* hunt the }"s down
diff --git a/elymas/lib/sys/linux.ey b/elymas/lib/sys/linux.ey
index b683afd..0c269d1 100644
--- a/elymas/lib/sys/linux.ey
+++ b/elymas/lib/sys/linux.ey
@@ -264,7 +264,7 @@
# 137 ==:STATFS
# 168 ==:SWAPOFF
# 167 ==:SWAPON
- # 88 ==:SYMLINK
+ 88 ==:SYMLINK
# 266 ==:SYMLINKAT
# 162 ==:SYNC
# 277 ==:SYNCFILERANGE
@@ -290,7 +290,7 @@
# 95 ==:UMASK
# 166 ==:UMOUNT2
63 ==:UNAME # TODO: not implemented here
- # 87 ==:UNLINK
+ 87 ==:UNLINK
# 263 ==:UNLINKAT
# 272 ==:UNSHARE
# 134 ==:USELIB
@@ -685,6 +685,10 @@
} /reuseAddr deffd
> /setsockopt defvd
+ { 0 0 0 0 SYMLINK } /symlink defStdSyscall
+
+ { 0 0 0 0 0 UNLINK } /unlink defStdSyscall
+
# 0 -> options
# 1 -> pid to wait for
# 0 <- raw return value