diff --git a/lib/sys/linux.q b/lib/sys/linux.q index 68a8fbf..d582d1c 100644 --- a/lib/sys/linux.q +++ b/lib/sys/linux.q @@ -30,6 +30,22 @@ exit(code) { syscall(60, code) } +socket(family, type, protocol) { + return syscall(41, family, type, protocol) +} + +accept(fd, address, length) { + return syscall(43, fd, address, length) +} + +bind(fd, address, length) { + return syscall(49, fd, address, length) +} + +listen(fd, backlog) { + return syscall(50, fd, backlog) +} + getcwd(buffer, length) { return syscall(79, buffer, length) }