PATH_READLINK

Read the contents of a symbolic link.

Note: This is similar to readlinkat in POSIX. If buf is not large enough to contain the contents of the link, the first buf_len bytes will be be written to buf.

(@interface func (export "path_readlink")
(param $fd $fd)
;;; The path of the symbolic link from which to read.
(param $path string)
;;; The buffer to which to write the contents of the symbolic link.
(param $buf (@witx pointer u8))
(param $buf_len $size)
;;; The number of bytes placed in the buffer.
(result $error (expected $size (error $errno)))
)