*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->OpenBSD man pages -> isfdtype (3)              



NAME    [Toc]    [Back]

     isfdtype - determine whether a file descriptor is of a  specific type

SYNOPSIS    [Toc]    [Back]

     #include <sys/stat.h>

     isfdtype(int fd, int fdtype);

DESCRIPTION    [Toc]    [Back]

     The  isfdtype()  function checks whether or not the file descriptor fd is
     of type fdtype.

     A list of possible file types may be found  in  stat(2)  and
     <sys/stat.h> include file.

RETURN VALUES    [Toc]    [Back]

     The  isfdtype()  function  returns 1 if fd is of type fdtype
and 0 if it is
     not.  If isfdtype() fails, a value of -1 is returned and the
global variable
 errno is set to indicate the error.

ERRORS    [Toc]    [Back]

     The following error codes may be set in errno:

     [EBADF]       fd is not a valid open file descriptor.

     [EIO]          An  I/O  error occurred while reading from or
writing to the
                   file system.

SEE ALSO    [Toc]    [Back]


STANDARDS    [Toc]    [Back]

     The isfdtype() function is  expected  to  conform  to  POSIX

HISTORY    [Toc]    [Back]

     The isfdtype() function first appeared in OpenBSD 3.3.

OpenBSD      3.6                         October     15,     2002
[ Back ]
 Similar pages
Name OS Title
isfdtype Tru64 Test a file descriptor for a specific file type
katype IRIX determine file type
file HP-UX determine file type
elf_kind IRIX determine file type
file FreeBSD determine file type
file IRIX determine file type
magic2mime Linux determine file type
file Linux determine file type
file OpenBSD determine file type
isastream Tru64 Determine if a file descriptor refers to a STREAMS file
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service