Jeevan Mathew
01/31/2008 8:20 AM
post4674
|
>
> How can pthread_mutex_init return with an error and set errno to NOENT.
>
Donno.
> I look in the source, but got nowhere. I couldn't find SyncTypeCreate().
>
> - Mario
#mkdir -p /tmp/myCPUkercalls
#cd trunk/lib/c/kercalls
#./mkkercalls /usr/include/sys/kercalls.h x86 /tmp/myCPUkercalls/
# ls -l /tmp/myCPUkercalls/
... SyncTypeCreate.S ....
Jeevan
|
|
|
Colin Burgess(deleted)
02/04/2008 5:54 PM
post4787
|
What was that you said about RTFM? ;-)
Pthread mutex doesn't set errno - the return value __is__ the errno...
Returns:
EOK
Success.
EAGAIN
All kernel synchronization objects are in use.
EBUSY
The given mutex was previously initialized and hasn't been destroyed.
EFAULT
A fault occurred when the kernel tried to access mutex or attr.
EINVAL
The value specified by attr is invalid.
Mario Charest wrote:
>
> How can pthread_mutex_init return with an error and set errno to NOENT.
>
> I look in the source, but got nowhere. I couldn't find SyncTypeCreate().
>
> - Mario
>
> _______________________________________________
> OSTech
> http://community.qnx.com/sf/go/post4666
>
--
cburgess@qnx.com
|
|
|