Tcl_CreateCloseHandler(3) Tcl Library Procedures Tcl_CreateCloseHandler(3)__________________________________________________________________________________________________________________________________________________NAME
Tcl_CreateCloseHandler, Tcl_DeleteCloseHandler - arrange for callbacks when channels are closed
SYNOPSIS
#include <tcl.h>
void
Tcl_CreateCloseHandler(channel, proc, clientData)
void
Tcl_DeleteCloseHandler(channel, proc, clientData)
ARGUMENTS
Tcl_Channel channel (in) The channel for which to create or delete a close callback.
Tcl_CloseProc *proc (in) The procedure to call as the callback.
ClientData clientData (in) Arbitrary one-word value to pass to proc.
_________________________________________________________________DESCRIPTION
Tcl_CreateCloseHandler arranges for proc to be called when channel is closed with Tcl_Close or Tcl_UnregisterChannel, or using the Tcl
close command. Proc should match the following prototype:
typedef void Tcl_CloseProc(
ClientData clientData);
The clientData is the same as the value provided in the call to Tcl_CreateCloseHandler.
Tcl_DeleteCloseHandler removes a close callback for channel. The proc and clientData identify which close callback to remove; Tcl_Delete-
CloseHandler does nothing if its proc and clientData arguments do not match the proc and clientData for a close handler for channel.
SEE ALSO
close(n), Tcl_Close(3), Tcl_UnregisterChannel(3)KEYWORDS
callback, channel closing
Tcl 7.5 Tcl_CreateCloseHandler(3)
Check Out this Related Man Page
Tcl_CreateCloseHandler(3) Tcl Library Procedures Tcl_CreateCloseHandler(3)__________________________________________________________________________________________________________________________________________________NAME
Tcl_CreateCloseHandler, Tcl_DeleteCloseHandler - arrange for callbacks when channels are closed
SYNOPSIS
#include <tcl.h>
void
Tcl_CreateCloseHandler(channel, proc, clientData)
void
Tcl_DeleteCloseHandler(channel, proc, clientData)
ARGUMENTS
Tcl_Channel channel (in) The channel for which to create or delete a close callback.
Tcl_CloseProc *proc (in) The procedure to call as the callback.
ClientData clientData (in) Arbitrary one-word value to pass to proc.
_________________________________________________________________DESCRIPTION
Tcl_CreateCloseHandler arranges for proc to be called when channel is closed with Tcl_Close or Tcl_UnregisterChannel, or using the Tcl
close command. Proc should match the following prototype:
typedef void Tcl_CloseProc(
ClientData clientData);
The clientData is the same as the value provided in the call to Tcl_CreateCloseHandler.
Tcl_DeleteCloseHandler removes a close callback for channel. The proc and clientData identify which close callback to remove; Tcl_Delete-
CloseHandler does nothing if its proc and clientData arguments do not match the proc and clientData for a close handler for channel.
SEE ALSO
close(n), Tcl_Close(3), Tcl_UnregisterChannel(3)KEYWORDS
callback, channel closing
Tcl 7.5 Tcl_CreateCloseHandler(3)
hi,
we all know /proc is about the information of active process,
I have just read an artical which said you can use /proc/cpuinfo,
/proc/net./proc/meminfo etc. to know about some hardware
information .But I want to know how to use with command line? (1 Reply)
HI,
I have a proc installation.
On running the following 3 commands, I successfully get 3 C files.
proc char_map=string util.pc
proc char_map=string FDRFeedMain.pc
proc char_map=string NonMons.pc
This gives me util.c FDRFeedMain.c NonMons.c
Now when i try to compile the... (6 Replies)
hi,
i need to compile a proc program, say prog.pc
can we compile this program in the unix environment? does this need a make file? can anyone help me on this since i am new to this area.
Thanks in advance. (1 Reply)
Greetings
I want to confirm about HUGE and old files with linkcount 0 in proc file system.
what is their impact on size of root File system? (3 Replies)
proc explore_help {} {
set channel
while { >= 0 } {
puts "$signame";
}
close $channel
}
Hello,
I need help in understanding this proc. This is a proc to display readme file to explain the functions of the explorer script. What is the meaning of the commands inside the while loop?... (1 Reply)
Hi,
I have a files in a directory as below :-
ls -1
mqdepth-S1STC02
proc-mq-S1STC01
proc-mq-S1STC02
proc-mq-S1STC03
Whereever i have S1STC i need to copy them into new file with file name S2STC.
expected output :-
ls -1
mqdepth-S2STC02
proc-mq-S2STC01
proc-mq-S2STC02... (3 Replies)