X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fsunos-os.lisp;h=2a419a636637e1daac3de7336b4d743746676f15;hb=6fa968aaa8051da23cc3153a1c0e67addbea85f6;hp=626f6063dd3ba6e8e9d579ff107822edc3be2093;hpb=a90011b42c64f95e6476081345f46e5eeb319f30;p=sbcl.git diff --git a/src/code/sunos-os.lisp b/src/code/sunos-os.lisp index 626f606..2a419a6 100644 --- a/src/code/sunos-os.lisp +++ b/src/code/sunos-os.lisp @@ -1,4 +1,4 @@ -;;;; OS interface functions for CMU CL under Solaris (FIXME: SunOS?) +;;;; OS interface functions for SBCL under SunOS ;;;; This software is part of the SBCL system. See the README file for ;;;; more information. @@ -20,31 +20,16 @@ "Return a string describing the supporting software." (values "SunOS")) -(defvar *software-version* nil) - (defun software-version () #!+sb-doc "Return a string describing version of the supporting software, or NIL if not available." (or *software-version* (setf *software-version* - (string-trim '(#\newline) - (with-output-to-string (stream) - (sb!ext:run-program "/bin/uname" `("-r") - :output stream)))))) - -(defun os-cold-init-or-reinit () ; KLUDGE: don't know what to do here - (/show "entering sunos-os.lisp OS-COLD-INIT-OR-REINIT") - (setf *software-version* nil) - (/show "setting *DEFAULT-PATHNAME-DEFAULTS*") - (setf *default-pathname-defaults* - ;; (temporary value, so that #'PATHNAME won't blow up when - ;; we call it below:) - (make-trivial-default-pathname) - *default-pathname-defaults* - ;; (final value, constructed using #'PATHNAME:) - (pathname (sb!unix:posix-getcwd/))) - (/show "leaving sunos-os.lisp OS-COLD-INIT-OR-REINIT")) + (string-trim '(#\newline) + (with-output-to-string (stream) + (sb!ext:run-program "/bin/uname" `("-r") + :output stream)))))) ;;; Return system time, user time and number of page faults. (defun get-system-info () @@ -62,4 +47,5 @@ ;; FIXME: Or we could just get rid of this, since the uses of it look ;; disposable. ;; FIXME II: this could well be wrong - 8192) + #!+sparc 8192 + #!+x86 4096)