postwait_genkey - Generate a post-wait key.
int postwait_genkey( postwkey_t *key);
The postwait_genkey() function returns a statistically unique key of type postwkey_t in the key argument every time it is called. This is to be used in the post-wait mechanism provided by the functions postwait_post(3C), and postwait_postn(3C) to post and event ports to wait. For more information, see port_associate(3C).
Upon successful completion, postwait_genkey() returns 0 and the key in the key argument. Otherwise, it returns -1 and sets errno to indicate the error.
A signal was caught while reading /dev/urandom. For more information, see random(4D).
See attributes(7) for descriptions of the following attributes: