'\"macro stdmacro
.if n .pH ddi_dki.SAMESTR @(#)SAMESTR	40.5 of 10/10/89
.\" Copyright 1989 AT&T
.de IX
.ie '\\n(.z'' .tm .Index: \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9	\\n%
.el \\!.IX \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9
..
.nr X
.if \nX=0 .ds x} SAMESTR D3DK "STREAMS" "DDI/DKI" "\&"
.if \nX=1 .ds x} SAMESTR D3DK "STREAMS" "DDI/DKI"
.if \nX=2 .ds x} SAMESTR D3DK "" "\&"
.if \nX=3 .ds x} SAMESTR "" "" "\&"
.TH \*(x}
.IX "\f4SAMESTR\fP(D3DK)"
.SH NAME
\f4SAMESTR\f1 \- test if next queue is same type
.SH SYNOPSIS
.nf
.na
\f4#include <sys/stream.h>
.sp 0.5
int SAMESTR(queue_t *\f2q\f4);\f1
.ad
.fi
.SH ARGUMENT
.RS 0n 10
.IP "\f2*q\f1" 10n
Pointer to the queue.
.RE
.SH DESCRIPTION
The \f4SAMESTR\f1 function 
is used to see if the next queue in a stream (if it exists)
is the same type as the current
queue (that is, both are read queues
or both are write queues).
.SH RETURN VALUE
\f4SAMESTR\f1 returns \f41\f1 if the next queue is the same type as
the current queue.
It returns \f40\f1 if the next queue does not exist or if it is not
the same type.
.SH LEVEL
Base or Interrupt
.SH SEE ALSO
.na
\f4OTHERQ\f1(D3DK)
.ad
