X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fbsd-os.lisp;h=5567c3f7ae7577d21649b71d4445743c36e5b8c3;hb=860543cc7ba0266e41e1d41ac9b6a208f3795f1a;hp=5b0e6fc92d42f7672817a928b2101324c3deb239;hpb=e8c27392f426b5ebe180fa07b220a9b650a49061;p=sbcl.git diff --git a/src/code/bsd-os.lisp b/src/code/bsd-os.lisp index 5b0e6fc..5567c3f 100644 --- a/src/code/bsd-os.lisp +++ b/src/code/bsd-os.lisp @@ -31,12 +31,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,8 +48,7 @@ (sb!unix:unix-getrusage sb!unix:rusage_self) (declare (ignore maxrss ixrss idrss isrss minflt)) (unless err? - (error "Unix system call getrusage failed: ~A." - (sb!unix:get-unix-error-msg utime))) + (simple-perror "Unix system call getrusage() failed" :errno utime)) (values utime stime majflt)))