Skip to content

Commit

Permalink
Adding file system drivers regarding #35
Browse files Browse the repository at this point in the history
  • Loading branch information
MirMohammadd committed Mar 21, 2024
1 parent 04e770d commit 3a28fa4
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 0 deletions.
Empty file added include/fs/fat.h
Empty file.
29 changes: 29 additions & 0 deletions include/fs/vfs.h
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
40 changes: 40 additions & 0 deletions include/lib/string.h
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

0 comments on commit 3a28fa4

Please sign in to comment.