1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Warn on mktemp use.

This commit is contained in:
Jonas 'Sortie' Termansen 2014-12-09 15:33:29 +01:00
parent 26f4000983
commit f0ae50e35d

View file

@ -106,6 +106,9 @@ int mblen(const char*, size_t);
size_t mbstowcs(wchar_t* __restrict, const char* __restrict, size_t); size_t mbstowcs(wchar_t* __restrict, const char* __restrict, size_t);
int mbtowc(wchar_t *__restrict, const char* __restrict, size_t); int mbtowc(wchar_t *__restrict, const char* __restrict, size_t);
int mkstemp(char*); int mkstemp(char*);
#if !defined(__is_sortix_libc) /* not a warning inside libc */
__attribute__((__warning__("mktemp() is racy, use mkstemp()")))
#endif
char* mktemp(char* templ); char* mktemp(char* templ);
int on_exit(void (*function)(int, void*), void* arg); int on_exit(void (*function)(int, void*), void* arg);
void qsort(void*, size_t, size_t, int (*)(const void*, const void*)); void qsort(void*, size_t, size_t, int (*)(const void*, const void*));