Xinu7/man/man2/pcreate.doc




PCREATE(2)          Xinu Programmer's Manual           PCREATE(2)



NAME
     pcreate - create a new port

SYNOPSIS
     int pcreate(count)
     int count;

DESCRIPTION
     _P_c_r_e_a_t_e creates a port with _c_o_u_n_t locations for storing mes-
     sage pointers.

     _P_c_r_e_a_t_e returns an integer identifying  the port if success-
     ful.  If no more ports can be allocated, or if _c_o_u_n_t is non-
     positive, _p_c_r_e_a_t_e returns SYSERR.

     Ports are manipulated with PSEND(2) and PRECEIVE(2).
     Receiving from a port returns a pointer to a message that
     was previously sent to the port.

SEE ALSO
     pcount(2), pdelete(2), preceive(2), preset(2), psend(2)


































Version 6b               Printed 1/12/87                        1