Implement sys_thr_get_name
I'll check this when I have time.
@ultimaweapon This is unrelated to the PR, but what would you think about doing Vthread::current().unwrap() before a syscall is called and passing it as another argument to all the syscall handlers? I feel like it's kind of redundant to do Vthread::current().unwrap() everywhere when we could do it once and then pass it to the function. Maybe there is an issue with it that I don't see. By pure coincidence, this is actually kind of similar to the actual FreeBSD syscall handlers.
I'll check this when I have time.
@ultimaweapon This is unrelated to the PR, but what would you think about doing Vthread::current().unwrap() before a syscall is called and passing it another argument to all the syscall handlers? I feel like it's kind of redundant to do Vthread::current().unwrap() everywhere when we could do it once and then pass it to the function. Maybe there is an issue with it that I don't see. By pure coincidence, this is actually kind of similar to the actual FreeBSD syscall handlers.
Good idea.
We are closing this PR due to no any activities in the last 30 days. Feel free to re-open it if you would like to continue working on this.
We are closing this PR due to no any activities in the last 30 days. Feel free to re-open it if you would like to continue working on this.