from small one page howto to huge articles all in one place

search text in:




Other .linuxhowtos.org sites:gentoo.linuxhowtos.org



Last additions:
using iotop to find disk usage hogs

using iotop to find disk usage hogs

words:

887

views:

209584

userrating:


May 25th. 2007:
Words

486

Views

258592

why adblockers are bad


Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

words:

161

views:

149881

userrating:


April, 26th. 2006:

Druckversion
You are here: manpages





Tcl_GetOpenFile

Section: Tcl Library Procedures (3)
Updated: 8.0
Index Return to Main Contents



 

NAME

Tcl_GetOpenFile - Return a FILE* for a channel registered in the given interpreter (Unix only)  

SYNOPSIS

#include <tcl.h>

int
Tcl_GetOpenFile(interp, chanID, write, checkUsage, filePtr)

 

ARGUMENTS

Tcl_Interp *interp (in) Tcl interpreter from which file handle is to be obtained.
const char *chanID (in) String identifying channel, such as stdin or file4.
int write (in) No-zero means the file will be used for writing, zero means it will be used for reading.
int checkUsage (in) If no-zero, then an error will be generated if the file was not opened for the access indicated by write.
ClientData *filePtr (out) Points to word in which to store pointer to FILE structure for the file given by chanID.



 

DESCRIPTION

Tcl_GetOpenFile takes as argument a file identifier of the form returned by the open command and returns at *filePtr a pointer to the FILE structure for the file. The write argument indicates whether the FILE pointer will be used for reading or writing. In some cases, such as a channel that connects to a pipeline of subprocesses, different FILE pointers will be returned for reading and writing. Tcl_GetOpenFile normally returns TCL_OK. If an error occurs in Tcl_GetOpenFile (e.g. chanID did not make any sense or checkUsage was set and the file was not opened for the access specified by write) then TCL_ERROR is returned and the interpreter's result will contain an error message. In the current implementation checkUsage is ignored and consistency checks are always performed.

Note that this interface is only supported on the Unix platform.

 

KEYWORDS

channel, file handle, permissions, pipeline, read, write


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
KEYWORDS





Support us on Content Nation
rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2025 Sascha Nitsch Unternehmensberatung GmbH
Valid XHTML1.1 : Valid CSS
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 17.1 ms