#define _syscall1(ResType, functionName, a) \
template <typename Arg> \
ResType functionName(Arg a) \ 

{ \
ResType __res; \
__asm__ volatile ("int $0x80" \
: "=a" (__res) \
: "0" (__NR_##functionName),"b"(a));\
if (__res >= 0) \
return __res; \
errno = -__res; \
return -1; \
} 
| 只有注冊用戶登錄后才能發表評論。 | ||
|
【推薦】100%開源!大型工業跨平臺軟件C++源碼提供,建模,組態!
|
||
網站導航:
博客園
IT新聞
BlogJava
博問
Chat2DB
管理
|
||
|
|