LibC: Remove cxx abi stuff from libc
These will cause multiple definitions when linking with libstdc++
This commit is contained in:
@@ -733,14 +733,12 @@ FILE* tmpfile(void);
|
||||
|
||||
char* tmpnam(char* storage)
|
||||
{
|
||||
static int s_counter = rand();
|
||||
static char s_storage[PATH_MAX];
|
||||
if (storage == nullptr)
|
||||
storage = s_storage;
|
||||
for (int i = 0; i < TMP_MAX; i++)
|
||||
{
|
||||
sprintf(storage, "/tmp/tmp_%04x", s_counter);
|
||||
s_counter = rand();
|
||||
sprintf(storage, "/tmp/tmp_%04x", rand());
|
||||
|
||||
struct stat st;
|
||||
if (stat(storage, &st) == -1 && errno == ENOENT)
|
||||
|
||||
Reference in New Issue
Block a user