Pisprocdir
—
determine if a directory is the /proc directory
Process Control Library (libproc, -lproc)
#include
<libproc.h>
int
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.
Uncommitted
See
LOCKING in
libproc(3LIB).
libproc(3LIB),
proc(4),
lofs(7FS)