| 
 | 
 
2.6.X中,已经取消了宏_syscallN的定义,如果想要调用自己添加的系统函数怎么声明? 
 
_syscall2(int,mycopy,const char *,s_file,const char *,t_file) 应该修改成什么?? 
 
有些说法是 int syscall(5,mycopy,const char *,s_file,const char *,t_file)?? 
 
但是有报错信息: 
Compiler executable checksum: 92efef273c2911dfe2bff20f05a618b3 
mycopy.c:13: 错误:expected declaration specifiers or ‘...’ before numeric constant 
mycopy.c:13: 错误:expected declaration specifiers or ‘...’ before ‘mycopy’ 
mycopy.c:13: 错误:expected declaration specifiers or ‘...’ before ‘s_file’ 
mycopy.c:13: 错误:expected declaration specifiers or ‘...’ before ‘t_file’ 
mycopy.c: 在函数 ‘syscall’ 中: 
mycopy.c:16: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token 
mycopy.c:13: 错误:省略了形参的名字 
mycopy.c:13: 错误:省略了形参的名字 
mycopy.c:22: 错误:expected ‘{’ at end of input 
 
[ 本帖最后由 zuorizhifeng 于 2008-4-27 14:39 编辑 ] |   
 
 
 
 |