HP-UX Reference (11i v2 04/09) - 7 Device (Special) Files, 9 General Information, Index (vol 10)

s
strlog(7) strlog(7)
control.len = control.maxlen = sizeof(log);
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).
HP-UX 11i Version 2: September 2004 4 Hewlett-Packard Company Section 7167