STREAMS-UX Programmer's Guide (February 2007)
STREAMS Commands
strchg and strconf
Appendix G
294
75 -1 0 modA
modB test 0 5 modC modA
autopush -f /tmp/autopush.example will cause modA and modB to be pushed whenever major device # 75 is
opened, and modC and modA to be pushed for the first six opens of test.
The following example lists information about the stream for major device 75 and its minor device 2:
autopush -g -M 75 -m 2
Examples
The following command pushes the module ldterm on the stream associated with the user's standard input:
strchg -h ldterm
The following command pops the topmost module from the stream associated with /dev/term/24.
strchg -p < /dev/term/24
The user must be the owner of this device or be a user with appropriate privileges.
If fileconf contains compat, 1dterm, and pterm use the following command:
strchg -f fileconf
The user’s standard input stream will be configured so that the module pterm is pushed over the driver. This
is followed by 1dterm and compat closest to the stream head.
The strconf command with no arguments lists the modules and topmost driver on the stream. For a stream
that only has the module ldterm pushed above the ports driver, it would produce the following output.
1dterm
ports
The following command asks if ldterm is on the stream:
strconf -m ldterm
The following output is produced while returning an exit status of 0: yes