Jishan Alam
unread,Jan 29, 2026, 10:55:29 AM (2 days ago) Jan 29Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to freebsd-...@freebsd.org, ques...@freebsd.org
Hello, I wanted to know how to get the root dir of a process using
sysctl or other libs, sysctl leads me to kinfo_proc where ki_pd
contains pwddesc-> pd_pwd which only works in kernel? if not how to
get it safely is there any way.
Context: Im porting an app from Linux where the app reads from
/proc/<pid>/root using readlink but since freebsd doesnt have it, how
to emulated if it can be emulated.
Thank You.
--
Best Regards,
Jishan Alam