#: 7691 S12/OS9/68000 (OSK)
23-Oct-90 13:59:56
Sb: #7690-need help on C program
Fm: Pete Lyall 76703,4230
To: MAS 76336,3226 (X)
Robert -
You would do the OS9 equivalent of an IOCTL... a GETSTAT or SETSTAT. There are
C functions in the library to do this. You want '_gs_opt()'.
Use a getstat of _gs_opt to capture a copy of the path options. In fact, you
should keep two copies. Toggle the ECHO flag in the path options (see your tech
reference manual for structure of the path options.. or see sgbuf.h or sgtty.h)
and then turn around and send it back to that open path. When done, send the
virgin copy of the options buffer (or just toggle the ECHO flag back on).
Pete
|