tt_message_gid - retrieve the group identifier attribute from a message
#include <Tt/tt_c.h> gid_t tt_message_gid(Tt_message m);
tt_message_gid(3) ToolTalk Functions tt_message_gid(3)
NAME
tt_message_gid - retrieve the group identifier attribute from a message
SYNOPSIS
#include <Tt/tt_c.h>
gid_t tt_message_gid(Tt_message m);
DESCRIPTION
The tt_message_gid() function retrieves the group identifier attribute
from the specified message.
The ToolTalk service automatically sets the group identifier of a mes-
sage with the group identifier of the process that created the message.
The m argument is the opaque handle for the message involved in this
operation.
The application should check the tt_message_uid(3) and tt_message_gid()
against the User ID and Group ID of the application receiving the mess-
sage. If the UID and/or GID of the application do not match that of the
message then the receiving application should consider failing the mes-
sage with TT_DESKTOP_EACCES.
RETURN VALUE
Upon successful completion, the tt_message_gid() function returns the
group identifier of the message. If the group nobody is returned, the
message handle is not valid.
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
+---------------+------------------+
|ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+---------------+------------------+
|Availability | library/tooltalk |
+---------------+------------------+
|Stability | Committed |
+---------------+------------------+
SEE ALSO
tt_c(5), tt_message_uid(3).
ToolTalk 1.3 1 March 1996 tt_message_gid(3)