linux system call print function

System call reference address

http://blog.rchapman.org/posts/Linux_System_Call_Table_for_x86_64/

Use syscall to print

#include <sys/syscall.h>
#include <stdio.h>

int main(){
    
    
  char * str1 = "hhhhh llll";
  int rc = syscall(SYS_write,1,str1,20);
  return 0;
}

Guess you like

Origin blog.csdn.net/qq_43373608/article/details/108244864