05-24-2002
Sir, I am referring SCO Streams Runtime Systems Release and Installation Notes Manual - Streams Programmers Guide.
The diagram, which I have designed in my previous message, exists in Chapter 5 page 3.
Sir, could you explain me some basics concepts of Streams Scheduler with reference to queues. What is a Scheduling queue?
I found out that the q_link member of queue_t structure actually holds link to the queue scheduler. Kindly explain the scheduling operations.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have tried to show the file name whose size is greater than 200 byte in current directory.
Please help me.
ls -l | tr -s " " " " | cut -f 5,9 -d " " >out.txt
#set -a x `cat out.txt`
i=0
`cat out.txt` | while
do
read x
echo $x
#re=200
j=0
if }" < "200" ]
then
echo $j
j=`expr $j... (2 Replies)
Discussion started by: rinku
2 Replies
2. Shell Programming and Scripting
I need to find all the files that have group Read or Write permission or files that have user write permission.
This is what I have so far:
find . -exec ls -l {} \; | awk '/-...rw..w./ {print $1 " " $3 " " $4 " " $9}'
It shows me all files where group read = true, group write = true... (5 Replies)
Discussion started by: shunter63
5 Replies
3. Programming
Hi all,
I have a problem with some read/write functions.
I have a .bin file which contains a lot of structures as follows:
struct alumno
{
char id;
char apellido1;
char apellido2;
char nombre;
float nota1p;
float nota2p;
float notamedia;
char photofilename;
};
What I have... (3 Replies)
Discussion started by: Attenea
3 Replies
4. Programming
Hi @all,
i really stuck in programming a tool with bidirectional process communication (popen(cmd, "rw") ... something like that ;-)).
Here is the code:
if(pipe(p_stdin) != 0 || pipe(p_stdout) != 0) {
fprintf(stderr, "Aufruf von pipe() schlug fehl.\n");
exit(1);
}
... (6 Replies)
Discussion started by: jens.g
6 Replies
5. IP Networking
Hi,
We have smb client running on two of the linux boxes and smb server on another linux system. During a backup operation which uses smb, read of a file was allowed while write to the same file was going on.Also simultaneous writes to the same file were allowed.Following are the settings in the... (1 Reply)
Discussion started by: swatidas11
1 Replies
6. Shell Programming and Scripting
Hi
I used this command:
mplayer http://host/axis-cgi/mjpg/video.cgi -user root -passwd root \
-cache 1024 -fps 25.0 -nosound -vc ffh264 \
-demuxer 3 -dumpstream -dumpfile output.avi It's ok but...
Video Playing is very fast! Why? Is it a synch problem?
What parameter I have to use for... (1 Reply)
Discussion started by: takeo.kikuta
1 Replies
7. IP Networking
hi
am newbie to unix and socket programing
I am trying to figuring out syntax for read and write
to send data from server to client and client can read it
I have to send two integers
write(newsockfd,buffer,"%d %d",x,y,0) writing from client where x and y are two integers..
... (7 Replies)
Discussion started by: karthik1238
7 Replies
8. Programming
HI
I need to implement a client/server TCP application. the customer is the client and the bartender is the server.
When the customer enter the Bar, client connects to the server
Server should reply the client immediately. Other wise if the server is busy, it should send an update message... (10 Replies)
Discussion started by: lixiao1212
10 Replies
9. UNIX for Dummies Questions & Answers
I have a script that takes 2 parameters (say) as mandatory
script1.sh a b
The 3rd parameter can be filename which it should process or it can come through a pipeline stream
The script should work both ways:
script1.sh a b filec
or cat filec | script1.sh a b
How to put logic in the... (1 Reply)
Discussion started by: ysrini
1 Replies
10. Shell Programming and Scripting
I have got a file in following format:
AAAAAAA
BBBBBBBB
CCCCCCC
DDDDDDD
I am trying to read this file and out put it in following format:
AAAAAAA,BBBBBBB,CCCCCCC,DDDDDD
Preferred method is shell or Perl.
Any help appreciated. (11 Replies)
Discussion started by: Araoki
11 Replies
bcanput(9r) bcanput(9r)
NAME
bcanput - STREAMS: Tests for flow control in a specified priority band
SYNOPSIS
#include <sys/stream.h>
int bcanput(
queue_t *message_queue,
unsigned char pri );
ARGUMENTS
Specifies a pointer to the message queue. The typedef queue_t is an alternate name for struct queue_entry *. Specifies the priority of the
message.
DESCRIPTION
The bcanput interface, like the canput interface, searches through the stream (starting at the message queue identified by the mes-
sage_queue argument) until it finds a queue that contains a service interface where the message can be enqueued or until it reaches the end
of the stream. If bcanput finds a service interface in a queue, it tests the queue to determine if there is space in the queue to accommo-
date a message. If the queue is full, bcanput sets the q_flag member of the queue_entry structure pointer (the message queue) to the con-
stant QWANTW to back-enable the caller's service interface.
If the pri argument is zero(0), bcanput calls the canput interface, which performs the task of checking for space in the message queue.
NOTES
You are responsible for both testing a queue with bcanput and not placing a message on the queue if bcanput fails.
RETURN VALUES
The bcanput interface returns a value of 1 if a message of priority pri can be placed on the message queue, or if the band does not yet
exist on the queue. The interface returns a value of zero(0) if the priority band is flow-controlled.
SEE ALSO
Kernel Routines: canput(9r), putbq(9r), putnext(9r)
Programmer's Guide: STREAMS
bcanput(9r)