GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  P_CANSEE (9)

NAME

p_cansee - determine visibility of a process

CONTENTS

Synopsis
Description
Return Values
Errors
See Also

SYNOPSIS


.In sys/param.h
.In sys/proc.h int p_cansee struct thread *td struct proc *p

DESCRIPTION

This function can be used to determine if a given process p is visible to the thread td, where the notion of "visibility" may be read as "awareness of existence".

The function is implemented using cr_cansee(9), and the dependencies on sysctl(8) variables documented in the cr_cansee(9) manual page apply.

RETURN VALUES

The p_cansee function returns 0 if the process denoted by p is visible by thread td, or a non-zero error return value otherwise.

ERRORS

[ESRCH]
  Process p is not visible to thread td as determined by cr_cansee(9).
[ESRCH]
  Thread td has been jailed and process p does not belong to the same jail as td.
[ESRCH]
  The MAC subsystem denied visibility.

SEE ALSO

jail(2), sysctl(8), cr_cansee(9), mac(9), p_candebug(9), prison_check(9)
Search for    or go to Top of page |  Section 9 |  Main Index


Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.