1 PISPROCIDR(3PROC) Process Control Library Functions PISPROCIDR(3PROC) 2 3 NAME 4 Pisprocdir - determine if a directory is the /proc directory 5 6 LIBRARY 7 Process Control Library (libproc, -lproc) 8 9 SYNOPSIS 10 #include <libproc.h> 11 12 int 13 Pisprocdir(struct ps_prochandle *P, const char *dir); 14 15 DESCRIPTION 16 The Pisprocdir() function determines whether or not the directory dir is 17 the root of the /proc file-system. This works across loopback file 18 system (lofs) mounts and chroots. 19 20 RETURN VALUES 21 Upon successful completion, the Pisprocdir() function returns 1 if dir is 22 the /proc directory, otherwise if not, it returns 0. 23 24 INTERFACE STABILITY 25 Uncommitted 26 27 MT-LEVEL 28 See LOCKING in libproc(3LIB). 29 30 SEE ALSO 31 libproc(3LIB), proc(4), lofs(7FS) 32 33 illumos August 27, 2019 illumos