Module: system-internals Author: Gary Palter Copyright: Original Code is Copyright (c) 1995-2004 Functional Objects, Inc. All rights reserved. License: Functional Objects Library Public License Version 1.0 Dual-license: GNU Lesser General Public License Warranty: Distributed WITHOUT WARRANTY OF ANY KIND define constant $architecture-little-endian? :: = #f; define constant $machine-name = #"ppc"; define constant $os-name = #"carbon"; define constant $os-variant = $os-name; define constant $os-version = "Unknown"; //---*** andrewa: is this correct? define constant $command-line-option-prefix = '/'; define function command-line-option-prefix () => (prefix :: ) $command-line-option-prefix end function command-line-option-prefix; ///---*** NOTE: Provide a non-null implementation when time permits... define function login-name () => (name :: false-or()) #f end function login-name; ///---*** NOTE: Provide a non-null implementation when time permits... define function login-group () => (group :: false-or()) #f end function login-group; ///---*** NOTE: Provide a non-null implementation when time permits... define function owner-name () => (name :: false-or()) #f end function owner-name; ///---*** NOTE: Provide a non-null implementation when time permits... define function owner-organization () => (organization :: false-or()) #f end function owner-organization; /// Use the MPW convention of a comma-separated list ... define constant $environment-variable-delimiter = ','; define variable *environment-variables* = make(); define function environment-variable (name :: ) => (value :: false-or()) element(*environment-variables*, name, default: #f) end function environment-variable; define function environment-variable-setter (new-value :: false-or(), name :: ) => (new-value :: false-or()) if (new-value) *environment-variables*[name] := new-value else remove-key!(*environment-variables*, name); #f end end function environment-variable-setter; define function load-library (name :: ) => (module) #f end function load-library; define function create-application-event (event :: ) => (event-object :: ) as(, 0) end function create-application-event; define constant $INFINITE_TIMEOUT = -1; define function wait-for-application-event (event-object :: , #key timeout :: = $INFINITE_TIMEOUT) => (success? :: ) #f end function wait-for-application-event; define function signal-application-event (event :: ) => (success? :: ) #f end function signal-application-event; define function run-application (command :: , #key under-shell? = #f, inherit-console? = #t, activate? = #t, minimize? = #f, outputter :: false-or(), asynchronous? = #f) => (status :: ) -1 end function run-application;