WIP: libc.obj: Impl allocator #338

Draft
Egor00f wants to merge 49 commits from Egor00f/kolibrios:libc.obj--add-allocator into main
5 changed files with 25 additions and 1 deletions
Showing only changes of commit 170fa3e1b0 - Show all commits

View File

@@ -136,7 +136,7 @@ bool check_buffer(void* ptr, size_t size, unsigned char pattern)
unsigned char* byte_ptr = (unsigned char*)ptr;
for (size_t i = 0; i < size; ++i) {
if (byte_ptr[i] != pattern) {
fprintf(stderr, "Error: Byte %zu does not match pattern. Expected %02X, got %02X\n",
fprintf(stderr, "Error: Byte %u does not match pattern. Expected %02X, got %02X\n",
Outdated
Review

Make sure libc.obj printf() supports %zu

Make sure libc.obj printf() supports %zu
i, pattern, byte_ptr[i]);
return false;
}

View File

@@ -1,3 +1,9 @@
/*
* SPDX-License-Identifier: GPL-2.0-only
* Copyright (C) 2026 KolibriOS team
* Author: Yarin Egor<y.yarin@inbox.ru>
*/
#ifndef _LIBC_STDLIB__MEM_
#define _LIBC_STDLIB__MEM_

View File

@@ -1,3 +1,9 @@
/*
* SPDX-License-Identifier: GPL-2.0-only
* Copyright (C) 2026 KolibriOS team
* Author: Yarin Egor<y.yarin@inbox.ru>
*/
#include <stdlib.h>
#include <stdbool.h>
#include <sys/ksys.h>

View File

@@ -1,3 +1,9 @@
/*
* SPDX-License-Identifier: GPL-2.0-only
* Copyright (C) 2026 KolibriOS team
* Author: Yarin Egor<y.yarin@inbox.ru>
*/
#include <string.h>
#include <stdlib.h>
#include <errno.h>

View File

@@ -1,3 +1,9 @@
/*
* SPDX-License-Identifier: GPL-2.0-only
* Copyright (C) 2026 KolibriOS team
* Author: Yarin Egor<y.yarin@inbox.ru>
*/
#include <stdlib.h>
#include <string.h>
#include <sys/ksys.h>