Keyronex / keyronex-archive

0 stars 0 forks source link

Factor out pathname/fd resolution in Posix *at syscalls #5

Open netbsduser opened 1 year ago

netbsduser commented 1 year ago

Posix *at system call implementations often have duplicate code for taking an FD number and path relative to the same, grabbing the vnode, and resolving that path. Sometimes the path is resolved only to the 2nd last component and the last component is extracted.

This should be factored out into a utility function.

netbsduser commented 1 year ago

Abstraction introduced in bda9891 and awaits use everywhere.