1 #include <asm/unistd.h>
3 static inline void exit(int status)
6 __asm__ volatile ("movl %%ecx,%%ebx\n"\
8 : "=a" (__res) : "0" (__NR_exit),"c" ((long)(status)));
11 static inline int write(int fd, const char * buf, int len)
14 __asm__ volatile ("pushl %%ebx\n"\
19 : "0" (__NR_write),"S" ((long)(fd)),"c" ((long)(buf)),"d" ((long)(len)));
25 write(1, "Hello World\n", 12);