C API Reference -- Ns_TclGetOpenFd

### Ns_TclGetOpenFd

#### Overview

Get open file descriptor

#### Syntax

        int Ns_TclGetOpenFd (
        Tcl_Interp* ,
        char* chanId,
        int write,
        int* fdPtr
        );

#### Description

This function returns an open Unix file descriptor for the specified channel. The value at `fdPtr` is updated with a valid Unix file descriptor.

The `write` parameter specifies if a writable (TRUE) or readable (FALSE) channel is being requested. See the Tcl 7.6 documentation for Tcl_GetChannelFile.

This function returns TCL_ERROR or TCL_OK.

Top of Page
Copyright © 1998-99 America Online, Inc.