2 * mono-stdlib.c: stdlib replacement functions.
5 * Gonzalo Paniagua Javier (gonzalo@novell.com)
7 * (C) 2006 Novell, Inc. http://www.novell.com
20 #include "mono-stdlib.h"
28 mono_mkstemp (char *templ
)
31 int count
= 27; /* Windows doc. */
47 ret
= open (templ
, O_RDWR
| O_BINARY
| O_CREAT
| O_EXCL
, 0600);
51 memcpy (templ
+ len
- 6, "XXXXXX", 6);
56 } while (count
-- > 0);