OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [expect/] [exp_closetcl.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
/* exp_closetcl.c - close tcl files */
2
 
3
/* isolated in it's own file since it has hooks into Tcl and exp_clib user */
4
/* might like to avoid dragging it in */
5
 
6
#include "expect_cf.h"
7
#include "tclInt.h"
8
 
9
void (*exp_close_in_child)() = 0;
10
 
11
void
12
exp_close_tcl_files() {
13
        int i;
14
 
15
        /* So much for close-on-exec.  Tcl doesn't mark its files that way */
16
        /* everything has to be closed explicitly. */
17
 
18
#if 0
19
/* Not necessary with Tcl 7.5? */
20
        for (i=3; i<tclNumFiles;i++) close(i);
21
#endif
22
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.