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);

DESCRIPTION


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), lofs(4FS), proc(5)

illumos August 27, 2019 illumos