QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1918|回复: 0

取消了宏 _ s y s c a LL N后,怎么声明函数

[复制链接]
发表于 2008-4-27 14:34:55 | 显示全部楼层 |阅读模式
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 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-4-20 23:08 , Processed in 0.052199 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表