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

  man pages->HP-UX 11i man pages -> tt_fd (3)              
Title
Content
Arch
Section
 

Contents


 tt_fd(library call)                                     tt_fd(library call)




 NAME    [Toc]    [Back]
      tt_fd - return a file descriptor

 SYNOPSIS    [Toc]    [Back]
      #include <Tt/tt_c.h>
      int tt_fd(void)

 DESCRIPTION    [Toc]    [Back]
      The tt_fd function returns a file descriptor.  The returned file
      descriptor alerts the process that a message has arrived for the
      default procid in the default session.

      File descriptors are either active or inactive.  When the file
      descriptor becomes active, the process must call tt_message_receive(3)
      to receive the message.

 RETURN VALUE    [Toc]    [Back]
      Upon successful completion, the tt_fd function returns the file
      descriptor for the current procid.  The application can use
      tt_int_error(3) to extract one of the following Tt_status values from
      the returned integer:

      TT_OK     The operation completed successfully.

      TT_ERR_NOMP
                The ttsession(1) process is not running and the ToolTalk
                service cannot restart it.

      TT_ERR_PROCID
                The current default process identifier is out of date or
                invalid.

      TT_ERR_SESSION
                The specified ToolTalk session is out of date or invalid.

 APPLICATION USAGE    [Toc]    [Back]
      The application must have a separate file descriptor for each procid.
      To get an associated file descriptor, the application should use tt_fd
      each time it calls tt_open(3).

 SEE ALSO    [Toc]    [Back]
      Tt/tt_c.h - Tttt_c(5), tt_open(3), tt_int_error(3),
      tt_message_receive(3).


                                    - 1 -       Formatted:  January 24, 2005
[ Back ]
      
      
 Similar pages
Name OS Title
pxfisatty IRIX Determines if file descriptor corresponds to a valid file descriptor
socket Tru64 Create an end point for communication and return a descriptor
fdetach Tru64 Detach a STREAMS-based file descriptor from a file in the file system name space
fattach Tru64 Attach a STREAMS-based file descriptor to 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
isastream Tru64 Determine if a file descriptor refers to a STREAMS file
isfdtype Tru64 Test a file descriptor for a specific file type
fdetach Tru64 Detaches a STREAMS-based file descriptor from a file
acl_set_fd Tru64 Sets the ACL on the file or directory designated by the file descriptor
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service