ableos/userland/lib_syscalls/C/file_calls.c

31 lines
534 B
C
Raw Normal View History

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