+2009-08-21 Craig Howland <howland@LGSInnovations.com>
+
+ * libm/common/s_remquo.c (remquo): Fix sign of quotient when |x|==|y|.
+ * libc/stdio/mktemp.c: Add #include <stdlib.h> for function prototypes.
+
2009-08-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* iconvdata/Makefile.am (all): Remove.
int *_mkstemp_r(struct _reent *<[reent]>, char *<[path]>);
int *_mkstemps_r(struct _reent *<[reent]>, char *<[path]>, int <[len]>);
-TRAD_SYNOPSIS
- #include <stdlib.h>
- char *mktemp(<[path]>)
- char *<[path]>;
-
- int mkstemp(<[path]>)
- char *<[path]>;
-
- char *_mktemp_r(<[reent]>, <[path]>)
- struct _reent *<[reent]>;
- char *<[path]>;
-
- int _mkstemp_r(<[reent]>, <[path]>)
- struct _reent *<[reent]>;
- char *<[path]>;
-
DESCRIPTION
<<mktemp>>, <<mkstemp>>, and <<mkstemps>> attempt to generate a file name
that is not yet in use for any existing file. <<mkstemp>> and <<mkstemps>>
*/
#include <_ansi.h>
+#include <stdlib.h>
#include <reent.h>
#include <sys/types.h>
#include <fcntl.h>
goto fixup; /* |x|<|y| return x or x-y */
}
if(lx==ly) {
- *quo = 1;
- return Zero[(__uint32_t)sx>>31]; /* |x|=|y| return x*0*/
+ *quo = (sxy ? -1 : 1);
+ return Zero[(__uint32_t)sx>>31]; /* |x|=|y| return x*0 */
}
}