STREAM(3) Library Functions Manual STREAM(3)NAME
stream - a structure for communications
SYNOPSIS
bind streamdevice dir
dir/data
dir/ctl
DESCRIPTION
A stream is not a device per se. However, many devices use the streams package in the kernel to implement communications channels. The
properties described here are common to all such channels.
All streams are represented by two standard files, ctl and data, plus any others the particular device wants to add. Reading and writing
the data file receives and sends data on the channel. If the channel is message oriented, each write will represent a message and each
read will return at most one message. If the buffer given in a read is smaller than the message, subsequent reads will return the remain-
der of the message.
Writing textual command strings to the ctl file performs control operations on the stream. The strings need not be null-terminated. Each
device may add to the control operations. The common control operations are:
hangup Hang up this stream. Any subsequent writes will return an error. The first subsequent read will return 0. All following
ones will return an error.
push name Push the module name onto the top of the stream.
pop Pop the top module off the stream
Reading the ctl file returns a textual identifier for the stream. This is used by multiplexed devices and its use is described with the
particular device.
SEE ALSO pipe(3), dk(3), cons(3), async(3), fcall(3), ip(3), reboot(3)SOURCE
/sys/src/9/port/st*.c
STREAM(3)
Check Out this Related Man Page
ARP(3) Library Functions Manual ARP(3)NAME
arp - Internet Address Resolution Protocol
SYNOPSIS
bind -a #a /net/arp
/net/arp/ctl
/net/arp/data
/net/arp/stats
DESCRIPTION
The arp device provides the means by which the kernel resolves IP addresses into Ethernet addresses. A cache is maintained by the arp
device to speed the process.
The ctl file controls the ARP cache maintained by the kernel. The flush control message invalidates all entries in the cache. The delete
ipaddr control message invalidates a single cache entry. All IP addresses passed to the system are in the canonical textual form described
in ip(2). The perm ipaddr control message makes an existing cache entry permanent.
When the kernel boots, ipconfig sets up the IP stream and arpd opens #a/arp/data (see ipconfig(8)). This establishes the ARP cache and
enables arpd to receive all ARP packets from the network, which it uses to maintain the cache by writing the results of address resolution
requests back into the cache. The IP stream module uses the cache to translate IP addresses.
Subsequent opens of the data file allow the contents of the cache to be examined. Each cache entry consists of an IP address, an Ethernet
address, and the status of the entry. Entries may be invalid, permanent, or temporary. Permanent entries will never be aged from the
cache. Temporary entries may be replaced by new addresses entered by the ARP server.
The file stats reports the cache performance.
SEE ALSO ip(3), ipconfig(8)SOURCE
/sys/src/9/port/devarp.c
ARP(3)
Hello,
I have problem in writing the shell script involving MPE command STREAM related to HP-UX and Unix command. Script is
sh "nlshCMD 'STREAM <job name1>' | 'SHOWJOB' | grep $HPJOBNUM"
sh "nlshCMD 'STREAM <job name2>' | 'SHOWJOB' | grep $HPJOBNUM"
sh "nlshCMD 'STREAM <job name3>' |... (0 Replies)
Hello,
I have problem in writing the shell script involving MPE command STREAM related to HP-UX and Unix command. Script is
sh "nlshCMD 'STREAM <job name1>' | 'SHOWJOB' | grep $HPJOBNUM"
sh "nlshCMD 'STREAM <job name2>' | 'SHOWJOB' | grep $HPJOBNUM"
sh "nlshCMD 'STREAM <job name3>' |... (1 Reply)
This is a high-level explanation, if more details are needed, please do not hesitate to ask.
I have a set of .ctl files which I want to execute:
AV1.ctl
AV2.ctl
AV3.ctl
I have a script which has a for loop in it:
for filename in AV1 AV2 AV3
do
. execute_another_script.sh
done
... (2 Replies)
Hey everyone.
I am trying to figure out a way to create a file that will be renamed based off of one of multiple files. For example, if I have 3 files (cat.ctl, dog.ctl, and bird.ctl) that gets placed on to an ftp site I want to create a single file called new.cat.ctl, new.dog.ctl, etc for each... (3 Replies)
I am getting error when loading data file using ctl file. I get this error only when there is special character.
Below is some data.
DataFile=>
company_id|ciu_id|english_name|iso_country_code|active|partner_name
1-2JT-122||Expert Järvenpää|FI|A|Expert Järvenpää
Control File=>
LOAD DATA... (1 Reply)
Hello All,
I have file named filelist.txt
a.bteq.ctl
b.bteq.ctl
c.bteq.ctl
I want to replace the word bteq to tpt in this file.
I used this sed command
cat filelist.txt | sed 's/bteq/tpt/g' > filelist.txt
But this command deletes all records from the filelist.txt
Can... (2 Replies)
Hello All
I have a file like this
abc.tpt.ctl
bdc.tpt.ctl
cdw.tpt.ctl
I have looped every line using the for Loop, now I want to take each line and cut the .tpt.ctl part of it and store it in a variable and use the variable in same loop.
The part I am stuck at is how do I cut the last... (9 Replies)