Make tempnam/mktemp deprecated.

Bug: 19340053
Change-Id: Ib02c65814ef97cd1758fd8142b73736cc8bc1700
This commit is contained in:
Yabin Cui
2015-02-23 16:42:07 -08:00
parent 913fcb274f
commit 9b4f77f5cf
2 changed files with 4 additions and 4 deletions

View File

@@ -58,7 +58,7 @@ extern int unsetenv(const char*);
extern int clearenv(void);
extern char* mkdtemp(char*);
extern char* mktemp(char*) __warnattr("mktemp possibly used unsafely; consider using mkstemp");
extern char* mktemp(char*) __attribute__((deprecated("mktemp is unsafe, use mkstemp or tmpfile instead")));
extern int mkostemp64(char*, int);
extern int mkostemp(char*, int);