RTEMS CPU Kit with SuperCore  4.11.3
Functions
prwlocktranslatereturncode.c File Reference

POSIX RWLock Translate Core RWLock Return Code. More...

#include <pthread.h>
#include <errno.h>
#include <rtems/system.h>
#include <rtems/posix/rwlockimpl.h>
Include dependency graph for prwlocktranslatereturncode.c:

Functions

int _POSIX_RWLock_Translate_core_RWLock_return_code (CORE_RWLock_Status the_rwlock_status)
 POSIX translate core RWLock return code. More...
 

Detailed Description

POSIX RWLock Translate Core RWLock Return Code.

Function Documentation

◆ _POSIX_RWLock_Translate_core_RWLock_return_code()

int _POSIX_RWLock_Translate_core_RWLock_return_code ( CORE_RWLock_Status  the_RWLock_status)

POSIX translate core RWLock return code.

This routine translates SuperCore RWLock status codes into the corresponding POSIX ones.

Parameters
[in]the_RWLock_statusis the SuperCore status.
Returns
the corresponding POSIX status
Return values
0The status indicates that the operation completed successfully.
EINVALThe status indicates that the thread was blocked waiting for an operation to complete and the RWLock was deleted.
EBUSYThis status indicates that the RWLock was not immediately available.
ETIMEDOUTThis status indicates that the calling task was willing to block but the operation was unable to complete within the time allotted because the resource never became available.

References CORE_RWLOCK_STATUS_LAST.