haskus-system-0.7.0.0: Haskus system programming framework

Safe HaskellNone
LanguageHaskell2010

Haskus.System.System

Contents

Description

System

Synopsis

Documentation

data System Source #

Constructors

System 

Fields

defaultSystemInit :: Sys System Source #

Initialize the system

systemInit :: FilePath -> Sys System Source #

Create a system object

Create the given path if it doesn't exist and mount the system in it

Memory map

memoryMapToBufferList :: MemoryMapEntry -> IO BufferList Source #

Convert a memory-map entry into a BufferList

memoryMapToBuffer :: MemoryMapEntry -> IO Buffer Source #

Convert a memory-map entry into a Buffer

Warning: The buffer directly maps the entry (i.e. there is no copy of the data). Hence the referential transparency can be broken if the entry is written into

data MemoryMapEntry Source #

Memory map entry

Constructors

MemoryMapEntry 

Fields

data MappingType Source #

Type of memory mapping

Constructors

AnonymousMapping

Anonymous mapping

NamedMapping Text

Mapping with a name | File mapping

FileMapping 

Fields

data Perm Source #

Memory permission

Constructors

PermRead

Read allowed

PermWrite

Write allowed

PermExec

Execute allowed

Instances

data Sharing Source #

Memory sharing

Constructors

Shared

Shared

Private

Private (copy-on-write)

Instances