psem: in sem_open, regard 0 /and/ -1 as failure; and then print the errno
VxWorks and RTEMS-4.9 return -1 on error, while Linux returns SEM_FAILED which is NULL.
Please register or sign in to comment
VxWorks and RTEMS-4.9 return -1 on error, while Linux returns SEM_FAILED which is NULL.