Add qword pipe sysdep
@@ -294,7 +294,20 @@ int sys_tcgetattr(int fd, struct termios *attr) {
return ENOSYS;
}
int sys_tcsetattr(int, int, const struct termios *attr) STUB_ONLY
-int sys_pipe(int *fds) STUB_ONLY
+int sys_pipe(int *fds) {
+ int ret;
+ int sys_errno;
+
+ asm volatile ("syscall"
+ : "=a"(ret), "=d"(sys_errno)
+ : "a"(19), "D"(fds)
+ : "rcx", "r11");
+
+ if (ret == -1)
+ return sys_errno;
+
+ return 0;
+}
int sys_readlink(const char *path, void *buffer, size_t max_size, ssize_t *length) STUB_ONLY
int sys_ftruncate(int fd, size_t size) STUB_ONLY
int sys_fallocate(int fd, off_t offset, size_t size) STUB_ONLY
