[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: getting a directory from a port

> What is the correct way to get a directory name from a message port.
> For example:
> mach_port_t cwdir;
>  in struct proc_stat (/include/ps.h:283)

There is no perfect way, due to the meaning of file names.  Look at
_hurd_canonicalize_directory_name_internal in libc/sysdeps/mach/hurd/getcwd.c 
to see one approach (the same one getcwd uses).

Reply to: