1 ;;;; OS interface functions for SBCL under Win32.
3 ;;;; This software is part of the SBCL system. See the README file for
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.
14 ;;; Check that target machine features are set up consistently with
16 #!-win32 (error "missing :WIN32 feature")
18 (defun software-type ()
20 "Return a string describing the supporting software."
23 (defun software-version ()
25 "Return a string describing version of the supporting software, or NIL
27 (or *software-version*
28 (setf *software-version*
30 (major-version minor-version build-number platform-id csd-version)
31 (sb!win32:get-version-ex)
32 (declare (ignore platform-id))
33 (format nil (if (zerop (length csd-version))
36 major-version minor-version build-number csd-version)))))
38 ;;; Return user time, system time, and number of page faults.
39 (defun get-system-info ()
40 (sb!win32:with-process-times (creation-time exit-time kernel-time user-time)
41 (values (floor user-time 10) (floor kernel-time 10) 0)))
43 ;;; Return the system page size.
44 (defun get-page-size ()
45 ;; probably should call getpagesize()
46 ;; FIXME: Or we could just get rid of this, since the uses of it look
50 ;;; support for CL:MACHINE-VERSION defined OAOO elsewhere
51 (defun get-machine-version ()