aboutsummaryrefslogtreecommitdiff
path: root/src/libc
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2025-07-06 22:17:52 +0200
committerXavier Del Campo Romero <xavi92@disroot.org>2025-07-06 22:21:51 +0200
commit8c430808c33bf13b981521afbef9c90e7afd8595 (patch)
tree337f4323364d711fc2513a2a41690932ae8d4465 /src/libc
parent800eca1742125ffa32f3b1b6568ff8f730d43730 (diff)
downloadwnix-8c430808c33bf13b981521afbef9c90e7afd8595.tar.gz
libc license
Diffstat (limited to 'src/libc')
-rw-r--r--src/libc/CMakeLists.txt16
-rw-r--r--src/libc/include/stdio.h18
-rw-r--r--src/libc/include/stdlib.h18
-rw-r--r--src/libc/src/free.c18
-rw-r--r--src/libc/src/malloc.c18
5 files changed, 88 insertions, 0 deletions
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 <https://www.gnu.org/licenses/>.
+
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 <https://www.gnu.org/licenses/>.
+ */
+
#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 <https://www.gnu.org/licenses/>.
+ */
+
#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 <https://www.gnu.org/licenses/>.
+ */
+
#include <stdlib.h>
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 <https://www.gnu.org/licenses/>.
+ */
+
#include <stdlib.h>
#include <stddef.h>