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 : Nat
The numeric group ID.
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 : Nat
The numeric user ID.
Instances For
Equations
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 : String
The user's name.
The user's ID.
The group the user belongs to.
The user's login shell.
- homeDir : Option System.FilePath
The home directory of the user.
Instances For
Represents the breakdown of CPU time usage in milliseconds.
- userTime : Time.Millisecond.Offset
Time spent in user mode.
- niceTime : Time.Millisecond.Offset
Time spent on low-priority user processes.
- systemTime : Time.Millisecond.Offset
time spent in kernel mode.
- idleTime : Time.Millisecond.Offset
Time the CPU was idle.
- interruptTime : Time.Millisecond.Offset
Time spent servicing hardware interrupts.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Equations
All the environment variables.
- toHashMap : Std.HashMap String String
The list of all environment variables.
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
Ghe 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.