On Fri, 30 Sep 2011, Ramana Radhakrishnan wrote: > On 26 July 2011 10:01, Dr. David Alan Gilbert <david.gilb...@linaro.org> > wrote: > > > > + > > +extern unsigned int __write(int fd, const void *buf, unsigned int count); > > Why are we using __write instead of write?
Because plain write is in the user's namespace in ISO C. See what I said in <http://gcc.gnu.org/ml/gcc-patches/2011-07/msg00084.html> - the alternative is hardcoding the syscall number and using the syscall directly. -- Joseph S. Myers jos...@codesourcery.com