X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fbsd-os.lisp;h=6a96ee93f25dd5ace15afac17c37aa7ba33c6390;hb=15d6e7c9a2c3234f95dfe278046fa2fee1b0c007;hp=8e30939c61a042a6b2255dd616429470e40460d3;hpb=72408d179d7396904e25e9a3dc423d2634e65072;p=sbcl.git diff --git a/src/code/bsd-os.lisp b/src/code/bsd-os.lisp index 8e30939..6a96ee9 100644 --- a/src/code/bsd-os.lisp +++ b/src/code/bsd-os.lisp @@ -16,7 +16,9 @@ "Return a string describing the supporting software." (the string ; (to force error in case of unsupported BSD variant) #!+FreeBSD "FreeBSD" - #!+OpenBSD "OpenBSD")) + #!+OpenBSD "OpenBSD" + #!+NetBSD "NetBSD" + #!+Darwin "Darwin")) (defvar *software-version* nil) @@ -31,12 +33,15 @@ (sb!ext:run-program "/usr/bin/uname" `("-r") :output stream)))))) -;;; OS-COLD-INIT-OR-REINIT initializes our operating-system interface. -;;; It sets the values of the global port variables to what they -;;; should be and calls the functions that set up the argument blocks -;;; for the server interfaces. (defun os-cold-init-or-reinit () - (setf *software-version* nil)) + (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 () @@ -45,7 +50,7 @@ (sb!unix:unix-getrusage sb!unix:rusage_self) (declare (ignore maxrss ixrss idrss isrss minflt)) (unless err? - (simple-perror "Unix system call getrusage failed" :errno utime)) + (simple-perror "Unix system call getrusage() failed" :errno utime)) (values utime stime majflt)))