summary refs log tree commit diff stats
path: root/tests/stdlib/tposix.nim
blob: bf0b495865245d464376f297c48365c1c143e609 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Test Posix interface

when not defined(windows):

  import posix

  var
    u: Tutsname

  discard uname(u)

  writeln(stdout, u.sysname)
  writeln(stdout, u.nodename)
  writeln(stdout, u.release)
  writeln(stdout, u.machine)