haskus-system-0.6.0.0: Haskus system programming framework

Safe HaskellNone
LanguageHaskell2010

Haskus.Arch.Linux.Process

Description

Process management

Synopsis

Documentation

sysExit :: Int64 -> IO () Source #

Exit the current process with the given return value This syscall does not return.

sysGetCPU :: MonadInIO m => Flow m '[(Word, Word), ErrorCode] Source #

Get CPU and NUMA node executing the current process

sysGetProcessID :: IO ProcessID Source #

Return process ID

sysGetParentProcessID :: IO ProcessID Source #

Return parent process ID

sysGetRealUserID :: IO UserID Source #

Get real user ID of the calling process

sysGetEffectiveUserID :: IO UserID Source #

Get effective user ID of the calling process

sysSetEffectiveUserID :: MonadIO m => UserID -> Flow m '[(), ErrorCode] Source #

Set effective user ID of the calling process

sysGetRealGroupID :: IO GroupID Source #

Get real group ID of the calling process

sysGetEffectiveGroupID :: IO GroupID Source #

Get effective group ID of the calling process

sysSetEffectiveGroupID :: MonadIO m => GroupID -> Flow m '[(), ErrorCode] Source #

Set effective group ID of the calling process

sysGetThreadID :: IO ThreadID Source #

Return thread ID

sysFork :: MonadIO m => Flow m '[ProcessID, ErrorCode] Source #

Create a child process

sysVFork :: MonadIO m => Flow m '[ProcessID, ErrorCode] Source #

Create a child process and block parent

sysSchedulerYield :: MonadIO m => Flow m '[(), ErrorCode] Source #

Yield the processor