TIP: Click on subject to list as thread! ANSI
echo: cis.os9.68000.osk
to: MAS 76336,3226 (X)
from: Pete Lyall 76703,4230
date: 1990-10-23 13:59:56
subject: #7690-need help on C program

#: 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

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.