system.scm 340 B

123456789101112131415
  1. (define-module (lang elisp primitives system)
  2. #:use-module (lang elisp internals fset))
  3. (fset 'system-name
  4. (lambda ()
  5. (vector-ref (uname) 1)))
  6. (define-public system-type
  7. (let ((uname (vector-ref (uname) 0)))
  8. (if (string=? uname "Linux")
  9. "gnu/linux"
  10. uname)))
  11. (define-public system-configuration "i386-suse-linux") ;FIXME