38#ifndef _RTEMS_POSIX_POSIXAPI_H
39#define _RTEMS_POSIX_POSIXAPI_H
41#include <rtems/config.h>
60extern const int _POSIX_Get_by_name_error_table[ 3 ];
62static inline int _POSIX_Get_by_name_error(
63 Objects_Get_by_name_error error
67 return _POSIX_Get_by_name_error_table[ error ];
75static inline int _POSIX_Get_error_after_wait(
79 return _POSIX_Get_error( _Thread_Wait_get_status( executing ) );
82static inline int _POSIX_Zero_or_minus_one_plus_errno(
86 if ( status == STATUS_SUCCESSFUL ) {
100static inline bool _POSIX_Is_valid_pshared(
int pshared )
102 return pshared == PTHREAD_PROCESS_PRIVATE ||
103 pshared == PTHREAD_PROCESS_SHARED;
This header file provides the interfaces of the Assert Handler.
#define RTEMS_ARRAY_SIZE(_array)
Gets the element count of the array.
Definition: basedefs.h:244
#define rtems_set_errno_and_return_minus_one(_error)
Definition: seterr.h:67
#define _Assert(_e)
Assertion similar to assert() controlled via RTEMS_DEBUG instead of NDEBUG and static analysis runs.
Definition: assert.h:96
Status_Control
Status codes.
Definition: status.h:111
#define STATUS_GET_POSIX(status)
Macro to get the POSIX API status code.
Definition: status.h:105
POSIX Threads Private Support.
This header file provides interfaces of the Object Handler which are only used by the implementation.
This header file defines macros to set errno and return minus one.
This header file provides interfaces of the Thread Handler which are only used by the implementation.