Mateusz Guzik 0573d0a9b8 vfs: add realpathat syscall
realpath(3) is used a lot e.g., by clang and is a major source of getcwd
and fstatat calls. This can be done more efficiently in the kernel.

This works by performing a regular lookup while saving the name and found
parent directory. If the terminal vnode is a directory we can resolve it using
usual means. Otherwise we can use the name saved by lookup and resolve the
parent.

See the review for sample syscall counts.

Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D23574
2020-02-20 16:58:19 +00:00
..
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00
2019-12-01 08:04:22 +00:00
2018-03-05 16:11:07 +00:00
2020-02-20 16:58:19 +00:00
2019-11-12 22:31:59 +00:00
2017-10-31 00:07:04 +00:00
2019-12-04 16:56:11 +00:00
2017-10-31 00:07:04 +00:00
2019-12-11 17:37:53 +00:00
2019-12-11 17:37:53 +00:00