aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/include/stdlib.h
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2009-07-03 12:03:25 +0000
committerEric Blake <eblake@redhat.com>2009-07-03 12:03:25 +0000
commitc52ac05c3a213c3016b18693d6b3457448404e53 (patch)
treec2a02005b0e564ee4517bed2cedfda63cdcc2257 /newlib/libc/include/stdlib.h
parentce1eb6bba042d759a2fd8f57dfc01fcc8c478b57 (diff)
downloadnewlib-c52ac05c3a213c3016b18693d6b3457448404e53.zip
newlib-c52ac05c3a213c3016b18693d6b3457448404e53.tar.gz
newlib-c52ac05c3a213c3016b18693d6b3457448404e53.tar.bz2
Add mkdtemp, mkstemps.
* libc/stdio/mktemp.c: Fix documentation. (_gettemp): Add domkdir and length parameters. Check for insufficient 'X' suffix. Drop cygwin-specific code. (_mkstemp_r, _mktemp_r, mkstemp, mktemp): Adjust clients. (_mkdtemp_r, _mkstemps_r, mkdtemp, mkstemps): New functions. * libc/include/stdlib.h (_mkdtemp_r, _mkstemps_r, mkdtemp) (mkstemps): Declare them.
Diffstat (limited to 'newlib/libc/include/stdlib.h')
-rw-r--r--newlib/libc/include/stdlib.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/newlib/libc/include/stdlib.h b/newlib/libc/include/stdlib.h
index 8f7d31e..9dcd5e2 100644
--- a/newlib/libc/include/stdlib.h
+++ b/newlib/libc/include/stdlib.h
@@ -98,10 +98,14 @@ size_t _EXFUN(wcstombs,(char *, const wchar_t *, size_t));
size_t _EXFUN(_wcstombs_r,(struct _reent *, char *, const wchar_t *, size_t, _mbstate_t *));
#ifndef __STRICT_ANSI__
#ifndef _REENT_ONLY
-int _EXFUN(mkstemp,(char *));
-char * _EXFUN(mktemp,(char *) _ATTRIBUTE ((warning ("the use of `mktemp' is dangerous; use `mkstemp' instead"))));
+char * _EXFUN(mkdtemp,(char *));
+int _EXFUN(mkstemp,(char *));
+int _EXFUN(mkstemps,(char *, int));
+char * _EXFUN(mktemp,(char *) _ATTRIBUTE ((warning ("the use of `mktemp' is dangerous; use `mkstemp' instead"))));
#endif
+char * _EXFUN(_mkdtemp_r, (struct _reent *, char *));
int _EXFUN(_mkstemp_r, (struct _reent *, char *));
+int _EXFUN(_mkstemps_r, (struct _reent *, char *, int));
char * _EXFUN(_mktemp_r, (struct _reent *, char *) _ATTRIBUTE ((warning ("the use of `mktemp' is dangerous; use `mkstemp' instead"))));
#endif
_VOID _EXFUN(qsort,(_PTR __base, size_t __nmemb, size_t __size, int(*_compar)(const _PTR, const _PTR)));