aboutsummaryrefslogtreecommitdiffstats
path: root/ports/unix/guts/tmpnam.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/unix/guts/tmpnam.c')
-rw-r--r--ports/unix/guts/tmpnam.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/ports/unix/guts/tmpnam.c b/ports/unix/guts/tmpnam.c
new file mode 100644
index 0000000..3fece57
--- /dev/null
+++ b/ports/unix/guts/tmpnam.c
@@ -0,0 +1,18 @@
+/*
+ * Copyright (c) 2010 Wind River Systems; see
+ * guts/COPYRIGHT for information.
+ *
+ * static char *
+ * wrap_tmpnam(char *s) {
+ * char * rc = NULL;
+ */
+
+ /* let gcc know we're ignoring this */
+ (void) s;
+ pseudo_diag("tmpnam() is so ludicrously insecure as to defy implementation.");
+ errno = ENOMEM;
+ rc = NULL;
+
+/* return rc;
+ * }
+ */