ref: 30ae6dbd5eb7c7f8c9c76a32723dd33c5f90978b
parent: b9ac87f7822bb7d333d681a8dbe25b73acbb5844
author: Ori Bernstein <[email protected]>
date: Thu Oct 24 17:42:29 EDT 2013
Fix thinko: bind -> accept.
--- a/libstd/sys-linux.myr
+++ b/libstd/sys-linux.myr
@@ -484,7 +484,7 @@
const connect = {sock, addr, len; -> syscall(Sysconnect, sock, addr, len) castto(int)}
const bind = {sock, addr, len; -> syscall(Sysbind, sock, addr, len) castto(int)}
const listen = {sock, backlog; -> syscall(Syslisten, sock, backlog castto(int64)) castto(int)}
-const accept = {sock, addr, lenp; -> syscall(Sysbind, sock, addr, lenp) castto(fd)}
+const accept = {sock, addr, lenp; -> syscall(Sysaccept, sock, addr, lenp) castto(fd)}
/* memory mapping */
const munmap = {addr, len; -> syscall(Sysmunmap, addr, len)}