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

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

Contents


 tt_open(library call)                                 tt_open(library call)




 NAME    [Toc]    [Back]
      tt_open - return the process identifier for the calling process

 SYNOPSIS    [Toc]    [Back]
      #include <Tt/tt_c.h>
      char *tt_open(void)

 DESCRIPTION    [Toc]    [Back]
      The tt_open function returns the process identifier for the calling
      process.

 RETURN VALUE    [Toc]    [Back]
      The tt_open function also sets this identifier as the default procid
      for the process.  The tt_open(3) function is typically the first
      ToolTalk function called by a process.

      The application must call tt_open(3) before other tt_ calls are made.
      However, there are two exceptions: tt_default_session_set(3) and
      tt_X_session(3) can be called before tt_open.

      A process can call tt_open more than once to obtain multiple procids.
      To open another session, the process must make the following calls in
      the order specified:

      tt_default_session_set
      tt_open

 RETURN VALUE    [Toc]    [Back]
      Upon successful completion, the tt_open function returns the character
      value that uniquely identifies the process.  The application can use
      tt_ptr_error(3) to extract one of the following Tt_status values from
      the returned pointer:

      TT_OK     The operation completed successfully.

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

 APPLICATION USAGE    [Toc]    [Back]
      The application should use tt_free(3) to free any data stored in the
      address returned by the ToolTalk API.

      Each procid has its own associated file descriptor, and can join
      another session.  To switch to another procid, the application should
      call tt_default_procid_set.

 SEE ALSO    [Toc]    [Back]
      Tt/tt_c.h - Tttt_c(5), tt_fd(3), tt_default_procid(3),
      tt_default_procid_set(3), tt_default_session(3),
      tt_default_session_set(3), tt_ptr_error(3), tt_free(3).


                                    - 1 -       Formatted:  January 24, 2005
[ Back ]
      
      
 Similar pages
Name OS Title
pthread_atfork Tru64 Declares fork handler routines to be called when the calling thread's process forks a child process
pxfwait IRIX Obtains information about a calling process' child process
getaudproc HP-UX get the audit process flag for the calling process
_exit NetBSD terminate the calling process
getgid Tru64 Get the group ID of the calling process
aio_suspend Tru64 Suspends the calling process until at least
_exit FreeBSD terminate the calling process
_exit OpenBSD terminate the calling process
getegid Tru64 Get the group ID of the calling process
getpid NetBSD get parent or calling process identification
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service