summaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-10-30 08:02:30 -0700
committerUlrich Drepper <drepper@redhat.com>2009-10-30 08:02:30 -0700
commit3a83202db6e5591f2b72974c1ad98602c6620770 (patch)
tree37a4605f394a102af9f6dd31ff723de21ef6fb9b /stdlib
parentb47525dd866cbeff9748f532b24a930c7b65d798 (diff)
Implement mkostemps and mkostemps64.
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/stdlib.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/stdlib/stdlib.h b/stdlib/stdlib.h
index 6fe6a03bf3..dc51d67170 100644
--- a/stdlib/stdlib.h
+++ b/stdlib/stdlib.h
@@ -678,6 +678,29 @@ extern int __REDIRECT (mkostemp, (char *__template, int __flags), mkostemp64)
# ifdef __USE_LARGEFILE64
extern int mkostemp64 (char *__template, int __flags) __nonnull ((1)) __wur;
# endif
+
+/* Similar to mkostemp, but the template can have a suffix after the
+ XXXXXX. The length of the suffix is specified in the second
+ parameter.
+
+ This function is a possible cancellation point and therefore not
+ marked with __THROW. */
+# ifndef __USE_FILE_OFFSET64
+extern int mkostemps (char *__template, int __suffixlen, int __flags)
+ __nonnull ((1)) __wur;
+# else
+# ifdef __REDIRECT
+extern int __REDIRECT (mkostemps, (char *__template, int __suffixlen,
+ int __flags), mkostemps64)
+ __nonnull ((1)) __wur;
+# else
+# define mkostemps mkostemps64
+# endif
+# endif
+# ifdef __USE_LARGEFILE64
+extern int mkostemps64 (char *__template, int __suffixlen, int __flags)
+ __nonnull ((1)) __wur;
+# endif
#endif