mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:47:34 +00:00
Kernel+Userland: Add symlink() syscall and add "-s" flag to /bin/ln.
It's now possible to create symbolic links! :^) This exposed an issue in Ext2FS where we'd write uninitialized data past the end of an inode's content. Fix this by zeroing out the tail end of the last block in a file.
This commit is contained in:
parent
37f6844c6c
commit
2c5a378ccc
10 changed files with 106 additions and 12 deletions
|
@ -62,6 +62,7 @@ int ttyname_r(int fd, char* buffer, size_t);
|
|||
off_t lseek(int fd, off_t, int whence);
|
||||
int link(const char* oldpath, const char* newpath);
|
||||
int unlink(const char* pathname);
|
||||
int symlink(const char* target, const char* linkpath);
|
||||
int rmdir(const char* pathname);
|
||||
int getdtablesize();
|
||||
int dup(int old_fd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue