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 nil ;; FIXME: Implement.
28 #+nil(or *software-version*
29 (setf *software-version*
30 (string-trim '(#\newline)
31 (with-output-to-string (stream)
32 (sb!ext:run-program "/bin/uname" `("-r")
35 ;;; Return system time, user time and number of page faults.
36 (defun get-system-info ()
37 #+nil (multiple-value-bind
38 (err? utime stime maxrss ixrss idrss isrss minflt majflt)
39 (sb!unix:unix-getrusage sb!unix:rusage_self)
40 (declare (ignore maxrss ixrss idrss isrss minflt))
41 (unless err? ; FIXME: nonmnemonic (reversed) name for ERR?
42 (error "Unix system call getrusage failed: ~A." (strerror utime)))
43 (values utime stime majflt)))
45 ;;; Return the system page size.
46 (defun get-page-size ()
47 ;; probably should call getpagesize()
48 ;; FIXME: Or we could just get rid of this, since the uses of it look