From 8c430808c33bf13b981521afbef9c90e7afd8595 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Sun, 6 Jul 2025 22:17:52 +0200 Subject: libc license --- src/libc/CMakeLists.txt | 16 ++++++++++++++++ src/libc/include/stdio.h | 18 ++++++++++++++++++ src/libc/include/stdlib.h | 18 ++++++++++++++++++ src/libc/src/free.c | 18 ++++++++++++++++++ src/libc/src/malloc.c | 18 ++++++++++++++++++ 5 files changed, 88 insertions(+) (limited to 'src/libc') diff --git a/src/libc/CMakeLists.txt b/src/libc/CMakeLists.txt index 61e728a..952df35 100644 --- a/src/libc/CMakeLists.txt +++ b/src/libc/CMakeLists.txt @@ -1,3 +1,19 @@ +# 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 . + set(src "src/errno.c" "src/free.c" diff --git a/src/libc/include/stdio.h b/src/libc/include/stdio.h index 91d440b..1d0e27c 100644 --- a/src/libc/include/stdio.h +++ b/src/libc/include/stdio.h @@ -1,3 +1,21 @@ +/* + * 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 _STDIO_H #define _STDIO_H diff --git a/src/libc/include/stdlib.h b/src/libc/include/stdlib.h index 839c868..4065f1c 100644 --- a/src/libc/include/stdlib.h +++ b/src/libc/include/stdlib.h @@ -1,3 +1,21 @@ +/* + * 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 diff --git a/src/libc/src/free.c b/src/libc/src/free.c index 055e06b..d89a80a 100644 --- a/src/libc/src/free.c +++ b/src/libc/src/free.c @@ -1,3 +1,21 @@ +/* + * 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 . + */ + #include void free(void *const ptr) diff --git a/src/libc/src/malloc.c b/src/libc/src/malloc.c index ab5aef0..aa5ff31 100644 --- a/src/libc/src/malloc.c +++ b/src/libc/src/malloc.c @@ -1,3 +1,21 @@ +/* + * 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 . + */ + #include #include -- cgit v1.2.3