RTEMS 6.3
Loading...
Searching...
No Matches
semaphoreimpl.h File Reference

Private Inlined Routines for POSIX Semaphores. More...

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.

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 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.