sshhmmddtt() -- General Function (libc)

Detach a shared-memory segment from a process
#iinncclluuddee <ssyyss/ttyyppeess.hh>
#iinncclluuddee <ssyyss/iippcc.hh>
#iinncclluuddee <ssyyss/sshhmm.hh>
cchhaarr *sshhmmddtt (_s_h_m_a_d_d_r)
cchhaarr *_s_h_m_a_d_d_r;

sshhmmddtt()  detaches the  shared-memory segment  at  address _s_h_m_a_d_d_r  from the
calling  process.   If   all  went  well,  sshhmmddtt()  returns  returns  zero;
otherwise,  it returns  -1  and sets  eerrrrnnoo  to an  appropriate value.   In
particular,  it sets  eerrrrnnoo to  EEIINNVVAALL  if _s_h_m_a_d_d_r  does not  point to  the
beginning of a shared-memory segment.

_E_x_a_m_p_l_e
For an example of this function, see the Lexicon entry for sshhmmggeett().

_S_e_e _A_l_s_o
lliibbcc, sshhmmccttll(), sshhmmddtt(), sshhmmggeett()

_N_o_t_e_s
The COHERENT implementation of shared memory does not yet support attaching
a shared-memory  segment to a user-defined  address.  Therefore, you should
always set _s_h_m_a_d_d_r to zero.
