JimMakeChannel() is only used within OpenOCD.
 
Symbols
loading...
Files
loading...

JimMakeChannel() function

Creates a channel for fh/fd/filename. If fh is not NULL, uses that as the channel (and sets AIO_KEEPOPEN). Otherwise fd must be >= 0, in which case it uses that as the channel. hdlfmt is a sprintf format for the filehandle. Anything with %ld at the end will do. mode is used for open or fdopen. Creates the command and sets the name as the current result. Returns the AioFile pointer on sucess or NULL on failure (only if fdopen fails).

Syntax

static AioFile *JimMakeChannel(Jim_Interp *interp,     FILE *fh,     int fd,     Jim_Obj *filename,     const char *hdlfmt,     int family,     const char *mode,     int flags);
Implemented in jim-aio.c:1983

Arguments

interp

fh

fd

filename

hdlfmt

family

mode

flags

References

LocationReferrerText
jim-aio.c:1983
static AioFile *JimMakeChannel(Jim_Interp *interp, FILE *fh, int fd, Jim_Obj *filename,
jim-aio.c:351
static AioFile *JimMakeChannel(Jim_Interp *interp, FILE *fh, int fd, Jim_Obj *filename,
jim-aio.c:1939JimAioOpenCommand()
return JimMakeChannel(interp, fh, fd, argv[1], "aio.handle%ld", 0, mode, 0) ? JIM_OK : JIM_ERR;
jim-aio.c:2045JimMakeChannelPair()
if (JimMakeChannel(interp, NULL, p[0], filename, hdlfmt, family, mode[0], 0)) {
jim-aio.c:2048JimMakeChannelPair()
if (JimMakeChannel(interp, NULL, p[1], filename, hdlfmt, family, mode[1], 0)) {
jim-aio.c:2376Jim_aioInit()
JimMakeChannel(interp, stdin, -1, NULL, "stdin", 0, "r", AIO_KEEPOPEN);
jim-aio.c:2377Jim_aioInit()
JimMakeChannel(interp, stdout, -1, NULL, "stdout", 0, "w", AIO_KEEPOPEN);
jim-aio.c:2378Jim_aioInit()
JimMakeChannel(interp, stderr, -1, NULL, "stderr", 0, "w", AIO_KEEPOPEN);

Call Tree

Functions calling JimMakeChannel()
Functions called by JimMakeChannel()
JimMakeChannel()
Type of JimMakeChannel()
JimMakeChannel()
all items filtered out