The Hackerlab at `regexps.com`

## A VU Name Handler for Standard Input and Output

up: libhackerlab next: A VU Handler for the URL File-Descriptor Scheme prev: VU Native File System Access

These functions provide a VU namespace handler for file names matching the regexp:

                 ^-$

When opened for `O_RDONLY` access, `"-"` refers to descriptor `0` .

When opened for `O_WRONLY` access, `"-"` refers to descriptor `1` .

The file `"-"` may not be opened for `O_RDWR` access.

Function `vu_push_dash_handler`

    void vu_push_dash_handler (int is_optional);

Establish a VU namespace handler for file-names matching the regexp:

                 ^-$

When opened for `O_RDONLY` access, `"-"` refers to descriptor `0` .

When opened for `O_WRONLY` access, `"-"` refers to descriptor `1` .

The file `"-"` may not be opened for `O_RDWR` access.

If the flag `is_optional` is `0` , the namespace handler is simply installed. If it is not `0` , the handler is registered under the name `"fd"` , but not installed.

(See vu_enable_optional_name_handler.)

libhackerlab: The Hackerlab C Library
The Hackerlab at `regexps.com`