PISPROCIDR(3PROC) Process Control Library Functions PISPROCIDR(3PROC)

determine if a directory is the /proc directory

Process Control Library (libproc, -lproc)

#include <libproc.h>

Pisprocdir(struct ps_prochandle *P, const char *dir);

The Pisprocdir() function determines whether or not the directory dir is the root of the /proc file-system. This works across loopback file system (lofs) mounts and chroots.

Upon successful completion, the Pisprocdir() function returns 1 if dir is the /proc directory, otherwise if not, it returns 0.


See LOCKING in libproc(3LIB).

libproc(3LIB), proc(4), lofs(7FS)
August 27, 2019 illumos