0 Successful completion. The function executes the semaphore lock operation. -1 Indicates an error. The function sets errno to one of the following values: o EINTR - A signal interrupted this function. o EVMSERR - OpenVMS specific nontranslatable error code.