tposix.nim 266 B

1234567891011121314151617181920
  1. discard """
  2. outputsub: ""
  3. """
  4. # Test Posix interface
  5. when not defined(windows):
  6. import posix
  7. var
  8. u: Utsname
  9. discard uname(u)
  10. writeLine(stdout, u.sysname)
  11. writeLine(stdout, u.nodename)
  12. writeLine(stdout, u.release)
  13. writeLine(stdout, u.machine)