From 7d85dd5dd8471419f5f22b24477450afeb956074 Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Fri, 20 Dec 2024 04:03:27 +0200 Subject: [PATCH] kernel: Update interface headers Signed-off-by: EnderIce2 --- Kernel/include/interface/aip.h | 8 ++++---- Kernel/include/interface/errno.h | 19 ++++++++++--------- Kernel/include/interface/fs.h | 1 + Kernel/include/interface/pci.h | 8 ++++---- 4 files changed, 19 insertions(+), 17 deletions(-) diff --git a/Kernel/include/interface/aip.h b/Kernel/include/interface/aip.h index 9eebc58a..6189291b 100644 --- a/Kernel/include/interface/aip.h +++ b/Kernel/include/interface/aip.h @@ -1,18 +1,18 @@ /* - This file is part of Fennix Drivers. + This file is part of Fennix Kernel. - Fennix Drivers is free software: you can redistribute it and/or + Fennix Kernel is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - Fennix Drivers is distributed in the hope that it will be useful, + Fennix Kernel 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 General Public License for more details. You should have received a copy of the GNU General Public License - along with Fennix Drivers. If not, see . + along with Fennix Kernel. If not, see . */ #ifndef __FENNIX_API_AIP_H__ diff --git a/Kernel/include/interface/errno.h b/Kernel/include/interface/errno.h index 38aea8c6..ee601518 100644 --- a/Kernel/include/interface/errno.h +++ b/Kernel/include/interface/errno.h @@ -15,8 +15,8 @@ along with Fennix Kernel. If not, see . */ -#ifndef __FENNIX_KERNEL_ERRNO_H__ -#define __FENNIX_KERNEL_ERRNO_H__ +#ifndef __FENNIX_API_ERRNO_H__ +#define __FENNIX_API_ERRNO_H__ /** * The documentation for these error codes are from: @@ -416,8 +416,8 @@ typedef enum * Not a directory. A component of the specified pathname exists, but * it is not a directory, when a directory was expected; or an * attempt was made to create a non-directory file, and the specified - * pathname contains at least one non- character and ends - * with one or more trailing characters. + * pathname contains at least one non- \ character and ends + * with one or more trailing \ characters. */ ENOTDIR = 57, @@ -588,17 +588,18 @@ typedef enum __ERRNO_MAX } KernelErrors; -#include -EXTERNC int *__errno_location(void) __attribute__((const)); -#define errno (*__errno_location()) - #ifdef __cplusplus extern "C" { #endif + + int *__errno_location(void) __attribute__((const)); char *strerror(int errnum); + #ifdef __cplusplus } #endif -#endif // !__FENNIX_KERNEL_ERRNO_H__ +#define errno (*__errno_location()) + +#endif // !__FENNIX_API_ERRNO_H__ diff --git a/Kernel/include/interface/fs.h b/Kernel/include/interface/fs.h index b9d9ab70..27718cd7 100644 --- a/Kernel/include/interface/fs.h +++ b/Kernel/include/interface/fs.h @@ -348,6 +348,7 @@ struct SuperBlockOperations * Write all pending changes to the disk. * * @param Info Inode to synchronize. If NULL, synchronize all inodes. + * @param Node Inode to synchronize. * * @return Zero on success, otherwise an error code. */ diff --git a/Kernel/include/interface/pci.h b/Kernel/include/interface/pci.h index cd96b6a6..bfeedea0 100644 --- a/Kernel/include/interface/pci.h +++ b/Kernel/include/interface/pci.h @@ -1,18 +1,18 @@ /* - This file is part of Fennix Drivers. + This file is part of Fennix Kernel. - Fennix Drivers is free software: you can redistribute it and/or + Fennix Kernel is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - Fennix Drivers is distributed in the hope that it will be useful, + Fennix Kernel 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 General Public License for more details. You should have received a copy of the GNU General Public License - along with Fennix Drivers. If not, see . + along with Fennix Kernel. If not, see . */ #ifndef __FENNIX_API_PCI_H__