ChorusOS 5.0 Features and Architecture Overview

POSIX Shared Memory (POSIX_SHM)

The POSIX_SHM feature is a compatible implementation of the POSIX 1003.1 real-time shared memory objects API. For general information on this feature, see the POSIX standard (IEEE Std 1003.1b-1993).

POSIX Shared Memory API

The POSIX shared memory API is summarized in the following table. Some of the calls listed are also included in other features:

Function 

Description 

close()

Close a file descriptor 

dup()

Duplicate an open file descriptor 

dup2()

Duplicate an open file descriptor 

fchmod()

Change mode of file 

fchown()

Change owner and group of a file 

fcntl()

File control 

fpathconf()

Get configurable pathname variables 

fstat()

Get file status 

ftruncate()

Set size of a shared memory object 

mmap()

Map actor addresses to memory object. 

munmap()

Unmap previously mapped addresses 

shm_open()

Open a shared memory object 

shm_unlink()

Unlink a shared memory object