LibC: Remove cxx abi stuff from libc

These will cause multiple definitions when linking with libstdc++
This commit is contained in:
2024-08-09 16:58:11 +03:00
parent f60e265397
commit 46b1d4d194
2 changed files with 1 additions and 26 deletions

View File

@@ -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)