On Tue, Feb 17, 2009 at 8:38 PM, Christoph Hellwig <span dir="ltr">&lt;<a href="mailto:hch@infradead.org">hch@infradead.org</a>&gt;</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>
&gt; Hi Christoph,<br>
&gt;<br>
&gt; Looks reasonable.<br>
&gt; Though, in the case of returning -1, it might be more interesting<br>
&gt; 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&#39;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>