From c849930b5319373978180569506180570320e978 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Sun, 6 Jul 2025 22:11:12 +0200 Subject: Setup libc skeleton --- src/libc/include/stdlib.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'src/libc/include/stdlib.h') diff --git a/src/libc/include/stdlib.h b/src/libc/include/stdlib.h index 79d3122..4065f1c 100644 --- a/src/libc/include/stdlib.h +++ b/src/libc/include/stdlib.h @@ -1,7 +1,31 @@ +/* + * wanix, a Unix-like operating system for WebAssembly + * Copyright (C) 2025 Xavier Del Campo Romero + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + #ifndef _STDLIB_H #define _STDLIB_H +#include + #define EXIT_SUCCESS 0 #define EXIT_FAILURE 1 +void *malloc(size_t __n); +void *calloc(size_t __nemb, size_t __size); +void free(void *__p); + #endif -- cgit v1.2.3