X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Flinux-os.lisp;h=640320e566e7b444aef387f9ce235d1bd76332d0;hb=085501b44cc1cbdd9e260139d30b383372ddd1b8;hp=585401e1f59a034fc31bf610e11029b4345d9783;hpb=4898ef32c639b1c7f4ee13a5ba566ce6debd03e6;p=sbcl.git diff --git a/src/code/linux-os.lisp b/src/code/linux-os.lisp index 585401e..640320e 100644 --- a/src/code/linux-os.lisp +++ b/src/code/linux-os.lisp @@ -1,4 +1,4 @@ -;;;; 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. @@ -20,8 +20,6 @@ "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 () @@ -35,22 +33,7 @@ (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 #'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/))) - (/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) @@ -62,7 +45,4 @@ ;;; Return the system page size. (defun get-page-size () - ;; probably should call getpagesize() - ;; FIXME: Or we could just get rid of this, since the uses of it look - ;; disposable. - 4096) + sb!c:*backend-page-size*) \ No newline at end of file