系統調用的函數api頭檔案
kernel\include\uapi\asm-generic
#include <unistd.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
pid_t tid;
tid = syscall(SYS_gettid);
printf("tid : %d\n",tid);
tid = syscall(SYS_tgkill, getpid(), tid, SIGHUP);
printf("tid : %d,,,\n",tid);
while (1);
}
一勤天下無難事。