Author(s): Daniel Cabeza, Manuel Carro.
Version: 1.11#222 (2004/5/24, 13:8:7 CEST)
Version of last change: 1.11#9 (2003/4/7, 14:1:46 CEST)
This module provides predicates which return basic internal info.
system_info
)system_info
)This predicate will describe the computer architecture wich is currently executing the predicate.
Computer architectures are identified by a simple atom. This atom is implementation-defined, and may suffer any change from one Ciao Prolog version to another.
For example,Ciao Prolog running on an Intel-based machine will retrieve:
?- get_arch(I). I = i86 ? ; no ?-
Usage: get_arch(ArchDescriptor)
ArchDescriptor
with a simple atom which describes the computer architecture currently executing the predicate.
ArchDescriptor
is an atom.
(basic_props:atm/1
)
This predicate will describe the Operating System which is running on the machine currently executing the Prolog program.
Operating Systems are identified by a simple atom. This atom is implementation-defined, and may suffer any change from one Ciao Prolog version to another.
For example,Ciao Prolog running on Linux will retrieve:
?- get_os(I). I = 'LINUX' ? ; no ?-
Usage: get_os(OsDescriptor)
OsDescriptor
with a simple atom which describes the running Operating System when predicate was called.
OsDescriptor
is an atom.
(basic_props:atm/1
)
Meta-predicate with arguments: this_module(addmodule)
.
Usage: this_module(Module)
Module
is the internal module identifier for current module.
Module
is an internal module identifier
(system_info:internal_module_id/1
)
This predicate will successively unify its argument with all module names currently loaded. Module names will be simple atoms.
When called using a free variable as argument, it will retrieve on backtracking all modules currently loaded. This is usefull when called from the Ciao
toplevel
.
When called using a module name as argument it will check whether the given module is loaded or not. This is usefull when called from user programs.
Usage: current_module(Module)
Module
is an internal module identifier
(system_info:internal_module_id/1
)
basic_props:native/1
)
Usage: ciaolibdir(CiaoPath)
CiaoPath
is the path to the root of the Ciao libraries. Inside this directory, there are the directories 'lib', 'library' and 'contrib', which contain library modules.
CiaoPath
is an atom.
(basic_props:atm/1
)
system_info
)For a user file it is a term user/1 with an argument different for each user file, for other modules is just the name of the module (as an atom).
Usage: internal_module_id(M)
M
is an internal module identifier
Go to the first, previous, next, last section, table of contents.