write() and __libc_write()?

Mike Frysinger vapier@gentoo.org
Sat Mar 11 04:46:00 GMT 2006


On Friday 10 March 2006 23:10, sean yang wrote:
> this is the code from  ./ sysdeps/generic/write.c, and I believe it's the
> code corresponding to write(2) exported by #include <unistd.h>
> By why can't I find "int $0x80" inside the function body?

no, that is the generic write.c that is only used if the target doesnt provide 
its own version of write

in the case of unix (and thus linux) targets, there is no "write.c" file, but 
rather it's autogenerated afaik from the sysdeps/unix/syscalls.list file
-mike



More information about the Libc-alpha mailing list