Lazarus 4.0 / FPC 3.2.2
Working with semaphores on Linux.
I call sem_timedwait function which returns -1 in case of failure.
According to the Linux documentation errno should then be set to ETIMEDOUT.
I check errno, but there is 0, I tried calling GetLastOSError/fpgeterrno, but it also returns 0.
Moreover I checked the operation of other semaphore functions. In case of an error they all return -1, but GetLastOSError still returns 0.
What can be the reason for GetLastOSError/fpgeterrno always return 0 value instead of ETIMEDOUT, EACCES, EEXIST, EINVAL etc?