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:
parent
26f4000983
commit
f0ae50e35d
1 changed files with 3 additions and 0 deletions
|
@ -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*));
|
||||||
|
|
Loading…
Reference in a new issue