XDoc Search Logo
Package:
stratego/xtc/posix
Proc
Link to XDoc
Author: Unknown
Since: Unknown
Summary: Used for POSIX and POSIX+XSI
Definitions:
File-as-fd Opens a file, applies the strategy s the file descriptor, and ensures that the file descriptor is closed on return of s, regardless of outcome. The strategy s will be handed a file descriptor for the the FILE given to File-as-fd. The result of s will become the result of File-as-fd, and the file descriptor will always be closed, also when s fails.
read-from Reads a term from a file. If the given file exists, it will be treated as an ATerm and its content will be returned, as a term.
xtc-close-fd Closes a file descriptor. This strategy can be used to close any file opened by<tt>xtc-open-fd</tt>, and also the standard files<tt>stdin</tt>,<tt>stdout</tt>and<tt>stderr</tt>.
xtc-command No additional information available
xtc-generate Generates a new file using the component identified by tool. This strategy will invoke the component given by tool with no arguments, and write the resulting term to a new file. A handle to the new file will be returned. No arguments will be passed on to the invoked component (except the implicit -o).
xtc-generate Generates a new file using the component identified by tool. This strategy will invoke the component given by tool with no arguments, and write the resulting term to a new file. A handle to the new file will be returned. The strategy args must produce a list of arguments which are passed to the invoked component.
xtc-io-transform Transforms a file with an internal strategy s. This strategy will open an external file, apply s to it, and write the result back to the file.
xtc-io-transform-text Transforms a file with an internal strategy s into a text file. This strategy will open an external file (which must be an ATerm), apply s to it, and print the result as a string back into the file.
xtc-new-file-name Generates a new file name, but does not create the file on disk. As the file is not created on disk, another process may theoretically create it (and thus own it), thus causing a race condition. For this reason, you may prefer to us<tt>xtc-new-file</tt>instead.
xtc-open-fd Opens a file and returns a file descriptor. This strategy can be used to open any<tt>FILE</tt>s as well as<tt>stdin</tt>,<tt>stdout</tt>and<tt>stderr</tt>. The file descriptor should be closed with<tt>xtc-close-fd</tt>.
xtc-transform No additional information available
xtc-transform Invokes the XT component given by tool to transform the current term. The tool strategy must give the name of the component to invoke. The The current term will be serialized to the invoked component, and the result of its execution will become the new current term. The args parameter must return a list of arguments that will be given to the invoked component.
xtc-transform-file No additional information available
xtc-transform-file Transforms an existing file with an external process into a new file. The resulting file will be created automatically, and a handle will be returned by this strategy. The tool strategy must give the name of the component to invoke. No arguments will be passed to the transforming component.
xtc-transform-file Transforms an existing file with an external process into a new file. The resulting file will be created automatically, and a handle will be returned by this strategy. The tool strategy must give the name of the component to invoke. The args strategy must give a list of arguments to pass to the component.
xtc-transform-file No additional information available
xtc-transform-term No additional information available