-;;;; OS interface functions for CMU CL under Linux
+;;;; OS interface functions for SBCL under Linux
;;;; This software is part of the SBCL system. See the README file for
;;;; more information.
"Return a string describing the supporting software."
(values "Linux"))
-(defvar *software-version* nil)
-
;;; FIXME: More duplicated logic here vrt. other oses. Abstract into
;;; uname-software-version?
(defun software-version ()
(sb!ext:run-program "/bin/uname" `("-r")
:output stream))))))
-;;; FIXME: This logic is duplicated in other backends:
-;;; abstract, abstract. OS-COMMON-COLD-INIT-OR-REINIT, mayhaps?
-(defun os-cold-init-or-reinit () ; KLUDGE: don't know what to do here
- (/show0 "entering linux-os.lisp OS-COLD-INIT-OR-REINIT")
- (setf *software-version* nil)
- (/show0 "setting *DEFAULT-PATHNAME-DEFAULTS*")
- (setf *default-pathname-defaults*
- ;; (temporary value, so that #'NATIVE-PATHNAME won't blow up
- ;; when we call it below:)
- (make-trivial-default-pathname)
- *default-pathname-defaults*
- ;; (final value, constructed using #'NATIVE-PATHNAME:)
- (native-pathname (sb!unix:posix-getcwd/)))
- (/show0 "leaving linux-os.lisp OS-COLD-INIT-OR-REINIT"))
-
-;;; Return system time, user time and number of page faults.
+;;; Return user time, system time, and number of page faults.
(defun get-system-info ()
(multiple-value-bind
(err? utime stime maxrss ixrss idrss isrss minflt majflt)