Back to index

glibc  2.9
isastream.c File Reference
#include <errno.h>
#include <fcntl.h>
#include <stropts.h>

Go to the source code of this file.


int isastream (int fildes)

Function Documentation

int isastream ( int  fildes)

Definition at line 24 of file isastream.c.

  /* In general we do not have a STREAMS implementation and therefore
     return 0.  But for invalid file descriptors we have to return an
     error.  */
  if (__fcntl (fildes, F_GETFD) < 0)
    return -1;

  /* No STREAM.  */
  return 0;

Here is the call graph for this function: