[問題] 請問關於System Call的問題
各位版上的前輩好,
小弟我有以下的問題想請問各位前輩,
假設我已經將System Call編成模組,
並掛載起來,
在編譯User Program的時候,
會出現以下的問題,
#include <linux/unistd.h>
#include <errno.h>
extern int errno;
#define __NR_mysyscall 253
static inline _syscall1(int, mysyscall, int, n);
int main()
{
mysyscall(0);
return 0;
}
在_syscall1那一行出現編譯時產生錯誤,
error expected decalaration specifiers or '...' before 'mysyscall'
error expected decalaration specifiers or '...' before 'n'
請問我還有哪裡需要注意的而沒注意??
--
Who am I?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.132.182.103
推
01/12 12:10, , 1F
01/12 12:10, 1F
→
01/12 17:07, , 2F
01/12 17:07, 2F
推
01/12 21:58, , 3F
01/12 21:58, 3F
→
01/12 21:59, , 4F
01/12 21:59, 4F
→
01/12 21:59, , 5F
01/12 21:59, 5F
→
01/12 21:59, , 6F
01/12 21:59, 6F
推
01/13 17:49, , 7F
01/13 17:49, 7F
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 3 篇):
LinuxDev 近期熱門文章
PTT數位生活區 即時熱門文章