#define LOS_ERRNO_SEM_UNAVAILABLE   LOS_ERRNO_OS_ERROR(LOS_MOD_SEM, 0x04)

Semaphore error code: Invalid parameter that specifies the timeout interval.

Value: 0x02000704

Solution: Change the passed-in parameter value to a valid nonzero value.

在文件los_sem.h103行定义。