dm_sem_open Function

public function dm_sem_open(sem, name, value, create, mode) result(rc)

Opens and optionally creates named semaphore. The given name shall not start with a leading /.

The function returns the following error codes:

  • E_INVALID if name is empty or starts with /, or if value is negative.
  • E_SYSTEM if system call to open semaphore failed.

Arguments

Type IntentOptional Attributes Name
type(sem_type), intent(inout) :: sem

Semaphore type.

character(len=*), intent(in) :: name

Semaphore name (without leading /).

integer, intent(in), optional :: value

Initial value.

logical, intent(in), optional :: create

Create semaphore.

integer, intent(in), optional :: mode

Permissions.

Return Value integer


Calls

proc~~dm_sem_open~~CallsGraph proc~dm_sem_open dm_sem_open c_sem_open c_sem_open proc~dm_sem_open->c_sem_open