Add symlink function (not yet implemented in ext2)

This commit is contained in:
Enrico Fraccaroli (Galfurian)
2023-09-01 11:17:40 -04:00
parent 45f75bd00d
commit 1197797ee1
16 changed files with 106 additions and 27 deletions
+6
View File
@@ -54,6 +54,12 @@ off_t lseek(int fd, off_t offset, int whence);
/// @return
int unlink(const char *path);
/// @brief Creates a symbolic link.
/// @param linkname the name of the link.
/// @param path the entity it is linking to.
/// @return 0 on success, a negative number if fails and errno is set.
int symlink(const char *linkname, const char *path);
/// @brief Wrapper for exit system call.
/// @param status The exit status.
extern void exit(int status);