I have the following function:
void syscall3(int num, int arg1, int arg2, int arg3) { asm("int\t$0x80\n\t" : /* Сюда надо впихнуть возврат значения */ : "a"(num), "b"(arg1), "c"(arg2), "d"(arg3) ); } How to make a function return the result of a system call in a long int?
write(fd, data, byte_count)call example for syscall for AMD64 architecture - jfs