On Fri, Sep 21, 2001 at 04:10:16PM +0530, C. Mohanasundaram wrote: > 1 #define _syscall0(type,name) \ > 2 type name(void) \ > 3 { \ > 4 long __res; \ > 5 __asm__ volatile ("int $0x80" \ > 6 : "=a" (__res) \ > 7 : "0" (__NR_##name)); \ > 8 __syscall_return(type,__res); \ > 9 } please check the kernelnewbies.org website where some links describing gcc's inline asm can be found. Also see info gcc -> Extended Asm (line 7 is an input line, loading the value of e.g. __NR_fork into %eax I think) regards john -- "If you're not part of the problem, you're part of the problem space." - Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ IRC Channel: irc.openprojects.net / #kernelnewbies Web Page: http://www.kernelnewbies.org/