HP-UX Reference (11i v1 00/12) - 5 Miscellaneous Topics, 7 Device (Special) Files, 9 General Information, Index (vol 9)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man7/!!!intro.7
________________________________________________________________
___ ___
s
strlog(7) strlog(7)
control.buf = (char *)&lc;
data.len = data.maxlen = strlen(warning);
data.buf = warning;
lc.level = 2;
lc.flags = SL_FATAL|SL_CONSOLE;
putmsg(logfd, &control, &data, 0);
The following examples illustrate how to use the NetTL facility for the STREAMS. See nettl(1M),
netfmt(1M), nettlconf(1M) for the general NetTL usage. The STREAMS subsystem ID used by NetTL is
STREAMS.
The netfmt accepts a filter configuration file as a command argument. The following filter configuration
file example is used to format the messages whose module ID is 1 and sub-ID is 100:
STREAMS 1 100
This filter configuration file example can be used to display all the messages whose module ID is 2 and all
the messages whose sub-ID is 101:
STREAMS 2 *
STREAMS * 101
FILES
/dev/strlog specifies the clone interface.
<sys/strlog.h> specifies the header file for streams logging.
<stropts.h> specifies the header file for STREAMS options and ioctl() commands.
SEE ALSO
strace(1M), strerr(1M), clone(7), streamio(7), getmsg(2), putmsg(2), write(2), open(2), ioctl(2), nettl(1M),
netfmt(1M), nettlconf(1M).
Section 7−−152 − 4 − HP-UX Release 11i: December 2000
___
___