Next: , Previous: Package FL.TESTS, Up: Reference manual


6.6 Package FL.PORT

This package should contain the implementation-dependent parts of Femlisp with the exception of the MOP. It serves a similar purpose as the PORT module in CLOCC and is somewhat inspired by this module. It will be dropped when there is a portable and easily installable alternative in all CL implementations we are interested in

— Macro: DEF-FUNCTION &REST ARGS

Defines a foreign function. See examples in alien;src;superlu.lisp.

— Function: FINALIZE OBJ FUNC

Sets up func as finalizer for obj.

— Function: FIND-EXECUTABLE NAME

Finds an executable in the current path.

— Macro: FOREIGN-CALL-WRAPPER &REST BODY

Ensures a safe environment for a foreign function call, especially so that no GC changes array pointers obtained by vector-sap.

— Function: GETENV VAR

Return the value of the environment variable.

— Function: LOAD-FOREIGN-LIBRARY FILE

Loads the foreign library file.

— Function: MAKE-WEAK-POINTER OBJ

Creates a weak pointer pointing to obj.

— Function: PROCESS-CLOSE PROCESS

Closes process.

— Function: PROCESS-INPUT PROCESS

Process-input for process.

— Function: PROCESS-OUTPUT PROCESS

Process-output for process.

— Function: PROCESS-STATUS PROCESS

Returns the status of process.

— Function: RUN-PROGRAM PROGRAM ARGS &KEY WAIT INPUT OUTPUT ERROR-OUTPUT DIRECTORY

Runs program with arguments args.

— Function: SAVE-FEMLISP-CORE-AND-DIE CORE-FILE-NAME

Saves Femlisp core and quits.

— Function: UNIX-CHDIR PATH

Change the directory to path.

— Function: VECTOR-SAP PTR

Returns an array pointer which can be used in a foreign call.

— Function: WEAK-POINTER-VALUE WP

Returns the value of the weak pointer wp.