|
|
ioctl (cntlfd, JAGENT, &arg)
int cntlfd
struct bagent arg
ioctl has three arguments:
struct bagent {
long size; /* size of src in & dest out */
char *src; /* the source byte string */
char *dest; /* the destination byte string */
};
src pointer must be initialized to
point to a byte string which is sent to the windowing terminal.
See
layers(M)
for a list of JAGENT strings recognized by windowing terminals.
Likewise, the dest pointer
must be initialized to the address of a buffer to receive
a byte string returned by the terminal.
When ioctl is called, the size argument
must be set to the length of the src string.
Upon return, size is set by ioctl to
the length of the destination byte string, dest.