musl/src/temp/mkstemps.c
Rich Felker 2cc63358cd add mkostemp, mkstemps, and mkostemps functions and reorganize temp internals
based on patch contributed by Anthony G. Basile (blueness)

some issues remain with the filename generation algorithm and other
small bugs, but this patch has been sitting around long enough that I
feel it's best to get it committed and then work out any remaining
issues.
2013-02-20 22:43:23 -05:00

12 lines
194 B
C

#define _BSD_SOURCE
#include <stdlib.h>
#include "libc.h"
int __mkostemps(char *, int, int);
int mkstemps(char *template, int len)
{
return __mkostemps(template, len, 0);
}
LFS64(mkstemps);