1
0
Fork 0
forked from AbleOS/ableos
ableos-idl/userland/lib_syscalls/C/file_calls.c

31 lines
534 B
C
Raw Normal View History

2022-02-07 12:38:18 +00:00
enum FSReturns {
/// The system call was successful
Ok,
2022-04-11 22:23:11 +00:00
2022-02-07 12:38:18 +00:00
/// The directory can not be created
DirectoryCouldNotBeCreated,
2022-04-11 22:23:11 +00:00
2022-02-07 12:38:18 +00:00
/// The directory could not be removed
DirectoryCouldNotBeRemoved,
2022-04-11 22:23:11 +00:00
2022-02-07 12:38:18 +00:00
///
FileCouldNotBeCreated,
2022-04-11 22:23:11 +00:00
2022-02-07 12:38:18 +00:00
///
FileCouldNotBeRemoved,
/// The file could not be opened
2022-04-11 22:23:11 +00:00
2022-02-07 12:38:18 +00:00
FileCouldNotBeOpened,
///
FileCouldNotBeClosed,
};
int create_directory(path) {
return DirectoryCouldNotBeCreated;
}
2022-04-11 22:23:11 +00:00
2022-02-07 12:38:18 +00:00
///
int remove_directory(path) {
return DirectoryCouldNotBeRemoved;
}