diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-07-06 22:11:12 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-09-08 21:10:27 +0200 |
| commit | c849930b5319373978180569506180570320e978 (patch) | |
| tree | 4c286b988540ec1156ac7fc9756f690f7dc8c4a9 /src/libc/include/stdlib.h | |
| parent | c8f9dbd494732c43d5b3626ba7010bf27d1f7664 (diff) | |
Setup libc skeleton
Diffstat (limited to 'src/libc/include/stdlib.h')
| -rw-r--r-- | src/libc/include/stdlib.h | 24 |
1 files changed, 24 insertions, 0 deletions
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 <https://www.gnu.org/licenses/>. + */ + #ifndef _STDLIB_H #define _STDLIB_H +#include <stddef.h> + #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 |
