#include <ipc/chIpc.h>int portDelete(KnCap *actorcap, int portli);
portDelete deletes the port the local identifier of which is portli in the actor the capability of which is specified by the KnCap structure given by actorcap (see actorCreate(2K)). If actorcap is K_MYACTOR, the current actor is used.
When the port is deleted, the queued messages are deleted (the ipcCall(2K) transactions are aborted), and the waiting threads exit their waiting status with the K_ENOPORT error code.
Upon successful completion, a value of 0 is returned. Otherwise, a negative error code is returned.
actorcap is an inconsistent actor capability, or portli is not a valid port identifier within the named actor.
actorcap does not specify a reachable actor.
Some of the provided data are outside the current actor's address space.
The port and the current actor must be located on the same site.
See attributes(5) for descriptions of the following attributes:
|ATTRIBUTE TYPE||ATTRIBUTE VALUE|