| OpenSS7 SS7 for the Common Man | © Copyright 1997-2007 OpenSS7 Corporation All Rights Reserved. Last modified: Thu, 30 Nov 2006 15:29:10 GMT | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| strcompat ManualDescription: OpenSS7 Online ManualsA PDF version of this document is available here. OpenSS7 STREAMS CompatibilityOpenSS7 STREAMS Compatibility Installation and Reference ManualAbout This ManualThis is Edition 6, last updated 2007-06-24, of The OpenSS7 STREAMS Compatibility Installation and Reference Manual, for Version 0.9.2 release 6 of the OpenSS7 STREAMS Compatibility package. PrefaceNoticeThis package is released and distributed under the GPL (see GNU General Public License). Please note, however, that there are different licensing terms for the manual pages and some of the documentation (derived from OpenGroup1 publications and other sources). Consult the permission notices contained in the documentation for more information. This manual is released under the FDL (see GNU Free Documentation License) with all sections invariant. AbstractThis manual provides a Installation and Reference Manual for OpenSS7 STREAMS Compatibility. ObjectiveThe objective of this manual is to provide a guide for the STREAMS programmer when developing STREAMS modules, drivers and application programs for OpenSS7 STREAMS Compatibility. This guide provides information to developers on the use of the STREAMS mechanism at user and kernel levels. STREAMS was incorporated in UNIX System V Release 3 to augment the character input/output (I/O) mechanism and to support development of communication services. STREAMS provides developers with integral functions, a set of utility routines, and facilities that expedite software design and implementation. Intent
The intent of this manual is to act as an introductory guide to the STREAMS programmer. It
is intended to be read alone and is not intended to replace or supplement the
OpenSS7 STREAMS Compatibility manual pages. For a reference for writing code, the manual pages
(see AudienceThis manual is intended for a highly technical audience. The reader should already be familiar with Linux kernel programming, the Linux file system, character devices, driver input and output, interrupts, software interrupt handling, scheduling, process contexts, multiprocessor locks, etc. The guide is intended for network and systems programmers, who use the STREAMS mechanism at user and kernel levels for Linux and UNIX system communication services. Readers of the guide are expected to possess prior knowledge of the Linux and UNIX system, programming, networking, and data communication. RevisionsTake care that you are working with a current version of this manual: you will not be notified of updates. To ensure that you are working with a current version, contact the Author, or check The OpenSS7 Project website for a current version. A current version of this manual is normally distributed with the OpenSS7 STREAMS Compatibility package. Version Control
strcompat.texi,v
Revision 0.9.2.15 2007/02/28 06:30:45 brian
- updates and corrections, #ifdef instead of #if
Revision 0.9.2.14 2007/01/03 14:57:17 brian
- documentation updates for release
Revision 0.9.2.13 2006/12/29 12:18:28 brian
- old rpms hate nested ifs, release updates
Revision 0.9.2.12 2006/10/21 10:01:12 brian
- updated streams release number
Revision 0.9.2.11 2006/09/18 01:06:34 brian
- updated manuals and release texi docs
Revision 0.9.2.10 2006/08/28 10:46:56 brian
- correction
Revision 0.9.2.9 2006/08/28 10:32:53 brian
- updated references
Revision 0.9.2.8 2006/08/27 12:26:42 brian
- finalizing auto release files
Revision 0.9.2.7 2006/08/26 09:17:54 brian
- better release file generation
Revision 0.9.2.6 2006/08/23 11:00:32 brian
- added preface, corrections and updates for release
Revision 0.9.2.5 2006/08/22 12:57:09 brian
- updated documentation
Revision 0.9.2.4 2006/03/22 10:02:03 brian
- added makefile target index
Revision 0.9.2.3 2006/03/03 11:11:14 brian
- 64-bit compatibility, fixes, updates for release
Revision 0.9.2.2 2005/07/08 13:15:59 brian
- updates to documentation
Revision 0.9.2.1 2005/07/04 19:28:53 brian
- first cut at streams compatibility package
Revision 0.9 2005/07/04 19:28:53 brian
file strcompat.texi was initially added on branch OpenSS7-0_9_2.
ISO 9000 ComplianceOnly the TeX, texinfo, or roff source for this manual is controlled. An opaque (printed, postscript or portable document format) version of this manual is an UNCONTROLLED VERSION. DisclaimerOpenSS7 Corporation disclaims all warranties with regard to this documentation including all implied warranties of merchantability, fitness for a particular purpose, non-infringement, or title; that the contents of the manual are suitable for any purpose, or that the implementation of such contents will not infringe on any third party patents, copyrights, trademarks or other rights. In no event shall OpenSS7 Corporation be liable for any direct, indirect, special or consequential damages or any damages whatsoever resulting from loss of use, data or profits, whether in an action of contract, negligence or other tortious action, arising out of or in connection with any use of this manual or the performance or implementation of the contents thereof. OpenSS7 Corporation reserves the right to revise this software and documentation for any reason, including but not limited to, conformity with standards promulgated by various agencies, utilization of advances in the state of the technical arts, or the reflection of changes in the design of any techniques, or procedures embodied, described, or referred to herein. OpenSS7 Corporation is under no obligation to provide any feature listed herein. U.S. Government Restricted RightsIf you are licensing this Software on behalf of the U.S. Government ("Government"), the following provisions apply to you. If the Software is supplied by the Department of Defense ("DoD"), it is classified as "Commercial Computer Software" under paragraph 252.227-7014 of the DoD Supplement to the Federal Acquisition Regulations ("DFARS") (or any successor regulations) and the Government is acquiring only the license rights granted herein (the license rights customarily provided to non-Government users). If the Software is supplied to any unit or agency of the Government other than DoD, it is classified as "Restricted Computer Software" and the Government's rights in the Software are defined in paragraph 52.227-19 of the Federal Acquisition Regulations ("FAR") (or any successor regulations) or, in the cases of NASA, in paragraph 18.52.227-86 of the NASA Supplement to the FAR (or any successor regulations). AcknowledgementsAs with most open source projects, this project would not have been possible without the valiant efforts and productive software of the Free Software Foundation and the Linux Kernel Community. SponsorsFunding for completion of the OpenSS7 OpenSS7 STREAMS Compatibility package was provided in part by:
Additional funding for The OpenSS7 Project was provided by: ContributorsThe primary contributor to the OpenSS7 OpenSS7 STREAMS Compatibility package is Brian F. G. Bidulock. The following is a list of significant contributors to The OpenSS7 Project:
AuthorsThe authors of the OpenSS7 OpenSS7 STREAMS Compatibility package include:
See Author Index, for a complete listing and cross-index of authors to sections of this manual. MaintainerThe maintainer of the OpenSS7 OpenSS7 STREAMS Compatibility package is:
Please send bug reports to bugs@openss7.org using the send-pr script included in the package, only after reading the BUGS file in the release, or See Problem Reports. Web ResourcesThe OpenSS7 Project provides a website dedicated to the software packages released by the OpenSS7 Project. Bug ReportsPlease send bug reports to bugs@openss7.org using the send-pr script included in the OpenSS7 STREAMS Compatibility package, only after reading the BUGS file in the release, or See Problem Reports. You can access the OpenSS7 GNATS database directly via the web, however, the preferred method for sending new bug reports is via mail with the send-pr script. Mailing ListsThe OpenSS7 Project provides a number of general discussion Mailing Lists for discussion concerning the OpenSS7 OpenSS7 STREAMS Compatibility package as well as other packages released by The OpenSS7 Project. These are mailman mailing lists and so have convenient web interfaces for subscribers to control their settings. See http://www.openss7.org/mailinglist.html. The mailing lists are as follows:
SpamTo avoid spam being sent to the members of the OpenSS7 mailing list(s), we have blocked mail from non-subscribers. Please subscribe to the mailing list before attempting to post to them. (Attempts to post when not subscribed get bounced.) As an additional measure against spam, subscriber lists for all OpenSS7 mailing lists are not accessible to non-subscribers; for most lists subscriber lists are only accessible to the list administrator. This keeps your mailing address from being picked off our website by bulk mailers. Acceptable Use PolicyIt is acceptable to post professional and courteous messages regarding the OpenSS7 package or any general information or questions concerning STREAMS, SS7, SIGTRAN, SCTP or telecommunications applications in general. Large AttachmentsThe mailing list is blocked from messages of greater than Quick Start GuideOpenSS7 STREAMS CompatibilityPackage strcompat-0.9.2.6 was released under GPLv2 2007-06-24. The OpenSS7 STREAMS Compatibility package provides the ability for Linux Fast-STREAMS to exhibit source level compatibility with a wide range of UNIX STREAMS implementations. Also, it provides LiS source, and some 2.18.0 binary, compatibility for Linux Fast-STREAMS. The objective of the package is to provide source level compatibility with a wide range of UNIX STREAMS implementations permitting drivers and modules to port easily to Linux Fast-STREAMS from any other STREAMS implementation, making it possible to release drivers and modules from a single UNIX code base with minimal localisms for Linux. These compatibility modules provide source level compatibility with AIX, HPUX, OSF/1, MacOT, Mentat, SUX, Solaris, SUPER/UX, IRIX, LiS, UnixWare, UXP/V and SVR 4.2 STREAMS. The package contains all the necessary manual pages and other documentation in an autoconf tarball. The package currently includes the following STREAMS kernel modules and drivers:2
The OpenSS7 STREAMS Compatibility package provides compatibility with the following STREAMS implementations:
These compatibility modules compile as kernel modules and will be demand loaded into the kernel when used by a specific STREAMS module or driver. The compatibility modules ease porting of STREAMS modules and drivers from other Operating Systems to Linux. This distribution is only currently applicable to Linux 2.4 and 2.6 kernels and was targeted
at ReleaseThis is the strcompat-0.9.2.6 package, released 2007-06-24. This `0.9.2.6' release, and the latest version, can be obtained from the download area of The OpenSS7 Project website using a command such as: $> wget http://www.openss7.org/tarballs/strcompat-0.9.2.6.tar.bz2 The release is available as an autoconf(1) tarball, src.rpm or dsc, or as a set of binary rpms or debs. See the download page for the autoconf(1) tarballs, src.rpms or dscs. See the strcompat package page for tarballs, source and binary packages. Please see the NEWS file for release notes and history of user visible changes for the current version, and the ChangeLog file for a more detailed history of implementation changes. The TODO file lists features not yet implemented and other outstanding items. Please see the INSTALL, INSTALL-strcompat and README-make, files (or see Installation) for installation instructions. When working from cvs(1) or git(1), please see the README-cvs, file (or see Downloading from CVS). An abbreviated installation procedure that works for most applications appears below. This release of the package is published strictly under Version 2 of the GNU Public License which can be found in the file COPYING. Package specific licensing terms (if any) can be found in the file LICENSES. Please respect these licensing arrangements. If you are interested in different licensing terms, please contact the copyright holder, or OpenSS7 Corporation <sales@openss7.com>. See README-alpha (if it exists) for alpha release information. PrerequisitesThe quickest and easiest way to ensure that all prerequisites are met is to download and install this package from within the OpenSS7 Master Package, openss7-0.9.2.F, instead of separately. Prerequisites for the OpenSS7 STREAMS Compatibility package are as follows:
(Note: If you acquired strcompat a part of the OpenSS7 Master Package, then the dependencies listed below will already have been met by unpacking the master package.)
When configuring and building multiple OpenSS7 Project release packages, place all of the source packages (unpacked tarballs) at the same directory level and all build directories at the same directory level (e.g. all source packages under /usr/src). When installing packages that install as kernel modules, it is necessary to have the correct kernel development package installed. For the following distributions, use the following commands: Ubuntu: $> apt-get install linux-headers
Debian: $> apt-get install kernel-headers
Fedora: $> yum install kernel-devel
You also need the same version of gcc(1) compiler with which the kernel was built. If it is not the default, add `CC=kgcc' on the line after `./configure', for example: $> ../strcompat-0.9.2.6/configure CC='gcc-3.4' InstallationThe following commands will download, configure, build, check, install, validate, uninstall and remove the package: $> wget http://www.openss7.org/tarballs/strcompat-0.9.2.6.tar.bz2
$> tar -xjvf strcompat-0.9.2.6.tar.bz2
$> mkdir build
$> pushd build
$> ../strcompat-0.9.2.6/configure --enable-autotest
$> make
$> make check
$> sudo make install
$> sudo make installcheck
$> sudo make uninstall
$> popd
$> sudo rm -rf build
$> rm -rf strcompat-0.9.2.6
$> rm -f strcompat-0.9.2.6.tar.bz2
If you have problems, try building with the logging targets instead. If the make of a logging target fails, an automatic problem report will be generated that can be mailed to The OpenSS7 Project.6 Installation steps using the logging targets proceed as follows: $> wget http://www.openss7.org/tarballs/strcompat-0.9.2.6.tar.bz2
$> tar -xjvf strcompat-0.9.2.6.tar.bz2
$> mkdir build
$> pushd build
$> ../strcompat-0.9.2.6/configure --enable-autotest
$> make compile.log
$> make check.log
$> sudo make install.log
$> sudo make installcheck.log
$> sudo make uninstall.log
$> popd
$> sudo rm -rf build
$> rm -rf strcompat-0.9.2.6
$> rm -f strcompat-0.9.2.6.tar.bz2
See README-make for additional specialized make targets. For custom applications, see the INSTALL and INSTALL-strcompat files or the see Installation, as listed below. If you encounter troubles, see Troubleshooting, before issuing a bug report. Brief Installation InstructionsThe OpenSS7 STREAMS Compatibility package is available from the downloads area of The OpenSS7 Project website using a command such as: $> wget http://www.openss7.org/tarballs/strcompat-0.9.2.6.tar.bz2 Unpack the tarball using a command such as: $> tar -xjvf strcompat-0.9.2.6.tar.bz2 The tarball will unpack into the relative subdirectory named after the package name: strcompat-0.9.2.6. The package builds using the GNU autoconf utilities and the configure script. To build the package, we recommend using a separate build directory as follows: $> mkdir build
$> cd build
$> ../strcompat-0.9.2.6/configure
In general, the package configures and builds without adding any special options to the configure script. For general options to the configure script, see the GNU INSTALL file in the distribution: $> less ../strcompat-0.9.2.6/INSTALL For specific options to the configure script, see the INSTALL-strcompat file in the distribution, or simply execute the configure script with the --help option like so: $> ../strcompat-0.9.2.6/configure --help After configuring the package, the package can be compiled simply by issuing the `make' command: $> make Some specialized makefile targets exists, see the README-make file in the distribution or simply invoke the `help' target like so: $> make help | less After successfully building the package, the package can be checked by invoking the `check' make target like so: $> make check After successfully checking the package, the package can be installed by invoking the `install' make target (as root) like so: $> sudo make install The test suites that ship with the package can be invoked after the package has been installed by invoking the `installcheck' target. This target can either be invoked as root, or as a normal user, like so: $> make installcheck (Note: you must add the --enable-autotest flag to configure, above for the test suites to be invoked with `make installcheck'.) The package can be cleanly removed by invoking the `uninstall' target (as root): $> sudo make uninstall Then the build directory and tarball can be simply removed: $> cd ..
$> rm -rf build
$> rm -rf strcompat-0.9.2.6
$> rm -f strcompat-0.9.2.6.tar.bz2
Detailed Installation InstructionsMore detailed installation instructions can be found in the Installation, contained in the distribution in `text', `info', `html' and `pdf' formats: $> cd ../strcompat-0.9.2.6
$> less doc/manual/strcompat.txt
$> lynx doc/manual/strcompat.html
$> info doc/manual/strcompat.info
$> xpdf doc/manual/strcompat.pdf
The `text' version of the manual is always available in the MANUAL file in the release. The current manual is also always available online from The OpenSS7 Project website at: $> lynx http://www.openss7.org/strcompat_manual.html 1 IntroductionThis manual documents the design, implementation, installation, operation and future development schedule of the OpenSS7 STREAMS Compatibility package. 1.1 OverviewThis manual documents the design, implementation, installation, operation and future development of the OpenSS7 STREAMS Compatibility package. 1.2 Organization of this ManualThis manual is organized (loosely) into several sections as follows:
1.3 Conventions and DefinitionsThis manual uses texinfo typographic conventions. 2 ObjectiveThe OpenSS7 STREAMS Compatibility package is intended to provide maximum compatibility between Linux STREAMS (LiS) or Linux Fast-STREAMS (LfS) and other STREAMS implementations on major UNIX operating systems, for the purpose of porting existing STREAMS modules and drivers from those operating system to Linux. Also, the OpenSS7 STREAMS Compatibility package aims to provide compatibility between Linux STREAMS (LiS) and Linux Fast-STREAMS to ease the porting of STREAMS modules and drivers from LiS to Linux Fast-STREAMS with minimal effort. To meet that objective, OpenSS7 STREAMS Compatibility aims to support the STREAMS DDI/DKI and registration functions of the following STREAMS implementations:
Because it is not necessary to have all of these compatibility modules loaded at a given time, and to reduce the footprint of the resulting kernel modules, the OpenSS7 STREAMS Compatibility package implements these compatibility modules as separate demand loadable Linux kernel modules. The OpenSS7 STREAMS Compatibility package contains compatibility modules that were originally part of the Linux Fast-STREAMS package. They have been separated into an package independent from Linux Fast-STREAMS for the purpose of provide some of the same capabilities to Linux STREAMS (LiS) in advance of production releases of Linux Fast-STREAMS. 2.1 RationaleThe OpenSS7 STREAMS Compatibility package is designed and implemented to be compatible with as many SVR 4.2 MP based implementations of STREAMSa s possible. This is done for several reasons:
2.2 Use with Linux STREAMSThe OpenSS7 STREAMS Compatibility package was originally part of the Linux Fast-STREAMS base package, streams. The purpose for separating the package was originally to support both LiS and Linux Fast-STREAMS until such time as Linux Fast-STREAMS was a suitable production replacement for LiS. With release streams-0.9.2.3, Linux Fast-STREAMS is a far superior production replacement for LiS and LiS is now deprecated. Although, at one time, the OpenSS7 STREAMS Compatibility package worked with LiS, it is no longer supported on LiS and is only tested and validated for Linux Fast-STREAMS. Even when it was supported, LiS has so many bugs, deficiencies and incompatibilities in the Stream head, that it was not possible to obtain usable compatibility in conjunction with LiS. Linux Fast-STREAMS does not have these problems. 2.3 Use with Linux Fast-STREAMSThe OpenSS7 STREAMS Compatibility package functions much better with the Linux Fast-STREAMS implementation with which it was originally intended to function. Linux Fast-STREAMS provides a superset of the capabilities of SVR 4.2 MP intended to provide compatibility across as many mainstream UNIX implementations of STREAMS as possible. Also, Linux Fast-STREAMS does not have the bugs, races, deficiencies, and other difficulties present in the LiS package.7 3 Reference3.1 FilesThe following sections provide a manifest of the files that are installed by the OpenSS7 STREAMS Compatibility package: STRCOMPAT creates the following kernel modules files in the kernel modules directory, /lib/modules/2.4.20-28.7/:8
STRCOMPAT installs the following kernel module files in the kernel modules directory, /lib/modules/2.4.20-28.7/strcompat/:9
STRCOMPAT installs the following header files in the system include directory, /usr/include/strcompat/:
STRCOMPAT installs the following test programs in the system libexec directory, /usr/libexec/strcompat/:10
STRCOMPAT installs the following init scripts in the system init directory, /etc/rc.d/init.d/ (non-Debian) or /etc/init.d/ (Debian):
STRCOMPAT installs the following system configuration files in the configuration directory, /etc/:
STRCOMPAT installs the following system configuration file in the system configuration directory, /etc/sysconfig/ (non-Debian) or /etc/default/ (Debian):
STRCOMPAT installs the following info files in the system info directory, /usr/share/info/:
STRCOMPAT installs the following manual page macros and reference database files in the system man directory, /usr/share/man/:11
STRCOMPAT installs the following manual pages in the system man directory, /usr/share/man/man5/:
STRCOMPAT installs the following manual pages in the system man directory, /usr/share/man/man8/:
STRCOMPAT installs the following manual pages in the system man directory, /usr/share/man/man9/: The OpenSS7 STREAMS Compatibility package installs several hundred manual pages that are too many to list here. Following are just the primary manual pages. Begin with any of these manual pages to obtain references to the remaining pages.
3.2 DriversThe OpenSS7 STREAMS Compatibility package only includes drivers for the purpose of providing examples of the use of the utility functions included in the package, as well as to provide loadable drivers for the purpose of test suite execution. If you are not interested in test suite execution, these drivers can be removed. STREAMS drivers included in the package are as follows:
3.3 ModulesThe OpenSS7 STREAMS Compatibility package only includes modules for the purpose of providing examples of the use of the utility functions included in the package, as well as to provide loadable modules for the purpose of test suite execution. If you are not interested in test suite execution, these modules can be removed. STREAMS modules included in the package are as follows:
3.4 Libraries3.5 UtilitiesThe OpenSS7 STREAMS Compatibility package does not provide any system utilities of its own. For a set of system utilities that are compatible across the same wide range of operating systems, use the OpenSS7 STREAMS Utilities package. What the OpenSS7 STREAMS Compatibility package does provide is a set of kernel modules that provide compatibility utilities to the STREAMS module or driver developer. These kernel modules are as follows:
3.5.1 AIX Utilities3.5.2 HP-UX Utilities3.5.3 IRIX Utilities3.5.4 LfS Utilities3.5.5 LiS Utilities3.5.6 MacOT Utilities3.5.7 MPS Utilities3.5.8 OSF Utilities3.5.9 Solaris Utilities3.5.10 SUPER-UX Utilities3.5.11 SVR3 Utilities3.5.12 SVR4 Utilities3.5.13 UnixWare Utilities3.5.14 UXP/V Utilities3.6 DevelopmentThe OpenSS7 STREAMS Compatibility package contains the necessary header files, shared and static libraries, manuals and manual pages, necessary for the development of kernel modules, STREAMS modules and drivers, and applications programs based on the OpenSS7 STREAMS Compatibility package. 3.6.1 Header FilesHeader files are installed, typically, in the /usr/include/strcompat/ subdirectory.12 To use the header files from the package, `-I/usr/include/strcompat' must be included in the gcc command line as a preprocessor option. This is true regardless of whether user space or kernel programs are being compiled. In general, `-I' include directives on the gcc command line should be ordered in the reverse order of the dependencies between add-on packages. So, for example, if the include files from all add-on packages are required, the order of the |