RTEMS 6.1-rc1
Macros | Functions
semaphoreimpl.h File Reference

Private Inlined Routines for POSIX Semaphores. More...

#include <rtems/posix/semaphore.h>
#include <rtems/posix/posixapi.h>
#include <rtems/score/semaphoreimpl.h>
#include <rtems/seterr.h>

Go to the source code of this file.

Macros

#define POSIX_SEMAPHORE_MAGIC   0x5d367fe7UL
 This is a random number used to check if a semaphore object is properly initialized.
 
#define POSIX_SEMAPHORE_VALIDATE_OBJECT(sem)
 

Functions

void _POSIX_Semaphore_Delete (POSIX_Semaphore_Control *the_semaphore)
 POSIX Semaphore Delete. More...
 

Detailed Description

Private Inlined Routines for POSIX Semaphores.

This include file contains the static inline implementation of the private inlined routines for POSIX Semaphores.

Macro Definition Documentation

◆ POSIX_SEMAPHORE_VALIDATE_OBJECT

#define POSIX_SEMAPHORE_VALIDATE_OBJECT (   sem)
Value:
do { \
if ( \
( sem ) == NULL \
|| ( (uintptr_t) ( sem ) ^ POSIX_SEMAPHORE_MAGIC ) != ( sem )->_flags \
) { \
rtems_set_errno_and_return_minus_one( EINVAL ); \
} \
} while ( 0 )
#define NULL
Requests a GPIO pin group configuration.
Definition: xil_types.h:54
#define POSIX_SEMAPHORE_MAGIC
This is a random number used to check if a semaphore object is properly initialized.
Definition: semaphoreimpl.h:54

Function Documentation

◆ _POSIX_Semaphore_Delete()

void _POSIX_Semaphore_Delete ( POSIX_Semaphore_Control the_semaphore)

POSIX Semaphore Delete.

This routine supports the sem_close and sem_unlink routines.