diff options
author | Rich Felker <dalias@aerifal.cx> | 2013-02-20 22:43:23 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2013-02-20 22:43:23 -0500 |
commit | 2cc63358cdb0309ca996ffe56ccf402c2f2f16d5 (patch) | |
tree | 067001fb5f1a5a09de6d8417c5d1d80249e382ce /src/temp/mkostemp.c | |
parent | f78cdbe8993d072bf60a65754544199016a1fe29 (diff) | |
download | musl-2cc63358cdb0309ca996ffe56ccf402c2f2f16d5.tar.gz musl-2cc63358cdb0309ca996ffe56ccf402c2f2f16d5.tar.xz musl-2cc63358cdb0309ca996ffe56ccf402c2f2f16d5.zip |
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.
Diffstat (limited to 'src/temp/mkostemp.c')
-rw-r--r-- | src/temp/mkostemp.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/temp/mkostemp.c b/src/temp/mkostemp.c new file mode 100644 index 00000000..e73e22a6 --- /dev/null +++ b/src/temp/mkostemp.c @@ -0,0 +1,12 @@ +#define _BSD_SOURCE +#include <stdlib.h> +#include "libc.h" + +int __mkostemps(char *, int, int); + +int mkostemp(char *template, int flags) +{ + return __mkostemps(template, 0, flags); +} + +LFS64(mkostemp); |