-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding file system drivers regarding #35
- Loading branch information
1 parent
04e770d
commit 3a28fa4
Showing
3 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** | ||
* MIT License | ||
* | ||
* Copyright (c) 2024 Heisenberg | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* @author Heisenberg | ||
* @file vfs.h | ||
*/ | ||
|
||
#ifndef VFS_H | ||
#define VFS_H | ||
|
||
|
||
|
||
#include <types.h> | ||
|
||
|
||
#define MAX_DEVICES 26 | ||
|
||
|
||
#endif // VFS_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/** | ||
* MIT License | ||
* | ||
* Copyright (c) 2024 Heisenberg | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* @author Heisenberg | ||
* @file string.h | ||
*/ | ||
#ifndef STRING_H | ||
#define STRING_H | ||
|
||
#include "../types.h" | ||
|
||
void strcpy(char *str, char *format); | ||
void strncpy(char *str, char *format, size_t len); | ||
int strcmp(char *str1, char *str2); | ||
int strncmp(char *str1, char *str2, size_t len); | ||
void memset(void *start, uint32_t val, size_t len); | ||
void memcpy(void *dest, void *src, int size); | ||
void itoa(int val, char *str, int base); | ||
int atoi(char *str); | ||
int strlen(char *str); | ||
char char_at(char *str, int pos); | ||
void to_uppercase(char *str, char *format); | ||
void to_lowercase(char *str, char *format); | ||
char toupper(char c); | ||
char tolower(char c); | ||
int vsprintf(char *str, char *format, va_list args); | ||
char *strchr(char *str, int c); | ||
char *strcat(char *dest, char *src); | ||
|
||
#endif |