Fix FORMAT compilation on non-simple strings.
[sbcl.git] / src / code / win32-os.lisp
blobdbc4c284485936b1a1785441fa2f64bed52e1b5f
1 ;;;; OS interface functions for SBCL under Win32.
3 ;;;; This software is part of the SBCL system. See the README file for
4 ;;;; more information.
5 ;;;;
6 ;;;; This software is derived from the CMU CL system, which was
7 ;;;; written at Carnegie Mellon University and released into the
8 ;;;; public domain. The software is in the public domain and is
9 ;;;; provided with absolutely no warranty. See the COPYING and CREDITS
10 ;;;; files for more information.
12 (in-package "SB!SYS")
14 ;;; Check that target machine features are set up consistently with
15 ;;; this file.
16 #!-win32 (error "missing :WIN32 feature")
18 (defun software-type ()
19 "Return a string describing the supporting software."
20 (values "Win32"))
22 (defun software-version ()
23 "Return a string describing version of the supporting software, or NIL
24 if not available."
25 (or *software-version*
26 (setf *software-version*
27 (multiple-value-bind
28 (major-version minor-version build-number platform-id csd-version)
29 (sb!win32:get-version-ex)
30 (declare (ignore platform-id))
31 (format nil (if (zerop (length csd-version))
32 "~A.~A.~A"
33 "~A.~A.~A (~A)")
34 major-version minor-version build-number csd-version)))))
36 ;;; Return user time, system time, and number of page faults.
37 (defun get-system-info ()
38 (sb!win32:with-process-times (creation-time exit-time kernel-time user-time)
39 (values (floor user-time 10) (floor kernel-time 10) 0)))
41 ;;; support for CL:MACHINE-VERSION defined OAOO elsewhere
42 (defun get-machine-version ()
43 nil)