Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tt_pnotice_create(3) [hpux man page]

tt_pnotice_create(library call) 										   tt_pnotice_create(library call)

NAME
tt_pnotice_create -- create a procedure notice SYNOPSIS
#include <Tt/tt_c.h> Tt_message tt_pnotice_create( Tt_scope scope, const char *op); DESCRIPTION
The tt_pnotice_create function creates a message. The created message contains the following: Tt_address = TT_PROCEDURE Tt_class = TT_NOTICE The application can use the returned handle to add arguments and other attributes, and to send the message. The scope argument determines which processes are eligible to receive the message. The following values are defined: TT_SESSION All processes joined to the indicated session are eligible. TT_FILE All processes joined to the indicated file are eligible. TT_BOTH All processes joined to either indicated file or the indicated session are eligible. TT_FILE_IN_SESSION All processes joined to both the indicated file and the indicated session are eligible. The op argument is the operation to be performed by the receiving process. RETURN VALUE
Upon successful completion, the tt_pnotice_create function returns the unique handle that identifies this message. The application can use tt_ptr_error(3) to extract one of the following Tt_status values from the returned handle: 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 specified process identifier is out of date or invalid. APPLICATION USAGE
The application should use tt_free(3) to free any data stored in the address returned by the ToolTalk API. If the ToolTalk service is unable to create a message when requested, tt_pnotice_create returns an invalid handle. When the application attempts to use this handle with another ToolTalk function, the ToolTalk service will return TT_ERR_POINTER. SEE ALSO
Tt/tt_c.h - Tttt_c(5), tt_ptr_error(3), tt_free(3). tt_pnotice_create(library call)

Check Out this Related Man Page

tt_spec_prop(library call)												tt_spec_prop(library call)

NAME
tt_spec_prop -- retrieve the ith value of the property associated with an object spec SYNOPSIS
#include <Tt/tt_c.h> char *tt_spec_prop( const char *objid, const char *propname, int i); DESCRIPTION
The tt_spec_prop function retrieves the ith value of the property associated with this object spec. The objid argument is the identifier of the object involved in this operation. The propname argument is the name of the property associ- ated with the object spec. The i argument is the item of the list whose value is to be retrieved. The list numbering begins with zero. RETURN VALUE
Upon successful completion, the tt_spec_prop function returns the contents of the property value. If there are i values or less, tt_spec_prop returns NULL. 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_DBAVAIL The ToolTalk service could not access the ToolTalk database needed for this operation. TT_ERR_DBEXIST The ToolTalk service could not access the specified ToolTalk database in the expected place. TT_ERR_NOMP The ttsession(1) process is not running and the ToolTalk service cannot restart it. TT_ERR_NUM The integer value passed was invalid (out of range). TT_ERR_OBJID The objid passed to the ToolTalk service does not reference an existing object spec. TT_ERR_PROPNAME The specified property name is syntactically invalid. APPLICATION USAGE
The application should use tt_free(3) to free any data stored in the address returned by the ToolTalk API. If the returned value has embedded nulls, its length cannot be determined. SEE ALSO
Tt/tt_c.h - Tttt_c(5), tt_ptr_error(3), tt_free(3). tt_spec_prop(library call)
Man Page