Appendix A. Function List

absolute_pathreturns the absolute path of the given file.
accesschecks a file for various permissions.
acos finds the arc cosine of a number.
add_echo_functionassigns functions for echoes on a point.
add_exception_functionassigns functions for exceptions on a point.
add_hookhooks a function to an event.
add_set_functionsets an expression to be evaluated when a given symbol changes value.
after performs an action after a period of time.
alist_p tests for association lists.
allocated_cellsgives the number of allocated and free cells.
and is the same as the corresponding logical operator (&&).
appendconcatenates several lists into a single new list.
apropos finds all defined symbols in the current interpreter environment.
aref returns an expression at a given index.
array constructs an array.
array_p tests for arrays.
array_to_listconverts an array to a list.
aset sets an array element to a value at a given index.
asin finds the arc sine of a number.
assoc searches an association list for a sublist, using eq.
assoc_equalsearches an association list for a sublist, using equal.
at performs an action at a given time, or regularly.
atan finds the arc tangent of a number.
atan2 finds the arc tangent with two arguments.
atexit evaluates code before exiting a program.
AutoLoadallows for run-time symbol lookup.
autoload_undefined_symbolchecks undefined symbols for AutoLoad.
AutoMapFunctionmaps a C function to a Gamma function.
autotrace_pis for internal use only.
backquotecorresponds to a quote operator.
band performs bitwise and operations.
basename gives the base of a filename.
bdelete deletes a single character from a buffer.
bin converts numbers into binary form.
binsert inserts a value into a buffer.
block_signalstarts signal blocking.
block_timersblocks timer firing.
bnot performs bitwise not operations.
bor performs bitwise inclusive or operations.
breakpoint_pis for internal use only.
bsearchsearches an array or list for a element.
bufferconstructs a buffer.
buffer_ptests for buffers.
buffer_to_stringconverts a buffer to a string.
builtin_p is for internal use only.
bxor perform bitwise exclusive or operations.
caaar returns that element of a list.
caadr returns that element of a list.
caar returns that element of a list.
cadar returns that element of a list.
caddr returns that element of a list.
cadr returns that element of a list.
call calls a class method for a given instance.
cancel removes a timer from the set of pending timers.
car returns that element of a list.
cd changes the working directory.
cdaar returns that element of a list.
cdadr returns that element of a list.
cdar returns that element of a list.
cddar returns that element of a list.
cdddr returns that element of a list.
cddr returns that element of a list.
cdr returns that element of a list.
ceil rounds a real number up to the next integer.
cfand performs and operations with a confidence factor.
cfor performs or operations with a confidence factor.
char generates an ASCII character from a number.
char_valgenerates a character's numeric value.
chars_waitingchecks for characters waiting to be read on a file.
class_add_cvaradds new class variables.
class_add_ivaradds an instance variable to a class.
class_namegives the name of the class.
class_of gives the class definition of a given instance.
class_p tests for classes.
ClearAutoLoadremoves all AutoLoad rules.
clock gets the OS time.
close closes an open file.
close_taskcloses a task opened by locate_task.
conf queries confidence factors.
cons constructs a cons cell.
cons_p tests for cons cells.
constant_ptests for constants.
copy makes a copy of the top list level of a list.
copy_treecopies the entire tree structure and elements of a list.
cos returns the cosine of a number.
create_state is part of the SCADALisp exception-driven state machine mechanism.
date gets the OS date and time; translates seconds into dates.
date_of is obsolete, see date
dec converts numbers into base-10 form.
defclass is the function equivalent of the statement: class.
defmacro is a Lisp equivalent of the function: macro.
defmacroe is a Lisp equivalent of the function: macro.
defmethod is the function equivalent of the function: method.
defun is a function equivalent of the statement: function.
defune is a function equivalent of the statement: function.
defvar defines a global variable with an initial value.
delete removes an element from an array.
destroydestroys a class instance.
destroyed_ptests for destroyed instances.
_destroy_taskshould never be used.
dev_read is a modification of QNX 4 dev_read.
dev_setup is obsolete, see ser_setup.
differenceconstructs a list of the differences between two lists.
directoryreturns the contents of a directory.
dirname returns the directory path of a file.
div divides two numbers, giving an integer result.
dlclose closes an open dynamic library.
dlerror reports errors in dl functions.
dlfunc reserved for future use.
DllLoadloads dynamic libraries.
dlmethodreserved for future use.
dlopen loads a dynamic library from a file.
drain modifies end-of-file detection.
enter_stateis part of the SCADALisp exception-driven state machine mechanism.
eq compares for identity and equivalence.
equal compares for identity and equivalence.
errno detects and numbers errors.
error redirects the interpreter.
eval evaluates an argument.
eval_countcounts evaluations made since a program started.
eval_listevaluates each element of a list.
eval_stringevaluates a string.
every performs an action every number of seconds.
exec executes a program.
exit_programterminates the interpreter.
exit_stateis part of the SCADALisp exception-driven state machine mechanism.
exp calculates an exponent of the logarithmic base (e).
fd_close closes a open file identified by a file descriptor.
fd_data_functionattaches a write-activated callback to a file.
fd_eof_function attaches an _eof_-activated callback to a file.
fd_open opens a file or device and assigns it a file descriptor.
fd_read reads a buffer or string from an open file identified by a file descriptor.
fd_to_filecreates a file pointer from a descriptor.
fd_write writes a buffer or string to an open file identified by a file descriptor.
file_dategives the file modification date.
file_p tests for files.
file_sizegives the file size.
fileno creates a file descriptor from a pointer.
find searches a list using the function: eq.
find_equalsearches a list using the function: equal.
fixed_point_ptests for fixed-point reals.
floor rounds a real number down to its integer value.
flush flushes any pending output on a file or string.
flush_eventshandles all pending events, then exits.
fork duplicates a process.
format generates a formatted string.
free_cellsreturns the number of available memory cells.
funcallprovides compatibility with other Lisp dialects.
function_argslists the arguments of a function.
function_bodygives the body of a user-defined function.
function_callstells how often a function was called during profiling.
function_namegives the name of a function.
function_ptests for functions.
function_runtimegives the time a function has run during profiling.
gc runs the garbage collector.
gc_blocksize is for internal use only.
gc_enable is for internal use only.
gc_newblockis for internal use only.
gc_tracecontrols the tracing of garbage collection.
gensym generates a unique symbol.
getcwd gets the current working directory.
getenv retrieves the value of an environment variable.
gethostname gets the computer's host name.
getnid returns the local node number.
getpid returns the program ID.
getprop returns a property value for a symbol.
getsockopt gets a socket option.
has_cvarqueries for the existence of a class variable.
has_ivarqueries for the existence of an instance variable.
hex converts numbers into hexadecimal form.
init_async_ipcrequests queue information from a task.
init_ipc sets up necessary data structures for IPC.
inp queries hardware ports (by byte).
inpw queries hardware ports (by word).
insert inserts a value at a given position.
instance_ptests for instances.
instance_varsfinds all the instance variables of a class or instance.
int converts numbers to integer form.
int_p tests for integers.
intersectionconstructs a list of all the elements found in both of two lists.
ioctl performs control functions on a file descriptor.
is_busydetermines if a file is busy.
is_class_memberchecks if an instance or class is a member of a class.
is_dir determines if a file is a directory.
is_filedetermines if a file exists.
is_readabledetermines if a file is readable.
is_writabledetermines if a file is writable.
isend sends a synchronous message and doesn't wait for the result.
ivar_typereturns the type of a given instance variable.
kill sends a signal to a process.
length counts the number of elements in a list or array.
list creates lists, evaluating the arguments.
list_p tests for lists.
list_to_arrayconverts a list to an array.
listq creates lists without evaluating the arguments.
load loads files.
load_lisploads Lisp files.
locate_taskfinds and connects to tasks by name.
locate_task_idfinds and connects to tasks by task ID and network node.
lock_pointlocks or unlocks points.
log calculates natural logarithms.
log10 calculates base 10 logarithms.
logn calculates logarithms of a given base.
long_p tests for long integers.
macro helps generate custom functions.
macro_p tests for macros.
make_arraycreates an empty array.
make_buffercreates a new, empty buffer.
method_ptests for methods.
mkdir creates a new sub-directory.
mmap implements the C function call mmap.
modules is obsolete, and returns nothing of value.
name_attachattaches a name to a task.
nanoclock gets the OS time, including nanoseconds.
nanosleeppauses the interpreter for seconds and nanoseconds.
nappend appends one or more lists, destructively modifying them.
neg negates a number.
new creates a new instance of a class.
next_eventblocks waiting for an event, and calls the event handling function.
next_event_nbis the same as next_event, but doesn't block.
nil_p tests for nil values.
NoAutoLoadremoves selected AutoLoad rules.
not is the same as the corresponding logical operator (!).
notrace turns tracing off.
nremove removes list items, destructively altering the list.
nreplacereplaces elements in a list, using eq.
nreplace_equalreplaces elements in a list, using equal.
nserve_queryputs information from nserve into an array.
nth_cariteratively applies the car functions to a list.
nth_cdriteratively applies the cdr functions to a list.
number attempts to convert an expression to a number.
number_ptests for numbers.
oct converts numbers into octal form.
open attempts to open a file.
open_stringallows a string to be used as a file.
or is the same as the corresponding logical operator (||).
outp writes values to hardware ports (by byte).
outpw writes values to hardware ports (by word).
parent_classreturns the closest parent (base) of a class or instance.
parse_stringparses an input string.
path_nodegives the node number of a path in a QNX 2 path definition.
pipecreates a pipe.
point_lockedindicates if a point is locked.
point_nanosecondsgives the nanoseconds from point_seconds that a point value changed.
point_secondsgives the time the point value changed.
point_securitygives the security level of a point.
pow raises a base to the power of an exponent.
pretty_princwrites to the standard output file, with formatting.
pretty_printwrites Lisp-readable output to the standard output file, with formatting.
pretty_writewrites an expression to a file, applying formatting.
pretty_writecwrites an expression to a file, applying formatting.
princ writes to the standard output file.
print writes Lisp-readable output to the standard output file.
print_stackprints a Gamma stack.
profilecollects statistics on function usage and run time.
prog1groups several statements into one expression.
progngroups several statements into one expression.
propertiesshould never be used.
ptyruns programs in a pseudo-tty.
ptytioruns programs in a pseudo-tty, using a termios structure argument.
qnx_name_attachregisters a local or global name.
qnx_name_detachdetaches a name.
qnx_name_locateis an implementation of the C function qnx_name_locate.
qnx_osinforeturns a class very similar to QNX 4 struct_osinfo.
qnx_osstatlists processor loads and number of READY processes at each priority level.
qnx_proxy_attachcreates a proxy message for a process.
qnx_proxy_detachremoves a proxy.
qnx_proxy_rem_attachcreates a remote proxy message for a task.
qnx_proxy_rem_detachremoves a remote proxy.
qnx_receiveperforms a QNX 4 Receive.
qnx_replyreplies to messages of type: qnx_receive.
qnx_sendimplements QNX 4 Send.
qnx_spawn_processis an implementation of the C function qnx_spawn.
qnx_triggertells a proxy to send its message.
qnx_vc_attachestablishes a virtual circuit between two processes on two computers.
qnx_vc_detachdetaches a virtual circuit.
qnx_vc_name_attachattaches a virtual circuit with a name instead of a process ID number.
quote corresponds to a quote operator.
random generates random numbers from 0 to 1.
raw_memorytells the amount of memory in use.
read reads a Lisp expression from a file.
read_charreads the next character from the input file.
read_doublereads the next double from the input file.
read_eval_filereads a file, evaluating and counting expressions.
read_existing_pointretrieves points.
read_floatreads the next float from the input file.
read_linereads a single line of text.
read_longreads the next long value from the input file.
read_n_charsreads and stores characters.
read_pointcreates and/or retrieves points.
read_shortreads the next short value from the input file.
read_untilreads characters, constructing a string as it goes.
real_p tests for reals.
register_all_pointsregisters an application to receive exceptions for all points.
register_exceptionis not yet documented.
register_existing_pointregisters an application to receive exceptions for a single existing point.
register_pointcreates and/or registers an application to receive exceptions for a single point.
registered_ptests for registered points.
remove removes list items without altering the list.
remove_echo_functionremoves an echo function from a symbol.
remove_exception_function removes an exception function from a symbol.
remove_hookremoves a hooked function.
remove_set_functionremoves a set function from a symbol.
rename renames a file.
requirerequires/loads files.
require_lisprequires/loads Lisp files.
required_filedetermines which files would be loaded.
reversereverses the order of list elements.
root_pathstrips the final file or directory name from a path.
round rounds a real number up or down to the nearest integer.
rplaca replaces the car of a list.
rplacd replaces the cdr of a list.
run_hooks runs a hooked function.
secure_pointalters the security level on a point.
seek sets the file position for reading or writing.
send transmits expressions for evaluation.
send_asynctransmits expressions asynchronously.
send_stringtransmits strings for evaluation.
send_string_asynctransmits a string asynchronously.
ser_setup sets parameters for a serial port device.
set assigns a value to a symbol, evaluating both arguments.
set_autotraceis reserved for future use.
set_breakpointis reserved for future use.
set_conf sets confidence factors.
set_domainsets the default domain for future calls.
set_randomstarts random at a different initial number.
set_securitychanges the security level for the current process.
setenv sets an environment variable for the current process.
setprop sets a property value for a symbol.
setprops lists the most recent property value settings.
setq assigns a value to a symbol, evaluating the second argument.
setqq assigns a value to a symbol, not evaluating any arguments.
setsockopt sets a socket option.
shell_matchcompares string text to a pattern.
shm_open opens shared memory objects.
shm_unlinkremoves shared memory objects.
shorten_arrayreduces or expands the size of an array.
shorten_bufferreduces the size of a buffer.
signal defines an expression to be evaluated at an OS-generated signal.
sin returns the sine of a number.
sleep suspends execution for seconds.
sort sorts a list or array, destructively modifying the order.
sqr finds the square of a number.
sqrt finds the square root of a number.
stack lists all functions called so far.
strchr searches a string for a character, returning the first location.
strcmp compares strings, case-sensitive.
strerrorretrieves an error message.
stricmp compares strings, case-insensitive.
stringconstructs a string.
string_file_bufferqueries a string file for its internal buffer.
string_ptests for strings.
string_splitbreaks a string into individual words.
string_to_buffercreates a buffer object from a string.
stringcconstructs a string in Lisp-readable form,
strlen counts the number of characters in a string.
strncmpcompares two strings and return a numeric result, case-sensitive.
strnicmpcompares two strings and return a numeric result, case-insensitive.
strrchr searches a string for a character, returning the last location.
strrev reverses the order of characters in a string.
strstr finds the location of a given substring.
substr returns a substring for a given location.
sym_alist_ptests for symbolic association lists.
symbolconstructs a symbol from a string.
symbol_ptests for symbols.
system treats its argument as a system command.
tan returns the tangent of a number.
taskdied calls a function when a task stops.
task_info gets information from a task descriptor.
taskstartedcalls a function when a task starts.
tell indicates file position.
terpri prints a newline to an open file.
time gives command execution times.
timer_is_proxycontrols timer handling in Gamma.
tmpfilegenerates temporary output file names.
tolowerconverts upper case letters to lower case.
toupperconverts lower case letters to upper case.
trace turns tracing on.
trap_errortraps errors in the body code.
true_p tests for truth value.
unblock_signalends signal blocking.
unblock_timersunblocks timer firing.
unbuffer_filecauses a file to be treated as unbuffered on both input and output.
undefined_ptests for undefined values.
undefined_symbol_ptests for undefined symbols.
union constructs a list containing all the elements of two lists.
unlink deletes a file.
unread_charattempts to replace a character to a file for subsequent reading.
unregister_pointstops echo and exception message sending.
unwind_protectensures code will be evaluated, despite errors in the body code.
usleep suspends execution for microseconds.
wait waits for process exit status.
when_echo_fnsindicates the functions for echos on a point.
when_exception_fnsindicates the functions for exceptions on a point.
when_set_fnsreturns all functions set for a symbol.
whence gives input information.
write writes an expression to a file.
write_existing_pointwrites values to existing points.
write_n_charswrites characters from a buffer to a file.
write_pointwrites point values, creating points if necessary.
writec writes a Lisp expression to a file.