Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference > I

isastream(3C)

HP-UX 11i Version 3: February 2007
» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

NAME

isastream() — determine if a file descriptor refers to a STREAMS device or STREAMS-based pipe

SYNOPSIS

#include <stropts.h>

int isastream(int fd);

DESCRIPTION

The isastream() function tests whether an open file descriptor (fd) corresponds to a STREAMS device or STREAMS-based pipe.

RETURN VALUE

Upon successful completion, the isastream() function returns a value of 1 when the file descriptor of the open file specified by fd is a STREAMS device or STREAMS-based pipe, and 0 (zero) if it is not a stream, but is a valid open file descriptor. Otherwise, a value of -1 is returned, and errno is set to indicate the error.

ERRORS

If any of the following conditions occur, the isastream() function sets errno to the corresponding value:

[EBADF]

The specified file descriptor does not refer to a valid open file.

STANDARDS COMPLIANCE

isastream(): SVID3

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2007 Hewlett-Packard Development Company, L.P.