diff options
Diffstat (limited to 'src/utils.nim')
-rw-r--r-- | src/utils.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utils.nim b/src/utils.nim index 288cf44..c1146ae 100644 --- a/src/utils.nim +++ b/src/utils.nim @@ -158,6 +158,9 @@ proc runProgram*(args: varargs[string]): seq[string] = proc setenv*(name: cstring, value: cstring, override: cint): cint {.importc, header: "<stdlib.h>".} +proc unsetenv*(name: cstring): cint + {.importc, header: "<stdlib.h>".} + proc getUser*: (int, string) = let uid = getuid() while true: |