System.Posix.SharedMem

unix-2.7.2.0: POSIX functionality

Copyright | (c) Daniel Franke 2007
License | BSD-style (see the file libraries/base/LICENSE)
Maintainer | libraries@haskell.org
Stability | experimental
Portability | non-portable (requires POSIX)
Safe Haskell | Safe
Language | Haskell2010

System.Posix.SharedMem

Description

POSIX shared memory support.

Synopsis

- data ShmOpenFlags = ShmOpenFlags {
  - shmReadWrite :: Bool
  - shmCreate :: Bool
  - shmExclusive :: Bool
  - shmTrunc :: Bool
  }
- shmOpen :: String -> ShmOpenFlags -> FileMode -> IO Fd
- shmUnlink :: String -> IO ()

# Documentation

data ShmOpenFlags #

Constructors

ShmOpenFlags |
Fields shmReadWrite :: Bool If true, open the shm object read-write rather than read-only. shmCreate :: Bool If true, create the shm object if it does not exist. shmExclusive :: Bool If true, throw an exception if the shm object already exists. shmTrunc :: Bool If true, wipe the contents of the shm object after opening it.

shmOpen :: String -> ShmOpenFlags -> FileMode -> IO Fd #

Open a shared memory object with the given name, flags, and mode.

shmUnlink :: String -> IO () #

Delete the shared memory object with the given name.