📄 isastream.3
字号:
'\" rtp.\" -*- nroff -*-.\".\" @(#) isastream.3,v 1.1.1.1.8.1 2004/01/12 23:32:49 brian Exp.\".\" =========================================================================.\".\" Copyright (C) 2001-2004 OpenSS7 Corporation <www.openss7.com>.\".\" All Rights Reserved..\".\" Permission is granted to make and distribute verbatim copies of this.\" manual provided the copyright notice and this permission notice are.\" preserved on all copies..\".\" Permission is granted to copy and distribute modified versions of this.\" manual under the conditions for verbatim copying, provided that the.\" entire resulting derived work is distributed under the terms of a.\" permission notice identical to this one.\" .\" Since the Linux kernel and libraries are constantly changing, this.\" manual page may be incorrect or out-of-date. The author(s) assume no.\" responsibility for errors or omissions, or for damages resulting from.\" the use of the information contained herein. The author(s) may not.\" have taken the same level of care in the production of this manual,.\" which is licensed free of charge, as they might when working.\" professionally..\" .\" Formatted or processed versions of this manual, if unaccompanied by.\" the source, must acknowledge the copyright and authors of this work..\".\" -------------------------------------------------------------------------.\".\" U.S. GOVERNMENT RESTRICTED RIGHTS. If 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 success.\" regulations) or, in the cases of NASA, in paragraph 18.52.227-86 of the.\" NASA Supplement to the FAR (or any successor regulations)..\".\" =========================================================================.\".\" Modified 2004/01/12 23:32:49 by brian.\".\" =========================================================================.\".\" Copyright (C) 2000 John A. Boyd Jr. protologos, LLC.\".\" This library is free software; you can redistribute it and/or.\" modify it under the terms of the GNU Library General Public.\" License as published by the Free Software Foundation; either.\" version 2 of the License, or (at your option) any later version..\".\" This library is distributed in the hope that it will be useful,.\" but WITHOUT ANY WARRANTY; without even the implied warranty of.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU.\" Library General Public License for more details..\".\" You should have received a copy of the GNU Library General Public.\" License along with this library; if not, write to the.\" Free Software Foundation, Inc., 59 Temple Place - Suite 330, Cambridge,.\" MA 02139, USA..\".so lis.macros.R1bracket-label "\fR[\fB" "\fR]" "\fR, \fB"no-default-databasedatabase lis.refsaccumulatemove-punctuationabbreviate Ajoin-authors ", " ", " " and "et-al " et al" 2 3abbreviate-label-ranges ".."sort-adjacent-labels.R2.\".\".TH ISASTREAM 3 "2004/01/12 23:32:49" "LiS-2_16_18-8" "Linux STREAMS".SH NAME.B isastream\- determine whether an open file is \fISTREAMS\fR.SH SYNOPSIS.PP.B "#include <stropts.h> ".HP.BI "int isastream( int " filedes " ); ".SH DESCRIPTION.PP.BR isastream "() "may be used to test whether or not an open file descriptor is for a.I STREAMSfile (see.IR STREAMS "(4)). ".SH "RETURN VALUE".PPUpon successful completion,.BR isastream "() "returns 1 if the indicated file is a.IR STREAM ,and 0 if it is not.If.I filedesdoes not identify a valid open file,.BR isastream "() "should return -1 with.I errnoset to.BR EBADF ..SH "APPLICATION USAGE".PP.BR isastream "() " is convenient under Linux for determining or at least estimatinga file's behavior, since (with Linux.I STREAMSbeing available) there are both.I STREAMSand.RI "non-" STREAMSimplementations for, e.g.,.I fifos(also known as.I "named pipes"- see.BR fifo "(4)) "and.I pipes(see.BR pipe "(3)). ".sp.BR isastream "() "is also useful in conjunction with.BR fattach "(3) "and.BR fdetach "(3) "to determine whether or not a.I STREAMSfile has been attached to a path name..spApplications wishing to use the version of the.BR isastream "() "function described herein must link with the.B LiS.[LiS.]library which provides it. The Linux/GNU C library otherwise provides a stubsupporting calls to.BR isastream "() "which only generates an error indicating that it is not implemented..SH "CONFORMING TO".PPUNIX\(rg\ System V Release 4 (SVR4).[svr4.].SH "SEE ALSO".PP.BR pipe "(3), ".BR fattach "(3), ".BR fdetach "(3), ".BR fattach "(8), ".BR fdetach "(8), ".BR fifo "(4), ".BR STREAMS "(4) ".SH AUTHOR.PPJohn Boyd, protologos LLC..[$LIST$.].TI
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -