The most general thing to do is simply try to do what you want, then detect EPERM. You can use the access (2) system call to check if you can access a specific file in a specific way. You can check ...
一些您可能无法访问的结果已被隐去。
显示无法访问的结果一些您可能无法访问的结果已被隐去。
显示无法访问的结果