drivers: Update include headers

Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
EnderIce2 2024-12-23 03:55:39 +02:00
parent 81af8a48cb
commit 1dbee4660e
No known key found for this signature in database
GPG Key ID: 2EE20AF089811A5A
5 changed files with 1095 additions and 51 deletions

View File

@ -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 modify it under the terms of the GNU General Public License as
published by the Free Software Foundation, either version 3 of published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later version. 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 but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with Fennix Drivers. If not, see <https://www.gnu.org/licenses/>. along with Fennix Kernel. If not, see <https://www.gnu.org/licenses/>.
*/ */
#ifndef __FENNIX_API_AIP_H__ #ifndef __FENNIX_API_AIP_H__

View File

@ -15,8 +15,8 @@
along with Fennix Kernel. If not, see <https://www.gnu.org/licenses/>. along with Fennix Kernel. If not, see <https://www.gnu.org/licenses/>.
*/ */
#ifndef __FENNIX_KERNEL_ERRNO_H__ #ifndef __FENNIX_API_ERRNO_H__
#define __FENNIX_KERNEL_ERRNO_H__ #define __FENNIX_API_ERRNO_H__
/** /**
* The documentation for these error codes are from: * 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 * Not a directory. A component of the specified pathname exists, but
* it is not a directory, when a directory was expected; or an * it is not a directory, when a directory was expected; or an
* attempt was made to create a non-directory file, and the specified * attempt was made to create a non-directory file, and the specified
* pathname contains at least one non- <slash> character and ends * pathname contains at least one non- \<slash\> character and ends
* with one or more trailing <slash> characters. * with one or more trailing \<slash\> characters.
*/ */
ENOTDIR = 57, ENOTDIR = 57,
@ -588,17 +588,18 @@ typedef enum
__ERRNO_MAX __ERRNO_MAX
} KernelErrors; } KernelErrors;
#include <types.h>
EXTERNC int *__errno_location(void) __attribute__((const));
#define errno (*__errno_location())
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
{ {
#endif #endif
int *__errno_location(void) __attribute__((const));
char *strerror(int errnum); char *strerror(int errnum);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif // !__FENNIX_KERNEL_ERRNO_H__ #define errno (*__errno_location())
#endif // !__FENNIX_API_ERRNO_H__

View File

@ -348,6 +348,7 @@ struct SuperBlockOperations
* Write all pending changes to the disk. * Write all pending changes to the disk.
* *
* @param Info Inode to synchronize. If NULL, synchronize all inodes. * @param Info Inode to synchronize. If NULL, synchronize all inodes.
* @param Node Inode to synchronize.
* *
* @return Zero on success, otherwise an error code. * @return Zero on success, otherwise an error code.
*/ */

View File

@ -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 modify it under the terms of the GNU General Public License as
published by the Free Software Foundation, either version 3 of published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later version. 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 but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with Fennix Drivers. If not, see <https://www.gnu.org/licenses/>. along with Fennix Kernel. If not, see <https://www.gnu.org/licenses/>.
*/ */
#ifndef __FENNIX_API_PCI_H__ #ifndef __FENNIX_API_PCI_H__

File diff suppressed because it is too large Load Diff