Skip to content
Snippets Groups Projects
Commit 88047ce5 authored by wlott's avatar wlott
Browse files

Moved foreign-segment-{start,size} from mumble-os.lisp into foreign.lisp.

Changed software-version to use /usr/bin/uname instead of stringing the
kernel.
parent 82b635e1
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu. ;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;; ;;;
(ext:file-comment (ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/sunos-os.lisp,v 1.6 1992/05/15 17:52:00 wlott Exp $") "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/sunos-os.lisp,v 1.7 1993/02/07 21:17:33 wlott Exp $")
;;; ;;;
;;; ********************************************************************** ;;; **********************************************************************
;;; ;;;
...@@ -21,28 +21,20 @@ ...@@ -21,28 +21,20 @@
(pushnew :sunos *features*) (pushnew :sunos *features*)
(setq *software-type* "SunOS") (setq *software-type* "SunOS")
(defconstant foreign-segment-start #x00C00000) ; ### Not right???
(defconstant foreign-segment-size #x00400000)
(defvar *software-version* nil "Version string for supporting software") (defvar *software-version* nil "Version string for supporting software")
(defun software-version () (defun software-version ()
"Returns a string describing version of the supporting software." "Returns a string describing version of the supporting software."
(unless *software-version* (unless *software-version*
(setf *software-version* (setf *software-version*
(let ((version-line (let ((version-line
(with-output-to-string (stream) (with-output-to-string (stream)
(run-program (run-program "/usr/bin/uname"
"/bin/sh" '("-r" )
'("-c" "strings /vmunix|grep -i 'sunos release'") :output stream
:output stream :pty nil
:pty nil :error nil))))
:error nil)))) (subseq version-line 0 (1- (length version-line))))))
(let* ((first-space (position #\Space version-line))
(second-space (position #\Space version-line
:start (1+ first-space)))
(third-space (position #\Space version-line
:start (1+ second-space))))
(subseq version-line (1+ second-space) third-space)))))
*software-version*) *software-version*)
...@@ -52,7 +44,7 @@ ...@@ -52,7 +44,7 @@
;;; ;;;
(defun os-init () (defun os-init ()
;; Decache version on save, because it might not be the same when we restart. ;; Decache version on save, because it might not be the same when we restart.
(setq *software-version* nil)) (setf *software-version* nil))
;;; GET-SYSTEM-INFO -- Interface ;;; GET-SYSTEM-INFO -- Interface
;;; ;;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment