Module system

The System module exports an interface to the C language (the C-FFI) and certain operating system calls.

Exported from

Library Dylan

Summary
The System module exports an interface to the C language (the C-FFI) and certain operating system calls.
Several macros use the following symbols to represent C types:

C type symbols

Several macros use the following symbols to represent C types:

#”boolean”int
#”byte”char
#”char”char
#”double”double
#”float”float
#”int”int
#”long”long
#”long-double”long double
#”long-long”long long
#”ptr”void *
#”short”short
#”ubyte”unsigned char
#”uint”unsigned int
#”unsigned-char”unsigned char
#”unsigned-int”unsigned int
#”unsigned-short”unsigned short
#”ushort”unsigned short
#”void”void, for return types only

system names

In the process of working with Dylan, the Gwydion Project has come up with numerous extensions to the Dylan language.
The maximum size of a <buffer>.
There are two unrelated <buffer> classes.
There are two unrelated types named <buffer-index>.
A designator class carries the essential properties of a C type such as its size and alignment.
A class representing a memory address.
Returns the alignment of a C type.
Returns the address of the start of a memory buffer.
There are two unrelated functions named buffer-end.
There are two unrelated functions named buffer-end-setter.
There are two unrelated functions named buffer-next.
There are two unrelated functions named buffer-next-setter.
Returns the entry point of a C-callable Dylan function.
Creates and returns a C-callable Dylan function.
Calls a C function and returns its value.
Create a global C declaration.
Evaluate a C expression at this point.
Includes a C header file using the “” syntax.
Returns the Dylan value of a C literal.
Create a local C declaration in the current compiler output function.
Copies bytes from one byte collection to another, or copies bytes within a byte collection.
Returns the value of a field of a C structure.
Sets the value of a field of a C struct.
Includes a C header file using the <> syntax.
Constructs and returns a <designator-class>.
Returns a C string from a Dylan string.
Returns the value of an environment variable using the C getenv function.
Returns the number of seconds that have passed since 00:00:00 GMT January 1, 1970.
Returns a Dylan string from a C string.
On Unix operating systems, prevents core dump files.
Returns the C value that a <raw-pointer> points to.
Sets the C value that a <raw-pointer> points to.
Returns the designator class that a pointer’s designator class points to.
Returns the size of a C type in sizeof units.
Runs an application or command.
Returns the address at which a <vector>’s elements begin.