libc.obj: add authorship && other
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 1m11s
Build system / Build (pull_request) Successful in 16m49s

This commit is contained in:
2026-02-25 22:23:03 +05:00
parent fe9eb967c8
commit 34e4ceef1e
4 changed files with 21 additions and 5 deletions

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",
i, pattern, byte_ptr[i]);
return false;
}

View File

@@ -1,4 +1,10 @@
#include <stdlib.h>
/*
* SPDX-License-Identifier: GPL-2.0-only
* Copyright (C) 2026 KolibriOS team
* Author: Yarin Egor<velikiydolbayeb@gmail.com>
*/
#include <stdlib.h>
#include <stdbool.h>
#include <sys/ksys.h>
#include "_mem.h"

View File

@@ -1,3 +1,9 @@
/*
* SPDX-License-Identifier: GPL-2.0-only
* Copyright (C) 2026 KolibriOS team
* Author: Yarin Egor<velikiydolbayeb@gmail.com>
*/
#include <string.h>
#include <stdlib.h>
#include <errno.h>
@@ -37,8 +43,6 @@ static struct mem_node* __new_mem_node_from_exist(struct mem_node* current_node,
void* malloc(size_t size)
{
char b[32];
// Handle zero-size allocation.
if (size == 0) {
return NULL;

View File

@@ -1,4 +1,10 @@
#include <stdlib.h>
/*
* SPDX-License-Identifier: GPL-2.0-only
* Copyright (C) 2026 KolibriOS team
* Author: Yarin Egor<velikiydolbayeb@gmail.com>
*/
#include <stdlib.h>
#include <string.h>
#include <sys/ksys.h>
#include "_mem.h"