On Tue, Feb 17, 2009 at 8:38 PM, Christoph Hellwig <span dir="ltr"><<a href="mailto:hch@infradead.org">hch@infradead.org</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Tue, Feb 17, 2009 at 11:08:33AM +1100, Timothy Shimmin wrote:<br>
> Hi Christoph,<br>
><br>
> Looks reasonable.<br>
> Though, in the case of returning -1, it might be more interesting<br>
> to know the value of errno ? (I presume errno would be set in that case).<br>
<br>
</div>From looking at the manpage and the glibc implementation it seem like<br>
system does not actually set errno.<br>
<br>
</blockquote></div><br>Fair enough.<br><br>Yeah, it didn't seem clear in the man page and<br>I thought it might make a call to fork, waitpid etc which might set an errno.<br><br>Cheers,<br>Tim.<br>