2005-04-16 00:23:27 -04:00
|
|
|
! Copyright (C) 2004, 2005 Slava Pestov.
|
|
|
|
! See http://factor.sf.net/license.txt for BSD license.
|
2005-08-22 02:06:32 -04:00
|
|
|
IN: kernel-internals
|
2005-10-08 01:15:14 -04:00
|
|
|
USING: assembler errors io io-internals kernel math namespaces
|
|
|
|
parser threads words ;
|
2004-08-23 02:15:10 -04:00
|
|
|
|
2004-07-16 02:26:21 -04:00
|
|
|
: boot ( -- )
|
2004-08-20 18:48:08 -04:00
|
|
|
#! Initialize an interpreter with the basic services.
|
2005-11-12 00:37:24 -05:00
|
|
|
init-namespaces
|
2005-10-08 01:15:14 -04:00
|
|
|
millis init-random
|
2005-02-07 18:04:49 -05:00
|
|
|
init-threads
|
2005-04-23 17:42:42 -04:00
|
|
|
init-io
|
2004-07-30 16:22:20 -04:00
|
|
|
"HOME" os-env [ "." ] unless* "~" set
|
2005-12-13 17:33:58 -05:00
|
|
|
17 getenv cell set
|
2005-08-22 01:33:43 -04:00
|
|
|
init-error-handler
|
|
|
|
default-cli-args
|
|
|
|
parse-command-line
|
2005-12-13 17:33:58 -05:00
|
|
|
"null-stdio" get [ stdio off ] when ;
|