This module contains all system related functions and environment variables manipulation.
A group identifier, represented by a numeric ID in UNIX systems (e.g. 1000).
- toNat : NatThe numeric group ID. 
Instances For
Equations
Instances For
Equations
- Std.Internal.IO.Async.System.instOrdGroupId.ord { toNat := a } { toNat := b } = (compare a b).then Ordering.eq
Instances For
Equations
- Std.Internal.IO.Async.System.instReprGroupId = { reprPrec := fun (g : Std.Internal.IO.Async.System.GroupId) => Repr.addAppParen (Std.Format.text "GroupId.mk " ++ repr g.toNat) }
A user identifier, represented by a numeric ID in UNIX systems (e.g. 1001).
- toNat : NatThe numeric user ID. 
Instances For
Equations
Instances For
Equations
- Std.Internal.IO.Async.System.instOrdUserId.ord { toNat := a } { toNat := b } = (compare a b).then Ordering.eq
Instances For
Equations
- Std.Internal.IO.Async.System.instReprUserId = { reprPrec := fun (u : Std.Internal.IO.Async.System.UserId) => Repr.addAppParen (Std.Format.text "UserId.mk " ++ repr u.toNat) }
Information about the current user.
- username : StringThe user's name. 
- The user's ID. 
- The group the user belongs to. 
- The user's login shell. 
- homeDir : Option System.FilePathThe home directory of the user. 
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
Represents the breakdown of CPU time usage in milliseconds.
- userTime : Time.Millisecond.OffsetTime spent in user mode. 
- niceTime : Time.Millisecond.OffsetTime spent on low-priority user processes. 
- systemTime : Time.Millisecond.Offsettime spent in kernel mode. 
- idleTime : Time.Millisecond.OffsetTime the CPU was idle. 
- interruptTime : Time.Millisecond.OffsetTime spent servicing hardware interrupts. 
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Instances For
Gets information about the operating system.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Gets information about the CPU cores.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Gets the system uptime in seconds.
Equations
- Std.Internal.IO.Async.System.getUpTime = do let __do_lift ← Std.Internal.UV.System.uptime pure (Std.Time.Second.Offset.ofNat __do_lift.toNat)
Instances For
The current high-resolution timestamp in nanoseconds. It is relative to an arbitrary time in the past.
Equations
- Std.Internal.IO.Async.System.getHighResolutionTime = do let __do_lift ← Std.Internal.UV.System.hrtime pure (Std.Time.Nanosecond.Offset.ofNat __do_lift.toNat)
Instances For
Gets the hostname of the machine.
Instances For
Sets an environment variable to value.
Equations
- Std.Internal.IO.Async.System.setEnvVar name value = Std.Internal.UV.System.osSetenv name value
Instances For
Gets an environment variable.
Equations
Instances For
Unset an environment variable.
Equations
Instances For
Gets all environment variables.
Equations
- Std.Internal.IO.Async.System.getEnv = do let array ← Std.Internal.UV.System.osEnviron pure { toHashMap := (Std.HashMap.emptyWithCapacity array.size).insertMany array }
Instances For
Gets the current user's home directory.
Equations
Instances For
Gets the temporary directory.