X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fbsd-os.lisp;h=97814f2cc8c742958d5ee0ccbb0c1775e6923b0d;hb=007bcd5aac2f3a1e714563bd39f7a2db2d0bf7c2;hp=ed8d8686abec06b2e20121269ffee2e5147a83b0;hpb=4898ef32c639b1c7f4ee13a5ba566ce6debd03e6;p=sbcl.git diff --git a/src/code/bsd-os.lisp b/src/code/bsd-os.lisp index ed8d868..97814f2 100644 --- a/src/code/bsd-os.lisp +++ b/src/code/bsd-os.lisp @@ -1,4 +1,4 @@ -;;;; OS interface functions for CMU CL under BSD Unix. +;;;; OS interface functions for SBCL under BSD Unix. ;;;; This code was written as part of the CMU Common Lisp project at ;;;; Carnegie Mellon University, and has been placed in the public @@ -8,8 +8,9 @@ ;;;; Check that target machine features are set up consistently with ;;;; this file. -#!-bsd (eval-when (:compile-toplevel :load-toplevel :execute) - (error "The :BSD feature is missing, we shouldn't be doing this code.")) +#!-bsd +(eval-when (:compile-toplevel :load-toplevel :execute) + (error "The :BSD feature is missing, we shouldn't be doing this code.")) (defun software-type () #!+sb-doc @@ -20,8 +21,6 @@ #!+NetBSD "NetBSD" #!+Darwin "Darwin")) -(defvar *software-version* nil) - (defun software-version () #!+sb-doc "Return a string describing version of the supporting software, or NIL @@ -33,16 +32,6 @@ (sb!ext:run-program "/usr/bin/uname" `("-r") :output stream)))))) -(defun os-cold-init-or-reinit () - (setf *software-version* nil) - (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/)))) - ;;; Return system time, user time and number of page faults. (defun get-system-info () (multiple-value-bind (err? utime stime maxrss ixrss idrss