Description

These functions operate on contract control file descriptors obtained from the contract(4)
file system.

The ct_ctl_adopt() function adopts the contract referenced by the file descriptor fd.
After a successful call to ct_ctl_adopt(), the contract is owned by the
calling process and any events in that contract's event queue are appended
to the process's bundle of the appropriate type.

The ct_ctl_abandon() function abandons the contract referenced by the file descriptor fd.
After a successful call to ct_ctl_abandon() the process no longer owns the
contract, any events sent by that contract are automatically removed from the process's
bundle, and any critical events on the contract's event queue are automatically
acknowledged. Depending on its type and terms, the contract will either be
orphaned or destroyed.

The ct_ctl_ack() function acknowledges the critical event specified byevid. If the event
corresponds to an exit negotiation, ct_ctl_ack() also indicates that the caller is
prepared for the system to proceed with the referenced reconfiguration.

The ct_ctl_qack() function requests a new quantum of time for the negotiation
specified by the event ID evid.

The ct_ctl_newct() function instructs the contract specified by the file descriptor fd
that when the current exit negotiation completes, another contract with the terms
provided by the template specified by templatefd should be automatically written.