dg_allow_shd_attach(2) DG/UX 5.4 Rel. 2.01 dg_allow_shd_attach(2)
NAME
dg_allow_shared_descriptor_attach - let processes attach shared
descriptor array
SYNOPSIS
#include <sys/types.h>
int dg_allow_shared_descriptor_attach (pid_t pid)
where:
pid The process identifier of the process to be given
permission to attach.
DESCRIPTION
Allow the process identified by pid to attach to the shared
descriptor array of the calling process. This will enable process
pid to do a successful dg_attach_to_shared_descriptors(2) on the
current process.
The right to attach to a shared descriptor array is inherited across
forks and execs of process pid.
ACCESS CONTROL
No access checking is performed.
RETURN VALUE
0 Process pid may now attach to the shared descriptor array of
the calling process.
-1 An error occurred. errno is set to indicate the error.
DIAGNOSTICS
Errno may be set to one of the following error codes:
ESRCH pid does not exist.
SEE ALSO
open(2), dg_attach_to_shared_descriptors(2).
Licensed material--property of copyright holder(s) 1