isfdtype man page on OpenBSD

Man page or keyword search:  
man Server   11362 pages
apropos Keyword Search (all sections)
Output format
OpenBSD logo
[printable version]

ISFDTYPE(3)		  OpenBSD Programmer's Manual		   ISFDTYPE(3)

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

SYNOPSIS
     #include <sys/stat.h>

     int
     isfdtype(int fd, int fdtype);

DESCRIPTION
     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 the
     <sys/stat.h> include file.

RETURN VALUES
     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
     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
     stat(2)

STANDARDS
     The isfdtype() function is expected to conform to	1003.1g.

HISTORY
     The isfdtype() function first appeared in OpenBSD 3.3.

OpenBSD 4.9			 May 31, 2007			   OpenBSD 4.9
[top]

List of man pages available for OpenBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net