forked from dmitryvk/sbcl-win32-threads
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement and document SB-EXT:*CORE-PATHNAME*. ... communicate from runtime via SB-INT:*CORE-STRING*, rather than constructing a pathname in C. Related refactoring. ... since OS-COLD-INIT-OR-REINIT has exactly the same functionality on all currently supported platforms, move it into a common file; ... define common *common-static-symbols* and *c-callable-static-symbols* for use in constructing the per-backend *static-symbols* list, and to remove the need for maintaining a separate list of callable symbols in genesis.
- Loading branch information
Showing
23 changed files
with
235 additions
and
432 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
;;;; OS interface functions for SBCL common to all target OSes | ||
|
||
;;;; This software is part of the SBCL system. See the README file for | ||
;;;; more information. | ||
;;;; | ||
;;;; This software is derived from the CMU CL system, which was | ||
;;;; written at Carnegie Mellon University and released into the | ||
;;;; public domain. The software is in the public domain and is | ||
;;;; provided with absolutely no warranty. See the COPYING and CREDITS | ||
;;;; files for more information. | ||
|
||
(in-package "SB!SYS") | ||
|
||
(defvar *software-version* nil) | ||
|
||
(defvar *core-pathname* nil | ||
#!+sb-doc | ||
"The absolute pathname of the running SBCL core.") | ||
|
||
;;; if something ever needs to be done differently for one OS, then | ||
;;; split out the different part into per-os functions. | ||
(defun os-cold-init-or-reinit () | ||
(/show0 "entering OS-COLD-INIT-OR-REINIT") | ||
(setf *software-version* nil) | ||
(/show0 "setting *DEFAULT-PATHNAME-DEFAULTS*") | ||
(setf *default-pathname-defaults* | ||
;; (temporary value, so that #'NATIVE-PATHNAME won't blow up when | ||
;; we call it below:) | ||
(make-trivial-default-pathname) | ||
*default-pathname-defaults* | ||
;; (final value, constructed using #'NATIVE-PATHNAME:) | ||
(native-pathname (sb!unix:posix-getcwd/))) | ||
(/show0 "setting *CORE-PATHNAME*") | ||
(setf *core-pathname* | ||
(merge-pathnames (native-pathname *core-string*))) | ||
(/show0 "leaving OS-COLD-INIT-OR-REINIT")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.