Multithreaded Programming Guide

sema_destroy(3C) Return Values

sema_destroy() returns 0 if successful. When the following condition is detected, sema_destroy() fails and returns the corresponding value.


EINVAL

Description:

sp refers to an invalid semaphore.