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

NAME


Pisprocdir - determine if a directory is the /proc directory

LIBRARY


Process Control Library (libproc, -lproc)

SYNOPSIS


#include <libproc.h>

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

DESECRIPTION


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.

RETURN VALUES


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

INTERFACE STABILITY


Uncommitted

MT-LEVEL
See LOCKING in libproc(3LIB).

SEE ALSO


libproc(3LIB), proc(4), lofs(7FS)

illumos May 11, 2016 illumos