Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Cooler_ explain
- int write(int fd,const char * buf,unsigned int count)
- {
- long __res;
- asm("int $0x80"
- : "=a" (__res)
- : "0" (__NR_write), "b" ((long)fd),
- "c" ((long)buf), "d" ((long)count));
- if ((unsigned long)__res >= (unsigned long)-125)
- {
- errno = -__res;
- __res = -1;
- }
- return (int) __res;
- }
Add Comment
Please, Sign In to add comment