| OpenSS7 SS7 for the Common Man | © Copyright 1997-2007 OpenSS7 Corporation All Rights Reserved. Last modified: Thu, 30 Oct 2008 08:20:47 GMT | ||||||||||||||||
| |||||||||||||||||
| Manpage of ISASTREAMDescription: Manual PageKeywords: ss7 ss7/ip ss7 over ip ss7 mtp ss7 sccp ss7 tcap sigtran mtp sccp tcap openss7 acb56 linux telephony pstn linux telephony linux nebs linux compactpciISASTREAMSection: The OpenSS7 Project System Calls (2)Updated: Sat, 18 May 2013 11:02:09 GMT Index Return to Main Contents NAMEisastream - test for a STREAMS special fileSYNOPSIS#include <stropts.h>
ARGUMENTS
DESCRIPTIONisastream() tests whether the open file associated with the file descriptor, fd, is a STREAMS special file. USAGEisastream() is normally used by an applications program to determine whether STREAMS input-output controls, streamio(7), are possible on a specific special file, fd. For example, isastream() can be used to determine whether the pipe returned by a call to pipe(2s) is a STREAMS-based pipe or a SVR 3-style pipe. Also, isastream() can be used to determine whether the pseudo-terminal returned by a call to openpt(3tty) is a STREAMS-based master pseudo-terminal or an SVR 3-style pseudo-terminal. RETURN VALUEisastream() returns true, (1), if the file associated with fd is a STREAMS special file; it return false, (0), if it is not, and returns minus one (-1), on failure and sets errno(3) to an appropriate error number. ERRORSWhen isastream() fails, it returns minus one (-1) and sets errno(3) to an appropriate error number as follows:
NOTICESMulti-Threadingisastream() is thread-safe. isastream() does not contain an asynchrnous thread cancellation point, in accordance with POSIX[1]. Asynchronous thread cancellation is deferred across the call. IMPLEMENTATIONisastream () is system call emulated by the libstreams(3) library by calling the I_ISASTREAM(7) STREAMS input-output control on fd, and adjusting the return value appropriately. SEE ALSOlibstreams(3), isastream(3p), I_ISASTREAM(7), streamio(7), errno(3), pipe(2s), openpt(3tty), test-streams(8), STREAMS(9). BUGSisastream() has no known bugs. Behaviour is validated using the test-streams(8) test case executable and the The OpenSS7 Project autotest conformance test suite. COMPATIBILITYisastream() is compatible with SVR 4.2[2], and implementations based on SVR 4.2, with the following portability considerations:
If your Linux system is equipped with OpenGroup manual pages, see isastream(3p) for the equivalent POSIX/SUSv3 reference page. CONFORMANCESVID[3], XID[4], SUSv2[5], SUSv3[1], POSIX 1003.1/2003[1]; Solaris®[6] and UnixWare®[7] documentation. Conformance is testsed using the test-streams(8) test case executable and the The OpenSS7 Project autotest conformance test suite. HISTORYisastream() first appeared in SVR 4[8]. REFERENCES
TRADEMARKS
Other trademarks are the property of their respective owners. IDENTIFICATION
Copyright©1997-2008OpenSS7 Corp.
Index
This document was created by man2html, using the manual pages. Time: 11:02:09 GMT, May 18, 2013 | ||||||||||||||||
| OpenSS7 SS7 for the Common Man |
| ||||||||||||||||
| Last modified: Thu, 30 Oct 2008 08:20:47 GMT © Copyright 1997-2007 OpenSS7 Corporation All Rights Reserved. |