2000-11-29 09:50:11 +00:00
|
|
|
.\" Copyright (c) 2000 Mark Newton
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\" $FreeBSD$
|
2008-03-17 08:17:04 +00:00
|
|
|
.\"
|
|
|
|
.Dd March 17, 2008
|
2000-11-29 09:50:11 +00:00
|
|
|
.Dt STREAMS 4 i386
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm streams
|
|
|
|
.Nd System V STREAMS networking ABI support
|
2008-03-20 08:46:27 +00:00
|
|
|
.Sh SYNOPSIS
|
2008-03-17 08:17:04 +00:00
|
|
|
To compile support for this ABI into the kernel,
|
|
|
|
place the following line in your
|
|
|
|
kernel configuration file:
|
|
|
|
.Bd -ragged -offset indent
|
|
|
|
.Cd "device streams"
|
|
|
|
.Ed
|
2000-11-29 09:50:11 +00:00
|
|
|
.Pp
|
2008-03-17 08:17:04 +00:00
|
|
|
Alternatively, to load the ABI as a
|
|
|
|
module at boot time, place the following line in
|
|
|
|
.Xr loader.conf 5 :
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
streams_load="YES"
|
|
|
|
.Ed
|
2000-11-29 09:50:11 +00:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
module provides limited
|
|
|
|
System V Release 4 STREAMS interprocess communication ABI
|
|
|
|
(application binary interface) compatibility
|
|
|
|
for userland applications.
|
|
|
|
.Pp
|
|
|
|
Internally,
|
|
|
|
.Nm
|
2001-07-14 19:41:16 +00:00
|
|
|
provides STREAMS handles by using socket creation kernel routines, and
|
2000-11-29 09:50:11 +00:00
|
|
|
adding state-tracking information to the socket to permit manipulation
|
|
|
|
by STREAMS emulation code in
|
|
|
|
.Xr svr4 4 .
|
2001-07-14 19:41:16 +00:00
|
|
|
Hence, opening a stream device produces a result similar to what would be
|
2000-11-29 09:50:11 +00:00
|
|
|
obtained by calling
|
|
|
|
.Xr socket 2 .
|
|
|
|
.Pp
|
2004-07-03 18:29:24 +00:00
|
|
|
Applications should never use this interface directly: STREAMS
|
2000-11-29 09:50:11 +00:00
|
|
|
emulation is only provided as a service to support ABI requirements in
|
2001-07-14 19:41:16 +00:00
|
|
|
the SVR4 environment which
|
2000-11-29 09:50:11 +00:00
|
|
|
.Xr svr4 4
|
2001-07-14 19:41:16 +00:00
|
|
|
needs to present to client binaries.
|
2000-11-29 09:50:11 +00:00
|
|
|
.Sh SEE ALSO
|
2001-07-14 19:41:16 +00:00
|
|
|
.Xr svr4 4
|
2000-11-29 09:50:11 +00:00
|
|
|
.Sh HISTORY
|
2000-12-29 09:18:45 +00:00
|
|
|
System V Release 4 ABI support first appeared in
|
2000-11-29 09:50:11 +00:00
|
|
|
.Fx 4.0 .
|
|
|
|
The ABI was ported from an equivalent facility present in
|
2000-12-29 09:18:45 +00:00
|
|
|
.Nx 1.3
|
2000-11-29 09:50:11 +00:00
|
|
|
written by Christos Zoulas.
|
2005-01-21 08:36:40 +00:00
|
|
|
.Sh BUGS
|
|
|
|
This whole interface is a crude hack to produce STREAMS semantics
|
|
|
|
through emulation over sockets.
|
|
|
|
.Pp
|
|
|
|
Programmers who hope to be able to use this interface to provide
|
|
|
|
SVR4 STREAMS services to
|
|
|
|
.Bx
|
|
|
|
applications will be sorely disappointed.
|