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

  man pages->Tru64 Unix man pages -> isfdtype (3)              
Title
Content
Arch
Section
 

isfdtype(3)

Contents


NAME    [Toc]    [Back]

       isfdtype - Test a file descriptor for a specific file type

SYNOPSIS    [Toc]    [Back]

       #include <sys/stat.h>

       int isfdtype(
               int filedes,
               int fd_type );

LIBRARY    [Toc]    [Back]

       Standard C Library (libc)

STANDARDS    [Toc]    [Back]

       The isfdtype function supports POSIX.1g Draft 6.6.

       Refer to the standards(5) reference page for more information
 about industry standards and associated tags.

PARAMETERS    [Toc]    [Back]

       Specifies the file descriptor to be tested.  Specifies the
       file type to test for. Valid file types are defined in the
       <sys/mode.h> include file.

DESCRIPTION    [Toc]    [Back]

       The  isfdtype()  function  tests whether a file descriptor
       has a specific file type.

RETURN VALUES    [Toc]    [Back]

       Upon  successful  completion,  the   isfdtype()   function
       returns  a  1 if the file descriptor has the specific file
       type or a 0 (zero) if it does not. If the isfdtype() function
  fails, a value of -1 is returned and errno is set to
       indicate the error.

ERRORS    [Toc]    [Back]

       If the isfdtype() function fails, errno may be set to  the
       following value: The filedes parameter is not a valid file
       descriptor.

SEE ALSO    [Toc]    [Back]

      
      
       Functions: socket(2), stat(2), isatty(3).

       Standards: standards(5).



                                                      isfdtype(3)
[ Back ]
 Similar pages
Name OS Title
isfdtype OpenBSD determine whether a file descriptor is of a specific type
isastream IRIX test a file descriptor
dup2 HP-UX duplicate an open file descriptor to a specific slot
pxfisatty IRIX Determines if file descriptor corresponds to a valid file descriptor
fattach Tru64 Attach a STREAMS-based file descriptor to a file in the file system name space
fdetach Tru64 Detach a STREAMS-based file descriptor from a file in the file system name space
AFopenfile IRIX allocate an AFfilehandle structure for an audio file identified by name / by a Unix file descriptor
AFidentifyfd IRIX retrieve the audio file format of a file descriptor / open AFfilehandle
acl_set_fd Tru64 Sets the ACL on the file or directory designated by the file descriptor
isastream Tru64 Determine if a file descriptor refers to a STREAMS file
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service