remquo and mktemp.c patches

Howland Craig D (Craig) howland@LGSInnovations.com
Fri Aug 21 20:17:00 GMT 2009


Attached is a patch that:

1)  fixes the sign of the quotient returned by remquo() when |x|==|y|
(it
was incorrectly fixed at positive; and
2)  adds #include <stdlib.h> to mktemp.c because that's where the
function prototypes for its functions are.  While I was in the file, I
also deleted the traditional synopsis from the doc comments (since
it gets tossed during doc generation, anyway).
 
Why is mktemp.c in libc/stdio when all of its function prototypes are
in stdlib.h?  Shouldn't it be in libc/stdlib?  (I think that the
#include <stdio.h> in mktemp.c is probably spurious, but I did not
experiment to see if it could be removed.)
 
A change log entry is also in the patch file.
 
Craig
-------------- next part --------------
A non-text attachment was scrubbed...
Name: misc3.patch
Type: application/octet-stream
Size: 2329 bytes
Desc: misc3.patch
URL: <http://sourceware.org/pipermail/newlib/attachments/20090821/c124f7c5/attachment.obj>


More information about the Newlib mailing list