mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-29 21:58:20 +00:00
syscalls: link at
This commit is contained in:
+4
-2
@@ -220,13 +220,15 @@ static int tmpfs_readlink(vnode_t *node, char** buff, size_t* linksize){
|
||||
|
||||
}
|
||||
|
||||
static int tmpfs_link(dirnode_t* parent, char* name, vnode_t* link){
|
||||
|
||||
static int tmpfs_link(dirnode_t* parent, vnode_t* link, char* name){
|
||||
|
||||
if(!hashtable_insert(&parent->children, name, link))
|
||||
return ENOMEM;
|
||||
|
||||
++link->st.st_nlink;
|
||||
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
||||
static fscalls_t funcs = {
|
||||
|
||||
Reference in New Issue
Block a user